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.

416 Appendix C. Error Messages<br />

! <strong>LaTeX</strong> Error: Bad \line or \vec<strong>to</strong>r argument.<br />

The first argument of a \line or \vec<strong>to</strong>r comm<strong>and</strong> specifies the angle<br />

of the line or arrow. This message states that the selected angle entries<br />

are invalid. See pages 293–294.<br />

! <strong>LaTeX</strong> Error: Bad math environment delimiter.<br />

L AT E X has encountered a math switch comm<strong>and</strong> in the wrong mode: either<br />

a \[ or \( comm<strong>and</strong> in math mode or the corresponding \] or \) in<br />

normal text mode. Either the math switches have been improperly paired<br />

or some braces {...} are incorrect.<br />

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

L AT E X has encountered an \end comm<strong>and</strong> without a corresponding \begin<br />

of the same name. This may be due <strong>to</strong> a typing mistake in the name of the<br />

environment, or <strong>to</strong> the omission of a previous \end comm<strong>and</strong>. A good<br />

way <strong>to</strong> avoid this error is always <strong>to</strong> enter the \end comm<strong>and</strong> immediately<br />

after the \begin, inserting the actual environment text with the edi<strong>to</strong>r in<br />

between the two. This is especially useful for long, nested environments.<br />

It also reduces the risk of typing the environment name incorrectly in the<br />

\end comm<strong>and</strong>.<br />

! <strong>LaTeX</strong> Error: Can be used only in preamble.<br />

Many comm<strong>and</strong>s may only be called within the preamble. These include<br />

\documentclass, \usepackage, \nofiles, \includeonly, \makeindex,<br />

\makeglossary, <strong>and</strong> several others. Certain comm<strong>and</strong>s that only have<br />

meaning within class or package files, such as \ProvidesClass <strong>and</strong><br />

\ProvidesPackage (Section D.2.1), as well as many \Declare.. <strong>and</strong><br />

\Set.. comm<strong>and</strong>s are also only allowed in the preamble. If one of these<br />

comm<strong>and</strong>s is issued after \begin{document}, this message is printed.<br />

! <strong>LaTeX</strong> Error: Comm<strong>and</strong> ... invalid in math mode.<br />

A comm<strong>and</strong> has been issued in math mode that only makes sense in<br />

text mode, such as \item or \circle. The font declarations \itshape,<br />

\bfseries, <strong>and</strong> so on, also produce this error in math mode, since the<br />

math alphabet comm<strong>and</strong>s \mathit, \mathbf should be used instead.<br />

! <strong>LaTeX</strong> Error: Comm<strong>and</strong> ... already defined.<br />

The user has tried <strong>to</strong> redefine an existing structure with one<br />

of \newenvironment, \newcomm<strong>and</strong>, \newtheorem, \newsavebox,<br />

\newfont, \newlength, \newcounter, or \DeclareMathAlphabet.<br />

Either a different name must be selected or, in the case of comm<strong>and</strong>s<br />

<strong>and</strong> environments, the \renew... version must be employed. (Note that<br />

when an environment named sample is defined, the comm<strong>and</strong>s \sample<br />

<strong>and</strong> \endsample are also created.)

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

Saved successfully!

Ooh no, something went wrong!