Now you're ready to use the official LATEX sample file. Type the following
sequence of commands to generate a formatted printout of the sample file:
All LATEX styles referenced in Lamport's
LATEX: A Document Preparation System are available.
Along with these
standards, there are contributed style files located in the directory structure
tex_root:[inputs...]. There are three styles which are of
general interest:
While DOLATEX simplifies processing of most documents,
the development cycle for a ``serious'' document, i.e.,
something with a table of contents, a bibliography, and/or an index, will
require more than DOLATEX can provide. For example, the manual page
for Newdissert instructs the user to run LATEX once, BibTEX once,
then LATEX two more times before a complete .dvi file is generated. A
development cycle without the use of DOLATEX involves 4 major steps:
BibTEX is a program that helps generate a source list of
citations. BibTEX is useful if one is writing in an
environment where there are some number of citations made over and over
from a common pool of bibliographic information, i.e., a bibliographic
database. BibTEX on OHSTPY would be useful in this way if reliable
bibliographic databases existed. Your local LATEX expert can show you
how to create a private or group bibliographic database.
BibTEX is invoked by the command
MakeIndex automates the process of indexing. MakeIndex is
invoked by the command
Additional information on LATEX is available online. In particular,
there are some Frequently Asked Questions (FAQ) files located in tex_root:[doc]. To see what
FAQ files are currently available, type the command
The TEX FAQ files, (which concern LATEX users as well), are
compilations of common questions and their answers from the internet news
group comp.text.tex. You can
read this news group directly for a more up-to-date source of information.
If you have any other questions, send electronic mail to
jdw@mps.ohio-state.edu,
or telephone 292-3401.
I'll gladly answer questions from all LATEX users. In particular, contact
me if you are a creating a large document for the first time.
J.D. Wear
19-Jan-1994
1. Introduction
This is the local guide for using LATEX on OHSTPY,
the OSU Physics VMScluster.
This guide shows what local LATEX resources are available
on OHSTPY and how to access
them. This guide is not a tutorial on using LATEX;
there are several good sources for information
on LATEX:
You can buy a copy of either Lamport or Johnstone at
the OSU Bookstore in the Central Classroom Building.
LASER tex_root:[doc]essential.ps SMITH2097
LASER will ask you if you want to duplex your output;
please duplex now and whenever possible to conserve paper.
After you tell LASER to duplex, a two-sided copy of the primer will
print out on the printer in Room 2097 Smith.
2. Running a Sample File
You run LATEX by typing
LATEX <input-file >
where input-file is a text file containing LATEX and TEX commands, with
the extension .tex by convention.
To abort LATEX\
at any time, use the Ctrl-Y interrupt, (press the
Ctrl
and Y keys at the same time). While pressing Ctrl-Y will always halt
processing, it is a drastic method, and should only be used when
you're stuck.
COPY tex_inputs:sample2e.tex */LOG Make a copy of the sample file to your
local directory.
LATEX sample2e Use LATEX to process the sample file,
making a device independent file as
output, with extension .dvi by con-
vention. In this example the output is
named sample.dvi. Other files created
by this step are described in Lamport.
DVIPS sample2e Use the driver DVIPS to convert the
information in sample.dvi to PostScript.
The output of DVIPS is a file with
extension .ps by convention, and in this
example is named sample.ps. There are
other drivers which can be used; they're
described in later sections of this guide.
LASER sample2e.ps SMITH2097 Send the PostScript file to the printer in
Room 2097 Smith. 3. LATEX Styles
A LATEX style defines the form a document will take. For instance, the
book style defines the command \chapter for sectioning, whereas
the article style does not.
4. Available Drivers, or Using the Device-Independent File
A driver is a program which reads the device independent information in a
.dvi file, and creates output to either a file
or display device. Below is a list of available drivers and their capabilities.
All drivers can be invoked by their names; e.g., XDVI is invoked by the
command
XDVI [options] <dvi-file >.
dvips]. Online help is also
available by typing HELP DVIPS.
5. Fonts
We are in the process of providing alternate, (i.e. PostScript), font support for
OHSTPY's installation of LATEX. The PostScript version of this manual is
typeset using New Century Schoolbook. However, as you can see from the varying
appearance of the LATEX logo in this document, the situation isn't prefect.
Interested users should peruse the directory tex_root:[inputs.psnfss].
In this directory you will find the document file psnfss2e.ps; this is
the guide we used to make alternate fonts available.
6. LATEX Development Cycle
For most simple documents, the LATEX development cycle only involves
2 steps:
DOLATEX wasn't mentioned in the description of the processing of
sample2e.tex, in order
to explicitly show the steps involved. DOLATEX will automate
processing for most documents. DOLATEX
takes as input a .tex source file, and generates
output on one of our laser printers.
The command syntax for DOLATEX is
DOLATEX <tex-source-file > [noprint-flag]|[options for XTEX]
If you only give DOLATEX the tex-source-file parameter,
DOLATEX will use LATEX to process the source, then prompt you for
a printer destination. Based on your choice of printer, DOLATEX will
use either the XTEX or DVIPS driver to process the .dvi file,
then send the result to the printer.
If the second parameter is the string NOPRINT, DOLATEX will
use LATEX to process the source,
then exit. If the second parameter is any string except NOPRINT or
the null string,
DOLATEX assumes that the second parameter, plus any following parameters,
are to be used as command options to XTEX.
7. Editors
Any text editor can be used to create a .tex source file. However,
as of this writing, we have only one text editor which has the ability to
check the command syntax of
LATEX: GNU EMACS. If you're familiar with EMACS, then things are
straight-forward. Type the command
EMACS <file-name >.tex
and once in EMACS, type the command
M-x latex-mode
If you're not familiar with
EMACS, then type the command EMACS with no target file name, then
use the online tutorial before you do anything else.
8. Other Programs: BibTEX and MakeIndex
Below are descriptions of a few of the ancillary programs available to
the LATEX user for making a bibliography, making an index, and making
presentation slides in a LATEX environment.
BIBTEX <file-name >
where file-name
is the name of the root file of your document.
MAKEINDEX <file-name >.idx
Before you try this, print the file makeindex.ps, located in
tex_inputs:, for complete instructions.
9. More Information
DIR TEX_ROOT:[DOC]*FAQ*.TXT