Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [debugging]

is about finding the cause of errors or wrong results in (La)TeX code/documents using a methodical approach.

0
votes
0answers
50 views

Unicode error in inputenc package char − (U+2212)

When I compile the texfile on my laptop, everything is fine. however, When I compile same file on PC, with same version of TexMaker I am getting this error: Unicode error in inputenc package char ...
3
votes
2answers
42 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
45 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} ...
0
votes
0answers
54 views

Can't create a table of contents

I am working on a long book which has suddenly begun refusing to compile. When I try to do so using pdflatex within TeXStudio, my cursor spins and spins. The book never finishes compiling, and the ...
1
vote
0answers
98 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
81 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
119 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
39 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
27 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
161 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
297 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
120 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
61 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
59 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
85 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
21 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
25 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
21 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 ...
3
votes
1answer
219 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
758 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
1answer
224 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
29 views

Error preventing the updating of bibliography citation into thesis work

I am trying to write my Thesis using Latex and this is my entire root document \documentclass[twoside=false,12pt]{scrbook} %twoside=false--->both pages look the same \usepackage{blindtext} \...
0
votes
0answers
59 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
48 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,...
0
votes
1answer
156 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
91 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
28 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
51 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
103 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
118 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
33 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
106 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
76 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
51 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
74 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
72 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 ...
12
votes
2answers
1k 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
67 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 ...
4
votes
1answer
98 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 ...
6
votes
1answer
321 views

Why doesn't Tex have a proper debugger? [duplicate]

Why doesn't TeX have a debugger? And by 'debugger' I mean a dedicated application in which you can set breakpoints and watch the values of registers, macros, etc. as they change in real time, maybe ...
3
votes
0answers
110 views

How to make the LuaLaTex logfile more readable, or filter it?

I use Latexmk to compile lualatex to PDF. The resulting .log file is very hard to read. I already added the silent switches to the .latexmk configuration file # make it less verbose $...
0
votes
1answer
82 views

{cases} argument not running, rather says fraction has an extra '}'?

What is wrong with this piece of code in Latex? $$\begin{displaystyle} C =\begin{cases} \frac{4}{3}, &(\text{for color singlet configuration}) \\ -\frac{1}{6}, &(\text{for color octet ...
1
vote
1answer
267 views

Does Lyx have the facility to compare two document and to search for for pieces of text or code within mathsmode

(1)Does Lyx have the facility using the find command to search for certain symbols or pieces of text within sections of maths-code, (2)In addition where can one find the tracking changing facility , ...
1
vote
0answers
59 views

Specific compilation Error “ Dimension too large!” [duplicate]

When I compile the following document, I get the error ! Dimension too large. <to be read again> \relax l.22 ...le[arc=l,size=0.30 cm, font=\tiny](m',O,m) ? When I ...
5
votes
3answers
667 views

Unexpected and probably wrong “Too deeply nested” error with De Gruyter template

I'm using the De Gruyter template for the PETS conference, here is a direct link (ZIP). I'm getting a "Too deeply nested" error, and relevant searches only led to "reasonable" reasons why I could get ...
2
votes
1answer
241 views

Overfull problem with an url

I am trying to compile a whole document (the thesis), but when compiling, the console returns: Overfull \hbox (10.57799pt too wide) in paragraph at lines 40--43 \OT1/cmtt/m/n/12 informacion-[]para-[]...
0
votes
1answer
1k views

How to fix Underfull \vbox

I am trying to compile some chapters with the main file thesis.tex in TeXmaker. After compiling it returns: Chapter 4. (./chapter/res.tex) Underfull \vbox (badness 10000) has occurred while \...
0
votes
1answer
50 views

Unusual problem involving Unicode

I have tried compiling the following in ShareLaTeX, but I've been having issues involving Unicode, which I'm sure is not in this line. \begin{equation} f(Q, \omega) = A_0(Q)\delta(⁢\omega)\sum_{...
8
votes
1answer
236 views

“show” family debugging commands

As discussed here, there are many commands which can be used to "debug" (La)TeX composing process. I also know that sometimes the \show command can be used to show the macro definitions. ...
1
vote
1answer
83 views

catdvi: “Does not start with preamble”

Whatever input I give catdvi, it gives the same error: "Does not start with preamble". For terseness, instead of posting my whole project here, I'll just paste an example: \documentclass[a4paper,...