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

learn more… | top users | synonyms

1
vote
1answer
34 views

Could not use \rule in chapter title in latest texlive

Using XeLaTeX In texlive 2014 (versions before May or texlive 2013 or older), one can use \rule{width}{height} in a chapter title. However, in latest texlive (versions after June) form ctan, use of ...
1
vote
1answer
35 views

How to remove unwanted asterisk that appears in margin when multibib is used with custom Section command?

Background - I'm modifying a fairly well documented LaTex CV to build my own. All works well, till I tried to add publications using the multibib package (using this answer in Tex.SE). When I ...
2
votes
1answer
81 views

Overwrite \def to check if the command exists?

LyX supports math-macros, but sadly when passed to the latex processor, they are defined by a \def rather than a newcommand. I have found overwriting commands (e.g. using \def\v{\mathbf{v}}) to ...
2
votes
1answer
54 views

LaTeX: display hyphenation and justification problems

(At least) The article, report and book classes support the option draft, which displays hyphenation and justification problems with a black square, but also does not load figures. I could have the ...
2
votes
1answer
38 views

Error: paragraph ended before … was complete

I'm quite lost. I can't figure out what I'm doing wrong below. \documentclass{article} \usepackage{amsmath,amssymb} \makeatletter \newcommand\aermb[1]{\def\ae@i@r{#1}\ae@rmb} \def\ae@rmb{%% ...
0
votes
1answer
29 views

Debugging help, something about an end note

I am getting this error [275 ] ! Argument of \@doanenote has an extra }. <inserted text> \par l.726 {citation} ? This raises a number of questions: What is causing ...
2
votes
1answer
42 views

Newcommand leads to no error nor output

I'm writing a wrapper for some output. I have to files, beamer.tex which has content as % !TEX encoding = UTF-8 Unicode \documentclass{beamer} % add page numbers for malmoe \newcommand*\oldmacro{}% ...
0
votes
0answers
21 views

bibinitsep in biblatex issue

Redefining \setlength\bibinitsep{2.0\itemsep} didn't work with the newest version of biblatex and biber. I think the issue is described here, but there seems to be no fix so far. Has anybody an idea ...
1
vote
3answers
162 views

Italic numbers using Linux Libertine

I'm trying to typeset a document using xelatex with main font Linux Libertine. Here's the minimal working example: \documentclass{article} \usepackage{fontspec} \setromanfont[ Ligatures = TeX, ...
3
votes
0answers
32 views

Debug log the text returned via tex.sprint() and friends?

Is there an easy way to see what text was sent from Lua to TeX via tex.sprint(), tex.print(), and tex.write()? (e.g., print it to stdout or log it to the .log file)
2
votes
1answer
42 views

Metapost “odd” operator fails with negative value?

Has anyone else noticed that in Metapost the odd operator appears to fail with negative numbers? Here's my test program (which works with both Metafont and Metapost). for i=-2 upto 2: show(i); ...
3
votes
1answer
70 views

Dump command as readable text?

Is it possible to dump the expanded form of a command as text? E.g. when I write a macro \newcommand{\mytest}[1]{\texttt{#1}} I would want to define a macro \mydump such that ...
7
votes
0answers
58 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
49 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
115 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
318 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
87 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
122 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
66 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
39 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 ...
8
votes
2answers
331 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
45 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
63 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
19 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
77 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
444 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
71 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
527 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
100 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} ...
2
votes
1answer
45 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} ...
5
votes
1answer
70 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
160 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
350 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 ...
8
votes
1answer
342 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
158 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
270 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
87 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
38 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 ...
6
votes
1answer
181 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
149 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
174 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
109 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
129 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 ...
11
votes
3answers
12k 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
93 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
87 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
87 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
142 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 ...