The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
4
votes
0answers
65 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
43 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
39 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
37 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
49 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
64 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
41 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
35 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
27 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
66 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
46 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) ...
7
votes
0answers
104 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
62 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
89 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
30 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
101 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
62 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
36 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
30 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
60 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
1answer
60 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
0answers
23 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
2answers
60 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
1answer
75 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
0answers
196 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
0answers
176 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
2answers
159 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 ...
0
votes
1answer
64 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
0answers
94 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
1answer
246 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 ...
2
votes
1answer
743 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
3answers
145 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
0answers
92 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 ...
1
vote
1answer
99 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
0answers
100 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
1answer
28 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
1answer
35 views

Error message in align environment not showing line number

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* ...
1
vote
1answer
75 views

Beamer won't let me add an algorithm environment

I am writing a beamer presentation and I keep trying to add an algorithm to it with no success. I have: \begin{frame}{Proposed Solutions}{Curve Projection} \begin{block}{} Ellipses are implicit ...
5
votes
1answer
427 views

How to debug BibTeX?

     How do I debug BibTeX code? I would like to know how to: step through execution, step into and out of function calls, set breakpoints, visualize the stack, watch ...
0
votes
1answer
4k views

Overfull \hbox (124.69516pt too wide) in paragraph in a table

I'm making a table with the following code: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \title{Answer} \author{That's me} \date{March 2018} \setlength{\parindent}{...
1
vote
0answers
510 views

Command \itab overlapping

I'm trying to edit a CV Template to my own specifications. However, I am having some weird behavior with command \itab. The section in question: \begin{rSection}{Technologies} \itab{\textbf{...
0
votes
0answers
74 views

Why does this produce “missing \endcsname” error? [duplicate]

I need to dynamically create the name of a macro, where part of the name is based on the argument which needs to be capitalized beforehand. The following MWE illustrates my intention: \documentclass{...
1
vote
1answer
78 views

Correct reference but wrong hyperlinks with tcolorbox and thmtools

After spending several hours tracking down an issue with wrong hyperlinks in my thesis, I managed to cook up the following MWE: %!TEX program = pdflatex \documentclass{scrbook} \usepackage{hyperref,...
2
votes
1answer
208 views

“beelines” solution — texlive 2017

This beelines text gradient solution worked until I updated to texlive 2017. Sadly it no longer seems to work. Beelines Solution The MWE below depends on two LuaTex files: Files created by Philipp ...
4
votes
2answers
104 views

how to see content of a tikz style?

I'm creating a tikz style to do some complicated linear transformation on the coordinates, computed in terms of variables. To give an idea, here's what the style declaration looks like now: \tikzset{...
1
vote
1answer
32 views

index not appearing after using the right commands

So I am currently writing my thesis. I used the following snippet \documentclass{article} \usepackage{makeidx} \makeindex \begin{document} Blah \pagestyle{empty} \begin{theindex} \index{Blah} \...
2
votes
3answers
60 views

Overfull \vbox with a document containing no images

[I updated the text so it includes a Overfull \vbox of 5.37814pt now] My document has more like this, but this is an example of a overfull \vbox (I hope I got it right) \documentclass[11pt]{book} \...
1
vote
0answers
128 views

What's wrong with my PDFs?

I'm generating PDFs (like this for example) using LaTeX, and suddenly code that has worked for years is generating PDFs that either fail to display or crash normal PDF readers (even PDF Expert). The ...
4
votes
1answer
178 views

Fontspec and Adforn

I keep getting a strange error when I load adforn with my documents. It boils down to fontspec changing the encoding from U to TU, and then it throws me an error and automatically updated the encoding ...
1
vote
1answer
36 views

Creating macro cross references

Is there any tool that allows me to analyze/see/display macro dependencies? To be clear: After \def\a{\b\c} \def\b{\x\c} I'd like to get that \a uses \b and \c and that \b uses \x and \c, best ...