Questions tagged [debugging]
is about finding the cause of errors or wrong results in (La)TeX code/documents using a methodical approach.
409 questions
3
votes
1
answer
1k
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
1
answer
78
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....
1
vote
3
answers
3k
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{...
2
votes
1
answer
339
views
How to debug todonotes issues (expandafter {\@captype)
In a LaTeX document (using revtex-4.2 and todonotes), I run into issues with to-do note related errors – which seem erratic and which I somehow cannot debug. The issue seems to be related to a certain ...
0
votes
0
answers
99
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
0
answers
168
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
1
answer
467
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
1
answer
269
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
1
answer
114
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}
\...
3
votes
0
answers
389
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
1
answer
907
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]{...
9
votes
1
answer
613
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
0
answers
170
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
1
answer
922
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
1
answer
74
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
1
answer
179
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
1
answer
369
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 ...
1
vote
0
answers
402
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:
...
2
votes
1
answer
1k
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
1
answer
615
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
1
answer
465
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
1
answer
217
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
1
answer
98
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) ...
13
votes
0
answers
1k
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
1
answer
129
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
1
answer
331
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 was ...
1
vote
0
answers
211
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
1
answer
1k
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
1
answer
234
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
1
answer
201
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
1
answer
68
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
1
answer
76
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}
\...
0
votes
1
answer
176
views
Gibberish string prepended to deleted text in the PDF obtained by compiling 'diff' file generated by latexdiff
I am using latexdiff for marking up corrections requested by the examiners to my PhD thesis. I have a strange issue with this.
Upon compiling the diff.tex file, I get a specific string 4.0pt=-.55ex ...
2
votes
0
answers
87
views
Possible bug in flexsym
From this answer we find a solution to use prime in text mode, via \textprime from flexisym package.
The problem is that the package has a problem with amsmath, since it makes \dots not be aligned ...
3
votes
2
answers
174
views
Warning if footnote text appears to early
I am currently finishing a book project, and there it sometimes happens that the text of the footnote appears a page too early, meaning not on the same page as the footnote reference but one before ...
1
vote
1
answer
318
views
Extra vertical space at end of last column when loading adjustbox (only luatex)
I have noticed some odd extra vertical when placing boxes in a twocolumn layout:
\documentclass[a5paper]{article}
\usepackage{calc}
% issue only happens with adjustbox loaded
\usepackage{adjustbox}
...
1
vote
0
answers
221
views
Cryptic tikz error - 'pgfpmth@float@max' [closed]
I have a tikz chart that won't build. When I check the log file I find
Package PGF Math error: Could not parse input 'pgfpmth@float@max' as a
floating point number, sorry. The unreadable part ...
1
vote
0
answers
1k
views
Missing $ inserted with tikzpicture [closed]
Forgive me if I breach ettiquite here, it's been a while...
A couple of years ago I wrote two papers as part of my PhD research and submitted them to a journal...they were each about 20 pages long. ...
5
votes
2
answers
660
views
The "max" function on Tikz being annoying, help?
I used Tikz to chart the following function.
This is fine, except that I want the function to equal 0 instead of negative values. So I tried using "max(0,f(x))", where f(x) is my function (specified ...
1
vote
1
answer
406
views
equivalent of showframe on generic boxes (for debugging)
I have done a lot of searching but cannot figure out how to visualized the box that a piece of content falls into without shifting the content. How do you debug?
Note: How can I visualize boxes? ...
1
vote
0
answers
489
views
ACMart documentclass creates a vertical space at the end of the second column of the first page
When using \documentclass[sigconf,letter]{acmart} I noticed that without regard for the text (I tried different nudges), latex always leaves a space of a couple line-spaces on the end of the right ...
3
votes
1
answer
674
views
Debugging - spacing in math mode
I was trying to do some debugging in math mode related to spacing. More
specific, I wanted to create some vertical rulers to check for
discrepancies in horizontal alignment in math mode. With this ...
3
votes
1
answer
8k
views
Compilation error: "! Argument of " has an extra }"
My TeX document gives me the error:
("C:\Program Files\MiKTeX 2.9\tex\latex\base\ulasy.fd") ! Argument of
" has an extra }. \par l.32 }
Can anyone tell me what's wrong? This is my code:
\...
9
votes
3
answers
270
views
Stacking thick bars below a symbol
I am using the following commands to place an arbitrary number of specialized, thick bars (\xbar) below a letter.
\documentclass[prb,preprint]{revtex4-1}
\usepackage{stackengine}
\stackMath
\...
1
vote
0
answers
120
views
`pstricks` package preventing compilation [closed]
Today I updated to the latest version of MiKTeX (2.9.6703, I was previously using an older version of MiKTeX 2.9) and now the pstricks package entirely prevents me from compiling a document when ...
2
votes
1
answer
462
views
Collision between `siunitx`, `cellspace` and the letters 'd' and 'e'
The following code fails to compile. It can be made to compile by any of the following changes
Removing \usepackage{siunitx}
Removing the S from from the tabular column specifiers
Replacing the d in ...
1
vote
0
answers
261
views
Chasing a non-deterministic bug in LaTeX
I have a latex file that when processed repeated times (like a thousand times) -- in a very small number of the runs (1 or 2) xelatex will drop a very specific character \emptyset from the PDF file, ...
2
votes
1
answer
85
views
Force line return with \message
I am trying to use \message to debug my code; in particular, to print information to the console. For some reason it is not adding line returns after each invocation (see example below). How can I ...
0
votes
1
answer
688
views
Command for pausing/stopping compilation?
For debugging purposes, I'd like to be able to stop or pause my code compilation at will by using apposite commands, both inside and outside the preamble of my document. Do such commands exist in (La)...
0
votes
1
answer
178
views
Error message in align environment not showing line number [duplicate]
Is it possible to get more specific information such as the line number in case of an error in an align* environment? It is very annoying if you have to manually pinpoint an error in a 10 line align* ...