28.03.2013 Views

Guide to LaTeX (4th Edition) (Tools and Techniques

Guide to LaTeX (4th Edition) (Tools and Techniques

Guide to LaTeX (4th Edition) (Tools and Techniques

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

C.2. Some sample errors 411<br />

The last can easily occur when a L AT E X file is <strong>to</strong> be read in with \input or<br />

\include, but is mistakenly entered directly with the L AT E X program call.<br />

If a file with the text<br />

This file has no preamble.<br />

is put directly in<strong>to</strong> the L AT E X processing, the following message appears<br />

on the moni<strong>to</strong>r:<br />

! <strong>LaTeX</strong> Error: Missing \begin{document}.<br />

See the <strong>LaTeX</strong> manual or <strong>LaTeX</strong> Companion for explanation.<br />

Type H for immediate help.<br />

...<br />

l.1 T<br />

his file has no preamble.<br />

?<br />

with the accompanying help message after typing H 〈return〉:<br />

You’re in trouble here. Try typing <strong>to</strong> proceed.<br />

If that doesn’t work, type X <strong>to</strong> quit.<br />

?<br />

One sees from the error message that L AT E X has discovered a mistake<br />

on reading the very first letter of the text. The help message is also not<br />

very encouraging. There is no point trying <strong>to</strong> continue the processing<br />

with 〈return〉. Rather one should s<strong>to</strong>p it with X or E right away, since<br />

nothing useful can be achieved here.<br />

Even when the above example file contains the environment<br />

\begin{document}<br />

This file has no preamble.<br />

\end{document}<br />

it is not possible <strong>to</strong> carry out a proper processing. The T E X error message<br />

now printed is<br />

! <strong>LaTeX</strong> Error: The font size comm<strong>and</strong> \normalsize is not defined:<br />

there is probably something wrong with the class file.<br />

See the <strong>LaTeX</strong> manual or <strong>LaTeX</strong> Companion for explanation.<br />

Type H for immediate help.<br />

...<br />

l.1 \begin{document}<br />

?

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!