Questions tagged [debugging]
is about finding the cause of errors or wrong results in (La)TeX code/documents using a methodical approach.
408 questions
1
vote
1
answer
53
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 ...
2
votes
2
answers
832
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 ...
2
votes
2
answers
115
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
2
answers
192
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
0
answers
44
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 ...
1
vote
1
answer
59
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 ...
2
votes
1
answer
139
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 ...
0
votes
0
answers
59
views
Latex installation or workspace configuration breaking \begin{enumerate}
Task Description: I am writing my thesis with latex in vscode. Sometimes I write using my desktop PC and other times using my laptop when I am travelling. I have setup git version control for this ...
3
votes
0
answers
89
views
What causes calign=fixed edge angles to behave inconsistently when grow is not equal to 270?
[EDIT: copy on GitHub.]
I would like to understand what causes the following behaviour in forest.
MWE [Note that most of the code isn't code necessary to reproduce the problem but rather annotations I'...
1
vote
0
answers
109
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
0
answers
139
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}
\...
1
vote
1
answer
8k
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 ...
0
votes
1
answer
323
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 ...
1
vote
2
answers
99
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\...
0
votes
0
answers
2k
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 ...
1
vote
1
answer
104
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:
%...
1
vote
0
answers
61
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
1
answer
146
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
67
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 ...
3
votes
1
answer
128
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, ...
2
votes
1
answer
247
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 ...
2
votes
0
answers
84
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
0
answers
357
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 ...
0
votes
2
answers
1k
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{...
2
votes
2
answers
170
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, ...