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
16 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
28 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
563 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 ...
2
votes
1answer
25 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 ...
0
votes
1answer
48 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
0answers
69 views

Latex finding underfull hboxes [closed]

I got an underfull hbox in my document which I can't find. The log tells me it's in line 3-3 which is \input{costumshortcuts} which I haven't changed in ages. So is there a way to find it? Or even ...
3
votes
1answer
51 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
32 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
26 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: ...
0
votes
0answers
33 views

How to parse latex error?

I am getting a latex error but I can't understand it. c:/bin/texlive/2014/texmf-dist/tex/latex/hyperref/hpdftex.def (c:/bin/texlive/2014/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty)) ...
1
vote
1answer
49 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
31 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: ...
26
votes
1answer
2k 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 ...
5
votes
1answer
222 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 ...
2
votes
2answers
359 views

Meaningful error messages when using LaTeX instead of PDFLaTeX

When I have TikZ images or I include .png graphics, I need to use PDFLaTeX instead of plain vanilla LaTeX. (That is, I need to use PDFLaTeX all the time, rather than just when I want to produce the ...
10
votes
3answers
522 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 ...
0
votes
0answers
49 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
103 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 ...
32
votes
4answers
36k 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 ...
0
votes
0answers
46 views

Peculiar bug, what is causing it?

I tried typesetting a couple of times but still got the above result. Wiping line 26 and typing it all over again fixed it though, but my question is: Do you think this a bug in my editor (Texpad) ...
2
votes
2answers
27 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
40 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
115 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
87 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 ...
1
vote
1answer
62 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} ...
9
votes
2answers
91 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, ...
0
votes
1answer
52 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
49 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
285 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 ...
2
votes
0answers
35 views

htlatex adding _ after - in URLs

I'm using htlatex on Fedora 21, texlive-tex4ht-svn33024.0-1.1 I noticed that whenever a URL has a hyphen within it, in the HTML output it's formatted with an underscore symbol following -. For ...
6
votes
1answer
149 views

Is there a bracket missing in teubner.sty? [closed]

When TeXifying files where I use teubner.sty, LaTeX complains Runaway argument? {\setcounter {verso}{##1}\def \writ@verso {\count 255=\value {verso}\divide \ETC . ! File ended while scanning use of ...
4
votes
1answer
121 views

tabu package - gaps in vertical lines

I'm in the unfortunate situation that I have to make a table in LaTeX which has thick vertical lines. Since this does not seem to be possible with the default tabular environment, I chose the tabu ...
12
votes
2answers
24k 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 :( : ! ...
5
votes
3answers
510 views

Too many math alphabets used in version normal when using 4 packages only

This one is very strange. After much struggle, I narrowed it down to some combination of 4 packages. When I comment any one of these 4 packages, the error goes away. MWE ...
28
votes
2answers
800 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 ...
81
votes
2answers
10k views

How to best debug LaTeX?

..and I don't mean finding out why it doesn't compile, I mean serious debugging: breakpoints, figuring out value of variables at a given moment during run/compile, stepping, examining a stack (is ...
1
vote
1answer
43 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 ...
2
votes
1answer
163 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 ...
1
vote
1answer
60 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
93 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 ...
8
votes
1answer
5k 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 ...
3
votes
1answer
104 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
36 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
44 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{}% ...
1
vote
3answers
255 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, ...
9
votes
1answer
520 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, ...
3
votes
0answers
47 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
52 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
87 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 ...
42
votes
8answers
5k 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 ...