Latex Tutorial
a note based on LaTeX-Tutorial.com01 First Document
The basic layout of a LaTex file
1 | \documentclass{article} |
- All commands share the following structure:
\commandname{option} - An environment is simply an area of your document where certain typesetting rules apply.
- it is imperative the document environment is the topmost environment
1
2
3
4
5
6
7
8
9
10
11
12
13% Valid:
\begin{document}
\begin{environment1}
\begin{environment2}
\end{environment2}
\end{environment1}
\end{document}
% Also invalid:
\begin{environment}
\begin{document}
\end{document}
\end{environment}
Adding a title page
1 | \documentclass{article} |
Summary
- A document has a preamble and document part
- The document environment must be defined
- Commands beginning with a backslash \, environments have a begin and end tag
- Useful settings for pagenumbering:
- gobble - no numbers
- arabic - arabic numbers
- roman - roman numbers