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

learn more… | top users | synonyms

9
votes
1answer
208 views

Using \typeout behaviour different with \newtoks vs. \def

I feel as I really should know this, but sadly I don't. Why is the output of \typeout{\the\myToken} not the same as having it printed in the PDF as \the\myToken. No problem with a \def, just with ...
8
votes
1answer
186 views

Get current source line number

How can I get the current .tex source line number? I want to use it to generate useful error messages in a package I am writing. There are some errors that can only be detected at the end of the ...
7
votes
1answer
2k views

Install emerald font package on ubuntu

I tried to install the emerald font package on my ubuntu natty box. However if I compile a minimal example like (emerald.tex) \documentclass{article} \usepackage{emerald} \usepackage[T1]{fontenc} ...
7
votes
1answer
1k views

How to find the lost text part when having “Float(s) lost” error

I've lost some text. I don't know if theres something missing, so how can I find it? I'm not in the mood to compare the chapter1.tex to the pdf file by reading both. Chapter 1 (chapter1.tex) is rather ...
2
votes
3answers
310 views

Help me to debug long LaTex equations with errors

I want to learn debugging of long LaTeX equations like below: $\tau=\int\frac{dt}{\gamma} = \int\sqrt{1-\frac{v(t)^2}{c^2}}dt = ...
3
votes
1answer
161 views

Print macro output instead of executing

I am attempting to debug a Tikz/PGF script. I have a STY file that generates Tikz/PGF scripts, but the output graphic isn't quite what I want it to be. In order to debug the problem, I was hoping ...
11
votes
4answers
2k views

LaTeX debugging strategies and brace mismatching

What is the recommended way to track down brace mismatches in LaTeX? I have a large beamer presentation, but this equally applies to any other LaTeX work I've done. In other computer languages I've ...
1
vote
0answers
571 views

tikzpicture fails when externalization is enabled [closed]

In a document of mine I'm trying to use the external library. For the record, I downloaded the CVS version of TikZ, since I want the better update checks. Anyway, I have a figure in my code which ...
5
votes
1answer
645 views

TikZ datavisualization example fails

While trying an example from the datavisualization section of the current TikZ manual I get a strange error message. On my system I have the current MikTeX 2.9 and installed the CVS version of TikZ ...
5
votes
0answers
288 views

Biblatex 2.1 bug [closed]

After updating my texlive 2012 installation using tlmgr update --all --self the biblatex was updated to version 2.1 and biber to version 1.1. Now I cannot compile my document. I get the following ...
0
votes
0answers
66 views

How can I debug this problem with math typesetting? [duplicate]

Possible Duplicate: problem compiling some 'math' using LuaLaTeX While trying to write an equation it seems that the square root does not like particular elements. I tried to ...
3
votes
2answers
174 views

Debugging vertical space on top of page (section inside a custom biblatex cite command)?

Please consider the following MWE, compiled with lualatex test.tex (+ bibtex test + lualatex test.tex): \documentclass[twoside,a4paper]{book} \usepackage{lua-visual-debug} \usepackage{lipsum} ...
59
votes
1answer
2k views

A LaTeX log analyzer application (visualizing TeX expansion)

Consider the following MWE, test.tex: \documentclass[12pt]{article} \begin{document} \tracingassigns=1 \tracingmacros=1 \def\aaa{something} \def\bbb{else \aaa, else} \edef\ccc{third \bbb, level} ...
7
votes
1answer
712 views

A \typeout (or expandable command) that can expand once - or with variable levels of expansion?

Consider the following MWE: \documentclass[12pt]{article} \begin{document} \def\aaa{something} \typeout{=1==\aaa==} \typeout{=1==\meaning\aaa==} \typeout{} \def\bbb{else \aaa, else} ...
3
votes
2answers
1k views

Output ASCII code as character on terminal in Latex?

If I have a letter/character, I can output its ASCII value using \number and backtick command: *\typeout{\number`a} 97 What do I do if I have "97", and I want to show "a" in terminal? I have ...
3
votes
1answer
264 views

Generating a catcode table in Latex (with \typeout to terminal)?

I often need to look up a catcode table, and quick searches on the web are rarely satisfying. So I thought, it must be (in the long term) easier to use a Latex function of sorts, to loop through all ...
5
votes
2answers
139 views

Showing definition of macros with custom characters?

Consider the following MWE: \documentclass{book} \usepackage{biblatex} \begin{document} \typeout{1.=\meaning\usebibmacro} \typeout{2.=\meaning\usebibmacro{name:first-last}} \makeatletter ...
20
votes
1answer
1k views

Latex \tracing commands list?

Often I need to recall the different \tracing commands; and a couple of times I stumbled on some webpages that worked fine for me; sadly, I didn't keep them, and my searches don't take me there ...
28
votes
3answers
23k views

LaTeX with Sublime Text 2

I recently (2 days back) started using LaTeX, I use Sublime Text 2 (ST2) for most of the programming. I found that ST2 has LaTeX package. So what I am doing is write the document with ST2 and run it ...
3
votes
1answer
197 views

Showing expanded `\let` command with `\typeout`

I have already seen the related page macros - What is the difference between \let and \edef?, but I'm afraid it still doesn't expain to me the following MWE: \documentclass{minimal} ...
5
votes
2answers
398 views

On unprotecting (expanding) \protected macros (or, “the space after command name”)

I quite often come into a situation, where I need to obtain some text produced by a package macro as a string, like in say: Expanding (edef) a lipsum command? How do I "unprotect" an ...
2
votes
2answers
138 views

Generating pages in response to iterated parameter on engine level?

Just to jot this down here, while I have the thought: The method I used for the .gif animations in Why does \vspace, after section heading, sometimes jump/snap in discrete steps? was basically have a ...
45
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 ...
5
votes
3answers
263 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
343 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
477 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
114 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
373 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 ...
3
votes
1answer
781 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
312 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
357 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 ...
12
votes
1answer
7k 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 ...
8
votes
1answer
222 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
681 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
865 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
347 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} ...
26
votes
2answers
681 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 ...
2
votes
1answer
671 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
334 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
133 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 ...
15
votes
2answers
4k 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
476 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
577 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
428 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 ...
6
votes
1answer
370 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 ...
9
votes
1answer
281 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
248 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
1k 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 ...