Skip to main content

Questions tagged [debugging]

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

Filter by
Sorted by
Tagged with
0 votes
3 answers
77 views

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: ...
Erwann's user avatar
  • 2,500
1 vote
1 answer
58 views

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 ...
ginjaemocoes's user avatar
5 votes
2 answers
240 views

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....
Yilin Cheng's user avatar
2 votes
2 answers
849 views

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 ...
Cham's user avatar
  • 2,846
1 vote
0 answers
52 views

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 ...
cathe's user avatar
  • 11
2 votes
2 answers
120 views

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 ...
Tommi Rimpiläinen's user avatar
1 vote
1 answer
62 views

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 ...
Sergei Zinovyev's user avatar
1 vote
2 answers
195 views

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.
projetmbc's user avatar
  • 15.5k
1 vote
1 answer
54 views

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. ...
Meep's user avatar
  • 343
1 vote
0 answers
45 views

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 ...
Dov's user avatar
  • 1,625
0 votes
1 answer
100 views

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., ! ...
user171780's user avatar
1 vote
1 answer
61 views

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 ...
Anirudh's user avatar
  • 35
1 vote
0 answers
50 views

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,...
Iacobus1983's user avatar
2 votes
1 answer
142 views

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 ...
RosesBouquet's user avatar
0 votes
1 answer
124 views

I want to make sure my document (or document class) is being processed by a recent-enough XeLaTeX. Is this at all possible? I know there's a \IfPackageAtLeast LaTeX kernel command, apparently; what ...
einpoklum's user avatar
  • 13k
0 votes
0 answers
61 views

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 ...
Evangelos Vlachos's user avatar
0 votes
0 answers
76 views

I encounter a surprising bug as soon as I try to use the knowledge package: % !TeX TS-program = xelatex \documentclass{article} \usepackage[ hyperref, notion, ]{knowledge} \knowledge{notion}...
sparusaurata's user avatar
3 votes
0 answers
89 views

[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'...
cfr's user avatar
  • 250k
2 votes
0 answers
925 views

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! ...
Fractal Admirer's user avatar
1 vote
0 answers
111 views

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, ...
Jinwen's user avatar
  • 9,406
1 vote
1 answer
83 views

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 ...
Martin's user avatar
  • 207
0 votes
0 answers
139 views

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} \...
Kenneth Ligutom's user avatar
1 vote
0 answers
79 views

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 ...
Dov's user avatar
  • 1,625
1 vote
1 answer
9k views

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 ...
Steven Basmith's user avatar
3 votes
2 answers
232 views

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 ...
Hao S's user avatar
  • 1,028
0 votes
1 answer
332 views

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 ...
krfl's user avatar
  • 163
2 votes
1 answer
131 views

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 ...
Fredrik P's user avatar
  • 1,458
1 vote
2 answers
99 views

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\...
rdx73735's user avatar
1 vote
0 answers
48 views

I just discovered that the tcolorbox package prevents noindentafter from doing its job: \documentclass[12pt,a4paper]{report} \usepackage{noindentafter} \NoIndentAfterEnv{verbatim} \usepackage{...
sidyll's user avatar
  • 307
0 votes
0 answers
2k views

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 ...
user402525's user avatar
2 votes
1 answer
135 views

Minimal not working example: \documentclass{article} \usepackage{amsmath,amsthm,amssymb,varwidth,xstring,environ} \newsavebox{\tempbox} %Allows to use fbox in newenvironment \makeatletter \...
Flowt's user avatar
  • 181
1 vote
1 answer
105 views

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: %...
user84207's user avatar
  • 145
0 votes
0 answers
116 views

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 ...
Balansoire's user avatar
1 vote
0 answers
61 views

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} \...
Sheila's user avatar
  • 11
0 votes
0 answers
107 views

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 ...
Mattachoo's user avatar
0 votes
1 answer
149 views

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 ...
Karl's user avatar
  • 275
-1 votes
1 answer
756 views

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 ...
wanderer's user avatar
  • 141
0 votes
1 answer
67 views

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 ...
user65560's user avatar
  • 5,618
2 votes
1 answer
104 views

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{...
hau2643's user avatar
  • 21
3 votes
1 answer
130 views

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, ...
NairD's user avatar
  • 31
1 vote
1 answer
69 views

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 \...
anderstood's user avatar
  • 2,236
2 votes
1 answer
251 views

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 ...
hana's user avatar
  • 883
4 votes
2 answers
491 views

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....
sion35725's user avatar
2 votes
0 answers
85 views

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 ...
Andrew15_5's user avatar
3 votes
1 answer
202 views

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 ...
Bordaigorl's user avatar
  • 15.4k
2 votes
0 answers
358 views

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 ...
ring5259's user avatar
0 votes
1 answer
50 views

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{...
supsd72184's user avatar
0 votes
2 answers
1k views

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{...
Vedant Rana's user avatar
1 vote
1 answer
190 views

Consider the following example, where I copied some code from this answer. \documentclass{article} \usepackage{etoolbox} \makeatletter \newskip\nonfill@parfillskip \AtBeginDocument{% \setlength{\...
Jinwen's user avatar
  • 9,406
2 votes
2 answers
170 views

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, ...
Wallflower's user avatar

1
2 3 4 5
9