### Creating your LaTeX E94-010 Technical Note at Jefferson Lab


Do not forget to type the command 'setup tex' in the Unix CUE environment before using LateX.
A global overview of Latex features is available here.

Printing LaTeX in the Common UNIX Environment (CUE)

TeX is available on all the central UNIX systems at Jefferson Lab (AIX, HP-UX, and Solaris). In order to access
TeX, first do setup tex. You can also put this statement in your .login file (if you use the C shell). As this is
UNIX, make certain that you give each command in lower case. .tex is the default file extension so you can omit
this file extension if your file ends in .tex.

First Latex the file:

EX: jlabs2> latex tech_note.tex --> creates tech_note.dvi

Now use the PostScript post-processor to generate a PostScript (.ps) file from your Device Independent file
(.dvi) and then print the file:

jlabs1> dvips tech_note.dvi --> creates tech_note.ps

jlabs1> lp -dprinter tech_note.ps (where printer is a PostScript printer)

A few useful options (do man dvips for further options):

-o filename Name the output file filename

-c num Generate num copies

-C num Collate the num copies

-r Stack pages in reverse order

Inserting PostScript Documents (epsfig)

There are some simple utilities available to allow you to embed a PostScript document in your LaTeX
document. The PostScript document should generally be what is called "encapsulated PostScript" (i.e. select this
format in the program which generates your .ps file); however, most PostScript files will work as long as they
have a "bounding box" comment. To embed the PostScript picture in your LaTeX document, put the following
line near the beginning of your TeX document:

\usepackage{epsfig}

Now use Latex commands like the following to insert your PostScript file using the epsfig package:

\begin{figure}

\begin{center}\mbox{

\epsfig{file=yourpsfile.eps,width=.9\textwidth}

}\end{center}