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

learn more… | top users | synonyms

3
votes
0answers
64 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
236 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
164 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
109 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
98 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
216 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
91 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
139 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
102 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
277 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
63 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 ...
4
votes
1answer
3k views

Latex image not found

running TeXnicCenter LaTex >> PDF produces the following error: LaTex warning: File 'Energy_Arc.png' not found. Output shows empty box where image should be (with same error as above written ...
2
votes
0answers
56 views

Error with $ when using math in TikZ figure [duplicate]

I am drawing some figures with TikZ for a beamer presentation. I want one figure to look something like this: Additionally, I want to add labels under the intervals (the sections in between ticks ...
6
votes
1answer
1k views

How to find the exact location of Type 3 fonts in PDF?

While generating PDFs, we often ends up with some Type 3 fonts. We can find the existence of Type 3 fonts in a PDF by providing pdffonts <filename.pdf>. Also, can find the exact page by giving ...
1
vote
1answer
135 views

Usage of final option with package animate

I'm currently animating some inline graphics (TikZ) on a beamer presentation with the animate package, and have come across some weird behavior. Since I still have lots of work to do, I set the ...
4
votes
1answer
160 views

ybar stacked interferes with tikz background

When I compile the following code with ybar stacked option and the request for newsprint background the compiler tells me ! Extra }, or forgotten \endgroup. \endpgfonlayer ->\endgroup \hss \egroup ...
54
votes
3answers
4k 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
56 views

Bad interaction between keycommand and environ?

I suspect the keycommand and environ packages are not playing nicely together, because the following code gives an error. Can anybody explain what's going on? \documentclass{article} ...
3
votes
1answer
2k views

Debugging a custom-bib bst file that crashes on book items

I created my own bibliography file with custom-bib (makebst), but when I run it with a reference to a book I get: $ bibtex PhD [...normal output] Database file #1: PhD.bib You can't pop an empty ...
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 ...
0
votes
1answer
77 views

Strange issue after removing bug

I removed a bug in my LaTeX code. Now the section is bug free because it uses code from a Lamport book. But it still is included in the pdf after using pdflatex more than once. What is the problem? ...
2
votes
1answer
164 views

Standalone - \newlabel being written to .log instead of .aux

In my compiled document, which consists of many sub-documents using standalone, I have one sub-document in which the Figure references are undefined - they show up as ??. No MWE I've tried can ...
2
votes
1answer
125 views

My WinEdt can only debug one file

I came across a weird question... The thing is, suddenly without and reasons, I could only pdfTeXify one file in my WinEdt. As you know, we usually open lots of files which we have edited historically ...
7
votes
1answer
880 views

Why does loading pgfplots after tikz break the default layers in a tikzpicture?

Taking the MWE from Jake's answer to the question Background rectangles with equal width but 'fitting' height, I get an error when loading pgfplots after the tikz packages but not before. I'm assuming ...
2
votes
1answer
111 views

No %.aux file in a particular directory

I have the following line in my report.tex \include{intro/introduction} \include{prlm/preliminary} \include{svy/survey} and the corresponding directory structure. The directory structure is ...
9
votes
2answers
116 views

Ease the handling of labels

I want to ease the handling of labels in my document, and I want to show the label for a section if define a "variable". Currently I'm doing it like this Setting the up the "variable": ...
2
votes
1answer
95 views

Unexpected hung latex compilation with property list retrieval

This is very closely related to a previous question of mine. From the comments to this previous question, I understand that my approach here is completely wrong headed. So why bother post a ...
1
vote
1answer
418 views

Debugging TikZ and PGFPlots compatibility issue

I just tried to compile an old TikZ code (which as far as I recall compiled perfectly in the past and was not changed in the meanwhile) and I faced some serious compilation issues related to TikZ. ...
9
votes
1answer
289 views

Using \typeout behaviour different with \newtoks vs. \def

I feel as I really should know this, but sadly I don't. Why is the output of \typeout{\the\myToken} not the same as having it printed in the PDF as \the\myToken. No problem with a \def, just with ...
10
votes
1answer
257 views

Get current source line number

How can I get the current .tex source line number? I want to use it to generate useful error messages in a package I am writing. There are some errors that can only be detected at the end of the ...
9
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} ...
8
votes
1answer
3k 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 ...
2
votes
3answers
426 views

Help me to debug long LaTex equations with errors

I want to learn debugging of long LaTeX equations like below: $\tau=\int\frac{dt}{\gamma} = \int\sqrt{1-\frac{v(t)^2}{c^2}}dt = ...
3
votes
1answer
189 views

Print macro output instead of executing

I am attempting to debug a Tikz/PGF script. I have a STY file that generates Tikz/PGF scripts, but the output graphic isn't quite what I want it to be. In order to debug the problem, I was hoping ...
13
votes
4answers
3k 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 ...
1
vote
0answers
739 views

tikzpicture fails when externalization is enabled [closed]

In a document of mine I'm trying to use the external library. For the record, I downloaded the CVS version of TikZ, since I want the better update checks. Anyway, I have a figure in my code which ...
6
votes
1answer
1k views

TikZ datavisualization example fails

While trying an example from the datavisualization section of the current TikZ manual I get a strange error message. On my system I have the current MikTeX 2.9 and installed the CVS version of TikZ ...
5
votes
0answers
318 views

Biblatex 2.1 bug [closed]

After updating my texlive 2012 installation using tlmgr update --all --self the biblatex was updated to version 2.1 and biber to version 1.1. Now I cannot compile my document. I get the following ...
0
votes
0answers
66 views

How can I debug this problem with math typesetting? [duplicate]

Possible Duplicate: problem compiling some 'math' using LuaLaTeX While trying to write an equation it seems that the square root does not like particular elements. I tried to ...
3
votes
2answers
205 views

Debugging vertical space on top of page (section inside a custom biblatex cite command)?

Please consider the following MWE, compiled with lualatex test.tex (+ bibtex test + lualatex test.tex): \documentclass[twoside,a4paper]{book} \usepackage{lua-visual-debug} \usepackage{lipsum} ...
60
votes
1answer
2k views

A LaTeX log analyzer application (visualizing TeX expansion)

Consider the following MWE, test.tex: \documentclass[12pt]{article} \begin{document} \tracingassigns=1 \tracingmacros=1 \def\aaa{something} \def\bbb{else \aaa, else} \edef\ccc{third \bbb, level} ...
7
votes
1answer
1k views

A \typeout (or expandable command) that can expand once - or with variable levels of expansion?

Consider the following MWE: \documentclass[12pt]{article} \begin{document} \def\aaa{something} \typeout{=1==\aaa==} \typeout{=1==\meaning\aaa==} \typeout{} \def\bbb{else \aaa, else} ...
5
votes
2answers
1k views

Output ASCII code as character on terminal in Latex?

If I have a letter/character, I can output its ASCII value using \number and backtick command: *\typeout{\number`a} 97 What do I do if I have "97", and I want to show "a" in terminal? I have ...
4
votes
1answer
340 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 ...
6
votes
2answers
157 views

Showing definition of macros with custom characters?

Consider the following MWE: \documentclass{book} \usepackage{biblatex} \begin{document} \typeout{1.=\meaning\usebibmacro} \typeout{2.=\meaning\usebibmacro{name:first-last}} \makeatletter ...
23
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 ...
32
votes
3answers
30k 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 ...
4
votes
1answer
294 views

Showing expanded `\let` command with `\typeout`

I have already seen the related page macros - What is the difference between \let and \edef?, but I'm afraid it still doesn't expain to me the following MWE: \documentclass{minimal} ...
6
votes
2answers
525 views

On unprotecting (expanding) \protected macros (or, “the space after command name”)

I quite often come into a situation, where I need to obtain some text produced by a package macro as a string, like in say: Expanding (edef) a lipsum command? How do I "unprotect" an ...
2
votes
2answers
144 views

Generating pages in response to iterated parameter on engine level?

Just to jot this down here, while I have the thought: The method I used for the .gif animations in Why does \vspace, after section heading, sometimes jump/snap in discrete steps? was basically have a ...