Latex
Latex
Renzo
April 13, 2007
What is LATEX?
LATEXis the way that nerdy mathematicians enjoy the most to write their math.
Although at the beginning it may seem an unexplicably complicated way of
doing things, after you acquire some famliarity it is extremely extremely convenient, as it allows you to:
1. Organize the format automatically.
2. Write formulas in a simple and effective way.
3. Make referencing automatic.
This is an example of a file containing a bit of info to get you guys started.
Compiling
With LATEXyou dont immediately see the output of what you write. You have to
write a text file that gives the computer instructions for what you want to see.
Then you compile the text file. This can be done with line base commands if you
like to be old fashioned, but nowadays there are a lot of TEX-text editors that
automate all these functions (LATEXshop for Mac, TeXnic Center for windows
for example, but many many others).
With ordinary writing, things are pretty much the same. The only difference
is that spacing is done automatically. So it doesnt matter if you put one space
between two words or lots of it, or if you just hit enter and go down a line.
To start a new paragraph what you need to do is skip a line.
Here is what you do if you want to write boldface, italic, or in this funky
style that I think is Cool.
Math
To write math you have some options. If you just want to put some math in a
text line, like a0 230 , then you just put your math between two dollar signs.
X
xn
i=0
n!
= ex
(1)
For a list of commands corresponding to math symbols, just use Google! Ill
try to put as many in as I can here, but I am sure Ill be missing some.
Environments
4.1
Itemize
this is good
for lists.
4.2
Enumerate
1. this is good
2. for numbered lists.
4.3
Description
4.4
Array
First off, arrays are in math mode, so always sandwich your command with
dollars.
Then, remember you need to specify what kind of delimiters you want and
the number of columns.
You separate entries with & , and rows with two backslashes.
Here is how it goes:
2
a1
b1
c1
a0
b0
c0
2
being irrational.
Amazing Theorem 2 (A deep result in number theory)
1+1=2
(true also in characteristic 2, except in that case it is usually stated as 1+1 = 0.)
Shortcuts
One of the cool feaures of LATEXis that if you use something a lot, you can create
a personalized command for it. I did this with LATEX. See how it is done in the
preamble! (Important, commands always start with a backslash!)
Referencing
Figures
For figures, you need first off to get yourself a pdf (or eps) file. Then you
include it in your text by using the syntax below. It is sometimes tricky to tell
LATEXwhere the figure should go, and most of the times LATEXwill decide not
3
to listen to you. The one thing you can try is use the commands [h],[t],[b] for
here, top, or bottom of the page (or combinations like [hb] = try to put
it here, but if you cant put it at the bottom of the page...)... however that only
increases the possibility - and does not guarantee - that LATEXmight listen to
you.