Hot answers tagged

113

Since this question comes up so often, I thought I'd try to supplement ArTourter's correct answer with a more general comment. What does a question mark mean It means that somewhere along the line the combination of LaTeX and BibTeX has failed to find and format the citation data you need for the citation: LaTeX can see you want to cite something, but ...


76

It is worth noting that TeX doesn't make the value judgements here. The user, or more likely, the class file on behalf of the user, has set constraints on the amount by which boxes may overflow, the amount of stretching allowed on short pages etc. TeX only warns if these user-set constraints are exceeded. So if you are setting difficult material with lots ...


65

TeX puts elements (letters, lines, paragraphs, pictures,...) in boxes and joins them together on pages using glue (put between them) that can stretch, e.g., to make sure that lines are justified, or that pages are filled to their specified height. In the first example, the line is put in a hbox (horizontal box, or box with material arranged horizontally with ...


61

Add \usepackage{lmodern}% http://ctan.org/pkg/lm to your document preamble. Fonts are typically available only in certain sizes/increments. As an example, the basic article document class loads only the following sizes (from size10.clo): \tiny @ 5pt; \scriptsize @ 7pt; \footnotesize @ 8pt; \small @ 9pt; \normalsize @ 10pt; \large @ 12pt; \Large @ ...


59

You did not change the float specifier, LaTeX did that for you and informed you. The reason is, that you provided just the optional placement argument h or !h for a float (figure or table), but the float didn't fit on the current page. It had to be put on top of the next page, corresponding to a placement argument t. I recommend to use at least ht as ...


53

PDF has a feature called "Page Groups" (PDF Reference, section 11.4.7). These descibe transparency effects between top-level objects on one page. When pdfTeX (or LuaTeX or XeTeX) includes a page from a PDF, it converts all pages into "Form XObjects" (section 8.10.1). pdfTeX also converts the Page Groups into /Group entries of the XObjects. The problem now ...


48

Use the package refcheck. It is Intended to check references in a document, looking for numbered but unlabelled equations, for labels which are not used in the text, for unused bibliography references. Note that it checks for labels that are not used in the text but not for tables and figures that are not labelled. Thus if you got a table or figure ...


44

The first answer doesn't really help somebody fix the problem, though. Take a look at: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=overfull and http://en.wikibooks.org/wiki/LaTeX/Formatting#Hyphenation to learn about \tolerance, \pretolerance, and \hyphenpenalty and how they affect the overfull/underfull behavior. Also, if you're fixing the ...


44

General tips Use as few packages as possible, Call the packages in particular order, Use many small documents instead of one big one, Comment your code, Write readable code, Concentrate on the content, not on the appearance. General tips somewhat explained That's because packages tend to conflict and go obsolete. (See How to keep up with packages and ...


43

One way to avoid the problem is to change the (invisible) numbering style of the title page: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[pdfpagelabels]{hyperref} \title{[Title]} \author{N.N.} \begin{document} \pagenumbering{Alph} \begin{titlepage} \maketitle \thispagestyle{empty} \end{titlepage} \pagenumbering{arabic} ...


43

One way to go is to use the todonotes package. Here is a short example of a really basic use of this package (see the documentation for more advanced options): \documentclass{article} \usepackage{todonotes} \begin{document} \listoftodos \section{First section} Here I need to make some more research before writting\todo{More research are needed}. So I ...


39

This message means that a line of your document is too long to fit within the horizontal space on the page, and TeX couldn't find a good way to break it apart. This will usually result in text hanging out past the margin, possibly even running off the side of the page. Common causes are long words without proper hyphenation information and long displayed ...


38

The log message you quoted is a sort of "summary" of earlier, more detailed warnings, telling you exactly which references are undefined/multiply defined. Scroll up through the log file and you should find more detailed messages that look like the one below: LaTeX Warning: Label `foo' multiply defined.


38

As David Carlisle and egreg said, you can use the draft option in most classes. If you wish to do it by hand (for example, you need a final option to check for another package's rendering) or tune it, you can use \overfullrule=1mm in the document preamble.


36

The problem is also reported in a german forum mrunix.de. It might be a bug in the tex distribution (pdftex). The problem happens only when you include multiple pdf pages, created in a specific manner (e.g. by MS Office products), in a single page. Solution: Convert pdf files into ps and then back to pdf using Ghostscript, then the warning will go away ...


36

One of the principles which the LaTeX kernel, and many of the packages outside the kernel, attempt to follow is that documents should look the same (even up to spacing behaviour) when they recompiled on different machines with different package versions, even decades apart. pgfplots is a regularly updated package that frequently adds new features and fixes ...


34

In the abstract it is nearly impossible to give advice on "underfull vbox" messages. They indicate a severe visual problem but often they are acceptable even if the number is high. However, 10000 is a value that should always be visually checked as it means infinitely bad (in TeX's eyes). Here is the general advice that I give in the LaTeX Companion 2ed on ...


32

Yes, you should definitely take care of them. Overfull \hbox messages tell you that some line sticks out over the right margin; Underfull \hbox messages tell you that some line is poorly typeset (or that you've improperly used \\ to leave a vertical space (for example, typing two \\ in a row); Underfull \vbox messages usually tell you that a page is poorly ...


30

The LaTeX system has 3 levels of messages and TeX itself has another 2. LaTeX Error ... stops the processing because something is seriously broken. Sometimes it is possible to continue but in most cases it is best to correct the error directly and reprocess the document LaTeX Warning ... is only displayed on the terminal and in the transcript file and ...


29

Well, I've found a way to show the undefull boxes in the pdf. Nothing is impossible with luatex! The process is a bit convoluted, but it works (at least in my minimal examples). But let see first the results. This is a little example document I prepared which produces a couple of Underfull vboxes. The example \documentclass{article} \usepackage{fontspec} ...


28

Use \texorpdfstring; the first argument can contain (La)TeX code and the second one (text only), will be used for the bookmarks: \section[this is a very long title I want to break manually]{\texorpdfstring{this is a very long title I\\ want to break manually}{this is a very long title I want to break manually}} If a ToC is to be produced and the break ...


28

To avoid messing up anything else in a document, siunitx is set up to avoid loading font packages and the like. As such, it uses its 'own' version of the \textminus and \textmu, and sets up a minimal amount of support for that. However, that confuses microtype, as you've seen (it should be harmless). Loading textcomp 'fixes' this as siunitx then uses the ...


28

The newest libpng update (1.6.2 I believe?) has stricter rules about iCCP and will print this warning every time it finds a png that is broken. This warning can be ignored. Fixes would include: Downgrade to a older version of libpng Install imagemagick and convert all .png files with convert -strip (script below) Maybe even just disable this warning? In ...


27

Tilde/hardspace You definitely want to write for a single figure Figure~\ref{x} (or Fig.\,\ref{x} or whatever) because you don't want the number to split over a line separate from the Figure text. For multiple strings of figure numbers, such as ‘Figures 1, 4, and 7’, the exact placement of the hardspace is somewhat a matter of taste. I usually write ...


27

There are commands \GenericInfo, \GenericWarning and \GenericError. For class and package writers there are also \Class… and \Package… equivalents, described in the clsguide. An example: \documentclass{minimal} \GenericWarning{}{A simple warning} \GenericError{(cont.)\space\space} {This is a\MessageBreak multi-line error\MessageBreak message} ...


27

Loading the strict package prevents using LaTeX's declarations as environments. Loading the fixltx2e package fixes some LaTeX2e errors. fixmath changes LaTeX's default math style to comply with some international standards, specifically regarding Greek letters, see package description. There are many packages improving LaTeX's standard behavior, for example ...


27

Well the following works fine. So you should try to find out what your document is doing differently. \documentclass{scrbook} \usepackage{hyperref} \begin{document} abc\newpage abc\footnote{blub} \end{document} My guess is that you are not following the rule "load hyperref as the last package" and that something is redefining footnote.


27

An underfull hbox means LaTeX couldn't space the line wide enough to fill the entire width of the page, without increasing word spacing beyond the allowed maximum; the opposite is an overfull hbox, where a line couldn't be broken and extends past the edge of the printable area. Usually it happens if you forced a linebreak yourself (with \\), so if you avoid ...


27

Thank you for the answers! I add my own since I found it on the todonotes package author's blog page: http://midtiby.blogspot.com/2008/05/updated-todonotes-package.html?showComment=1215360900000#c7770492295748791763 Your problem with the "Marinpar in page x moved" is probably caused by placing several todonotes on one page. If two todonotes (they are in ...


26

A size substituation of 0.5pt is harmless, but if you want to avoid it load the fix-cm package: \RequirePackage{fix-cm} \documentclass{article} \begin{document} \fontsize{11pt}{12pt}\selectfont $a^2$ \end{document}



Only top voted, non community-wiki answers of a minimum length are eligible