0% found this document useful (0 votes)
78 views37 pages

Latex

This document is a LaTeX seminar presentation that introduces LaTeX including how to pronounce it, what it is, how to get it, how to edit documents in LaTeX, and the basics of writing documents in LaTeX such as hello world, images, drawings, tables, equations, Greek letters, resumes, and research papers.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views37 pages

Latex

This document is a LaTeX seminar presentation that introduces LaTeX including how to pronounce it, what it is, how to get it, how to edit documents in LaTeX, and the basics of writing documents in LaTeX such as hello world, images, drawings, tables, equations, Greek letters, resumes, and research papers.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 37

Welcome!

LaTeX Seminar
brought to you by
Women in Computer Science
CSGSO
presented by
Tanya L. Crenshaw
September 29th, 2004
at the University of Illinois at Urbana-Champaign.
http://netles.uiuc.edu/tcrensha/www
LaTeX Seminar p.1/37
Outline

How do you say it?

What is it?

How do you get it?

How do you edit it?

How do you write hello world?

What are the basics?


LaTeX Seminar p.2/37
How do you say it?
The approach to pronouncing LaTeX has its own area
of research.

Lah-tek

Lay-tek

Lay-tex
LaTeX Seminar p.3/37
What is it?
LaTeX is a typesetting system designed for technical
and scientic document preparaion. Leslie Lamport
created LaTeX based on Donald E. Knuths TeX
typesetting language.

0im
0<j<n
P(i, j)
p

i=1
q

j=1
r

k=1
a
ij
b
jk
c
ki
LaTeX Seminar p.4/37
Getting started...
There are three items you need to use LaTeX:

LaTeX itself.

An editor.

A viewer.
LaTeX Seminar p.5/37
How do you get it?
Google for LaTeX, and youll nd a number of websites
dedicated to this typesetting language. Here are some
websites to help you obtain LaTeX:

TeX on Mac OS X: http://www.rna.nl/tex.html

LaTex on Windows: http://www.miktex.org/


LaTeX is also available on the CSIL machines if you
arent interested in installing it on your own machine.
LaTeX Seminar p.6/37
Other helpful tidbits to acquire
Style les are used to import additional format, macro,
and design information into a document. Helpful styles
can be found at Professor Jeff Ericksons website:
http://compgeom.cs.uiuc.edu/ jeffe/pubs/latex.html
LaTeX Seminar p.7/37
Hello World
\documentclass[11pt]{article}
\begin{document}
Hello World!
\end{document}
LaTeX Seminar p.8/37
Hello World
From .tex le to .pdf le:
% latex helloworld.tex
% dvips helloworld.dvi -t letter
-o helloworld.ps helloworld.dvi
% ps2pdf helloworld.pdf
% open helloworld.pdf
LaTeX Seminar p.9/37
Major LaTeX Concepts

Enumerating,

Images,

Drawings,

Equations,

Tables,

Research Papers,

Resume.
LaTeX Seminar p.10/37
Enumeration
\begin{itemize}
\item What is it?
\item How do you get it?
\item How do you edit it?
\item How do you write hello world?
\item What are the basics?
\end{itemize}
LaTeX Seminar p.11/37
Enumeration
\begin{enumerate}
\item What is it?
\item How do you get it?
\item How do you edit it?
\item How do you write hello world?
\item What are the basics?
\end{enumerate}
LaTeX Seminar p.12/37
Images
Figure 1. This is a gure.
LaTeX Seminar p.13/37
Images
\documentclass[11pt]{article}
\usepackage{jeffe,psfig}
\begin{document}
\begin{figure}[h]
\centerline{\psfig{figure=figure.eps
,width=2in}}
\begin{center}
\caption{This is a figure.}
\end{center}
\end{figure}
\end{document}
LaTeX Seminar p.14/37
Drawings
word
a

_
-

LaTeX Seminar p.15/37
Drawings
\setlength{\unitlength}{0.2in}
\begin{picture}(16,12)
\put(0,0){\framebox(16,12)[tl]{word}}
\put(4.75,6.75){a}
\put(5,7){\circle{10}}
\put(5,7){\circle{3}}
\put(12,7){\circle{5}}
\put(12,7){\vector(1,0){2.5}}
\put(12,7){\line(0,1){1}}
\put(5,5){\circle*{1}}
\put(12,5){\circle*{4}}
\end{picture}
LaTeX Seminar p.16/37
Drawings
`
_
2
`
_
1
`
_
3
`
_
4
`
_
_
_
`

-
?
-

?
S
c
a,b , b
a

Figure 2. Nondeterministic Finite Automaton


LaTeX Seminar p.17/37
Tables
Table 1. A simple test table
i E
i
1 0.02
2 0.03
3 0.04
LaTeX Seminar p.18/37
Tables
\begin{table}[htbp]
\caption{A simple test table}
\begin{center}
\begin{tabular}{|r|c|} \hline
$i$ & $E_i$ \\ \hline
1 & 0.02 \\
2 & 0.03 \\
3 & 0.04 \\ \hline
\end{tabular}
\end{center}
\end{table}
LaTeX Seminar p.19/37
Equations
f(x) +g(x) =
_
1 +x
2
LaTeX Seminar p.20/37
Equations
\[
f(x) + g(x) = \sqrt{1 + x2}
\]
or
$f(x) + g(x) = \sqrt{1 + x2}$
LaTeX Seminar p.21/37
Equations
_

A
C
B
y
+
N

i=1
a
i
_
LaTeX Seminar p.22/37
Equations
\[
\left( \sqrt{\frac{AC}{B_y}} +
\sum_{i=1}N a_i \right)
\]
LaTeX Seminar p.23/37
Equations
_
_
_
a b c
d e f
g h i
_
_
_
LaTeX Seminar p.24/37
Equations
\[
\framebox{$ \left( \begin{array}{ccc}
a & b & c \\
d & e & f \\
g & h & i \\
\end{array} \right) $}
\]
LaTeX Seminar p.25/37
Conditional Equations
f(x) =
_
z y if y > 0
z +y otherwise
LaTeX Seminar p.26/37
Conditional Equations
\[
f(x) = \left\{ \begin{array}{ll}
z-y & \mbox{if $y>0$} \\
z + y & \mbox{otherwise}
\end{array}
\right.
\]
LaTeX Seminar p.27/37
Arrays of Equations
A =
_
f(x)
g(x)
dx
=
_
_
g(x)
f(x)
_
1
dx
LaTeX Seminar p.28/37
Arrays of Equations
\begin{eqnarray*}
A &=& \int \frac{f(x)}{g(x)} dx \\
&=& \int \left( \frac{g(x)}{f(x)} \right) {}{-1}
\end{eqnarray*}
LaTeX Seminar p.29/37
Greek Letters




LaTeX Seminar p.30/37
Greek Letters
\[
\begin{array}{cccc}
\alpha \beta \gamma \delta \\
\Gamma \Delta \Theta \theta \\
\Lambda \epsilon \pi \rho \\
\chi \psi \omega \Phi
\end{array}
\]
LaTeX Seminar p.31/37
Resumes
http://netles.uiuc.edu/tcrensha/www/resume.pdf
http://netles.uiuc.edu/tcrensha/www/resume.tex
LaTeX Seminar p.32/37
Research Papers: Extras
\usepackage{latex8}
\begin{document}
In literature, such a goal is achieved
by having fully synchronized
mobile units \cite{Caccamo02}.
\bibliographystyle{latex8}
\bibliography{paper}
\end{document}
LaTeX Seminar p.33/37
Research Papers: Extras
@InProceedings{Caccamo02,
author = {M. Caccamo and
L. Y. Zhang and L. Sha and G.
Buttazzo},
title = {An Implicit
Prioritized Access Protocol
for Wireless Sensor Networks},
booktitle = {Proceedings
of the IEEE Real-Time Systems
Symposium},
year = {2002},
}}
LaTeX Seminar p.34/37
Research Papers: Extras
% latex paper.tex
% bibtex paper
% dvips paper.dvi -t letter
-o paper.ps paper.dvi
% ps2pdf paper.pdf
% open paper.pdf
LaTeX Seminar p.35/37
Research Papers: Examples
http://netles.uiuc.edu/tcrensha/www/emsoft.pdf
http://netles.uiuc.edu/tcrensha/www/emsoft.tex
http://netles.uiuc.edu/tcrensha/www/emsoft.bib
LaTeX Seminar p.36/37
Thank you!
LaTeX Seminar p.37/37

You might also like