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

TeX processor version check/assertion?

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
  • 12.4k
0 votes
0 answers
34 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 ...
Evangelos Vlachos's user avatar
0 votes
0 answers
25 views

Bug with knowledge.sty, argument of \@fifthoffive has an extra }

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
49 views

What causes calign=fixed edge angles to behave inconsistently when grow is not equal to 270?

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've added in an attempt ...
cfr's user avatar
  • 208k
1 vote
0 answers
258 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! ...
Fractal Admirer's user avatar
1 vote
0 answers
68 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, ...
Jinwen's user avatar
  • 8,618
1 vote
1 answer
43 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 ...
Martin's user avatar
  • 207
0 votes
0 answers
64 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} \...
Kenneth Ligutom's user avatar
1 vote
0 answers
59 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 ...
Dov's user avatar
  • 1,543
0 votes
1 answer
3k 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 ...
Steven Basmith's user avatar
3 votes
2 answers
194 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 ...
Hao S's user avatar
  • 878
0 votes
1 answer
177 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 ...
krfl's user avatar
  • 121
2 votes
1 answer
115 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 ...
Fredrik P's user avatar
  • 1,418
1 vote
2 answers
50 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\...
rdx73735's user avatar
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{...
sidyll's user avatar
  • 307
0 votes
0 answers
1k 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 ...
user402525's user avatar
2 votes
1 answer
77 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 \...
Flowt's user avatar
  • 181
1 vote
1 answer
51 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: %...
user84207's user avatar
  • 145
0 votes
0 answers
46 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 ...
Balansoire's user avatar
1 vote
0 answers
52 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} \...
Sheila's user avatar
  • 11
0 votes
0 answers
70 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 ...
Mattachoo's user avatar
0 votes
1 answer
74 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 ...
Karl's user avatar
  • 275
-1 votes
1 answer
542 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 ...
wanderer's user avatar
  • 141
0 votes
1 answer
49 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 ...
Keelan's user avatar
  • 5,445
2 votes
1 answer
80 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{...
hau2643's user avatar
  • 21
3 votes
1 answer
91 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, ...
NairD's user avatar
  • 31
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 \...
anderstood's user avatar
  • 2,206
2 votes
1 answer
169 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 ...
hana's user avatar
  • 769
4 votes
2 answers
435 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....
sion35725's user avatar
2 votes
0 answers
55 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 ...
Andrew15_5's user avatar
2 votes
1 answer
116 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 ...
Bordaigorl's user avatar
  • 15.2k
2 votes
0 answers
235 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 ...
ring5259's user avatar
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{...
supsd72184's user avatar
0 votes
2 answers
686 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{...
Vedant Rana's user avatar
0 votes
1 answer
100 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{\...
Jinwen's user avatar
  • 8,618
2 votes
2 answers
123 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, ...
Wallflower's user avatar
0 votes
0 answers
17 views

Figure and its environment only appears when added in certain chapters or sections

This is the weirdest behavior I have ever had. The figure file is inside of a folder called "fig", which is set with \graphicspath{{./fig/}}. My document consists of a main .tex document ...
ebernardes's user avatar
3 votes
1 answer
162 views

begin/end form makes textfield inputs unfillable

I noticed a weird behavior on Latex using Overleaf. The below code produces this result, according to overleaf output: But if I download and open the pdf using acrobat reader I see that some ...
Christianidis Vasilis's user avatar
1 vote
1 answer
101 views

cleveref conflicts with polyglossia when required in a class

When I run the following MWE (with xelatex): % File myclass.cls \NeedsTeXFormat{LaTeX2e} \ProvidesClass{myclass} \LoadClass[12pt]{article} \RequirePackage{polyglossia} \RequirePackage{cleveref} % ...
sparusaurata's user avatar
2 votes
2 answers
228 views

concmath-OTF and eulervm lead to problems in math mode

I'm trying to use the recently-released concmath-otf package in a combination with eulervm, instead of the concrete package. My goal was to replace concrete roman with the more modern opentype version,...
cosum's user avatar
  • 35
1 vote
1 answer
229 views

Lyx with \graphicspath BAD, identical LaTeX with \graphicspath GOOD. Possible bug?

Consider the following MWE: I have a LyX file /home/user/latex_files/main.lyx, where I have used \graphicspath{{./img/}} to set the (relative) path for all my images that I want to include in my file ...
l7ll7's user avatar
  • 2,287
0 votes
0 answers
370 views

Latex Equals Symbols Greyed Out... Bug?

Every equals (=) symbol looks like a minus (-) because the lower half is greyed out. Does anyone know why this happens? Very confusing to look at and have no idea why it's doing this?
Crimson's user avatar
  • 21
3 votes
0 answers
3k views

Debug LaTeX in Visual Studio Code (with LaTeX-Workshop)

Visual Studio Code seems to be very useful with LaTeX-Workshop plugin. In comparison to TeXStudio, TeXMaker, etc. it is able to autoformat code. It is very useful when I search for an unmatched ...
Janko's user avatar
  • 33
1 vote
1 answer
493 views

LuaLaTeX 64 bit does not finish compilation

Setup: Windows 11, all updates, texlive 2021, all updates, win64 from CTAN. The files that were previously compiling flawlessly with LuaLaTeX stopped compiling now (I cannot check when exactly, as I ...
Alexander Z.'s user avatar
0 votes
0 answers
31 views

Equivalent to Source Maps or Providing Source Location Hints to Compiler

I'm using Pandoc and LuaLaTeX and have organized my project into several dozen LaTeX embedded Markdown documents into a final output document. Effectively, each chapter is a document and combined with ...
hohle's user avatar
  • 13
3 votes
1 answer
743 views

Show definition of \NewDocumentEnvironment

xparse provides \GetDocumentEnvironmentArgSpec to examine the argument specification of a defined environment (and similarly for commands and showing on the terminal). However, I would like to be able ...
Maximilian Keßler's user avatar
1 vote
0 answers
580 views

How to debug and fix error: Use of \label@optarg doesn't match its definition

I've been having a very bad time lately with the errors produced by this main.tex MWE: \documentclass{report} \usepackage{ctable} \usepackage{sectsty} \usepackage[spanish]{babel} \usepackage{hyperref}...
Mateo de Mayo's user avatar
2 votes
1 answer
767 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....
nowox's user avatar
  • 1,417
3 votes
1 answer
125 views

Error `Display math should end with $$. $$$\backslash` [Bibliography]

While adding references in my thesis paper, I copied the following bibtex from google scholar: @article{bhattacharya2017fuzzy, title={Fuzzy independent topological spaces generated by fuzzy $$$\...
Usual_Learner's user avatar

1
2 3 4 5
8