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

learn more… | top users | synonyms

6
votes
0answers
30 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
13 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
90 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
269 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
45 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
46 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 ...
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} [...] ...
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 ...
7
votes
2answers
277 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 ...
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 ...
6
votes
1answer
44 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 ...
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} ...
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 ...
3
votes
2answers
329 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 ...
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 ...
1
vote
1answer
212 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
53 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
77 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: ...
2
votes
1answer
33 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
111 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 ...
8
votes
2answers
278 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
188 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
113 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
182 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' ...
0
votes
0answers
75 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 ...
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 ...
5
votes
1answer
118 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
119 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
161 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
98 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 ...
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 :( : ! ...
3
votes
0answers
75 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 ...
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
72 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 ...
8
votes
1answer
78 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 ...
8
votes
1answer
130 views

How can \ifx\\\\ be false?

It appears that I have a case where \ifx\\#2\\ is false, even though #2 is empty. Here is the relevant excerpt from the log file, with \tracingcommands and \tracingmacros turned on: \lastpageref ...
3
votes
0answers
58 views

How to debug error message from luaotfload-database.lua

I am beginning to think it was a really bad idea to update to TeXLive 2013. Since this update almost none of my old documents compile any longer. Does anyone have any idea what LuaLaTeX is trying to ...
11
votes
1answer
228 views

How to report *amsart* bugs? (Looks like a bug to me.)

I have noticed the following strange behavior when using a custom counter in certain situations in amsart document class. Here is an example: \documentclass{amsart} \newcounter{exercise} ...
7
votes
1answer
128 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?
7
votes
1answer
100 views

What is wrong with this macro-defining macro?

have this \newsetter macro that defines a "setter" macro (for lack of a better name) and a @-prefixed macro of the same name that holds the value. This is how is supposed to work: \newsetter\macro ...
2
votes
1answer
96 views

Strange problem with pythontex in TeX Live on Mac [duplicate]

When I launch tlmgr update --self in a terminal, I obtain the following error message : Unknown docfile tag: texmf-dist/doc/latex/pythontex/pythontex_quickstart.pdf details=""Quick start" ...
4
votes
1answer
175 views

References by BibTeX key name [duplicate]

I've seen Use BibTeX key as the cite key, and it's quite close to what I'm looking for, but doesn't quite make it - for a start I can't get biblatex to run over my document, and second What I'm ...
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 ...
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 ...
3
votes
1answer
100 views

How to go deep and debug the real error?

(/usr/share/texlive/texmf-dist/tex/latex/thmtools/unique.sty Package: unique 2012/05/04 v63 \uniq@channel=\write6 \openout6 = `main.unq'. ) ! LaTeX Error: Missing \begin{document}. See the LaTeX ...
6
votes
1answer
200 views

Methods for debugging package conflicts

... that don't make me want to pull my (remaining) hair out. I'm preparing a long journal article with a wide array of necessary packages and a publisher-specific class file. In this specific case, ...
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 ...