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

learn more… | top users | synonyms

4
votes
2answers
37 views

Which file is really used with \input command

how to know which file is included when we use the command \input if we have many files with the same name in various directories
4
votes
1answer
67 views

Example of LaTeX code that does not compile [duplicate]

In the excellent answer by egreg to the question How Does Latex Know the Page Number of a Reference he said that [t]his is not completely foolproof and there are examples around of cleverly ...
0
votes
1answer
21 views

“Missing { inserted” after adding tilde

I'm trying to add a tilde over some letters of an equation. Yet, the program tells me that Missing { inserted. <to be read again> \gdef l.253 ...B =\widetilde{b}+ \widetilde{A} x_\bar{b} ...
6
votes
2answers
221 views

How can I produce the output of a carriage return in a \message?

It's all in the title. How is it possible to output a carriage return in a \message. For debugging purposes, I need to get readable messages. The obvious doesn't work : \message{A\cr B} outputs A\cr B ...
3
votes
1answer
100 views

Bug: biblatex can not deal name prefix like “van der ”, Miktex updated on 2016.01.16

Firstly, hello everyone. I am new here : ) I am writing my phd thesis using MikTeX + TeXnicCenter and everything goes well, until I have updated MikTeX today. My Problem: The program gives an error ...
1
vote
1answer
33 views

Does pdfTex produce warnings when it doesn't find the word hyphenation pattern?

In my document I use babel package and load several languages for correct hyphenation. \usepackage[icelandic, latin, czech]{babel} I add manually words that babel package doesn't know. ...
0
votes
0answers
21 views

How to debug visually underfull hboxes? [duplicate]

Is there a visual way how to debug underfull hboxes?
9
votes
2answers
156 views

Faulty opacity coloring in TikZ

Lately I've been having trouble with the colors in TikZ. When using opacity, the original color completely changes (red > blue-ish, yellow > green). Honestly I have no idea of the cause, but this ...
1
vote
0answers
36 views

LaTeX Bug after miktex update

Calling the MWE.tex \documentclass{scrreprt} \begin{document} test \end{document} compiling this MWE with latex MWE.tex => success latex -recorder MWE.tex => latex hangs up (latex funktioniert ...
2
votes
1answer
67 views

Google docs to TeX and pdf shell script produces a blank first page, and gives me a “! LaTeX Error: Missing \begin{document}.” error

I made a shell script, Ubuntu 14.04 (taking ideas from google docs as team editor) to grab a google docs file and convert it to LaTeX, compile with LaTeXmk to PDF and then open the pdF with evince as ...
3
votes
1answer
39 views

Identification of the directlua chunk where an error occurred

In the wiki page http://wiki.luatex.org/index.php/Writing_Lua_in_TeX there is a promising solution to identify between the different lua(TeX) chunks: \directlua {<lua code>} \directlua name ...
3
votes
1answer
58 views

minted fails with breaklines and obeytabs

The following example with a minted enviroment fails with the error message _minted-test/7587C145B52367AE51CACC4AFB0EC13D2F785CCAC2A2CC760CA216BD1781DF79.pygtex:3: Extra }, or forgotten \endgroup. [ ...
0
votes
0answers
12 views

Automatic referencing of figure subpanels in Latex

I'm trying to have figure legends to multi-panelled figures and reference to the individual subpanels from the text. When I rearrange the panels I don't want to go through all the text and change the ...
0
votes
0answers
33 views

How solve: Underfull \vbox (badness 6876) has occurred while \output is active

I am solving all my warnings/errors in my document. I have solved everything except for 2: Underfull \vbox (badness 6876) has occurred while \output is active [18] and Underfull \vbox ...
4
votes
2answers
95 views

Debugging in LaTeX: debugging walkthrough with specific example

I am not new to LaTeX, but I have never really written an actual LaTeX script and so I have trouble debugging the one I have. I will post the specific problem, so there is something I can grab unto, ...
2
votes
2answers
105 views

Problem with tikz externalize and automatic solutions

I am using a solution environment for exercise sheets as proposed by @egreg some years ago: http://tex.stackexchange.com/a/39566/4011. However if I combine it with the tikz externalize library, it ...
5
votes
1answer
97 views

Revisiting TIPA and Fontspec

fontspec does not generally play nicely with TIPA these days. My intention in this question is to find out what exactly is causing the problem. In attempting to diagnose the problem, I began with the ...
1
vote
0answers
14 views

Debugging a particular customization of makeindex

I have the following code based on the answer http://tex.stackexchange.com/a/266033. Unfortunately when I compile the document I get the error ! Missing \endcsname inserted.` <to be read ...
1
vote
2answers
54 views

How can I include a new command in \input

I'm trying to variate the file name by creating a newcommand \lbname in LaTeX. by printing out \lbname, I got lo3.txt in this case, but it wouldn't work in \input command. I get an error "TeX capacity ...
1
vote
0answers
19 views

Incompatibility with french option in babel after last upgrade of Texlive [duplicate]

After upgrading just now my TexLive with TexUtility, I got an incompatibility with french in babel Here is my MWE \documentclass[11pt,a4paper,oneside]{amsart} \usepackage[frenchb]{babel} ...
2
votes
3answers
150 views

Debugging problem

I'm trying to find the bug in this code \documentclass[a4paper,12pt]{book} \usepackage{times} \usepackage[francais]{babel} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsthm} ...
1
vote
0answers
60 views

Read value of \KOMAoption for debugging purposes [on hold]

I believe that something in my preamble does an unwished change on a \KOMAoption. In order to debug the latex code, I'd like to localize the problem by dumping the current value of this \KOMAoption. ...
2
votes
0answers
84 views

Invalid page tree PDF [closed]

I have a generated LaTeX (python scripts, getting data from different sources) document which is then compiled into a pdf with pdfLaTeX. Generally the structure of the document is the following ...
6
votes
2answers
123 views

Elusive bug when using mathalfa with amsart

I got a strange bug using the two aforementioned packages when I try to build the TOC. The bug happens only after I typeset twice with pdfLaTeX and forbids me to build the TOC. Edit : following ...
0
votes
1answer
38 views

Why does this elementary Asymptote code returns an error?

I have spent several hours on understanding why my code eventually produced an error (for a large enough number of loops). I reduced the problem to the following MWE: file fout=stdout; // to write on ...
0
votes
1answer
63 views

Debug: How to print bibtex key? (Like showkeys prints labels?)

I want to print the bibtex key being cited, just like the showkeys package prints the label names, above the text where it appears, maybe in color. I do NOT want to change the cite format in the text ...
5
votes
1answer
101 views

Strange rendering bug when using LuaLaTeX, Polyglossia, Cambria/Consolas font and/or texttt

I’ve found a rather strange bug, where the letter ‘å’ is sometimes (though very rarely) incorrectly rendered when using LuaLaTex. I’ve managed to reduce it to the following minimal document exhibiting ...
7
votes
1answer
246 views

pdflatex from texlive enters infinite loop

I'm working on a text that makes `pdflatex (from texlive) enter an infinite loop. After experimenting for a while I got a minimum working example, which I show below: \documentclass{article} ...
2
votes
1answer
41 views

elsarticle vs newclude vs bibliography

Consider the MWE below. If we use article + newclude the bibliography works, elsarticle + newclude it does not. My advise to the user to came by with this issue was not to use newclude, but now I'm ...
2
votes
1answer
59 views

Debugging BMC LaTeX template for personal use

I use the BMC LaTeX templates for my own documents, but it always throws the warning: Overfull \hbox (1.0pt too wide) has occurred while \output is active And I just don't know where it comes ...
14
votes
3answers
617 views

Is it possible to redefine the white space command?

I would like to replace the white space (full space entered by pressing "space" any number of times on the keyboard or by hitting enter) by something else. Let's say, a rule of the same width. Is ...
0
votes
1answer
74 views

Shadings/fadings (apparent) bug in Tikz [duplicate]

This is the second time it's happening and the first time it went away by itself, so this time I thought that it was a matter of rebooting my system, or maybe an issue with the default PDF viewer. ...
3
votes
1answer
56 views

Bug in includegraphics [duplicate]

I have an image (image.pdf, http://www.solidfiles.com/d/d8874ce2ff/). This is how the image looks like: And this small TeX code: \documentclass{standalone} \usepackage{graphics} \begin{document} ...
0
votes
1answer
141 views

What does this \begin{document} error mean?

Code \documentclass{article} \usepackage{caption}; \usepackage{longtable}; \usepackage{booktabs} \begin{document} Discussion. \begin{longtable}[c]{@{}ll@{}} \caption{People and their roles in ...
4
votes
2answers
57 views

How to \show the code of the command \autoref? [duplicate]

Edit: I think this is a duplicate of How can I see the "implementation" of the \LaTeX command? . I wanted to see the code for the hyperref \autoref command, so created this simple document: ...
1
vote
1answer
71 views

What is a good debugging procedure to fix undefined citations?

I have a small example that has undefined citations problems. I want to solve these problems, but I've encountered similar problems before and don't have a good debugging procedure for them (I've ...
2
votes
1answer
60 views

Mysterious horizontal rule in custom class file

I am working on a customized class file for a journal project, and the output PDF is not what it should be. Here is a link to the customized class file I have been modifying: ...
2
votes
1answer
61 views

Is there an incompatibility between collcell, longtable, and/or arydshln?

In the past (may be last year or so), I have used these three packages together successfully (and produced a conditionally colored long table). That tex file still compiles nicely; however, the ...
5
votes
1answer
254 views

How to find out why xetex hangs for seconds at innocent pages?

Compiling a 130 pages long report with xelatex takes my PC about 4 seconds, of which at least 1 second is spent at one particular page, and some more time at a later page. The page where most time is ...
0
votes
0answers
66 views

Label at the end of document is lost, bug?

I'm having a long document in memoir at the end of which I set a label, and so far it has worked. I did some changes to my document, at unrelated places, and suddenly I'm getting the warning that that ...
0
votes
0answers
245 views

! Missing number, treated as zero. <to be read again> error with makeglossaries

I'm getting these two errors after compile with makeglossary. If I compile my .tex file with PDFLatex->makeindex->PDFLatex runs without problem but if I change this command series to ...
2
votes
2answers
29 views

Center text inside special indentation environment with \addtolength

I want to center the sentences "Firma del jurado" but \begin{center} doesn't work. How can I center these sentences? {\addtolength{\leftskip}{0.5\textwidth} Nota de aceptación:\newline\\ ...
0
votes
0answers
68 views

Line filled with \dotfill doesn't appear

I'm using the \dotfill command inside a special indentation block but I can't see the dots This is the relevant piece of code: {\addtolength{\leftskip}{0.5\textwidth} Nota de aceptación:\newline ...
6
votes
2answers
152 views

siunitx: why is there a value in \num{} with empty argument?

I accidentally stumbled upon the following Problem: If I use the \num command of the siunitx package and leave the argument empty like \num{}, I get a value in my pdf output and it seems to ...
1
vote
1answer
187 views

How to make biber 1.9 also print the debug information in the log file?

I've switched from bibtex to biber and I was struggling with some errors. During those problems (see biblatex error: invalid format of field 'date' - what's wrong? and biber: Caught ...
10
votes
2answers
120 views

Splitting macros to individual tokens/characters, with catcode (to debug conditionals)?

Consider this MWE, modified from ifthenelse equal string comparison fails: \documentclass{article} \edef\test{german\relax} \edef\curentry{\string german\relax} \typeout{test: \meaning\test, ...
2
votes
1answer
93 views

“Misplaced \noalign” error with datatool

Attempting to compile the following file gives the following error: ! Misplaced \noalign. \pagebreak ->\noalign {\ifnum `}=0\fi \@testopt {\LT@no@pgbk -}4 l.47 \end{letter} ...
0
votes
1answer
58 views

Compiling documentation of a package

I have extracted the documentation of the longtable package and I want to compile it alone. By extracting the documentation I mean that I have copied the .dtx file from the \maketitle to the end and ...
1
vote
1answer
65 views

Undefined control sequence \fnwidth

I want to do this: \myhref{http://en.wikibooks.org/wiki/TeX}{\TeX} but it gives me the error ! Undefined control sequence. argument \fnwidth l.10 ...
6
votes
2answers
501 views

Problems with tilde (~) and line breaking

I'm trying to avoid a line break between the word "Table" and the number reference for that table. Following the advice of another Q&A, I went through my whole document and replaced all spaces ...