Professional Documents
Culture Documents
LaTeX Tutorial
LaTeX Tutorial
Simon Dardis
dalamar@netsoc.tcd.ie
\documentclass{article}
\begin{document}
Hello World!
\end{document}
LATEX expects each .tex file to start with either a comment (%) or
a \documentclass{$CLASS}.
For text, LATEX will effectively collapse all tabs and spaces between
two words to the standard word spacing for that document class
and expects two newlines between paragraphs.
LATEX gives us several forms of lists out of the box: the list, itemize
and the enumerate environments.
In both cases each item in the list should be prefixed with the
\item command. For the enumerated environment putting what
immediately follows the item command with [ . . . ] will give you a
definition style list with an altered layout.
List example
Result:
1. first
2. second
3. third
Pictures and graphics
1 2 3
4 5 6
More Tables!
1 2 3
4 5 6
Made with:
\begin{tabular}{ l | c || r}
\hline
1 & 2 & 3 \ \ \hline
4 & 5 & 6 \ \ \hline
\end{tabular}
And yes, this entire presentation was written in LATEX with beamer.