Questions tagged [debugging]
is about finding the cause of errors or wrong results in (La)TeX code/documents using a methodical approach.
390
questions
0
votes
0
answers
51
views
Odd warning aboud \label nameref
I have absolutely no idea how this happened, but it is annoying me so much that I need to ask. Why does the message
Package nameref Warning: The definition of \label has changed! Check your packages! ...
86
votes
14
answers
19k
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 ...
1
vote
0
answers
64
views
TeX capacity exceeded due to misuse of \l_tmpa_clist
I am trying to improve my package multifootnote, hoping that it could correctly place the footnote text on the corresponding pages when the footnote marks are distributed over several pages. For this, ...
0
votes
1
answer
132
views
LuaLatex with VS Code + Local Lua Debugger: Breakpoints ignored in lua scripts that lie in parent folder
In short: When debugging my lualatex files in VS Code with Local Lua Debugger, breakpoints in lua files are ignored if they lie outside the current working directory; for example, if they lie in the ...
30
votes
3
answers
33k
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 ...
1
vote
1
answer
38
views
animate and pgfplots, variable in domain leads to "TeX capacity exceeded"
I'd love to animate a plot but the problem even appears on this simple minimum example.
It would be kind if someone could check if there is a programming error on my side or perhaps a bug involved.
I ...
1
vote
1
answer
240
views
How to debug todonotes issues (expandafter {\@captype)
In a LaTeX document (using revtex-4.2 and todonotes), I run into issues with to-do note related errors – which seem erratic and which I somehow cannot debug. The issue seems to be related to a certain ...
1
vote
1
answer
524
views
how to output each source line (number) during compilation (for debugging)?
I have this orignal file
%file simples.tex
\documentclass[12pt]{report}
\begin{document}
\end{document}
which I want to compile. During compilation via pdflatex simple.tex there is output shown and I ...
62
votes
2
answers
14k
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 ...
0
votes
0
answers
52
views
How do you fix underfull hbox warning?
I am trying to write my thesis proposal paper in Latex. Here's the summarized code since most of it is all about the paper I wrote:
\documentclass[a4paper,12pt]{report}
\usepackage{indentfirst}
\...
3
votes
1
answer
422
views
How to build a LuaTeX binary with debug info?
I would like to build a binary of LuaTeX with debug info, so that it can be run inside a debugger (like gdb) and one can step through the program in terms of the source code. My goal is to debug the ...
1
vote
0
answers
58
views
Moved code from overleaf to local latexmx, how to debug? [closed]
I have files that I moved from overleaf, which is set to be very permissive. And better, to have "tex" support whenever I needed it.
I compiled using:
latexmk -pdf -pv ...
0
votes
1
answer
1k
views
Generating Citation Keys with Zotero and Better BibTex Plugin
EDIT: The issue was something completely different. The Better BibTex plugin for Zotero changes the way citation keys are generated. This can be changed in Preferences -> Better BibTex -> Open ...
3
votes
2
answers
192
views
How to figure out which package a command is from at any particular time?
I know there are some posts on this but I don't understand. So for instance I want to know which package contains \restatable.
I've tried \show\restatable but I don't understand what the relevant part ...
8
votes
2
answers
882
views
Is there a way to step through LuaLaTeX macros using a remote debugger?
Writing LaTeX macros has always been difficult, and it seems like writing a major package can only be accomplished by a Real Programmer.
Fortunately, LuaTeX is on its way, and writing Lua macros is ...
9
votes
2
answers
3k
views
tabu package - gaps in vertical lines
I'm in the unfortunate situation that I have to make a table in LaTeX which has thick vertical lines. Since this does not seem to be possible with the default tabular environment, I chose the tabu ...
2
votes
1
answer
113
views
Help finding strange space
I have faked my way through writing a Swedish language file (see bottom) for fmtcount. It has served me well, but now I have started noticing strange spaces appearing before numbers. I am a bit out of ...
1
vote
2
answers
48
views
How to control expansion order to define variables from a prefix and a command?
The following is a command that does basic arithmetic with nine variables.
\documentclass{article}
\usepackage{xfp}
\newcommand\functesta[9]{
\edef\myvara{#1}
\edef\myvarb{#2}
\edef\...
1
vote
0
answers
31
views
Why is tcolorbox preventing noindentafter from working properly?
I just discovered that the tcolorbox package prevents
noindentafter from doing its job:
\documentclass[12pt,a4paper]{report}
\usepackage{noindentafter}
\NoIndentAfterEnv{verbatim}
\usepackage{...
0
votes
0
answers
844
views
Error when using LaTeX in Visual Studio Code: You don't have an extension for debugging LaTeX. Should we find a LaTeX extension in the Marketplace?
When I try to run a tex file in VS Code, I get the error 'You don't have an extension for debugging LaTeX. Should we find a LaTeX extension in the Marketplace?' and cannot run the file. But when I try ...
5
votes
1
answer
1k
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 ...
87
votes
5
answers
349k
views
Compilation Error "! Missing \endcsname inserted" The control sequence marked <to be read again> 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 :( :
! ...
2
votes
1
answer
66
views
Undefined control sequence but everything is defined
Minimal not working example:
\documentclass{article}
\usepackage{amsmath,amsthm,amssymb,varwidth,xstring,environ}
\newsavebox{\tempbox} %Allows to use fbox in newenvironment
\makeatletter
\...
1
vote
1
answer
48
views
Piping shell command output to another command
I'm trying to write a command that wraps \href with a QR code to the given URL. For this I need to generate a temp file and reuse it later, so I wrote a \mktemp command that wraps the mktemp utility:
%...
0
votes
0
answers
37
views
Can I show the raw generated text from a command in my document?
I am trying to debug my code and I keep running into the same problem so I would like to see what the command that causes the problem is giving to the compiler.
I have looked for this and I can't seem ...
1
vote
0
answers
48
views
Error: Argument of � has an extra }. marked in /newpage [duplicate]
I was given with the following template in LaTex and I got directly the error 'Argument of � has an extra }.' in line 43 (where the first /newpage is).
\documentclass[12pt]{article}
\usepackage{ucs}
\...
0
votes
0
answers
60
views
Latex Template Gets Stuck when generating PDF
I am working on my thesis and need to convert my paper to a different format. I'm new to using latex, only having started using it for this project, and am struggling to get the base version of this ...
0
votes
1
answer
66
views
Paragraph ended before align* was complete - can't find the typo
This is the code in question
\end{align*}
These correspond to translations $z \mapsto z + \lambda$
\begin{align*}
M \text{ is elliptic } &\iff M \text{ has exactly 2 complex conjugate fixed ...
0
votes
1
answer
48
views
Main language not reselected correctly if previous section ends with other language and section title starts with other language
I have an issue with XeLaTeX with a document with two languages, Hebrew and English. I use a different font for Hebrew (here DejaVu Sans, but any font will do).
The problem is that when (1) a section ...
-1
votes
1
answer
475
views
Undefined control sequence errors in overleaf
I am getting " Undefined control sequence. " errors in 3-4 parts of my latex code when using overleaf. I have loaded amsmath in my preamble. I am unable to understand what is the cause or ...
2
votes
1
answer
79
views
ifcase eats up letters
I created a command that switches between GCD and LCM. However it has a side effect of erasing everything before the second visible character after the command. How can I fix this bug?
\documentclass{...
3
votes
1
answer
89
views
Problem with the alignment in systeme package
When I type this:
\usepackage{systeme}
\begin{document}
\systeme[xyzt]{x-iy+3t=0,ix-z-(2-i)t=0,(1+i)x+(2-i)y+(3i-5)t=0,-ix+(1+i)y+z-it=0}
\end{document}
I'm ending up with this:
Which, as you see, ...
1
vote
1
answer
46
views
Problem when extracting string from argument to call another function
In my program below, I defined a function \checklist that takes to optional arguments and one compulsory argument. The function works as expected.
Then, I would like to define another function \...
2
votes
1
answer
643
views
How to exit from a latexmk build?
In the following example, I don't know how to exit from the build process:
? ! Interruption.
^Cl.1917347403
? ! Interruption.
^Cl.1931472264
? x
! Interruption.
^Cl....
2
votes
1
answer
158
views
The lua-visual-debug package documentation
The documentation is kind of lacking.
Could anyone explain the meaning of blue solid/dotted lines and red solid lines between words here?
How are they different from the dotted versions?
Looking ...
6
votes
2
answers
2k
views
how to throw a warning in latex?
I want to know how to throw a warning when latex reach to a certain point.
For instance:
\switch [\exp1]
\case{{case 0}}
%do whatever
\case{{case 1}}
%do whatever
\otherwise
%...
4
votes
2
answers
433
views
Is it bad practice to use tabs to indicate indentation in LaTeX? [closed]
Should I make it a habit to use spaces instead of tabs when indenting? Casual use of tabs didn't cause problems but so far I experienced a few niche cases where using tabs leads to unexpected behavior....
2
votes
0
answers
53
views
Duplicated glyphs (except last one) in clipboard when copying ligatures with Fira Code font (lualatex)
I tried to make Fira Code with minted copy-friendly, but it just doesn't work, and I don't know why. Other mono fonts like Ubuntu Mono and all regular non-mono fonts (that I have tried) are copying ...
2
votes
1
answer
82
views
Incompatibility between `acmart` and `standalone`
I am trying to use the standalone class together with the acmart class (I am using v1.86).
I can use it fine with 1 tikzpicture but it outputs an extraneous glyph with 2 tikzpictures and it throws an ...
2
votes
0
answers
216
views
Latex debugger? [duplicate]
Are there any debugging capabilities in latex or any gui editors? That is, is there a way I can view the value of variables, commands, memory etc during compiling and at the exact moment compilation ...
4
votes
1
answer
2k
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 ...
5
votes
2
answers
202
views
How to \show the code of the command \autoref? [duplicate]
Edit: I think this is a duplicate of How can I see the "implementation" of the \LaTeX command? .
I wanted to see the code for the hyperref \autoref command, so created this simple document:
...
0
votes
1
answer
39
views
Enumerate exhibits unexpected behavior when renamed
Enumerate exhibits unexpected behavior when renamed
In the example below I renamed enumerate to enum for brevity.
\documentclass{article}
\usepackage{enumerate}
\newcommand{\enum}{\enumerate}
\title{...
0
votes
2
answers
522
views
Latex code for table not working
I'm trying this table -
Here's my latex code -
\documentclass{article}
\usepackage[utf8]{inputenc}
\title{test}
\author{Ved}
\date{September 2022}
\begin{document}
\maketitle
\section{...
0
votes
1
answer
86
views
Strange extra space when \cref something defined with create-theorem with empty names
Consider the following example, where I copied some code from this answer.
\documentclass{article}
\usepackage{etoolbox}
\makeatletter
\newskip\nonfill@parfillskip
\AtBeginDocument{%
\setlength{\...
2
votes
2
answers
121
views
Problems in my Tex files when compiling tikzcircuit
I have been trying to compile my file that contains a tikzcircuit for few hours now (>6hours), on overleaf. The file compiles with no problem whatsoever when the circuitikz is commented. However, ...
2
votes
2
answers
1k
views
Does Lyx have the facility to compare two document and to search for for pieces of text or code within mathsmode
(1)Does Lyx have the facility using the find command to search for certain symbols or pieces of text within sections of maths-code,
(2)In addition where can one find the tracking changing facility
, ...
33
votes
7
answers
12k
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 ...
20
votes
1
answer
1k
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,
3
votes
1
answer
3k
views
how to debug runaway argument?
How do I figure out what line the latex starts looking for a missing brace or..... I would prefer not to include my latex code
Excluding 'comment' comment.)
Runaway argument?
! File ended while ...