TeX
amsart or amsbook document
class. As you might guess, it is what the American Mathematical
Society prefers to use to prepare its publications.
AMSLaTeX to TeX
your file, merely use the amsart or amsbook
document class in your file and invoke LaTeX. AMSLaTeX
1.2 is much more robust than previous versions, and we urge
all AMSLaTeX users to upgrade.
.tex
extension (e.g. paper.tex), or else TeX will not be able
to find it. The TeX program then takes this file and compiles it into
a ``.dvi'' file (for ``device-independent''). It is the
.dvi file which gets sent to the screen for previewing,
or is translated into a page-description language like PostScript for
the printer.
paper.tex, type one of the
following, whichever is appropriate (see the
Note on LaTeX) about AMSLaTeX:
tex paper | for Plain TeX |
tex paper.tex | for Plain TeX |
latex paper | for LaTeX |
latex paper | for AMSLaTeX |
amstex paper | for AMSTeX |
.tex extension may be left off.
The resulting .dvi file will be called paper.dvi.
dvi file with xdvixdvi
previewer.
paper.dvi, type: xdvi paper.dvi
U
D
R
L
F, N, RETURN
B, P
G x
s
xdvi's scale n magnification.
R
dvi file
Q
xdvi
While xdvi pops up sized to display a whole page, you may
find this hard to read. I prefer scale 4. Note: the scale is
not linear and has nothing to do with TeX's magstep -
experiment to find your choice.
Clicking the mouse over the page image pops up a little magnified window, which will follow the mouse.
dvi filedvips to
print TeX documents. For more information, see the dvips
section of the Supplemental TeX Documentation binder or
browse the online documentation.
Note that the lpr -d command is not
implemented at MSRI. Printing a dvi file with
lpr can easily fill thousands of pages paper with
garbage, ravaging forests and depleting the ozone layer.
Here are some example dvips commands:
dvips paper
.dvi extension.
dvips paper.dvi
-P flag,
the file paper.dvi will be printed to the printer
specified by the PRINTER environment variable (usually
the one on your floor).
dvips -P2 paper.dvi
paper.dvi is printed on the second floor printer.
dvips -p4 paper.dvi
-p flag (for premier) tells
dvips where to begin printing (in this case, page 4).
dvips -p3 -l6 paper.dvi
-l flag (for last) tells dvips
where to stop. In this example, only pages 3 through 6 are printed.
dvips -p4 -l4 paper.dvi
dvips paper.dvi -o
-o flag tells dvips to write its
output to a file with the same name as the input, but with the
extension .ps, paper.ps here.
dvips -o quux.ps paper.dvi
-o flag is followed by a file name, it
writes its output there. Here, the output is written to a file named
quux.ps
If your dvi file mysteriously stops printing after 30 or 40 pages,
it may be too large for the printer spool directory. By writing an
intermediate PostScript file with the dvips -o command
and printing with the lpr -s command (for more information,
see section on
Printing a UNIX Text File)
you can circumvent this problem:
dvips -o paper.ps paper.dvi;lpr -s paper.ps.
xfig are two good
PostScript drawing programs, and both Maple and Mathematica can
produce graphic output in encapsulated PostScript. Please speak to a
member of the computing staff about getting started with one of the
illustration programs.
There is also a wealth of information on other approaches in the
online documentation,
most notably the LaTeX graphics package and the
metapost system.
Encapsulated PostScript is a structured form of PostScript;
encapsulated PostScript documents conventionally have the extension
.eps. Encapsulated Postscript documents will begin with
%!PS-Adobe-N.N
%%BoundingBox: x y w h
where N.N is a version number, x y are the coordinates
of the lower left corner of the smallest rectangle containing the figure,
and w h are the width and height of the rectangle. Here the units
are PostScript points, which TeX refers to as bp, and which are
1/72 of an inch in size.
To insert a figure into the TeX document, use the epsf.tex
macro package. This is a quite flexible collection of macros which
is rapidly becoming a standard. It is extensively documented in the
dvips section of the Supplemental TeX Documentation
binder, but an example should be enough to get you started:
\midinsert
\centerline {
% This figure is 152.0 bp by 114.0 bp
% \vspace{114.0 bp}
\epsfbox{L52paving.eps}
}
\botcaption{ Figure 3.1 }
The paving of the boundary of $\bold L_{5,2}^*$.
\endcaption
\endinsert
This fragment will insert the encapsulated PostScript figure
L52paving.eps into the middle of a page, centered from
right to left. Its caption will appear below the figure.
I like to include the dimensions of the figure in a TeX comment
so that I can leave a blank space of the appropriate size
for backwards publishers who insist on separate figures.
If you are a LaTeX user,
prepare your letter in
LaTeX as you usually would,
but instead of letter, use msriletter
in the preamble. E.g.:
%&latex
\documentclass[12pt,wide]{msriletter}
...
The file
/local/teTeX/texmf/tex/latex/msri/msriletterSample.tex
contains a template.
If you are a plain TeX user, follow the template
/local/teTeX/texmf/tex/plain/msri/msriletterSample.tex.
Note that the plain TeX macros are more rudimentary than the
LaTeX class file.
To create mailing labels:
%&plain
\input labelmac3
\address{
Addressee 1
Address 1, line 2
% ... up to 4 lines more
}
% ... [as many addresses as you like]
\address{
Addressee N
Address N, line 2
% ... up to 4 lines more
}
\bye
% end of file
There is an example file in
/local/teTeX/texmf/tex/generic/msri/labelExample.tex. The
one thing to watch out for is that you escape &'s; e.g Texas A&M
should be typed Texas A\&M.