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
15 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
52 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
38 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) ...
2
votes
0answers
30 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
48 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
85 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
29 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
82 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
54 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
32 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
29 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
58 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
53 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
57 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
71 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
195 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
137 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
143 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
54 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
76 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
225 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
613 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
142 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
89 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
87 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
93 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
25 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
30 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
51 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
384 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
3k 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
434 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
73 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
68 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
187 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
98 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
31 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
58 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
116 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
160 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
34 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 ...
1
vote
2answers
129 views

Q: Loop over all tokens in the body of a macro

I am looking for TeX-code that loops over all tokens in a macro definition. \meaning transforms everything to "other" (catcode 12) characters and is thus not directly suited (with or without \@strip@...
1
vote
0answers
104 views

Is there posibility to “debug” tikz/pgf? [closed]

Everybody knows that paintings with tikz/pgf is utter pain because you have to remember each dot coordinates by heart, is not there some debug or tool/tip to make life with it easier? Otherwise I ...
2
votes
1answer
85 views

Tikz + breqn: Compiling never finishes with |-Symbol

I just occurred a strange error in tikz. The following MWE never finishes on my machine (MikTeX, breqn Version 0.98e, tikz Version 3.0.1a): \documentclass[11pt,a4paper]{article} \usepackage{tikz} \...
3
votes
1answer
78 views

Why is reinsertion in multicol different than usual?

I've recently been having an issue with multicol and dblfnote. The solution to the issue was to change the definition in multicol of \reinsert@footnote from \ifvoid\footins\else\insert\footins{}\fi ...
2
votes
1answer
92 views

How to trace all changes to a box

I'm currently knee-deep in debugging a mysterious bug in my daily usage of TeX. I have a fairly substantial list of packages that I use all at the same time, and I can't seem to track down the cause ...
13
votes
2answers
2k views

Why is Latex hyphenating some words automatically, but others dont?

On this example, the word usando is not being hyphenated, but the word Comandos is. If I force a hyphen on the first word usan-do, it is hyphenated correctly: \documentclass[10pt,openright,twoside,...
0
votes
1answer
126 views

`Undefined control sequence` error when trying to write the value of a \csname…\endcsname control-sequence to the log file

In reading the source-code of pgf's object-oriented programming module in <pgf/tikz install dir>/modules/pgfmoduleoo.code.tex, I wrote the following plain TeX manuscript to experiment with the ...
5
votes
1answer
117 views

How to save a box to a file so it can be viewed later for debugging purposes?

I'm trying to analyze complicated TeX code that I did not write. The code creates many boxes, some of which are nested inside others. How can I save a certain (nested) box to a file, so I can view it ...