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
1answer
179 views

Bad interaction between titlesec/titleps and packages that use \markboth internally

The following MWE demonstrates a bad interaction between endfloat and titleps. The second page has the word FIGURES in all caps in both the header and the footer, contrary to the page style ...
1
vote
0answers
39 views

What is this wacky definition of \@makefnmark trying to accomplish?

A journal style file that shall remain nameless contains this code: \def\thestandardf@@tnote{\@arabic\c@footnote} \def\@makefnmark{% \hbox{% \ifx\thefootnote\thestandardf@@tnote \@...
19
votes
6answers
6k views

LaTeX debugging strategies and brace mismatching

What is the recommended way to track down brace mismatches in LaTeX? I have a large beamer presentation, but this equally applies to any other LaTeX work I've done. In other computer languages I've ...
3
votes
2answers
29 views

How to view runtime Latex logs in TextMate?

In order to understand what is going on underneath, I want to find the runtime logs in TextMate, debugging this and now from Lyx to TextMate but buggy class. Where can you find runtime logs in ...
1
vote
0answers
18 views

Runtime logs and command prompt in Lyx?

LyX is a GUI based editor. The ability to see which LaTeX things are loaded each time would be useful. Example is Trial 5 where I try to determine whether Lyx loaded the aaltothesis.cls correctly. So ...
36
votes
5answers
48k views

LaTeX with Sublime Text 2

I recently (2 days back) started using LaTeX, I use Sublime Text 2 (ST2) for most of the programming. I found that ST2 has LaTeX package. So what I am doing is write the document with ST2 and run it ...
1
vote
1answer
54 views

baseline seems to change automatically [closed]

I don't have a MWE, since this appeared on the bottom of page 12 of a document I'm working on (by surprise). I'm just wondering if anyone will recognize what's going on. It looks to me as though the ...
2
votes
0answers
40 views

Pgfplot fill between error [duplicate]

for some reasons, this code doesn't work in my document: \documentclass{article} \usepackage{fancyhdr} % Required for custom headers \usepackage{lastpage} % Required to determine the last page for ...
1
vote
1answer
276 views

How to make Biber 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 ...
0
votes
0answers
18 views

Texmaker error reports on wrong line

I find that texmaker reports undefined control sequence on a line or two past where the error is. How to fix this problem?
33
votes
2answers
2k views

Teach me to debug

Ok, 35 years of programming has not prepared me to debug tex errors. It's painful. I can't create an MWE because the point is to be able to debug in place. Everything was working well, I would ...
4
votes
1answer
140 views

Error arising when using \typeout & \meaning with \midrule

In order to facilitate debugging some experimental code, I created a version of \typeout that will break its content into multiple lines: %% dummy macro for simulating newlines in output to terminal \...
5
votes
2answers
418 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 ...
28
votes
2answers
911 views

How do I debug pgfkeys?

I'm sure if you're reading this question you are already familiar with my love for pgfkeys. However, it is absolutely impossible to debug: \tracingmacros is a total mess, with every key expanding to ...
2
votes
2answers
76 views

Package interference between pdfpages and eso-pic when including pdf-pages

Is it just me or do the pdfpages not get included when using the texcoord option for eso-pic. Could someone confirm this. This is the MWE: \documentclass[12pt,a4paper,notitlepage,oneside]{book} %NOTE ...
17
votes
4answers
10k views

How to find the lost text part when having “Float(s) lost” error

I've lost some text. I don't know if theres something missing, so how can I find it? I'm not in the mood to compare the chapter1.tex to the pdf file by reading both. Chapter 1 (chapter1.tex) is rather ...
4
votes
2answers
278 views

Why does this use of \textwidth cause pdflatex to crash (not exit!)?

I ran into this problem when playing around with tables. \documentclass{article} \begin{document} \begin{table}[h!] 400 MHz \qquad 800MHz \centering \showthe\numexpr\textwidth\relax \tracingall \...
50
votes
8answers
7k views

Reducing the console output of LaTeX

When I run pdfLaTeX, I get very verbose output: (/usr/local/texlive/2008/texmf-dist/tex/generic/pgf/frontendlayer/tikz/librarie s/tikzlibrarycalc.code.tex) ... Is there a script to soak up all the ...
0
votes
1answer
58 views

Badbox overfull \hbox without a specific location

I am using TexMaker as my editor and got an warning message of Badbox. However this warning does not give me the details of the location where the problem happens. Anyone knows how to deal with this? ...
12
votes
5answers
10k views

Sublime Text 3 LatexTools

I just installed ST3 and installed the LatexTools package using Package control. Everything seems to have gone fine except when I compile using CMD+b nothing seems to happen. On the terminal I get ...
2
votes
3answers
46 views

strange interaction (bug ?) between mdframed and listings

I have a weird behaviour when I try to include some lstlistings inside a mdframed box. Most of the time, it works as expected, but under some conditions, I get incorrect output, or even a latex error (...
4
votes
1answer
70 views

Is there a way to step through LuaLaTeX macros using a remote debugger?

Writing LaTeX macros has always been difficult, and it seems like writing a major package can only be accomplished by a Real Programmer. Fortunately, LuaTeX is on its way, and writing Lua macros is ...
1
vote
0answers
101 views

“Missing \endcsname inserted” error in beamer

\documentclass[handout]{beamer} \usetheme{Madrid} \usepackage{amsmath,tikz} \usetikzlibrary{arrows,matrix,positioning} \begin{document} \begin{frame}{Matrix} This is an example of a matrix. \begin{...
1
vote
0answers
23 views

Figure environments randomly not appearing based on layout

I'm including figures the same way I always have (previously without error), something like: \begin{figure} \centering \includegraphics[width=0.5\textwidth]{../figures/fig21_total} \caption{} \label{...
2
votes
1answer
66 views

How to know variable values in tikz for debugging

I am pretty fresh to tikz and I am trying to create a not-so-simple picture. I am also using the calc package with the let command, but the final figure is not the desired one. Therefore, I need to ...
6
votes
2answers
140 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 ...
4
votes
2answers
38 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
9
votes
2answers
201 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 ...
4
votes
1answer
69 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
36 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
231 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 ...
0
votes
1answer
86 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 ...
1
vote
1answer
40 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. \begin{...
1
vote
0answers
42 views

LaTeX Bug after miktex update [closed]

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
118 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
41 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
108 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. [ ...
14
votes
1answer
157 views

Determine File Name and Line Number Where a Macro is Invoked From

Wondering if there is any way to print out (for debugging purposes) the file name and the line number from where a macro is invoked (not where it is defined). My attempt to use the currfile package ...
31
votes
1answer
3k views

Latex \tracing commands list?

Often I need to recall the different \tracing commands; and a couple of times I stumbled on some webpages that worked fine for me; sadly, I didn't keep them, and my searches don't take me there ...
0
votes
0answers
18 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 ...
5
votes
1answer
129 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 ...
0
votes
0answers
69 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
122 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, ...
18
votes
2answers
51k views

Compilation Error “! Missing \endcsname inserted” The control sequence marked <to be read again> should not appear between \csname and \endcsname

here's my thesis Latex files: http://www.mediafire.com/download/c7q8z4v6gv864rk/triet_thesis_clean.rar Please help me to fix the error, I've tried all the things I can find with Google :( : ! ...
2
votes
2answers
151 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
124 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
18 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 again>...
1
vote
2answers
76 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
21 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} \usepackage[...
2
votes
0answers
118 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 \...