Questions tagged [debugging]

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

Debugging is covered to some extent by Chapter 27: Recovery from Errors in The TeXbook.

For a general definition see Debugging on Wikipedia.

390 questions
86
votes
5 answers

Compilation Error "! Missing \endcsname inserted" The control sequence marked should not appear between \csname and \endcsname

here's my thesis Latex files: http://www.mediafire.com/download/c7q8z4v6gv864rk/triet_thesis_clean.rar Please help me to fix the error, I've tried all the things I can find with Google :( : ! Missing \endcsname inserted.
62
votes
2 answers

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 anymore. So I thought I'd ask about links to where one…
sdaau
  • 17,079
33
votes
7 answers

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 used pretty printers to highlight where things…
Sean
  • 491
11
votes
4 answers

Goto or jump command in LaTeX?

The answer to this is probably "no", but I just wanted to make sure... (also, I'm not trying to get into the whole "gotos are evil" debate :)). Basically, one of the things that irritates me in my current workflow, is that eventually I get to a…
sdaau
  • 17,079
10
votes
1 answer

"show" family debugging commands

As discussed here, there are many commands which can be used to "debug" (La)TeX composing process. I also know that sometimes the \show command can be used to show the macro definitions. Nevertheless I know that there are some debug/tracing…
Moriambar
  • 11,466
8
votes
2 answers

How to debug issue where LaTeX refuses to produce more than 7 pages?

I consider myself quite experienced in this field by now. But today I am totally stumped. I have a .tex file where LaTeX truncates anything after page 7. It used to be that I had a \newpage in the middle of page 7 but if I remove that thing it will…
jonalv
  • 11,466
7
votes
1 answer

How to fix Underfull \vbox

I am trying to compile some chapters with the main file thesis.tex in TeXmaker. After compiling it returns: Chapter 4. (./chapter/res.tex) Underfull \vbox (badness 10000) has occurred while \output is active [] [11 ] I'm new to latex, how can I…
user134500
4
votes
2 answers

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.
Hector
  • 1,100
4
votes
1 answer

Previously working code now gives "Argument of \put has an extra }" after TeXLive/MiKTeX reinstall

I realize this might not be as detailed as expected, but I'm working on a series of books (meaning I have subfiles and many different packages loaded). Turns out I'm running short of space in my C drive, so I reinstall everything TeX into D, and…
4
votes
2 answers

Displaying plus and minus of a length

I know that \the\somelength will show me the value of \somelength. But how do I find out what the current stretch on that length is? For instance, if I have \setlength{\footnotesep}{10 pt plus 5pt minus 3pt} and I later want to display what the…
3
votes
1 answer

Error: paragraph ended before ... was complete

I'm quite lost. I can't figure out what I'm doing wrong below. \documentclass{article} \usepackage{amsmath,amssymb} \makeatletter \newcommand\aermb[1]{\def\ae@i@r{#1}\ae@rmb} \def\ae@rmb{%% \typeout{=======> \space\space ae@rmb}%% …
A.Ellett
  • 50,533
2
votes
0 answers

Why does LaTeX trigger a font warning when I don't even use that font and how can I trace it down to an input file?

My first question is, when exactly does LaTeX trigger a font warning? I suspect, it is in the moment when I request a font through \sffamily or \selectfont, correct? This is why \documentclass{article} \begin{document} \fontseries{book}\selectfont…
TobiBS
  • 5,240
2
votes
1 answer

Force line return with \message

I am trying to use \message to debug my code; in particular, to print information to the console. For some reason it is not adding line returns after each invocation (see example below). How can I force the line returns in the log (console)? Thanks,…
dontpanic
  • 809
2
votes
3 answers

Overfull \vbox with a document containing no images

[I updated the text so it includes a Overfull \vbox of 5.37814pt now] My document has more like this, but this is an example of a overfull \vbox (I hope I got it…
alfred
  • 607
2
votes
0 answers

How to obtain enough debug information?

I wrote a LaTeX package (actually a beamer theme, quite macro-heavy). With this theme I have a document that compiles perfectly on my own computer but compilation fails on the computer of my boss. I already asked my boss to compile with…
1
2 3