You are on page 1of 1

Terence F.

Clines
AME 20214
19 September 2014
This is a sample le in the text formatter L
A
T
E
X. I require you to use it for the following reasons:
It produces the best output of text, gures, and equations of any program Ive seen.
It is machine-independent. It runs on Linux, Macintosh (see TeXShop), and Windows (see MiKTeX)
machines. You can e-mail ASCII versions of most relevant les.
It is the tool of choice for many research scientists and engineers. Many journals accept L
A
T
E
X sub-
missions, and many books are written in L
A
T
E
X.
Some basic instructions are given below. Put your text in here. You can be a little sloppy about spacing. It
adjusts the text to look good. You can make the text smaller. You can make the text tiny. You can link to web sites
Skip a line for a new paragraph. You can use italics (e.g. Computers are everywhere) or bold. Greek
letters are a snap: , , , . Equations within text are easy A well known equation for a line is
y = mx + b. You can also set aside equations like so:
m
d
2
x
dt
2
=

F, Newtons second law. (1)


Eq. (??) is Newtons second law. References
1
are available. If you have a postscript le, say sample.figure.eps,
in the same local directory, you can insert the le as a gure. Figure ??, below, plots Bessel functions, three
times repeated, so as to demonstrate how to insert multiple plots.
2 4 6 8 10
-0.4
0.4
0.8
J
n
(x)
x
n=1
n=2
n=3
n=4
Bessel functions
0.0
2 4 6 8 10
-0.4
0.4
0.8
J
n
(x)
x
n=1
n=2
n=3
n=4
Bessel functions
0.0
2 4 6 8 10
-0.4
0.4
0.8
J
n
(x)
x
n=1
n=2
n=3
n=4
Bessel functions
0.0
Figure 1: Sample gure plotting Bessel functions, three times repeated.
Running L
A
T
E
X
You can create a L
A
T
E
X le with any text editor (vi, emacs, gedit, etc.). To get a document, you need
to run the L
A
T
E
X application on the text le. The text le must have the sux .tex On a Linux cluster
machine, this is done via the command
latex2pdf file.tex
This generates file.pdf. Alternatively, you can use TeXShop on a Macintosh or MiKTeX on a Windows-based
machine. The .tex le must have a closing statement as below.
1
Lamport, L., 1986, L
A
T
E
X: Users Guide & Reference Manual, Addison-Wesley: Reading, Massachusetts.
1

You might also like