Questions tagged [debugging]
is about finding the cause of errors or wrong results in (La)TeX code/documents using a methodical approach.
357
questions
3
votes
1
answer
66
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 ...
1
vote
1
answer
46
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}
% ...
2
votes
2
answers
69
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,...
1
vote
1
answer
51
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
...
0
votes
0
answers
26
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?
2
votes
0
answers
150
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 ...
0
votes
1
answer
129
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 ...
0
votes
0
answers
19
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 ...
3
votes
1
answer
58
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 ...
0
votes
0
answers
33
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}...
1
vote
0
answers
59
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....
3
votes
1
answer
46
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 $$$\...
2
votes
1
answer
91
views
Error `Missing \endcsname inserted` (Bibliography, bibtex)
While adding references in my thesis paper, I copied the following BibTex from google scholar:
@article{aygunoǧlu2009introduction,
title={Introduction to fuzzy soft groups},
author={Ayg{\"...
0
votes
1
answer
102
views
Automatically bisect latex file for debugging
If I have hard to interpret error messages in a latex file, I comment out half of the file, compile, see if it works or not and so on and find the problematic part by successive bisections.
Is there ...
1
vote
0
answers
38
views
Print macros call stack [duplicate]
Can one print call stack of latex macros?
I want to know from where my macro is called.
0
votes
0
answers
33
views
Strange ```tableofcontents```error in XeTeX
I am currently typesetting a book with XeTeX and there's a strange error in overleaf:
\alloc@ ...else \errmessage {No room for a new #2}
\fi \fi
l.41 ...
1
vote
1
answer
77
views
Conflict between microtype and syntax packages
While using the syntax package together with microtype, I stumbled on a strange error:
Missing font identifier.<to be read again>\chardef <TEST> ::= `
Missing number, treated as zero.<...
1
vote
0
answers
59
views
Why does my pdf image cause a bug only after printing the document?
So I have a page that looks normal on screen.
It looks like this on the screen;
Near the top of that page a figure is displayed. This figure is a pdf, created in inkscape.
In the .tex the figure ...
1
vote
0
answers
59
views
Why does this Tikz-picture lead into an infinite loop? [closed]
Somehow the following Latex-Code does not finish compiling in TexStudio, at least on my PC. (It leads to an infinite building-process, I hope it is clear what I mean.) Could you please explain me what ...
0
votes
0
answers
102
views
Overleaf, where to find missing { or output.gls?
I am working on a document in LaTex with overleaf when I noticed this error:
<to be read again>
\let
l.21 ...entrycounter[]{page}\glsnumberformat{18}}}
...
6
votes
1
answer
86
views
Tikz: Showing all node names (for debugging)?
Is there an easy way to show the name of all nodes, say, in a scope? Without having to assign explicit styles to the nodes? (Context: complex figure, broken down in lots of subcommands, not feasible ...
0
votes
0
answers
27
views
Texstudio failure to view TikZ output compiled by XeLaTeX
Texsudio successfully shows the result of the following MWE compiled by pdfLaTeX or LuaLaTeX.
\documentclass[tikz, border = 3pt]{standalone}
\begin{document}
\begin{tikzpicture}
\node[draw] (...
2
votes
1
answer
105
views
Cannot make the columns evenly distributed. What's the reason?
Dear experienced friends,
I met a strange bug when I tried to draw a table. As shown in the picture, I wish I can make all the columns 4,5,6,1,2,3 evenly distributed. However, the width of 6 is always ...
0
votes
0
answers
36
views
afterpage package and verse environment cause troubleshooting
I use both afterpage package and verse environment in my document.
So, when a verse environment comes just after an \afterpage command rendering, an unwanted linebreak occurs after the first verse.
As ...
0
votes
1
answer
38
views
How to get type of reference (eg. if it is @book, @article, ...) from citefield in biblatex?
I want to see title, year, abstract and type of a reference (eg. if it is book, article, ...) in citation in my draft (to be able to check if it is correct (for debugging;) ), I have many references).
...
1
vote
0
answers
66
views
Image bug in overleaf
I was programing in overleaf, and after i added a new image and recompilate, all my other images just bugged. How can i fix this?
3
votes
1
answer
197
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 ...
0
votes
0
answers
29
views
Same Latex source file but receive different result after compiling
I'm using Latex to typeset a big file, which i need to include 2 sub-files
\input{titres/remerciements.tex}
\input{titres/resume.tex}
The 2 files are in French and there is already the declaration ...
2
votes
0
answers
31
views
Increasing separation between body and footnotes when using KOMA
I have tried
\skip\footins=2\baselineskip
and it works; but now on page 4 my page number is set in a different font (apparently Latin Modern) than my main font! What must I add or change to avoid ...
0
votes
0
answers
32
views
Why does printing an array cause lualatex to freeze?
The following MWE sends lualatex into an infinite loop on my machine:
\documentclass{minimal}
\usepackage{luacode}
\begin{luacode*}
start = {42};
\end{luacode*}
\begin{document}
\directlua{tex....
0
votes
1
answer
110
views
Can anyone produce a minimal working example of listings in Beamer?
I'm trying out the solution in : Lstlisting Python
but in Beamer.
And no matter what I write, it throws me like a thousand errors:
I thoroughly checked. There is no missing }
My code is literally (...
1
vote
1
answer
76
views
Overfull hbox due to `glossaries-extra`
As identified based on another of my questions here.
Warnings like
Overfull \hbox (28.00505pt too wide) in alignment at lines 46--46
seem to be produced when using the glossaries-extra package.
Here ...
0
votes
1
answer
128
views
locate overfull hbox in alignment
I fail to locate the exact position of the origin of the final 4
Overfull \hbox (36.55566pt too wide) in alignment at lines 343--343
warnings in my document.
My document is uses several \subimport*{}...
8
votes
2
answers
662
views
How to debug issue where LaTeX refuses to produce more than 7 pages? [closed]
I consider myself quite experienced in this field by now. But today I am totally stumped. I have a .tex file where LaTeX truncates anything after page 7. It used to be that I had a \newpage in the ...
2
votes
1
answer
686
views
Previously working code now gives "Argument of \put has an extra }" after TeXLive/MiKTeX reinstall
I realize this might not be as detailed as expected, but I'm working on a series of books (meaning I have subfiles and many different packages loaded).
Turns out I'm running short of space in my C ...
1
vote
3
answers
164
views
Lualatex + amsthm + polyglossia + CharisSIL = error
The following
\documentclass{article}
\usepackage{amsthm,polyglossia}
\setmainfont{CharisSIL}
\newtheorem{defi}{Definition}
\begin{document}
\begin{defi}
Harmless definition
\end{defi}
\end{...
2
votes
2
answers
391
views
Overwritten global Lua variables "attempt to index a NN value"
I have a Lua file (too old to remember what I did exactly) that includes this line:
local arg_cnt = debug.getinfo(formatter).nparams
which triggers an error with the message
attempt to index a ...
1
vote
1
answer
556
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 ...
0
votes
0
answers
114
views
How to fix spacing issues? [duplicate]
Might be a waste of time, but how do I debug excess space that appears in resulting pdf? https://drive.google.com/file/d/1-XLQ3t5EINC4ZAs9kk7q5tpM77gpCMjd/view?usp=sharing, https://drive.google.com/...
2
votes
1
answer
38
views
Blank line between equation and theorem statement
I need to end a paragraph with an equation before the statement of a theorem, but I get an unnecessary blank line. How can I remove it? Looks like the problem lies within the "thmtools" and &...
0
votes
0
answers
60
views
background package causes tikz error when verbatim page breaks
The background package causes a tikz error with verbatim
I have a few lines of of text within begin/end verbatim, and normally this would just break over a page where needed, however, when I use the ...
0
votes
0
answers
24
views
labels with debug information [duplicate]
On macOS, I tried the following:
\begin{tikzpicture}
\pie{47/Rice,32/Wheat,22/Other}
\end{tikzpicture}
What I observe is not what I expect with labels:
It is like there is some debug info attached to ...
3
votes
1
answer
467
views
What is wrong with this alignment?
What is wrong with this alignment?
Context:
First, apologies for the lengthy post.
So I'm using the alignment environment for the first time in my LaTex article document, but not with much success. ...
1
vote
0
answers
36
views
How can I automatically draw frames around all elements on a page?
Fine-tuning the layout and spacing of elements in a document is often a guessing game. It would be great if LaTeX could display the spatial extensions of all elements (float, subfigure, minipage, ...
0
votes
1
answer
163
views
Debugging Badboxes
I am currently working on a document where I get a lot of badboxes, unfortunately I don't get any information on where does badboxes occur (apart form the file). How can I find these badboxes ...
2
votes
1
answer
139
views
Why is my proof not working with a matrix?
I was writing up a proof on a LaTex article, which required me to utilise a number of matrices in it.
However, I quickly discovered that when I hit \end{proof}, at the end of my proof, it would not ...
0
votes
1
answer
403
views
Adding figures using inkscape and
I was searching about how to add inkscape diagrams to LaTeX file. And I found this blog from a student who is using incscape and LaTeX for taking lecture notes. Coming to my issue: I loaded packages ...
1
vote
0
answers
74
views
"\pgfsyspdfmark{pgfid1}{8899518}{14980839}" [closed]
I copy pasted the following code and it run perfectly well. But in my main tex file, it showed the error message.Sorry I don't have the MWE because I don't know how to recreate it.
\documentclass{...
2
votes
0
answers
88
views
Why does LaTeX trigger a font warning when I don't even use that font and how can I trace it down to an input file?
My first question is, when exactly does LaTeX trigger a font warning? I suspect, it is in the moment when I request a font through \sffamily or \selectfont, correct?
This is why
\documentclass{article}...
3
votes
1
answer
96
views
Why is this image not appearing where it should in this code?
I was trying to write an article in laTex and I attempted to incorporate the following image:
I wrote the following code - you can ignore the substance of the text in the code, that is out of context,...