Latex
Latex
Latex
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
What is it?
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:
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
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