\appendix \chapter{Document Styles}\label{document styles} \section{The {\tt report} Document Style}\index{report document style} This style contains all the commands described in this document, and all the page styles described in Section~\ref{pagestyle}. It has two document style \index{document style options}\index{options}options, \index{heada}\hbox{\tt heada} and \index{headb}\hbox{\tt headb}, which change the \hbox{\tt headings}\index{headings page style} page style. Exactly what these page styles produce is likely to change as the style is refined. There's an \hbox{\tt index}\index{index environment} for producing an index\index{index} like the one in this manual. Each entry is typed as it appears, with a blank line between entries. The command \hbox{\tt \\indexspace}\index{!indexspace} leaves extra vertical space between entries; it is typically used when the next entry begins with new first letter. \section{The {\tt preprt} Document Style}\index{preprt} This style contains all the commands described in this document except for the {\tt \\chapter}\index{!chapter} command. There are no chapters; sections are the largest division. The \hbox{\tt preprt} document style has all the page styles described in Section~\ref{pagestyle}. \chapter{\TEX{} and \LATEX{} Commands} \def\oldknuth{Knuth's book \TEX{} {\it and Metafont}} \section{Math Symbols}\label{symbol-list} Below is a preliminary list of all the ``mathematical'' symbols available in \LATEX. Most of them can be used only in one of the math environments.\vspacer{.2in} \begin{center} \begin{tabular}{ll|ll|ll} {\tt \\aleph} &$\aleph$ & {\tt \\alpha} &$\alpha$ \cr {\tt \\and} &$\and$ & {\tt \\angle} &$\angle$ & {\tt \\approx} &$\approx$ \cr {\tt \\ast} &$\ast$ & {\tt \\beta} &$\beta$ & {\tt \\bot} &$\bot$ \cr {\tt \\Box} &$\Box$ & {\tt \\bullet} &$\bullet$ & {\tt \\cap} &$\cap$ \cr {\tt \\cdot} &$\cdot$ & {\tt \\cdotp} &$\cdotp$ & {\tt \\chi} &$\chi$ \cr {\tt \\circ} &$\circ$ & {\tt \\colon} &$\colon$ & {\tt \\colon} &$\colon$ \cr {\tt \\cup} &$\cup$ & {\tt \\dagger} &$\dagger$ \cr {\tt \\dashv} &$\dashv$ & {\tt \\ddagger} &$\ddagger$ & {\tt \\delta} &$\delta$ \cr {\tt \\Delta} &$\Delta$ & {\tt \\diamond} &$\diamond$ & {\tt \\Diamond} &$\Diamond$ \cr {\tt \\div} &$\div$ & {\tt \\Dotbox} &$\Dotbox$ & {\tt \\doteq} &$\doteq$ \cr {\tt \\ell} &$\ell$ & {\tt \\emptyset} &$\emptyset$ & {\tt \\epsilon} &$\epsilon$ \cr {\tt \\equiv} &$\equiv$ & {\tt \\equiv} &$\equiv$ & \cr {\tt \\eta} &$\eta$ & {\tt \\exists} &$\exists$ & {\tt \\forall} &$\forall$ \cr {\tt \\gamma} &$\gamma$ & {\tt \\Gamma} &$\Gamma$ & {\tt \\geq} &$\geq$ \cr {\tt \\gg} &$\gg$ & {\tt \\imag} &$\imag$ & {\tt \\imath} &$\imath$ \cr {\tt \\implies} &$\implies$ & {\tt \\in} &$\in$ & {\tt \\infty} &$\infty$ \cr {\tt \\inter} &$\inter$ & {\tt \\interc} &$\interc$ & {\tt \\intop} &$\intop$ \cr {\tt \\iota} &$\iota$ & {\tt \\jmath} &$\jmath$ & {\tt \\join} &$\join$ \cr {\tt \\kappa} &$\kappa$ & {\tt \\lambda} &$\lambda$ & {\tt \\Lambda} &$\Lambda$ \cr {\tt \\land} &$\land$ & {\tt \\langle} &$\langle$ & {\tt \\lbrack} &$\lbrack$ \end{tabular} \end{center} \newpage \begin{center} \begin{tabular}{ll|ll|ll} {\tt \\lceil} &$\lceil$ & {\tt \\ldotp} &$\ldotp$ & {\tt \\Leadsto} &$\Leadsto$ \cr {\tt \\leftarrow} &$\leftarrow$ & {\tt \\Leftarrow} &$\Leftarrow$ & {\tt \\leftrightarrow} &$\leftrightarrow$ \cr {\tt \\Leftrightarrow} &$\Leftrightarrow$ & {\tt \\leq} &$\leq$ & {\tt \\lfloor} &$\lfloor$ \cr {\tt \\ll} &$\ll$ & {\tt \\lneg} &$\lneg$ & {\tt \\lnot} &$\lnot$ \cr {\tt \\lor} &$\lor$ & {\tt \\lsh} &$\lsh$ \cr {\tt \\meet} &$\meet$ & {\tt \\midset} &$\midset$ & {\tt \\mp} &$\mp$ \cr {\tt \\mu} &$\mu$ & {\tt \\munion} &$\munion$ & {\tt \\nabla} &$\nabla$ \cr {\tt \\neq} &$\neq$ & {\tt \\not} &$\not$ & {\tt \\Not} &$\Not$ \cr {\tt \\notin} &$\notin$ & {\tt \\nu} &$\nu$ & {\tt \\odiv} &$\odiv$ \cr {\tt \\odot} &$\odot$ & {\tt \\odotprod} &$\odotprod$ & {\tt \\ointop} &$\ointop$ \cr {\tt \\omega} &$\omega$ & {\tt \\Omega} &$\Omega$ & {\tt \\ominus} &$\ominus$ \cr {\tt \\oplus} &$\oplus$ & {\tt \\oprod} &$\oprod$ & & \cr {\tt \\osum} &$\osum$ & {\tt \\otimes} &$\otimes$ & {\tt \\parallel} &$\parallel$ \cr {\tt \\partial} &$\partial$ & {\tt \\perp} &$\perp$ & {\tt \\phi} &$\phi$ \cr {\tt \\Phi} &$\Phi$ & {\tt \\pi} &$\pi$ & {\tt \\Pi} &$\Pi$ \cr {\tt \\pm} &$\pm$ & {\tt \\prec} &$\prec$ & {\tt \\preceq} &$\preceq$ \cr {\tt \\prime} &$\prime$ & {\tt \\prod} &$\prod$ & {\tt \\psi} &$\psi$ \cr {\tt \\Psi} &$\Psi$ & {\tt \\rangle} &$\rangle$ & {\tt \\rbrack} &$\rbrack$ \cr {\tt \\rceil} &$\rceil$ & {\tt \\real} &$\real$ & {\tt \\rfloor} &$\rfloor$ \cr {\tt \\rho} &$\rho$ & {\tt \\rightarrow} &$\rightarrow$ & {\tt \\Rightarrow} &$\Rightarrow$ \cr {\tt \\rsh} &$\rsh$ & {\tt \\setminus} &$\setminus$ & {\tt \\sigma} &$\sigma$ \cr {\tt \\Sigma} &$\Sigma$ & {\tt \\sim} &$\sim$ & {\tt \\simeq} &$\simeq$ \cr {\tt \\smallint} &$\smallint$ & {\tt \\sqcap} &$\sqcap$ & {\tt \\sqcup} &$\sqcup$ \cr {\tt \\sqsubseteq} &$\sqsubseteq$ & {\tt \\squnion} &$\squnion$ & {\tt \\subset} &$\subset$ \cr {\tt \\subseteq} &$\subseteq$ & {\tt \\succ} &$\succ$ & {\tt \\succeq} &$\succeq$ \cr {\tt \\sum} &$\sum$ & {\tt \\supset} &$\supset$ & {\tt \\supseteq} &$\supseteq$ \cr {\tt \\tau} &$\tau$ & {\tt \\theta} &$\theta$ & {\tt \\Theta} &$\Theta$ \cr {\tt \\times} &$\times$ & {\tt \\top} &$\top$ & {\tt \\union} &$\union$ \cr {\tt \\uplus} &$\uplus$ & {\tt \\upsilon} &$\upsilon$ & {\tt \\Upsilon} &$\Upsilon$ \cr {\tt \\varepsilon} &$\varepsilon$ & {\tt \\varphi} &$\varphi$ & {\tt \\varpi} &$\varpi$ \cr {\tt \\vartheta} &$\vartheta$ & {\tt \\vdash} &$\vdash$ & {\tt \\wp} &$\wp$ \cr {\tt \\xi} &$\xi$ & {\tt \\Xi} &$\Xi$ & {\tt \\zeta} &$\zeta$ \cr {\tt \\lhd} &$\lhd$ & {\tt \\rhd} &$\rhd$ & {\tt \\unlhd} &$\unlhd$ \cr {\tt \\unrhd} &$\unrhd$ \end{tabular} \end{center} \section{Delimiters}\label{delimiter-list} The list of \TEX{} delimiters can be found on page 75 of \oldknuth{}. \section{Operators}\label{operators} Below is a preliminary list of operators available in \LATEX. \begin{center} \begin{tabular}{ll|ll|ll} {\tt \\cos} &$\cos$ & {\tt \\cot} &$\cot$ & {\tt \\csc} &$\csc$\cr {\tt \\det} &$\det$ & {\tt \\exp} &$\exp$ & {\tt \\gcd} &$\gcd$\cr {\tt \\inf} &$\inf$ & {\tt \\lg} &$\lg$ & {\tt \\lim} &$\lim$\cr {\tt \\liminf} &$\liminf$ & {\tt \\limsup} &$\limsup$ & {\tt \\ln} &$\ln$\cr {\tt \\log} &$\log$ & {\tt \\max} &$\max$ & {\tt \\min} &$\min$\cr {\tt \\Pr} &$\Pr$ & {\tt \\sec} &$\sec$ & {\tt \\sin} &$\sin$\cr {\tt \\sup} &$\sup$ & {\tt \\tan} &$\tan$ \end{tabular} \end{center} \section{A Compleat Command List} \label{command-list} This will contain a list of all command sequences not starting with {\tt \@} that are defined by \TEX{}, \LATEX{}, or ordinary document styles and page layouts. Until then, you can use the following procedure to see if a command name is defined. Prepare a manuscript file containing everything up to and including the \hbox{\tt \\text} command, but with nothing else---in particular, without a \hbox{\tt \\theend} command. After reading this file, \TEX{} will type a {\tt *} and wait for you to type something to it. To determine if the command name \hbox{\tt \\when} is defined, you type \begin{example} \\show\\when \end{example} \TEX{} will respond with \begin{example} > \\when=undefined. <*> \\show\\when \end{example} which tells you that \hbox{\tt \\when} is not defined, so you're free to use it as a command name. If \TEX{} types anything other than \hbox{\tt undefined} then you should not use that command name. If you type a carriage return at this point, \TEX{} will respond with another {\tt *}, and you can repeat the procedure. Responding to the {\tt *} with \hbox{\tt \\theend} will stop \TEX{}. \chapter{Errors} \label{errors} \index{error messages} \section{\LATEX{} Error Messages} All \LATEX{} error messages begin ``\hbox{\tt ! LATEX ERROR:}''. The following is a list of all such messages, their significance, and what you can try typing into \TEX{} to continue processing your manuscript. \begingroup \parindent0pt {\tt Environment ...\ undefined.}\newline You have a {\tt \\begin} command with an undefined environment name. You've probably misspelled the environment name. Use the {\tt i} option to insert a correct \hbox{\tt \\begin} command. {\tt \\( inside math environment.}\newline {\tt \\[ inside math environment.}\newline {\tt \\( closed with \\].}\newline {\tt \\[ closed with \\).}\newline {\tt Unmatched \\).}\newline {\tt Unmatched \\].}\newline You have messed up your use of beginning and ending math environment delimiters in the indicated way. If you just typed the wrong delimiter, use the {\tt i} option to insert the correct one. If the error was a previously omitted or extra delimiter, just continue and \TEX{} should straighten things out for you. However, the output won't be right. {\tt Only four levels of enumeration allowed.}\newline {\tt Only four levels of itemization allowed.}\newline You have nested things too deeply. \LATEX{} will effectively ignore this {\tt \\begin}, so the {\tt \\item} commands will be interpreted in the enclosing environment. If this will be too disasterous, you could try entering a \hbox{\tt \\begin\{list\}} command (see Section~\ref{list-environment}), but that's getting pretty tricky. If you just continue, \TEX{} will muddle through, producing some funny looking output. {\tt Undefined tab.}\newline {\tt Too many tabs.}\newline {\tt Too many untabs.}\newline {\tt Left tab in middle of line.}\newline {\tt Unmatched \\poptabs.}\newline {\tt Too many \\poptabs.}\newline These messages indicate errors in a \hbox{\tt tabbing} environment. You should be able to continue past them. However, an unmatched \hbox{\tt \\poptabs} may cause a \TEX{} warning at the end about an unmatched \hbox{\tt \\begingroup}. {\tt There's no line here to break.}\newline You have a line breaking command such as \hbox{\tt \\newline} or \hbox{\tt \\goodlinebreak} that doesn't appear in the middle of a paragraph. {\tt Footnotes are not allowed here, sorry.}\newline You're trying to footnote something that \TEX{} can't footnote, such as text inside a table, a figure, or a box. Just continue and the footnote will be ignored. {\tt Figure too big.}\newline You've created a figure that's too big to fit on a page. You should be able to continue with no trouble. {\tt Too many figures on one page.}\newline You have a lot of \hbox{\tt figure} or \hbox{\tt table} environments on the same page. You can continue, but will lose some of the figures. You'll have to change your manuscript file to move some of the figures to the next page. {\tt Counter too big for Alph numbering.}\newline {\tt Counter too big for alph numbering.}\newline \LATEX{} is numbering something for you, probably an enumeration, and has reached a number greater than 26. No immediate corrective action is necessary. {\tt Font not available.}\newline You have specified a type style that's not available in the current type size---{\it e.g.}, with a {\tt \\tt} \index{!tt}command in a \hbox{\tt scriptsize} \index{scriptsize environment}environment. You can continue and the command will be ignored. {\tt There's something wrong with this document style.}\newline There's something fundamentally wrong with the \LATEX{} system that you're using. The problem is probably with the document style. You should report this error to someone. \endgroup \section{\TEX{} Error Messages} The following are a few common \TEX{} error messages. A more complete list will appear in future editions of this manual. \noindent {\tt ! Undefined control sequence.} \newline This probably means that you misspelled a control sequence. You can correct this on-line by using \TEX's {\tt i} option to insert the correctly spelled command sequence. \noindent {\tt ! You can't do that in horizontal mode.}\newline \TEX{} says that you're in horizontal \index{horizontal mode}mode when it's processing text in the middle of a paragraph. \noindent {\tt ! Too many \}'s.} \newline \TEX{} has discovered an unmatched right brace. \noindent {\tt ! TEX capacity exceeded.} \newline When \TEX{} types this, it is about to abort, so you've come to the end of the line in this run. It is usually caused by some error in the manuscript. However, it is possible that you really did exceed \TEX{}'s capacity. If you can't find any mistake, try sticking a {\tt \\newpage}\index{!newpage} command (Section~\ref{pbreak}) before the place where \TEX{} stopped. If the error disappears, then you probably have exceeded \TEX's capacity and should contact someone who can get you a version of \TEX{} with a larger capacity. Meanwhile, keep using {\tt \\newpage} to do your own page breaking at the spot where \TEX{} ran into trouble. \section{Things to Check} If you can't figure out what produced an error message, here are some of things to look for. \begin{itemize} \item Missing or extra braces. \item A missing {\tt \\end} command. \item Unmatched math environment delimiters---{\it e.g.}, {\tt \\(} or {\tt \$}. \end{itemize}