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.

406 Appendix C. Error Messages<br />

The response H 〈return〉 at this point leads <strong>to</strong> the same message as<br />

for the first error. A correction with an I entry will not do any good since<br />

the missing \begin{quote} can no longer be inserted ahead of the environment<br />

text. Entering I\begin{quote} will replace the \end{quote}<br />

with \begin{quote}, but that does not solve the real problem. The best<br />

response now is <strong>to</strong> type 〈return〉 so that the comm<strong>and</strong> \end{quote} is<br />

ignored <strong>and</strong> the processing continues.<br />

Now both the faulty \begin{qoute} <strong>and</strong> correct \end{quote} comm<strong>and</strong>s<br />

are removed <strong>and</strong> the processing takes place as if the quote environment<br />

had never been in the input text at this point.<br />

If the typing error qoute had been made in the \end instead of in the<br />

\begin comm<strong>and</strong>, the error message would have been:<br />

! <strong>LaTeX</strong> Error: \begin{quote} on input line 3 ended by \end{qoute}<br />

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

Type H for immediate help.<br />

...<br />

l.5 \end{qoute}<br />

?<br />

The previous explanations should be enough for the user <strong>to</strong> underst<strong>and</strong><br />

what is now being said. The error indica<strong>to</strong>r here is<br />

\begin{quote} on input line 3 ended by \end{qoute}<br />

<strong>and</strong> the last pair of lines indicate that the problem is in line 5 <strong>and</strong> that the<br />

troublesome comm<strong>and</strong> is \end{qoute}. The obvious thing <strong>to</strong> do now, <strong>and</strong><br />

the H message encourages this conclusion, is <strong>to</strong> make a correction with<br />

I\end{quote}. However, now a new message appears on the moni<strong>to</strong>r:<br />

! Extra \endgroup.<br />

\endgroup<br />

l.5 \end{qoute}<br />

?<br />

With the exception of the last pair beginning with l.5, this makes no<br />

sense at all. The error indica<strong>to</strong>r ! Extra \endgroup is seemingly meaningless.<br />

That this is a T E X error message <strong>and</strong> not a L AT E X one is hardly any<br />

compensation.<br />

The frustrated user is not really <strong>to</strong> blame. The response was perfectly<br />

reasonable even if it was wrong. Only experience could say that the<br />

best action at that point was <strong>to</strong> have just pressed 〈return〉. The quote<br />

environment is closed off anyway, although any special actions associated<br />

with \end{quote} would be left off.<br />

The help message at this point is

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

Saved successfully!

Ooh no, something went wrong!