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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

C<br />

Error Messages<br />

Errors are bound <strong>to</strong> be made at times during the preparation of a long<br />

L AT E X document. The mistakes can be of various kinds, from simple typing<br />

errors for comm<strong>and</strong> names <strong>to</strong> forgetting that some comm<strong>and</strong>s must be<br />

paired or giving an incorrect syntax for a complicated comm<strong>and</strong>.<br />

Errors during the L AT E X processing produce a list of messages on the<br />

moni<strong>to</strong>r, which appear <strong>to</strong>tally incomprehensible <strong>to</strong> the beginner. Even the<br />

advanced user can have difficulty figuring out a particular error message.<br />

However, these messages contain information about fundamental structures<br />

that can aid an experienced T E X programmer <strong>to</strong> see much deeper<br />

in<strong>to</strong> the heart of the problem.<br />

In addition, the error messages contain useful information even for<br />

the beginner. It is the purpose of this chapter <strong>to</strong> explain some of these<br />

messages that can be of assistance <strong>to</strong> non-programmers.<br />

Error messages are written both <strong>to</strong> the computer moni<strong>to</strong>r <strong>and</strong> <strong>to</strong> the<br />

processing transcript file, with extension .log. Examine this file if the<br />

messages on the moni<strong>to</strong>r went by <strong>to</strong>o fast.<br />

C.1 Basic structure of error messages<br />

Error messages have two sources: those from L AT E X <strong>and</strong> those from the<br />

underlying T E X program. The L AT E X messages are often followed by T E X<br />

messages since L AT E X operates at a higher level.<br />

C.1.1 T E X error messages<br />

We start with a simple error as an example.<br />

\documentclass{article}<br />

\begin{document}<br />

The last words appear in \txetbf{bold face}.<br />

\end{document}<br />

401

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

Saved successfully!

Ooh no, something went wrong!