Directions for using LaTeX

This document describes the basic principles of LaTeX required for typesetting a CSC 482B/582B project.

If you would like to make a copy of the files used to create a sample LaTeX document (part of a paper on cliques that I was writing) first make a directory to put the files in. In a unix environment:
mkdir sample_latex

Right click on the hyperlinks and use "Save as".

  1. The paper: all.tex
  2. The bibliography file: tan.bib
  3. A sample figure: 8dodec.eps

It should look like this if you successfully typeset it: all.ps

If you want pdf:

ps2pdf all.ps

gives the file all.pdf

If you cut the part below just below the line, it will give a latex document which describes what to do. It is missing some of the header statements such as \begin{document} which you can steal from the file all.tex described above.


In LaTeX, 
you can start a new paragraph by leaving a blank line.
If I want to define a term, I put it {\em in italics}
(em stands for emphasis).
Math symbols, for example $G$, and $n$ and $x^2 + 3$ are enclosed
in dollar signs.
The file tan.bib has the references for the sample paper.
Leave it in the same directory as all.tex.
My favorite algorithm is the one by Balas and Yu \cite{BY86}.
If you want to mention a page and lemma you do it like this
\cite[Lemma 4, p. 92]{BY86}.

The paper \cite{AM70} will get put in the
right place in the references.
If you include figures using {\em xfig},
we need to have encapsulated postscript in portrait mode.

To typeset try: {\em latex all}; {\em bibtex all}; followed
by {\em latex all}; two more times
(only once is needed if you have no undefined references). 
Then type {\em dvips all.dvi}.
You can preview it by typing {\em ghostview all.ps}
or send it to the printer by typing {\em lpr -Ppname all.ps}.
You don't want to send a dvi file to the printer like this.
It makes a big mess.