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
1
vote
1answer
21 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
1answer
33 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
2answers
629 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 ...
0
votes
1answer
86 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
3answers
85 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
2answers
90 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
1answer
70 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
0answers
33 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
1answer
22 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
0answers
27 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
0answers
22 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
1answer
123 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
0answers
31 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
1answer
72 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
1answer
58 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
1answer
117 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
0answers
30 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
0answers
58 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
1answer
66 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,...
0
votes
1answer
28 views

Why is this space being inserted when using \newcommand and \setlength? [duplicate]

I'm trying to debug some \newcommand macros I'm working on, and I've got it down to this minimal example. All it does is define two lengths and then set their values - it doesn't use them for anything....
0
votes
2answers
138 views

What is the error runaway argument in the following code?

Here is my code \documentclass{article} \usepackage{multicol} \title{IELTS Course Companion} \author{Ethen Hu} \begin{document} \setlength{\parindent}{0pt} \maketitle \section{numbers} \subsection{...
1
vote
1answer
74 views

How to debug todonotes issues (expandafter {\@captype)

In a LaTeX document (using revtex-4.2 and todonotes) I run into issues with todo note related errors – which seem erratic and which I somehow cannot debug. The issue seems to be related to a certain ...
0
votes
0answers
50 views

How can I fix overfull \hbox problem in biblatex? [duplicate]

The errors aren't creating any problem in my desired output, but what does it mean? How can I fix it? I will share my tex file if needed.
0
votes
0answers
31 views

How do I know whether my LaTeX file has errors?

I have changed the settings in TeXShop so that the console appears only when there are errors. However, I always pops up. How can I identify the number of errors I have? MWE: \documentclass[12pt,...
0
votes
1answer
34 views

Error with tabular* (Underfull \hbox (badness 10000))

I get an error when compiling a tabular* environment. The error I get is: Underfull \hbox (badness 10000) in alignment at lines 3--5 [] Overfull \hbox (17.62482pt too wide) in paragraph at lines ...
0
votes
1answer
58 views

problem with \mathaccent when \usepackage{hyperref} is loaded

Here is a MWE. \documentclass[a4,12pt]{report} \usepackage{amssymb} \usepackage{amsmath} \renewcommand{\.}[1]{\ensuremath{\mathrm{#1}}} \newcommand{\+}[1]{\ensuremath{\mathbf{#1}}} \newcommand{\ud}{...
1
vote
1answer
82 views

I've a 12 in my first page but I don't know why

I have a problem to solve because I read three time my code \documentclass{report} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[french]{babel} \usepackage{graphicx} \...
2
votes
0answers
65 views

How can I tell how big a minipage is?

I'm debugging a document layout that uses a minipage, and I've seen somewhere where you can turn on an option to draw rectangles around the various boxes for debugging. However, I tried searching and ...
0
votes
1answer
113 views

How to include an external code file?

I have the following file structure: File |-urlaubsfahrt.py |-Test |-test.tex And the following tex file: \documentclass[a4paper,10pt]{scrartcl} \usepackage[T1]{fontenc} \usepackage[utf8x]{...
6
votes
1answer
102 views

Debugging of expl3 code

I've been programming quite a bit in expl3 for the last weeks, and while I really like the expressiveness of the provided API, what often is incredibly painful is debugging larger programs. In many ...
4
votes
0answers
117 views

Logic quantifiers displayed wrong when using newpxmath

When using the package newpxmath, the quantifiers \foralland \exists are displayed as \hslash and \hbar, respectively. See the following MWE: \documentclass{article} \usepackage[T1]{fontenc} \...
2
votes
1answer
282 views

Convert XeLaTeX to ePub

Hi all, I have a XeLaTeX file which once compiled gives that kind of pdf page : What I need is to have from the tex file an ePub format instead of the pdf one. So before posting all this message, ...
2
votes
1answer
49 views

What is wrong with my plot?

My plot as shown below is not reflecting the upper cap surface exactly as I have defined it (I simply negated the z-ordinate of the parametric equations) Is this some kind of numerical bug? \...
0
votes
1answer
66 views

\ref + \inaccessible : ideas to help debug a document?

I have a error in a document and I'm unable to debug it. The errors At the second compilation of my document, the command \ref{} raises the error Missing control sequence inserted \...
3
votes
1answer
105 views

Change in everypage package behavior (which hasn't been revised since 2007)

The everypage package was last changed in June 2007 (https://www.ctan.org/pkg/everypage). And yet, in the last few months, since I upgraded my LaTeX installation, it behaves differently. The only ...
0
votes
0answers
78 views

Biber error on Mac - locale and bibtex subsystem issues [duplicate]

Biber runs with this warning: Running `Biber' on `citation_issues' with ``biber citation_issues'' perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: ...
0
votes
1answer
111 views

How can I more efficently debug “Missing character” errors?

I am working on a rather long paper with a ton of inline math. I have a ton of "Missing character: There is no � in font pplr7t!" errors upon compiling, and I understand that using characters no ...
0
votes
1answer
99 views

Debug: how to fix this “missing delimiter” error

I am using an example-code for my CV. The code here is really simple, I acctually didn't use any "\left", but still getting this error of "missing \right", along with the error "missing delimiter" and ...
1
vote
1answer
162 views

LYX debugging does not allow going to error in document

Lyx produces an error message when compiling, but I cannot find where the error is in the document. When hovering over the errors it says clicking it would take me to the error in the document but it'...
1
vote
1answer
99 views

Included graphics in TiKZ with XeLaTeX get displaced

I have a problem with \includegraphics within TikZ with XeLaTeX, namely that the images get displaced. This is similar to the problem described in this question, but the symptoms are different. ...
2
votes
1answer
58 views

Workflow for patching and testing expl3 modules

Say I want to write a patch for one or some of the expl3 modules. As far as I can see, to test the patch I have to do the following: Edit the module's .dtx file; Run l3.ins to compile (beside others) ...
8
votes
0answers
210 views

Proper usage of otherkeywords option in listings

I'm trying to understand how listings' otherkeywords option really works. The documentation says about it: Defines keywords that contain other characters, or start with digits. Each given 'keyword' ...
3
votes
1answer
72 views

Why can't this MetaPost drawing be placed more than once in ConTeXt?

I used the code at How to conditionally draw parts of a MetaPost drawing in ConTeXt? to display a crossword puzzle. The code works great, until I try to display another crossword puzzle, at a later ...
3
votes
1answer
129 views

How to debug “Inconsistent local/global assignment” in l3seq (expl3)?

I'm trying to debug an expl3 code that usesl3seq and seq_gput_right. By adding the enable-debug and reviewing the code I get the error: ! LaTeX3 Error: Inconsistent local / global assignment That ...
1
vote
0answers
38 views

`\show` for macro arguments

For debugging purposes, I want to write to the log what is actually passed to a macro as argument. A naive \newcommand\test[1]{\show#1} obviously doesn't do the job. So how can I printout a list of ...
0
votes
1answer
147 views

Why do I keep getting a “missing \begin{document}” error?

Sorry about the awful formatting, this is a screenshot from my mobile. I am an absolute beginner when it comes to Latex and I just can't understand why it keeps giving me such an error when I clearly ...
2
votes
1answer
101 views

How to display string variable without hanging texworks

I was getting unexpected results storing a parameter into a string variable, and added the statement "\str_show:N \l_tmpa_str" to produce debugging output. Texworks treats the output as an error. My ...
0
votes
1answer
53 views

Debugging space in badges

I would like to create badges in Latex. I want to place the badges on the paper next to each other, so I have to cut the paper only once! I have the following code: \documentclass[a4paper,12pt]{...
1
vote
1answer
55 views

Text not wrapping on column boundary

I am trying to render a LaTeX project and the words are spilling over the column boundary. What could be the reason for this? I thought that the class library took care of these issues. For example: ...
2
votes
1answer
62 views

Can't Find what's causing the error in this code, trying to insert a figure

\documentclass[12pt]{article} \usepackage{cite} \usepackage[UKenglish]{babel} \usepackage{fixltx2e} \usepackage{hyperref} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{chngcntr} \...

1
2 3 4 5
7