{warnings} is about dealing with and (hopefully) getting rid of compiler warnings.
70
votes
4answers
2k views
Techniques and packages to keep up with good practices
Question
What techniques and packages are there to keep up with good practices?
What I already know
I already know of the following packages for this kind of purpose:
...
52
votes
2answers
11k views
What does “overfull hbox” mean?
I often see output from TeX with the warning overfull hbox, badness 10000. What does this message mean?
41
votes
3answers
817 views
Why/When should I pay attention to warnings?
I often see warnings in the compilation-log of my tex-files.
I searched in the internet and did not find a good answer to this question.
And in my opinion there must be a reason why tex warns me about ...
39
votes
3answers
13k views
What are underfull hboxes and vboxes and how can I get rid of them?
Often, TeX outputs underfull hbox and vbox warnings when running and in the generated log file. What are these and how can I get rid of them?
33
votes
1answer
1k views
How can I get LaTeX to warn about unreferenced figures?
When writing documents, I consider it to be necessary that all figures and tables are referenced (\ref) in the text, whether or not I've remembered to \label them. LaTeX does not currently warn if a ...
32
votes
2answers
6k views
Do I have to care about bad boxes?
When I compile my PDF from LaTeX source, do I have to care about all the messages (currently 28) about 'bad boxes'?
The PDF seems fine to me.
24
votes
2answers
562 views
How to visualize the underfull box in final output PDF files
I am finalizing a document. There are a few underfull vbox I just cannot figure out where they are. Sometimes it is easy to figure out which page is underfull vbox from the log file, but sometimes it ...
24
votes
4answers
2k views
What does the warning about “moved marginpar” mean?
I repeatedly get the LaTeX warning:
LaTeX Warning: Marginpar on page x moved.
What does this mean? Is that a problem? How can I fix the corresponding problem?
23
votes
1answer
397 views
Is there a \die command?
Is there a command that generates the error or warning of my choice? I'm planning to put it in an \ifthenelse, so it can't be a syntax error.
21
votes
1answer
395 views
microtype + siunitx and \micro - mysterious warnings
This code
\documentclass{scrreprt}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage{microtype}
\usepackage{siunitx}
\begin{document}
\SI{10}{\micro\metre}
\end{document}
produces these ...
20
votes
6answers
946 views
Which (La)TeX IDE(s) have good warning/error analysis
We are successfully using LaTeX at our company to create our product documentation. We have a custom document class that works OK and we currently use TeXnicCenter to edit our documentation. "We" are ...
18
votes
3answers
2k views
Multiple pdfs with page group included in a single page warning
I updated TexLive to the Ubuntu Quantal version (2012.20120611-4) and I suddenly got this warning:
PDF inclusion: multiple pdfs with page group included in a single page
This is a minimal example ...
18
votes
2answers
4k views
How to remove the warnings “Font shape `OT1/cmss/m/n' in size <4> not available” and “Size substitutions with differences” in beamer?
LaTeX Font Warning: Font shape `OT1/cmss/m/n' in size <4> not available
LaTeX Font Warning: Size substitutions with differences
I am using the files from ...
17
votes
2answers
291 views
Is there a way to force LaTeX to issue a warning if a figure is never referenced? [duplicate]
Possible Duplicate:
How can I get LaTeX to warn about unreferenced figures?
In my document I have several figures, most of which I created references for (using \ref{}) immediately after I ...
17
votes
2answers
183 views
How to decypher font shape warnings?
Often one gets warnings of the form (example)
LaTeX Font Warning: Font shape `T1/qcs/m/sl' in size <10.95> not available
(Font) Font shape `T1/qcs/m/it' tried instead on input line ...
16
votes
3answers
1k views
Can I have the \overfullrule rule colored in pdfLaTeX?
I know that I can use \overfullrule=5pt to get overfull lines marked with a black marker. I am using pdfLaTeX. Is there a way I can get this marker or something similar in magenta instead?
16
votes
1answer
11k views
`h' float specifier changed to `ht' warning when not attempting to specify a float
I'm new to LaTeX and trying to understand the reason why I'm getting the warning:
`h' float specifier changed to `ht'
I'm not attempting to change the float property of anything - the warning is ...
16
votes
1answer
3k views
Underfull \hbox in bibliography
I am getting lots of "Underfull \hbox" warnings that point to the *.bbl file. It looks like these messages appear only when URLs are very long, like in the below example:
@techreport{nistguidesec,
...
16
votes
3answers
5k views
how to suppress “Underfull \vbox (badness 10000) … while \output is active”?
when using an inflexible document class, one is often faced
with the warning
Underfull \vbox (badness 10000) has occurred while \output is active []
on pages that contain no display math.
in ...
15
votes
3answers
6k views
Warning: There were multiply-defined labels
I got a "LaTeX Warning: There were multiply-defined labels", and I know what it means but my document is pretty big and it has various files. So, how can I find the multiply-defined label?
I am ...
15
votes
1answer
540 views
Is it possible to make LaTeX mark overfull boxes in the output?
Is it possible to make LaTeX mark overfull boxes in the output, for example by drawing red rectangles in the PDF where the boxes overflow? The purpose -- to more easily "see" where the problems are in ...
14
votes
3answers
2k views
Is there any way to generate custom errors/warnings in LaTeX?
I want something like \ifmmode\else\GenerateWarning{The command \backslash uzuka is supported only in math mode.}\fi, which is supposed to generate a warning "The command \uzuka is supported only in ...
14
votes
2answers
6k views
How to put a line-break in section heading?
I have some section headings occupying two lines and I'm not satisfied with the way XeLaTeX breaks the heading. If I manually add \\ the output looks fine, but I get the following warning:
[hyperref] ...
14
votes
1answer
1k views
What is the command to highlight bad boxes in pdf?
I seem to remember a command to show bad boxes in a PDF when using latex, but googling is not helping me to remember.
How can I show bad boxes in my PDF?
14
votes
1answer
113 views
Floats shortly after they have been \ref-erenced; Warn otherwise
In my thesis I have a many floating figures which I then reference using \ref. I use flafter to ensure that they do not appear before they are defined in the source code (See Force floats to be ...
13
votes
2answers
4k views
Question mark instead of citation number
I've browsed the forums and found a number of posts that have addressed this issue, but none of the solutions seem to work for me. I have the following script that I just copied from the bibtex home ...
13
votes
6answers
1k views
Use latexmk to filter the log file
I am usually using latexmk in a split shell with my code on the left and latexmk in -pvc mode on the right.
When using some packages which themselves load a lot of other packages (think beamer) the ...
13
votes
2answers
208 views
Persuading (la)tex “silently to go beyond the envelope of 'good taste' ” to avoid an overfull hbox
My understanding, based on reading this website, is that (la)tex performs at most three passes when trying to typeset a paragraph: one based on \pretolerance, one based on \tolerance, and one based on ...
13
votes
3answers
805 views
How can I word-wrap LaTeX warning/error output?
This question led to a new package:
hardwrap
In writing error messages and warnings for a package/class, I find it a pain to manually insert \MessageBreaks so that words don't get cruelly ...
13
votes
1answer
1k views
XeTeX warning: Redefining document command \oldstylenums with arg. spec. 'm'
I updated my MiKTeX to the newest version a few days ago, and after this when I compile documents with the fontspec package included, there's a warning. For example:
\documentclass{article}
...
12
votes
1answer
2k views
What do these font-shape warnings mean?
When I am compiling my document with pdflatex I get the following errors:
LaTeX Font Warning: Font shape `OT1/cmr/m/n' in size <5.5> not available
(Font) size <5> substituted ...
12
votes
1answer
4k views
pdfTeX warning (ext4): destination with the same identifier (nam e{page.1}) has been already used, duplicate ignored
I get the following warning
pdfTeX warning (ext4): destination with the same identifier (nam
e{page.1}) has been already used, duplicate ignored
when compiling the following document:
...
12
votes
1answer
1k views
KOMA warning about ToC
Lately I've noticed the following warning from KOMA when I compile my documents:
Class scrreprt Warning: \float@addtolists detected!
(scrreprt) You should use the features of package ...
11
votes
1answer
178 views
Suppress xparse message “Redefining document command”
I am trying to suppress messages of the form:
*************************************************
* LaTeX warning: "xparse/redefine-command"
*
* Redefining document command \MyMacro with arg. spec. ...
11
votes
2answers
2k views
Is there really something wrong with using the caption package for \ContinuedFloat?
In my question How to create an unnumbered algorithm with a caption?, a nice solution was suggested using \ContinuedFloat, from the caption package. However, when I use it, I get:
Package caption ...
11
votes
1answer
2k views
How to suppress overfull hbox warnings up to some maximum?
I want LaTeX not to give warnings for overfull hboxes up to some maximum of say 2 pts. How to achieve this?
10
votes
2answers
185 views
All (La)TeX warnings and errors
For testing purposes, I am looking for a comprehensive list of all errors and warnings that TeX, and LaTeX can output. I don't mean errors and warnings produced by all packages, as this would give an ...
10
votes
2answers
381 views
Temporarily increase the limit on space size?
I often see those warnings about "overfull \hbox" when I'm preparing my document. Because the document is still in the early stage, I see no point in correcting them on-the-spot - since the document ...
10
votes
2answers
457 views
Microtype warning with lmodern package and KOMA-script
With a simple document
\documentclass{scrreprt}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{microtype}
\usepackage{lmodern}
\begin{document}
\chapter{Test test test}
...
10
votes
1answer
3k views
How can I get rid of the LaTeX warning: Float too large for page?
In my document, I have figures that have a rather long caption. The code I use to include them looks like this:
\begin{figure}
\begin{center}
\includegraphics[width=\textwidth]{../fig.pdf}
...
10
votes
1answer
307 views
nag l2tabu caption/label checking versus \subcaptionbox
The nag package used with the l2tabu option complains when \label is used in a float without following a \caption. Unfortunately, it does not understand that the first argument of \subcaptionbox from ...
10
votes
1answer
12k views
Undefined citation warnings
When I compile my document I get warnings of the form:
Package natbib Warning: Citation `xxxxx' on page y undefined on input line
z.
This problem does fix itself eventually when the compiler ...
10
votes
1answer
110 views
Why does the compiler keeps telling me (forever) to rerun because labels have changed?
I have a LaTeX paper (multifile setup, using \input{} statements) that , since a few days ago, keeps telling me at each compile (both with pdflatex or latex):
LaTeX Warning: Label(s) may have ...
9
votes
1answer
4k views
How do you effectively debug overfull \hbox warnings?
I still haven't found out how to effectively solve Overfull \hbox (0.80913pt too wide) has occurred while \output is active warnings.
For instance, this piece of latex generates such a warning and I ...
9
votes
2answers
127 views
Silent problems: bugs that do not result in an error or warning
If you do not use the inputenc package and have non-ascii characters in your source, this does not generate a error or warning. It does generate a
Missing character: There is no ▒ in font cmr7!
...
9
votes
1answer
3k views
Why does amsmath print a warning about a foreign command?
I was wondering what was the cause of the following warning message with the specific \usepackage used below:
Using the following:
Preamble
\documentclass[amssymb,twocolumn,aps]{revtex4}
...
9
votes
1answer
4k views
Warning with footnotes: “name{Hfootnote.xx} has been referenced but does not exist”
First, some general details about my document: I'm using the scrbook class and the hyperref package. The document is split up into different source files (though this fact should not matter in this ...
9
votes
2answers
2k views
Is it possible to use hyperref, subfigure, and memoir together?
I asked a question about how to use subfigure with memoir. I got some great tips, but now pdflatex is making all subfigure hyper-refs point to the first couple subfigures. It also gives me this ...
9
votes
1answer
144 views
How to raise a LaTeX warning from within Lua code?
I want to raise a warning from within Lua code. With advice from the LuaTeX wiki and LaTeX 2𝜀 for class and package writers, I arrived at the following (working) solution:
\documentclass{article}
...
8
votes
2answers
939 views
ragged2e: “newcommands” option produces “underfull \hbox” warnings
The ragged2e package provides the commands \Centering, \RaggedRight and \RaggedLeft for setting ragged text while allowing hyphenation. The package offers a newcommands option that sets the standard ...
