is about finding the cause of errors or wrong results in (La)TeX code/documents using a methodical approach.

learn more… | top users | synonyms

51
votes
4answers
1k views

Why does \vspace, after section heading, sometimes jump/snap in discrete steps?

Well, this is one question that I've had for a long time, and one that always gets me extremely irritated. However, this time I'm even somewhat happy - that I can ask the question at all; and that is ...
6
votes
3answers
329 views

\settowidth problem in tikz and in groups

I just came to the following problem - using \settowidth on a length in a tikzpicture resets that length to 0? Here is a (totally command-line) MWE, compiled with pdflatex test.tex: ...
1
vote
0answers
425 views

Debugging Lua in LuaLatex with LDT [closed]

LDT is an IDE for lua based on eclipse. It is quite nice and the best free lua debugger I've seen(I've just stumbled upon it the last 2 days or so). It took me a bit to get setup properly but because ...
10
votes
1answer
554 views

Visualizing correct page lengths with 'layouts' and 'tikz' packages?

I am currently working on a project with xelatex/fontspec and tikz, and so, this example is basically the same as the one from layouts package reads all length as zero with tikz/fontspec/xelatex?. ...
2
votes
1answer
135 views

layouts package reads all length as zero with tikz/fontspec/xelatex?

After getting the suggestion to use the layouts package for visual debugging of lengths, I came up with the following example, which I compile with xelatex test.tex: ...
4
votes
2answers
501 views

Visual debugging of lengths in paragraphs and environments?

During my searches, I found a couple of online images, which I doubt are produced with Latex - however, I found them immensely useful in understanding what is going on. I'm pretty sure the images ...
4
votes
1answer
1k views

How to print out to “log” without affecting anything else (lua print equiv)

lua's print is very effective for my debugging purposes but I can't easily use it in TeX because of all the macro expansion issues. All it does is print the text to the window (console window or ...
2
votes
2answers
353 views

Strange behaviour debugging a document with AUCTeX-GNUEmacs in math mode

When I try to compile this document \documentclass{article} \usepackage{amsmath} \begin{document} A simple fraction with an error $\frac{a}{b$ \end{document} I obviously get an error because there ...
2
votes
1answer
474 views

Unwanted spaces

The code given just after produces extra unwanted spaces indicated in the following picture. How can I fix it ? Sorry for the colors, this choices will be changed later when technical issues will be ...
15
votes
1answer
9k views

How do you effectively debug overfull \hbox warnings?

I still haven't found out how to effectively solve Overfull \hbox (0.80913pt too wide) has occurred while \output is active warnings. For instance, this piece of latex generates such a warning and I ...
9
votes
1answer
255 views

Help with the lua-visual-debug package

The documentation for lua-visual-debug is a little sparse. Can someone interpret the boxes/lines/colors that lua-visual-debug produces?
4
votes
3answers
827 views

Error using \usepackage{fancyvrb, fancybox}

With TeX Live 2009, with this MWE. \documentclass{article} \usepackage{fancyvrb, fancybox} \begin{document} \begin{Verbatim}[frame=single] auto eth0 \end{Verbatim} \end{document} I ...
5
votes
1answer
1k views

How to debug an infinite loop in pdfLaTeX code

I have some code which crashes when loading the myriadpro package and loading in the document only the symbol \oiint \documentclass[]{scrbook} \usepackage[T1]{fontenc} \usepackage{amsmath} % ...
12
votes
1answer
380 views

Are subcaption and tabularx incompatible?

I know that tex.sx isn't the forum for bug-reporting, but I have a bit of a problem and I'm looking for a technical workaround. The following MWE produces odd labels: \documentclass{article} ...
27
votes
2answers
736 views

How do I debug pgfkeys?

I'm sure if you're reading this question you are already familiar with my love for pgfkeys. However, it is absolutely impossible to debug: \tracingmacros is a total mess, with every key expanding to ...
3
votes
1answer
750 views

Debugging Advice: TeX Capacity Exceeded with TeXLive2011 (but not with TeXLive2010)

I have a feeling that this is going to be rather embarrassing when I eventually get to the bottom of this problem, but since I have been struggling with this for some time I am posting this question ...
3
votes
1answer
392 views

How can I check/debug a .cls file?

I am editing a .cls file in order to customize the output of a particular document. However, I am occasionally coming up against errors. Is it possible to check that my .cls file is valid (i.e. no ...
1
vote
1answer
146 views

Is that a bug between `xymatrix`, the `input` command and .sty file?

I have a problem compiling the following document. First, I have a file macros.sty that consists of : \newcommand{\test}{ \xymatrix@R=0mm{x} } Then, I have an auxiliary file out.aux that consists ...
17
votes
2answers
5k views

Is plotting exponential graphs a known source of bugs in TikZ?

I want to plot $y = 2^x$ over a small domain. Unfortunately, even though tikz (v 2.1) seems to be able to calculate 2^{negative numbers} it is not plotting them correctly. My minimal example is: ...
9
votes
1answer
535 views

Using pgfplots with a0poster

I want to use tikz/pgf to plot some graphs in a poster done with a0poster. That is the code: \begin{tikzpicture} \begin{axis}[xlabel=lambda, ylabel=int] \addplot[blue] table [mark=none, col ...
1
vote
0answers
136 views

Weird error in file converted from docx to txt by LibreOffice [duplicate]

Possible Duplicate: LaTeX baffled by BOM---Unicode's byte order mark. I have a large text file in .docx format, and I used LibreOffice to convert it to plain text so I could nicely ...
17
votes
5answers
660 views

What tips and tricks are there for debugging TikZ/PGF code?

When answering questions here and when drawing my own complicated TikZ/PGF drawings, I've developed a fair number of "tips and tricks" for debugging the code. I'm sure that others have as well. I ...
2
votes
4answers
526 views

Debugging - any packages that will draw individual line (and word) frame boxes?

I was just wandering if there is a package (or an option to a package, like \usepackage[showframe]{geometry}) that could emphasize/draw borders(/lines/frame) around each (and every) word; and/or each ...
7
votes
1answer
433 views

bug with page numbers when using soul package

I recently ran into a curious bug when using the soul package. I managed to boil it down to the following example. The problem is that the page numbers get messed up. In the example below, they should ...
10
votes
1answer
326 views

Is there a \show for catcodes?

In the course of attempting to out-pedant another mathematician, I wanted to \show the catcode of $ to convince myself that it was a "special" character in ordinary TeX as well as LaTeX. I was just ...
1
vote
1answer
292 views

Help understanding/debugging spacing around headings (and other places)

I am trying to get my headings set up to meet my university's thesis formatting requirement. I'm using the titlesec package because it has the ability to suppress the spacing before the second heading ...
1
vote
1answer
2k views

Warning Message Using Revtex4 in Preamble

I was wondering what was the cause of the following warning! message with the documentclass below: Using the following: \documentclass[amssymb,twocolumn]{revtex4} WARNING MESSAGE BELOW Class ...
1
vote
0answers
271 views

tikz bug in the automata package? [duplicate]

Possible Duplicate: Strange arrow mark with TikZ edge and anchors. The following code \begin{tikzpicture} \node (q0) [initial,state] {$q_0$}; \node (q1) [state,right ...
3
votes
1answer
509 views

Strange persisting error, even after removing the code.

After doing some changes to my document, I get a “Runaway Argument” error on compilation. After undoing these changes the error persists. However, when I copy the code to a new file or rename the .tex ...
3
votes
2answers
376 views

Trace values of parameters

I would like to print the value of a register into the document for 'debugging' purposes. For counters I would use \arabic{myCounter}. But \abovedisplayskip is not a counter.
1
vote
0answers
110 views

How do I temporarily change the PGF version used? [duplicate]

Possible Duplicate: Installing several versions of a package This might be a more general question but I'm interested in the PGF implementation so I'll ask specifically. I have TikZ code ...
6
votes
2answers
1k views

How do automatic overlay specification work in beamer?

I've tried reading the excellent Beamer user guide, but failed to understand. I understand the basic idea: there's a counter beamerpauses that is advanced by a + inside an overlay specification. You ...
24
votes
3answers
1k views

How can I work around this TikZ bug: (\x)^2 and \x^2 produce different results in TikZ plot?

I have some files with TikZ graphics that have suddenly changed appearance since I upgraded to PGF-2.10. Here is a minimal example: \documentclass{minimal} \usepackage{tikz} \begin{document} ...
18
votes
1answer
398 views

A “stacktrace” for errors

Is it possible to get some kind of "stacktrace" in TeX errors? I sometimes get errors which only show some deep LaTeX internals, but nothing about which LaTeX macro referenced it. Thanks,
26
votes
2answers
1k views

Introspection and reflection with LaTeX/TeX macros

Below is a short program that can use \meaning and \string to let a combination of LaTeX and TeX commands to print out the listing of macros. Unsurprisingly (nothing can surprise me with TeX any ...
11
votes
2answers
530 views

\underfullrule?

I always use something like \overfullrule=1mm when I am writing Latex documents. I do read all warnings regarding overfull \hboxes, but I still prefer the visual output that very clearly shows exactly ...
6
votes
2answers
762 views

hyperref incorrect links: how to debug?

Problem Statement. I am writing a large document that is too big to provide here for illustration. For the first hundred pages or so, the hyperlinks are correctly matched to the displayed text. For ...
40
votes
8answers
4k views

Reducing the console output of LaTeX

When I run pdfLaTeX, I get very verbose output: (/usr/local/texlive/2008/texmf-dist/tex/generic/pgf/frontendlayer/tikz/librarie s/tikzlibrarycalc.code.tex) ... Is there a script to soak up all the ...
5
votes
1answer
1k views

Defining a custom ‘wrapfig’ environment

[ This is an updated version of http://stackoverflow.com/questions/3233031/latex-defining-a-custom-wrapfig-environment ] The wrapfig package interacts badly with the setup and teardown done by \begin ...
2
votes
2answers
341 views

Meaningful error messages when using latex instead of pdflatex

When I have TikZ images or I include .png graphics, I need to use pdflatex instead of plain vanilla latex. (That is, I need to use pdflatex all the time, rather than just when I want to produce the ...
39
votes
2answers
2k views

Is there a \show for lengths?

The \show command is extremely useful for figuring out what's going on with a particular macro. Similarly, using \the can tell me the value of a counter. I'd like to know if there's something ...
76
votes
2answers
8k views

How to best debug LaTeX?

..and I don't mean finding out why it doesn't compile, I mean serious debugging: breakpoints, figuring out value of variables at a given moment during run/compile, stepping, examining a stack (is ...