Linked Questions

50
votes
1answer
8k 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 ...
35
votes
2answers
1k 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 ...
35
votes
3answers
4k views

How do magic \dots work in amsmath?

The amsmath package redefines the \dots command so that it "guesses" the correct height of the dots with respect to its context. For example $x, \dots, y$ will produce three lowered dots, aligned ...
21
votes
1answer
4k views

Why can't TeX show us the actual “undefined control sequence”?

This is a question on the internals of the TeX system rather than on how to use it. Every time an undefined control sequence is used in a document, TeX prints the message undefined control sequence [...
21
votes
2answers
846 views

Non-invasive replacement for \fbox?

I am trying to create a macro that improves on \fbox by working correctly in all cases and by being minimally invasive with respect to padding. What I've got so far works fairly well, but I'm having ...
20
votes
1answer
645 views

Visualize bibliography entry process of biblatex

I'm currently working on modifying the verbose biblatex style to my needs. In order to find out what's going on and to find the definitions I need to modify, I've been digging through a number of ...
14
votes
2answers
267 views

Why does this use of `\expandafter` not work?

I've written the following code: \newif\ifconsecutive \consecutivefalse \newcommand{\myfirst}[1]{#1\consecutivetrue\expandafter\consecutivefalse} \newcommand{\mysecond}[1]{\ifconsecutive $\...
12
votes
2answers
1k views

Reading the contents of a box

Is it possible to take a box and retrieve the following information from it: A list of all "top level" internal boxes; All intervening space (kerns and glue: did I forget another type of space?)? ...
7
votes
1answer
528 views

Why doesn't Tex have a proper debugger? [duplicate]

Why doesn't TeX have a debugger? And by 'debugger' I mean a dedicated application in which you can set breakpoints and watch the values of registers, macros, etc. as they change in real time, maybe ...
5
votes
1answer
400 views

How to debug BibTeX?

     How do I debug BibTeX code? I would like to know how to: step through execution, step into and out of function calls, set breakpoints, visualize the stack, watch ...
5
votes
1answer
171 views

Is there a list of common misleading errors and how to go about debugging the real problem

Yesterday I posted a question "My attempt to local redefine a command is failing and not sure why" which I really knew the answer to. But I was thrown by the error message I was getting and after ...
2
votes
3answers
978 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 = \int\sqrt{1-\frac{1}{c^2}\left(\left(\frac{dx}{dt}\right)^2+\left(\frac{...
1
vote
1answer
70 views

Memoir sheetsequence counter does not increment when bidi is loaded

I would like to use \thesheetsequence in the trim area (sheet-number.tex) as described in the Memoir documentations but the counter does not increment (it always shows 1) and \thelastsheet is always 0....