# Directions for using LaTeX

This document describes the basic principles of LaTeX required for typesetting a CSC 422/522 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

Then fire up your favorite web browser and get the example files. The files you want to copy are:

1. The paper: Myrvold.tex
2. The bibliography file: Myrvold.bib
I got as many of the .bib entries as I could by using copy and paste from Mathscinet. This avoids a lot of typing!
3. A sample figure: Myrvold_8dodec.eps
4. It should look like this if you successfully typeset it:
Myrvold.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 Myrvold.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 Myrvold.bib has the references for the sample paper.
Leave it in the same directory Myrvold 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.

A new way to typeset is to use pdflatex which has an advantage
of allowing the use of .pdf files as pictures.
To typeset like this:

1. pdflatex Myrvold.tex
2. bibtex Myrvold
3. pdflatex Myrvold.tex
4. You need to do this one more time if you have undefined references:
pdflatex Myrvold.tex
5. This will create the file Myrvold.pdf and it also created a new picture file Myrvold_8dodec-eps-converted-to.pdf from Myrvold_8dodec.eps.

Here is the old way of doing it using the latex command:

1. latex Myrvold.tex
2. bibtex Myrvold
3. latex Myrvold.tex
4. You need to do this one more time if you have undefined references:
pdflatex Myrvold.tex
5. Then to convert the .dvi file to a postscript file (.ps):
dvips Myrvold.dvi
6. If I want to make a .pdf file, I type
ps2pdf Myrvold.ps
to make the file Myrvold.pdf.