| 1 |
%% file: TXSintro.doc - Manual Intructions - TeXsis version 2.18 |
| 2 |
%% @(#) $Id: TXSintro.doc,v 18.2 2000/05/17 00:19:46 myers Exp $ |
| 3 |
%======================================================================* |
| 4 |
% (C) Copyright 1989, 1992, 1997 by Eric Myers and Frank E. Paige |
| 5 |
% This file is a part of TeXsis. Distribution and/or modifications |
| 6 |
% are allowed under the terms of the LaTeX Project Public License (LPPL). |
| 7 |
% See the file COPYING or ftp://ftp.texsis.org/texsis/LPPL |
| 8 |
%======================================================================* |
| 9 |
\ifx\undefined\meta \texsis\input TXSdocM.doc\input Manual.aux\draft\fi |
| 10 |
|
| 11 |
|
| 12 |
\section{Introduction \label{sect.intro}} |
| 13 |
|
| 14 |
\TeX\ is a computer typesetting system created by Donald |
| 15 |
Knuth\index{Knuth, Donald} of Stanford University. |
| 16 |
It is described succinctly in his book, \TeXbook.\reference{Knuth} |
| 17 |
D.E.~Knuth, |
| 18 |
\booktitle{The \TeX book} (Addison-Wesley, 1986) |
| 19 |
\endreference |
| 20 |
\TeX\ is especially well suited for typesetting technical material |
| 21 |
containing mathematical symbols and equations. |
| 22 |
As a result, \TeX\ in one form or another is now used by almost all |
| 23 |
mathematicians and most physicists for writing scientific papers and |
| 24 |
related documents. |
| 25 |
The journals of the American Mathematical Society are typeset with |
| 26 |
\TeX, and the journals of the American Physical Society now accept |
| 27 |
manuscripts written in \TeX. |
| 28 |
A large number of physicists also distribute preprint |
| 29 |
(pre-publication) versions of their papers, known as ``e-prints,'' via |
| 30 |
an archive server based at the Los Alamos National Laboratory. |
| 31 |
\TeX\ in some form is the {\it de facto} standard for such papers. |
| 32 |
|
| 33 |
There are actually several different ``flavors'' of \TeX. |
| 34 |
One of the reasons that \TeX\ is so useful is that it has a powerful |
| 35 |
macro capability --- to the point that \TeX\ can actually be |
| 36 |
considered to be a computer ``language.'' |
| 37 |
As a result, there now exist a number of macro packages, or |
| 38 |
``formats,'' which either extend or replace the basic \TeX\ language |
| 39 |
of \TeXbook\ (which is commonly known as ``plain'' \index{plain TeX@{plain |
| 40 |
\TeX}}\TeX) by adding more advanced features or commands appropriate |
| 41 |
to more specialized types of documents. |
| 42 |
\TeXsis\ is one such macro package, designed specifically (but not |
| 43 |
exclusively) for physicists. |
| 44 |
\TeXsis\ provides the author with many useful commands with are either |
| 45 |
not available or not easily implemented by the casual user of plain |
| 46 |
\TeX. |
| 47 |
Among these are the ability to automatically number equations, |
| 48 |
references, figures and tables, and to refer to these ``numbered'' |
| 49 |
objects easily by symbolic names which are independent of the values |
| 50 |
assigned to them when the document is processed. |
| 51 |
\TeXsis\ makes it easy to change the type style or size, and to |
| 52 |
control other aspects of the formatting. |
| 53 |
\TeXsis\ also includes special macros for printing in double columns |
| 54 |
and for constructing ruled tables. |
| 55 |
It is easy with \TeXsis\ to produce more specialized documents, such |
| 56 |
as letters, referee reports, and memoranda, or even a thesis or a book. |
| 57 |
|
| 58 |
Many physicists are now familiar, at least by name, with another |
| 59 |
\TeX-based format, the REVTEX package from the American Physical |
| 60 |
Society. |
| 61 |
REVTEX is in turn based on a more general format, known as |
| 62 |
\LaTeX.\reference{LaTeX} |
| 63 |
L. Lamport, |
| 64 |
\booktitle{\LaTeX, A Document Preparation System}, |
| 65 |
(Addison-Wesley, 1985) |
| 66 |
\endreference |
| 67 |
\index{latex@{\LaTeX}} |
| 68 |
Unfortunately, \LaTeX\ differs from plain \TeX\ in several subtle but |
| 69 |
important ways, so that documents created using plain \TeX\ cannot be |
| 70 |
used with \LaTeX. |
| 71 |
In contrast, \TeXsis\ is functionally a superset of plain TeX, so that |
| 72 |
everything described in \TeXbook\ will also work in \TeXsis\ (even |
| 73 |
though the internal workings of some of the plain \TeX\ macros have |
| 74 |
actually been modified). |
| 75 |
This means that \TeXsis\ documents can also make use of just about any |
| 76 |
of the many smaller macro packages designed for use with plain \TeX, |
| 77 |
or an author can make use of the methods and tricks described in |
| 78 |
\TeXbook. |
| 79 |
Unfortunately, it also means that REVTEX and \TeXsis\ are mutually |
| 80 |
incompatible. |
| 81 |
|
| 82 |
\bigskip |
| 83 |
|
| 84 |
This manual explains how to use \TeXsis. |
| 85 |
Since it is a user's guide, it makes no attempt to describe how the |
| 86 |
various macros work; for that one should consult the source code, |
| 87 |
which is extensively commented. |
| 88 |
However, we do assume that the reader is already familiar with |
| 89 |
\idx{plain} \TeX. |
| 90 |
If you don't already know plain \TeX, a good way to learn is to read |
| 91 |
and work through the exercises in |
| 92 |
\booktitle{A Gentle Introduction to \TeX} by Michael~Doob.\reference{Doob} |
| 93 |
M.~Doob, |
| 94 |
\booktitle{A Gentle Introduction to \TeX\ (A Manual for Self-Study)}, |
| 95 |
(\TeX\ User's Group, Providence). |
| 96 |
Also available as a plain \TeX\ file from CTAN or at\n |
| 97 |
\URL{ftp://ftp.texsis.org/pub/tex/gentle.tex} |
| 98 |
\endreference |
| 99 |
The source file for this (called {\tt gentle.tex}) is available on the |
| 100 |
\TeXsis\ ftp server, or on CTAN. |
| 101 |
You can also start by reading the \TeXbook, paying special attention |
| 102 |
to chapters~1-10 and 16-19. |
| 103 |
The manual by Spivak\reference{Spivak} |
| 104 |
M.~Spivak, |
| 105 |
\booktitle{PC\TeX\ User's Guide.} |
| 106 |
(Documentation distributed with PC\TeX) |
| 107 |
\endreference |
| 108 |
which accompanies PC\TeX\ (which is an implementation of \TeX\ for the |
| 109 |
IBM~PC) is also recommended. |
| 110 |
|
| 111 |
|
| 112 |
%==================================================* |
| 113 |
\subsection{Overview of this Manual} |
| 114 |
|
| 115 |
The main topics covered in the several sections of this manual |
| 116 |
\linkname{page.itemize}{are}:\tag{page.itemize}{\folio} |
| 117 |
\itemize \clump |
| 118 |
\itm \Sect{intro} -- |
| 119 |
An introduction to \TeXsis\ and the philosophy behind the macros, and |
| 120 |
instructions on how to begin using \TeXsis. |
| 121 |
|
| 122 |
\itm \Sect{fonts} -- |
| 123 |
Selecting sizes and fonts of type, choosing single, double, or triple |
| 124 |
spacing, and automatically handling quotation marks. |
| 125 |
|
| 126 |
\itm \Sect{eqns} -- |
| 127 |
Automatic numbering of equations, automatic sizing of parentheses and |
| 128 |
brackets, and special symbols for physics equations. |
| 129 |
|
| 130 |
\itm \Sect{refs} -- |
| 131 |
Defining new references, for which numbers are assigned automatically, |
| 132 |
citing references already so defined, and making a list of references. |
| 133 |
|
| 134 |
\itm \Sect{labels} -- |
| 135 |
Labeling things like section numbers, figures, items in an outline, or |
| 136 |
page numbers, and referring to them in other parts of the document. |
| 137 |
|
| 138 |
\itm \Sect{papers} -- |
| 139 |
Producing a complete paper, including the title page, chapters, |
| 140 |
sections, subsections, and appendices, a table of contents, running |
| 141 |
headlines, and an index. |
| 142 |
How to use the "master file" concept to split a long document into |
| 143 |
several files. |
| 144 |
|
| 145 |
\itm \Sect{figures} -- |
| 146 |
Producing automatically numbered tables and figures and producing |
| 147 |
ruled tables. |
| 148 |
|
| 149 |
\itm \Sect{envmt} -- |
| 150 |
Displaying text in special ways using "environments," including those |
| 151 |
for centered lines, lists of things, listings of computer programs, and |
| 152 |
\TeX\ examples. |
| 153 |
|
| 154 |
\itm \Sect{fmts} -- |
| 155 |
Using specialized layouts for journals and conference proceedings, and |
| 156 |
creating new ones. |
| 157 |
|
| 158 |
\itm \Sect{letr} -- |
| 159 |
Typing letters, form letters, memos and referee reports. |
| 160 |
|
| 161 |
\itm \Sect{dcol} -- |
| 162 |
Producing double column output. |
| 163 |
|
| 164 |
\itm \Sect{misc} -- |
| 165 |
Miscellaneous macros for ignoring text and doing various other useful |
| 166 |
things, and a checkpoint/restart feature for printing very long documents. |
| 167 |
|
| 168 |
\enditemize |
| 169 |
|
| 170 |
Several appendices are also included to deal with more technical |
| 171 |
matters. |
| 172 |
% |
| 173 |
Appendix~A explains how to install \TeXsis\ on Unix computers, on a |
| 174 |
VAX/VMS system, and on an IBM~PC. It also explains how to customize |
| 175 |
\TeXsis\ for your own installation. Appendix~B lists changes that have |
| 176 |
been made to \TeXsis\ in recent revisions. Appendix~C lists the fonts |
| 177 |
usually available with \TeXsis. |
| 178 |
|
| 179 |
Two examples of \TeXsis\ documents are included in the standard |
| 180 |
distribution. The first, in the file |Example.tex|, is a short |
| 181 |
(3~pages) example of a physics paper typeset with \TeXsis. The second |
| 182 |
is this manual itself, which was also created with \TeXsis. If you |
| 183 |
would like to look at the files used to create the Manual, the master |
| 184 |
file is called |TXSdoc.doc|, and the various sections of the document |
| 185 |
are in files with names of the form |TXS|$xxxx$|.doc|. For those who |
| 186 |
are comfortable programming in \TeX\ it is possible to extract specific |
| 187 |
macros from the \TeXsis\ source code or to modify or even rewrite these |
| 188 |
macros. The source code is contained in files with names of the form |
| 189 |
|TXS|$xxxx$|.tex|. We have tried wherever possible to include |
| 190 |
at least somewhat |
| 191 |
illuminating comments in the source code. |
| 192 |
|
| 193 |
%======================================================================* |
| 194 |
|
| 195 |
\subsection{Getting Started \label{sect.start}} |
| 196 |
|
| 197 |
Assuming that \TeXsis\ has been properly installed on your computer, |
| 198 |
using \TeXsis\ is as simple as using \TeX\ or \LaTeX. |
| 199 |
To run \TeX\ with the \TeXsis\ format to process a manuscript file |
| 200 |
called |myfile.tex| you simply give the command: |
| 201 |
\index{running@{running \TeXsis}} |
| 202 |
\def\HeadText{Getting Started} |
| 203 |
\TeXexample |
| 204 |
texsis myfile |
| 205 |
|endTeXexample |
| 206 |
As with any version of \TeX, the output from \TeX\ is put in the file |
| 207 |
|myfile.dvi|, which you may view on your computer terminal or print on |
| 208 |
a laser printer or other output device. |
| 209 |
|
| 210 |
Since \TeXsis\ is a superset of plain \TeX, any file that you |
| 211 |
process with plain \TeX\ can be processed with \TeXsis, and you will |
| 212 |
get the same results. |
| 213 |
In particular, plain \TeX\ defaults to 10~pt.\ type and single spacing |
| 214 |
between lines, and so does \TeXsis\ unless you initialize its special |
| 215 |
features. |
| 216 |
But since you are probably using |
| 217 |
\TeXsis\ because of these special features, you should begin your |
| 218 |
manuscript file with the initialization command |
| 219 |
\TeXexample |
| 220 |
\texsis |
| 221 |
|endTeXexample |
| 222 |
\noindent |
| 223 |
One of the things this command does is switch the output to 12~pt.\ |
| 224 |
type, double spaced, which generally looks better on a small laser |
| 225 |
printer. Commands that allow you to change the type size or line |
| 226 |
spacing yourself are described in \Sect{fonts}. More |
| 227 |
specialized initialization commands may be used in place of (or |
| 228 |
in addition to) the |\texsis| command when you are using a |
| 229 |
pre-defined document layout. These are described in |
| 230 |
\Sect{fmts}. |
| 231 |
|
| 232 |
Note also that just as in plain \TeX\ there is a difference |
| 233 |
between uppercase and lowercase letters in control word names. |
| 234 |
Thus if you say \cs{TeXsis} instead of \cs{texsis} you won't |
| 235 |
initialize any special features but you will print out |
| 236 |
``\TeXsis.'' |
| 237 |
|
| 238 |
|
| 239 |
%==================================================* |
| 240 |
\newpage |
| 241 |
\subsection{Some Philosophy \label{sect.philosophy}} |
| 242 |
|
| 243 |
In designing the \TeXsis\ macros we have tried to follow some basic |
| 244 |
guidelines which we feel make \TeXsis\ a more useful tool. |
| 245 |
It may help you while learning about \TeXsis\ to know what these |
| 246 |
guidelines are, especially if you are already familiar with other |
| 247 |
\TeX\ macro packages. |
| 248 |
However, you can skip this section without missing anything important |
| 249 |
to a first time user. |
| 250 |
|
| 251 |
The guidelines we have followed are: \index{philosophy} |
| 252 |
|
| 253 |
\itemize |
| 254 |
\itm |
| 255 |
\TeXsis\ is a superset of plain \TeX, so that anything |
| 256 |
you can't do in \TeXsis\ (and even those that you can) can be done |
| 257 |
with plain \TeX\ instead. \index{compatibility!with@{with plain \TeX}} |
| 258 |
This also means that \TeXsis\ is compatible with most plain |
| 259 |
\TeX\ macro packages, such as |epsf.tex| and |index.tex|, or other |
| 260 |
specialized macro sets.\Footnote\dag{We cannot completely guarantee this |
| 261 |
because other macro packages might define macros with the same names as |
| 262 |
used by \TeXsis, although we have taken several steps to prevent this |
| 263 |
kind of conflict.} Even if some of the plain macros are actually |
| 264 |
redefined in \TeXsis, they are required to still behave as described in |
| 265 |
\TeXbook. |
| 266 |
|
| 267 |
\itm |
| 268 |
When a \TeXsis\ macro is similar to a plain \TeX\ macro it should, when |
| 269 |
possible, have a similar name and syntax. \index{macros!syntax} Thus |
| 270 |
\cs{Footnote} in \TeXsis\ is used exactly like \cs{footnote} in plain |
| 271 |
\TeX, and in ruled tables ``|&|'' and ``|\cr|'' can be used exactly as |
| 272 |
they are in an |\halign|. |
| 273 |
|
| 274 |
\itm |
| 275 |
Macro names\index{macros!names} will be short and simple, but |
| 276 |
descriptive. |
| 277 |
Almost all plain \TeX\ macro names are in lower case for ease of |
| 278 |
typing, so macros with names containing uppercase letters can |
| 279 |
immediately be recognized as being a part of |
| 280 |
\TeXsis\ (instead of plain \TeX). As a general rule though we try |
| 281 |
to use lowercase for frequently used macro names for ease of typing. |
| 282 |
|
| 283 |
\itm |
| 284 |
There are two different ways in which arguments may be passed to |
| 285 |
macros, depending on the length of the argument. |
| 286 |
Short arguments are simply enclosed in curly brackets, the way \TeX\ |
| 287 |
usually handles macro arguments. |
| 288 |
For example, the title of a section is created by the |
| 289 |
\cs{section}\index{macros!arguments} command with, |
| 290 |
\TeXexample |
| 291 |
\section{The nonlinear $\sigma$-model} |
| 292 |
|endTeXexample |
| 293 |
Longer amounts of text (many lines), and text which is considered to be |
| 294 |
in a special environment, is enclosed between commands of the |
| 295 |
form ``|\thing|'' and ``|\endthing|.'' An abstract, for example, is |
| 296 |
typed as, |
| 297 |
\TeXexample |
| 298 |
|smalltt\abstract |
| 299 |
A mechanism for total confinement of quarks, similar to that |
| 300 |
of Schwinger, is defined which requires the existence of |
| 301 |
Abelian or non-Abelian gauge fields. It is shown how ... |
| 302 |
\endabstract |
| 303 |
|endTeXexample |
| 304 |
This is similar to the |\begin{thing}| {\ttdots} |\end{thing}| |
| 305 |
construction in \LaTeX\ \index{latex@{\LaTeX}} but is slightly easier |
| 306 |
to type.\Footnote*{And, more importantly, is compatible with plain |
| 307 |
\TeX---|\end| signals the end of a document in plain \TeX, |
| 308 |
and shouldn't be used for anything else. However, if you really want |
| 309 |
to type |\begin{thing}| and |\end{thing}| you can do so, and \TeXsis\ |
| 310 |
will understand it to mean |\thing| and |\endthing|.} |
| 311 |
The reason for preferring this way of delimiting text or arguments is |
| 312 |
that for very long pieces of material it is much easier to look for |
| 313 |
something like |\thing| and |\endthing| than it is to count curly brackets. |
| 314 |
|
| 315 |
\itm |
| 316 |
The fundamental purpose of \TeXsis\ is to typeset printed words and |
| 317 |
\hbox{equations} on a physical piece of paper. |
| 318 |
In other ``document mark-up'' languages, including SMGL, HTML, and |
| 319 |
\LaTeX, the primary goal is to create in the computer an abstract |
| 320 |
representation of a document which is independent of the way the |
| 321 |
document is printed. |
| 322 |
It can be useful to treat a document this way, and so we sometimes use |
| 323 |
similar ideas in \TeXsis, but this approach can also conflict with the |
| 324 |
goal of typesetting the document the way an author or editor would |
| 325 |
choose. |
| 326 |
Whenever there is such a conflict we will err on the side of |
| 327 |
``typesetting'' rather than on the ``abstract representation'' of the |
| 328 |
document. |
| 329 |
|
| 330 |
\itm |
| 331 |
The source code defining the macros should be available to the users, |
| 332 |
so that those who want to see how something is done can do so, and |
| 333 |
those who want to make their own modifications can do so. |
| 334 |
The macro definitions should include sufficient comments that |
| 335 |
(usually) someone with only a little bit of experience with \TeX\ can |
| 336 |
understand what is going on. |
| 337 |
Also, macros which perform similar functions and work together should |
| 338 |
be kept in a single file, but separate parts of the whole package |
| 339 |
should be kept in separate files. |
| 340 |
When possible these individual files should be usable on their own |
| 341 |
with plain \TeX. |
| 342 |
For example, it is possible to use just the double column macros of |
| 343 |
\TeXsis\ by saying |\input TXSdcol.tex|, and the ruled table macros |
| 344 |
can be used in plain |
| 345 |
\TeX\ by saying |\input TXSruled.tex|. |
| 346 |
|
| 347 |
\enditemize |
| 348 |
|
| 349 |
|
| 350 |
|
| 351 |
\newpage |
| 352 |
|
| 353 |
% >>> EOF TXSintro.doc <<< |