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

learn more… | top users | synonyms

11
votes
4answers
2k 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 ...
6
votes
0answers
29 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 ...
0
votes
0answers
12 views

Kile error compiling .bib not appearing in .blg

I keep having trouble while compiling the bibliography with Kile. I get the following error message: File ended while scanning the use of \thebibliography \bibliography{HKR} \begin{thebibliography} ...
7
votes
2answers
88 views

Redefine \newcommand to insert code at start and end of custom macros

I would like to be able to insert code into the definitions of my custom macros, without having to modify each macro definition. This seemed like a simple case of redefining \newcommand, but this ...
7
votes
4answers
266 views

Debugging Advice: Dimension too large (Need stack trace)

Background: I am stuck on a "Dimension too large" problem which is occurring during index generation. This is a large index of links to files (along with other related information), and am sure the ...
0
votes
1answer
42 views

Highlighting labels of undefined citations? [duplicate]

I am wanting 'cite' entries that don't have a corresponding 'bibitem' entry to show up in red, along with the name of the missing reference label. I had found a forum entry that suggested a solution, ...
6
votes
1answer
55 views

testing parameter values with \ifx

Let's say that I would like to redefine \@seccntformat so that whenever the section counter is printed, it is prefixed by Section, but other counters should no be changed. Here is my failed attempt: ...
4
votes
2answers
45 views

Displaying plus and minus of a length

I know that \the\somelength will show me the value of \somelength. But how do I find out what the current stretch on that length is? For instance, if I have \setlength{\footnotesep}{10 pt plus 5pt ...
3
votes
1answer
35 views

Possible to run a handler / callback function, when a macro (\inputlineno) changes value/definition?

I was thinking about the debugging procedure I went through in How come the tilde ~ sometimes does not behave like non-breaking space? - basically, to find out where did the macro ~ change, I had to ...
0
votes
0answers
50 views

What happened to bibtex? [duplicate]

I have a manuscript which looks like: \documentclass{article} \usepackage{amsmath, amsthm, amssymb} \begin{document} [...] \cite{ref} [...] \cite{anotherref} [...] ...
6
votes
1answer
43 views

Discovering which (La)Tex element is shown by lua-visual-debug (print to stdout)?

I am trying to troubleshoot what happens in the code in Wrong placement (and/or size) of picture / plot with groupplot of table?. So I added \usepackage{lua-visual-debug} to that example, and built it ...
4
votes
1answer
307 views

Generating a catcode table in Latex (with \typeout to terminal)?

I often need to look up a catcode table, and quick searches on the web are rarely satisfying. So I thought, it must be (in the long term) easier to use a Latex function of sorts, to loop through all ...
7
votes
2answers
276 views

How come the tilde ~ sometimes does not behave like non-breaking space?

This is again one of the behaviors that are quite difficult to catch in a reconstructible (and simple) example, so one has to resort to animations. Basically, the issue is this: the tilde (~) is ...
9
votes
3answers
6k 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 :( : ! ...
0
votes
0answers
30 views

Hyperlinking theorems in smfart

Edit: The class smfart is one of several classes created by the Société Mathématique de France for typesetting mathematics. Here is its CTAN page, where it lies under smflatex, and here is the ...
0
votes
0answers
16 views

How to debug the “Argument of \XC@definec@lor has an extra }” error in Foreach statement? [duplicate]

First, I draw three nodes each of which has three parts. Everything is OK. The code and the image are as follows. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[]{tikz} ...
0
votes
1answer
42 views

Sudden vertical spacing in latex document with MDPI template

Using the MDPI journal stylesheet (http://www.mdpi.com/authors/latex), I encounter a sudden vertical spacing after some equation followed by arbitrary text. Here's my document header, as well as the ...
8
votes
1answer
2k views

Install emerald font package on ubuntu

I tried to install the emerald font package on my ubuntu natty box. However if I compile a minimal example like (emerald.tex) \documentclass{article} \usepackage{emerald} \usepackage[T1]{fontenc} ...
3
votes
2answers
324 views

TikZ error for externalized graphics but output is correct

This is not an MWE per se, but it is the code I boiled the problem down to. Note: it does not produce an error. The issue is that once I somehow managed to get an error for any TikZ or pgfplots ...
38
votes
7answers
4k 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 ...
54
votes
3answers
3k views

2013, year of the TeX bugs report. Will pdfTeX, XeTeX, etc. be changed accordingly?

Barbara Beeton said (TUGboat vol. 34, pag. 4): As noted on Don Knuth's TeX web pages, www-cs-faculty.stanford.edu/~knuth/abcde.html, he "intend[s] to check on purported bugs again in the ...
4
votes
1answer
59 views

Error persists after removing the code

I accidentally added an erroneous backslash to a code in the equation environment. Even after removing it - in fact even after removing the whole line - the error persists. ! Undefined control ...
9
votes
2answers
4k 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 ...
1
vote
1answer
205 views

File ended while scanning use of \@footnotetext [closed]

I spell-checked my document, but somehow I must've added or deleted some '}' or something because LaTeX can't compile past a certain page, giving the error: Runaway argument? {J. Clerk Maxwell\index ...
1
vote
1answer
47 views

Koma script captionbeside topbeside alignment question

Code based on the example of scrguien 3.12 (2013-12-19) page 122 gives bad result. Code: \documentclass[captions=topbeside]{scrbook} \usepackage[english]{babel} \begin{document} \begin{figure} ...
0
votes
0answers
76 views

LaTeX - Letter 'f' being swapped with theta symbol

I am rewriting a thesis paper of mine in LaTeX and have been looking around for some good templates. I'm an experienced developer, but have little experience with Tex. Sample Template: ...
5
votes
1answer
138 views

Is there a list of common misleading errors and how to go about debugging the real problem

Yesterday I posted a question "My attempt to local redefine a command is failing and not sure why" which I really knew the answer to. But I was thrown by the error message I was getting and after ...
2
votes
1answer
32 views

Extra blank page with Bayesian Analysis journal style file

See the following MWE, which uses the Bayesian Analysis journal style file.. \documentclass[bib]{ba} \inserttype[ba0001]{article} \begin{document} \title[Short Version]{Long Version} ...
4
votes
1answer
36 views

Biblatex field values and comparisons

I would like to change the behavior of printing author names based on the hash field in biblatex. This mwe should demonstrate what I am having difficulty understanding. MWE: \documentclass{article} ...
7
votes
1answer
109 views

I cannot determine the error between hyperref and hypdvips

Look at the following Minimal Non Working Example. It's not correct, because the output pdf will be created. Nevertheless the logfile produces an error. It took me a lot of time and I am still not ...
7
votes
1answer
124 views

Bug in polylongdiv?

\documentclass{article} \usepackage{polynom} \begin{document} \polylongdiv{x^4-1}{x^3+x^2} \end{document} It leaves out the first x in the quotient. How can I fix this?
8
votes
2answers
277 views

Goto or jump command in LaTeX?

The answer to this is probably "no", but I just wanted to make sure... (also, I'm not trying to get into the whole "gotos are evil" debate :)). Basically, one of the things that irritates me in my ...
6
votes
1answer
184 views

htlatex interrupted at '\:temp{rm}'

Using TL2013, I cannot compile documents with htlatex anymore. For example, using: \documentclass{scrbook} \begin{document} test \end{document} I get: $ htlatex test.tex This is pdfTeX, ...
2
votes
1answer
88 views

How can I track down a bad spacing issue?

I use a rather complex class, built on top of extarticle with twocolumn option. It loads a lot of packages. One of them is floatrow. Sometimes, I get a very annoying error that can be seen in the ...
23
votes
3answers
1k views

How can I work around this TikZ bug: (\x)^2 and \x^2 produce different results in TikZ plot?

I have some files with TikZ graphics that have suddenly changed appearance since I upgraded to PGF-2.10. Here is a minimal example: \documentclass{minimal} \usepackage{tikz} \begin{document} ...
2
votes
1answer
109 views

Why does the setspace package change my fancyhdr design?

After hours of debugging, I finally found out that the header of my bibliography's last page is changed by using spacing in the text. Now my world is turned upside down. Please have a look at this ...
3
votes
1answer
181 views

Debugging font shape undefined in TeXShop

I am a LaTeX newbie on a Mac running OS X Mavericks, TexShop 3.26 and MacTeX-2013. I am writing a document and I keep getting the following warning: LaTeX Font Warning: Font shape `T1/phvr/m/n' ...
1
vote
0answers
37 views

File location containing the shortcuts of LyX [duplicate]

Is there an editable file that contains all the shortcut a user introduces to LyX (additionally to the standart shortcuts) ? I already looked in cua.bind and my shortcuts aren't there. This whole ...
0
votes
0answers
74 views

I need some help debugging this LaTeX macro - TeX “skips past” a bunch of code?

I'm trying to test and debug a collection of LaTeX macros that I've been working on, and I have run into a problem that has me totally stumped. Essentially, the problem is that at a certain point in a ...
10
votes
1answer
62 views

Log all keys in a module

Using l3keys, is there any way to inspect the keys currently in a (sub)module? I'm looking for something like \clist_show, but for keys. \keys_show sounded promising, but requires that you already ...
5
votes
1answer
116 views

pdfcrop results in fmtutils.cnf not found

I just tried pdfcrop but it results in an error message telling me that the file fmtutil.cnf was not found. The complete error message is: pdfcrop testfile.pdf PDFCROP 1.38, 2012/11/02 - Copyright ...
1
vote
1answer
118 views

Journal of Statistical Software class breaks preview in AUCTeX

I'm using AUCTeX 11.86-11 on Debian stable. The jss.sty style file contained in the JSS style file zip archive breaks AUCTeX's preview for me even with a simple file. NOTE: the jsslogo.jpg file is ...
3
votes
0answers
160 views

Troubles with TeX Live 2009 and 2013

Well, before Christmas I was updating some software in my Ubuntu 12.04 installation, where I have happily installed TeX Live 2013 since last summer (I did it from an ISO image downloaded from the ...
6
votes
1answer
93 views

Strange result in plotting data using pgfplots

I'm trying to plot this: \begin{tikzpicture} \begin{axis}[ height=5cm, width=\linewidth] \addplot[smooth,blue] plot coordinates { (27,177) (28,223) (29,240) (30,227) ...
2
votes
0answers
96 views

TikZ dash pattern generates an offending PDF [closed]

Consider the following MWE: \documentclass{standalone} \usepackage{tikz} \begin{document} \def\dotsize{1} \def\spacesize{2} \def\linesize{4} \begin{tikzpicture}[% dash pattern=% on \dotsize pt ...
8
votes
1answer
77 views

Upper limit on the number of pause commands in a frame

Is there any upper limit on the number of pause commands in a frame in beamer, when it is used along with the \only<>{} command ?. I have a simple beamer example with 14 pause commands, but the ...
3
votes
0answers
74 views

Pgfplots fails to generate boxplots for some data set

I use pgfplots to generate boxplots, however with some small data sets as the following, I get an error message. speed 2 3 1 2 2 11 Here is the error message : Sorry, an ...
10
votes
1answer
512 views

Visualizing correct page lengths with 'layouts' and 'tikz' packages?

I am currently working on a project with xelatex/fontspec and tikz, and so, this example is basically the same as the one from layouts package reads all length as zero with tikz/fontspec/xelatex?. ...
3
votes
0answers
43 views

The \show command displays not all command [duplicate]

The TeX-primitive \show displays text of a command but I observed that not all, say LaTeX's commands, have been exhibited by this way. Opinions and solutions of experts please.........
4
votes
0answers
70 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 ...