Escolar Documentos
Profissional Documentos
Cultura Documentos
Imran Rashid
lots borrowed from Marius
October 2, 2007
Outline
Why Latex
Basics
Tools
Features
Math Mode
Lists
Tables
Figures
Numbering
References
Bibliographies with BibTeX
Using Latex Packages
Resources
caveat
, /
compile, debug, view, edit
The Good, The Bad, . . .
, /
tools(?) compile, debug, view, edit
The Good, The Bad, . . .
, /
tools(?) compile, debug, view, edit
not WYSIWYG
The Good, The Bad, . . .
, /
tools(?) compile, debug, view, edit
write logically
not WYSIWYG
latex will take care of layout
The Good, The Bad, . . .
, /
tools(?) compile, debug, view, edit
write logically
not WYSIWYG
latex r
will take care of layout
x
tβ
Px 8
λx: n=1 log(ρ⊗x)
The Good, The Bad, . . .
, /
tools(?) compile, debug, view, edit
write logically
not WYSIWYG
latex r
will take care of layout
x
tβ
Px 8
λx: n=1 log(ρ⊗x)
automated content
The Good, The Bad, . . .
, /
tools(?) compile, debug, view, edit
write logically
not WYSIWYG
latex r
will take care of layout
x
tβ
Px 8
λx: n=1 log(ρ⊗x)
automated content
extremely powerful
The Good, The Bad, . . .
, /
tools(?) compile, debug, view, edit
write logically
not WYSIWYG
latex r
will take care of layout
x
tβ
Px 8
λx: n=1 log(ρ⊗x)
automated content
extremely powerful steep learning curve
The Good, The Bad, . . .
, /
tools(?) compile, debug, view, edit
write logically
not WYSIWYG
latex r
will take care of layout
x
tβ
Px 8
λx: n=1 log(ρ⊗x)
automated content
extremely powerful steep learning curve
collaborators may not know latex
The Good, The Bad, . . .
, /
tools(?) compile, debug, view, edit
write logically
not WYSIWYG
latex r
will take care of layout
x
tβ
Px 8
λx: n=1 log(ρ⊗x)
automated content
extremely powerful steep learning curve
collaborators may not know latex
, /
tools(?) compile, debug, view, edit
write logically
not WYSIWYG
latex r
will take care of layout
x
tβ
Px 8
λx: n=1 log(ρ⊗x)
automated content
extremely powerful steep learning curve
collaborators may not know latex
Tools exist for most platforms to make working with latex easier:
I makefile
I mode for emacs
I IDEs for every platform
Latex Tools
Tools exist for most platforms to make working with latex easier:
I makefile
I mode for emacs
I IDEs for every platform
Tools exist for most platforms to make working with latex easier:
I makefile
I mode for emacs
I IDEs for every platform
\begin{itemize}
item ...
item ...
\end{itemize}
can use enumerate instead of itemize
Tables
Tables
\begin{table}
\centering
\end{table}
Tables
\begin{table}
\centering
\begin{tabular}{ }
\end{tabular}
\end{table}
Tables
\begin{table}
\centering
\begin{tabular}{|c|r}
\end{tabular}
\end{table}
Tables
\begin{table}
\centering
\begin{tabular}{|c|r}
Height & Weight \\
\end{tabular}
\end{table}
Tables
\begin{table}
\centering
\begin{tabular}{|c|r}
Height & Weight \\
\hline
\end{tabular}
\end{table}
Tables
\begin{table}
\centering
\begin{tabular}{|c|r}
Height & Weight \\
\hline
5.4 & 160 \\
\end{tabular}
\end{table}
Tables
\begin{table}
\centering
\begin{tabular}{|c|r}
Height & Weight \\
\hline
5.4 & 160 \\
6.1 & 234 \\
\end{tabular}
\end{table}
Tables
\begin{table}
\centering
\begin{tabular}{|c|r}
Height & Weight \\
\hline
5.4 & 160 \\
6.1 & 234 \\
\end{tabular}
\caption{Some text that is a caption for the table}
\label{tableLabel}
\end{table}
Tables
\begin{table}
\centering
\begin{tabular}{|c|r}
Height & Weight \\
\hline
5.4 & 160 \\
6.1 & 234 \\
\end{tabular}
\caption{Some text that is a caption for the table}
\label{tableLabel}
\end{table}
Height Weight
5.4 160
6.1 234
Table: Some text that is a caption for the table
Adding figures to your documents
vs:
\begin{align*}
x &= 1 + 1 \\
&= 2\\
\end{align*}
Use * to control numbering
Often adding a * to the end of a command will turn off
auto-numbering:
\begin{align}
x &= 1 + 1 \\
&= 2\\
\end{align}
x =1+1 (1)
=2 (2)
vs:
\begin{align*}
x &= 1 + 1 \\
&= 2\\
\end{align*}
x =1+1
=2
Referencing Tables and Figures in the text
SOURCES=$(wildcard *.tex)
all: pdf
pdf: $(SOURCES:.tex=.pdf)
ps: $(SOURCES:.tex=.ps)
dvi: $(SOURCES:.tex=.dvi)
%.dvi: %.tex
latex $<; latex $<
%.ps: %.dvi
dvips $< -o $@
%.pdf: %.ps
ps2pdf $<
$ make hello.pdf