%input latex \pagelayout{dover,twoside} \documentstyle{report} \typein{Enter \string\doparts\space to TeX part.} \makeindex %% Use to create index file. % EMACS MACROS %&t&{\tt #}& %&i&\index{#}& %&r&\ref{#} on page \pageref{}& %&h&\hbox#& %%{ BRACE MATCHING HACK \def\\{{\char'134}} \def\^{{\char'136}} \def\~{{\char'024}} \def\LATEX{L\kern-.3em\raise.8ex\hbox{a}T\kern -.1667em\lower.424ex\hbox{E}\kern-.125em X} \def\TEX{T\kern-.1667em\lower.424ex\hbox{E}\kern-.125em X} \def\PRETEX{Pre\kern-.1em\TEX} %The following comes from Mike Spivak %\def\AmSTeX{$\cal A$\kern-.1667em\lower.5ex\hbox{$\cal M$}\kern-.125em %%%% $\cal S$-\TeX} you need closing comment! % TEMPORARY DEFINITIONS \def\knuth{The \TEX\ book} \theoremdef{guess}{Conjecture} \localtheoremdef{hunch}{Hunch} \sametheoremdef{hunch}{suspicion}{Suspicion} \text \pagenumbering{roman} \begin{titlepage} \vspacer{1.3in} \begin{center} {\Tit The \LATEX{} Document}\CRSP{.15in} {\Tit Preparation System}\CRSP{.4in} {\tit Leslie Lamport}\CRSP{.6in} Preliminary Edition \CR \today\CRSP{.5in} For \LATEX{} version 0.9, \TEX{} version 0.95 \end{center} \vspace{1in} \begin{center} Copyright {\tensy \char'175} 1983 \end{center} \end{titlepage} \pagestyle{plain} \thispagestyle{empty} \vspacer{20pt} \noindent {\tit \bf Preface} \vspace{15pt} This is a preliminary version of the \LATEX{} manual. In the final version, this preface will thank the people who have helped me. You can become one of those people by giving me your comments and suggestions on any of the following topics. \begin{itemize} \item This manual. Let me know about any errors, omissions, or things that aren't clear. \item \LATEX{} itself. I expect that you'll inform me if there are any bugs, but I'd also like to know about anomalies like poor page breaking, and if there's any other feature you think \LATEX{} should provide. \item Document styles. Eventually, after the Document Designer's Handbook is written, any complaints about the available document styles will receive the standard response: ``If you don't like them, design your own.'' Until then, I'm making a one time only offer to do it for you. \end{itemize} To all you early users of \LATEX, good luck. Those who come after you will appreciate your efforts. \vspace{.15in} \noindent \begin{flushleft} Menlo Park\CR February 1983 \end{flushleft} \newpage \pagestyle{myheadings} \head{Contents} \thispagestyle{empty} \tableofcontents \newpage \thispagestyle{empty} \vspacer{1pt} \newpage \thispagestyle{plain} \label{listoffigures} \listoffigures \newpage \pagestyle{plain} \pagenumbering{arabic} \vspacer{20pt} \noindent {\tit \bf Introduction} \tablemainentry{toc}{Introduction} \vspace{15pt} \LATEX{}\footnote{The official pronunciation\index{pronunciation} of \LATEX{} is {\it lah-teck}, though some people pronounce it {\it lay-tecks}.} is a document preparation system implemented as a macro package for the \TEX{}\index{tex} typesetting system. You can start using \LATEX{} even if you know nothing about \TEX. If you aren't doing fancy mathematics and are willing to leave all the formatting decisions to \LATEX, then you need never learn about \TEX. However, sooner or later you'll probably want to do some more sophisticated things that require the power of raw \TEX. When that happens, you'll have to read the \TEX{} manual \cite{knuth@tex82}, which is henceforth referred to as \knuth. \LATEX{} was inspired by Brian Reid's\index{reid,brian} Scribe\index{scribe} system \cite{reid@popl},\cite{reid@scribe@manual}. A primary goal of a document preparation system like Scribe or \LATEX{} is to separate the specification of the document's logical structure from the specification of how it is to be printed. For example, the citation\index{citation} ``\cite{reid@popl}'' two sentences ago is logically a reference to a bibliography entry. To produce it, I typed something like \hbox{\tt \\cite\{reid-scribe\}}\index{!cite} and \LATEX{} produced the citation with the appropriate format. Had I specified a different format for this document, \LATEX{} might have produced something like ``[Reid80]''. Chapter~1 gives the basic information you need to get started using \LATEX. You should read it and the introduction to Chapter~2 now; you can read other parts as you need them. This manual is extensively cross-referenced and has a comprehensive index, so it's easy learn about \LATEX{} bit by bit. (For example, see Section~\ref{cross-references} on page~\pageref{cross-references} for an explanation of how to do cross-referencing.) Chapter~2 describes how you tell \LATEX{} the structure of your document---for example, how to tell it that something is an item in an enumerated list. Telling \LATEX{} the document structure isn't always enough, and you may have to give it more explicit instructions; Chapter~3 describes how to do that. Chapter~4 tells you about some of the finer points of document preparation, like generating page headings and producing a table of contents. Chapter~5 describes the automatic cross-referencing and citation features of \LATEX, as well as how to split your document in parts that can be processed separately. Most \LATEX{} users will be content with the standard document styles that have been provided. However, after becoming proficient with \LATEX{} and learning something about \TEX, more adventurous users will want to modify these styles, or create completely new ones. \LATEX{} will at first have only a limited range of document styles; I am counting on sophisticated users to create new styles for others to use. A companion manual to this one will describe how to design your own document style. \TEX{} is a typesetting system; it knows nothing about document structure. \LATEX{} works by translating commands that specify the logical structure of a document into \TEX's typesetting commands---for example, translating \hbox{\tt \\cite\{reid-scribe\}} into \cite{reid@scribe@manual}. Being implemented on top of \TEX{} gives \LATEX{} certain advantages and disadvantages. The main advantage is that the user has all the power of \TEX{} at his disposal. If \LATEX{} doesn't do something for him, he can do it himself with \TEX{}. The main disadvantage is that \LATEX{} doesn't do some things it should because \TEX{} wasn't designed to support those features. Another disadvantage is that \TEX's error detection mechanism knows nothing about \LATEX, so mistakes that you make using \LATEX{} commands may cause \TEX{} to generate rather inscrutable error messages. When casually reading this manual, it may seem like the names ``\TEX{}'' and ``\LATEX{}'' have been used interchangably. However, the careful reader will note that I have tried to distinguish between standard \TEX{} and those features provided by \LATEX{}. This distinction is important only when you read \knuth{}, where you will learn that most of the \LATEX{} commands you have grown to know and love are not part of standard \TEX. \newpage \pagestyle{headings} \include{man1} \include{man2} \include{man3} \include{man4} \include{mana} \newpage \pagestyle{plain} \vspacer{20pt} \tablemainentry{toc}{Bibliography} \begin{bibliography}{9.} \bibitem{knuth@tex82} Knuth, Donald \hbox{E}. \knuth. \bibitem{mcckay}McKay, Brendan \hbox{D}. A Macro Menagerie. {\it TUGboat 2}, 2, 46-49. \bibitem{reid@popl} Reid, Brian \hbox{K}. A High Level Approach to Computer Document Formatting. {\it Proc. Seventh Annual ACM Symp.\ on the Principles of Prog.\ Lang.\/}, January 1980, 24-31. \bibitem{reid@scribe@manual} Reid, Brian K. and Walker, Janet \hbox{H}. {\it SCRIBE Introductory User's Manual\/}, second edition, July 1979. \bibitem{emacs} Stallman, Richard \hbox{M}. EMACS, the Extensible, Customizable, Self-documenting Display Editor. {\it Proceedings of the ACM SIGPLAN SIGOA Symposium on Text Manipulation}, Portland, Oregon, June 1981, 147-156. \end{bibliography} \input manual.ind \theend