Questions tagged [debugging]
is about finding the cause of errors or wrong results in (La)TeX code/documents using a methodical approach.
410 questions
5
votes
1
answer
110
views
LuaTeX (and other engines) equivalent of the \showglyphs command in ConTeXt for math
We can use the \showglyphs commannd in ConTeXt to show the bounding boxes of glyphs, both text and math. It also shows the baseline.
\showglyphs
\starttext
Lorem ipsum
\startformula \int_\...
1
vote
3
answers
99
views
Tracing command silently alters pdf
The desired output is with an overlay; but \tl_show:N prevents inhibits it. Though I found a workaround for this, \tl_log:N, it has cost me time so I thought I'd post it for insights. The question is: ...
1
vote
1
answer
61
views
Using includecomment and include causes runaway fragile frames
I customized my Beamer files to have:
different backgrounds depending on the programming language (from Changing the background color of a listing depending on the language)
some frames shown ...
5
votes
2
answers
242
views
XeLaTeX PDF image duplication issue
I found that loading images works fine under pdflatex,
but under xelatex it shows images I had deleted long ago. It can be seen that, in addition to the five images, several more images have appeared....
2
votes
2
answers
861
views
Best order of packages, according to Claude AI [duplicate]
I'm trying to polish a typical template that I frequently use to write books on maths and physics (so I usually load a large set of packages!). Some packages may be old and obsolete, others may clash ...
1
vote
0
answers
52
views
glossaries-extra style topic breaks paragraph in description of \newlineglossaryentry
I have been experimenting with using glossaries-extra for a project and have found it very useful, except I have encountered an issue that I have been unable to overcome.
I have narrowed it down to ...
2
votes
2
answers
125
views
How do I define tags that help me to keep track of concept definitions?
When I edit a LaTeX document, it often happens that I need to move a section or a paragraph to another place inside the same document. If this happens several times, it can become difficult to confirm ...
1
vote
1
answer
63
views
Debugging (tracing) pgfplots sample point coordinates
Is there a way to debug (trace to the log file) coordinates of sample points or any intermediate calculations. For example, \addplot3 used below uses 3 points (0,0,2), (1,0,1) and (2,0,0) to draw the ...
1
vote
2
answers
199
views
Analysis of a `log` file [duplicate]
Is there a tool to help analyze the log files produced by (La)TeX? For example, this type of tool should be able to list all warnings issued.
1
vote
1
answer
55
views
Writing functions horizontally error
I have been trying to define two functions horizontally in latex using align*, flalign*, aligned etc. All manner of permutations of these. I can't seem to get it to work or rid myself of an error. ...
1
vote
0
answers
46
views
MWE works, but quiz doesn't. How is a difference in environment changing the outcome?
I have two files, was going to post an MWE but made it work.
I have tried to find the difference between the MWE and the original, and all I can see is that I created a new (ultra-simple) quiz ...
0
votes
1
answer
101
views
How to debug "Missing $ inserted"
I have a large LaTeX document that was compiling without warnings in Ubuntu 22.04. Now I had to move to Fedora 40 and, when I try to compile it, it produces hundreds of ! Missing $ inserted., ! ...
1
vote
1
answer
63
views
LaTeX not numbering theorems consecutively
I have a LaTeX document with a weird bug - the numbering of the theorems is not continuous. Theorem 0.0.1 is followed by Theorem 0.0.5 instead of 0.0.2. I have attached the MWE and the screenshot from ...
1
vote
0
answers
50
views
beforesecskip occasionally failing in memoir
I'm typesetting a long and complex book with memoir class. In two cases, \beforesecskip seems to be ignored, in a rather random way which wonders me (I have been using memoir for a couple of years now,...
2
votes
1
answer
144
views
Invalid arara error when running YAML directive from TeXShop
I'm using arara to play a Waves.mp3 sound file when TeXShop starts, and completes, typesetting my LuaLaTeX project file (~20 minutes), mainly as a gentle alert that the typesetting is complete.
The ...