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.

402 Appendix C. Error Messages<br />

Here the comm<strong>and</strong> \textbf has been mistakenly typed as \txetbf. During<br />

the processing, L AT E X assumes that the user wants <strong>to</strong> invoke a T E X<br />

comm<strong>and</strong> \txetbf. Since L AT E X does not know the T E X comm<strong>and</strong>s, it<br />

passes this text on <strong>to</strong> T E X, which then decides that there is no such comm<strong>and</strong><br />

in its reper<strong>to</strong>ire. The following error message is written <strong>to</strong> the<br />

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

! Undefined control sequence.<br />

l.3 The last words appear in \txetbf<br />

{bold face}.<br />

?<br />

The program s<strong>to</strong>ps at this point <strong>and</strong> waits for a response from the user.<br />

This message can be unders<strong>to</strong>od even by beginners. It consists of an error<br />

indica<strong>to</strong>r that starts with an exclamation point !. Here the indica<strong>to</strong>r is:<br />

! Undefined control sequence, meaning that an unknown comm<strong>and</strong><br />

name (control sequence) was the cause of the error. Next comes a pair of<br />

text lines, the first of which is prefixed with l.3, meaning that the error<br />

occurred in ‘line 3’ of the input text. The error itself was encountered<br />

at the last symbol printed in this upper line. The lower line shows the<br />

continuation of the input line being processed when the error was found,<br />

here the words {bold face}. Before continuing, T E X waits for a reaction<br />

from the user, as indicated by the question mark in the last line of the<br />

message.<br />

Entering another ? <strong>and</strong> 〈return〉 as response produces the following<br />

information:<br />

Type <strong>to</strong> proceed, S <strong>to</strong> scroll future error messages,<br />

R <strong>to</strong> run without s<strong>to</strong>pping, Q <strong>to</strong> run quietly,<br />

I <strong>to</strong> insert something, E <strong>to</strong> edit your file,<br />

1 or ... or 9 <strong>to</strong> ignore next 1 <strong>to</strong> 9 <strong>to</strong>kens of input,<br />

H for help, X <strong>to</strong> quit<br />

?<br />

This is a list of the possible user responses:<br />

1. 〈return〉: simply typing the return key tells T E X <strong>to</strong> continue processing<br />

after making an attempt <strong>to</strong> h<strong>and</strong>le the error according <strong>to</strong> some<br />

preprogrammed rules. In the case of an unknown comm<strong>and</strong> name,<br />

the error treatment is <strong>to</strong> ignore it.<br />

2. S scroll mode: T E X continues the processing, writing further error<br />

messages <strong>to</strong> the moni<strong>to</strong>r as they are encountered, but without s<strong>to</strong>pping<br />

for a user response. This is as though 〈return〉 were pressed<br />

after all subsequent errors.<br />

3. R run mode: T E X continues processing as with S, but does not even<br />

s<strong>to</strong>p as it would in scroll mode if the file named in an \input or<br />

\include comm<strong>and</strong> is missing.

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

Saved successfully!

Ooh no, something went wrong!