Back to examples
Back to overview
Forward to error documentation 1
Short documentation for course 1
A small Latex document
\documentclass[12pt,twoside,a4paper]{article}
\begin{document}
a small \LaTeX \ document
\end{document}
This code spends the following:
A small LaTeX document
Special character in Latex
| \ | Escape character: masks special character and introduces commands |
| { } | if arguments enclose, text blocks form etc. |
| % | Comment symbol: The remainder of the line is ignored |
| $ | enclose mathematical formula in pairs inside of text |
| ^ _ | exponent and index in mathe |
| & | depending upon context - tabulator |
|
| ~ | Protected blank. |
|
\textbf{Bold} Bold
\textit{italic} italic
\textrm{Text} rm = roman
\emph{emphasized} emphasized
\begin{itemize}
\item one point of pass
\item still another one point of pass
\end{itemize}
- One point of pass
- Still another one point of pass
\begin{enumerate}
\item one point of pass
\item still another one point of pass
\end{enumerate}
- One point of pass
- Still another one point of pass
\begin{tabular}{|l|c|r|p{1.5 cm }|}
\hline
left & centers & right & width \\
l & C & r & p \\
\hline
\end{tabular}
| left | centered | right | Width |
| l | C | r | p |
| l | left justified | r | right-justified |
| C | centered | p | firm width with line-makeup |
| | | vertical line | \hline | horizontal line |
Mathematics packages:
\usepackage{amssymb,amsmath}
$\lim $
$\frac{1}{a } = \frac{\frac{1}{2 } + \frac{1}{2}}{a}$ \\
$x_{n}$ \\
$x^{a}$ \\
$a \cdot b $ \\
\begin{displaymath}
XY \leq 0 \, \forall \, x \geq y
\end{displaymath}
\begin{equation}
XY \leq 0 \, \forall \, x \geq y
\end{equation}
\begin{eqnarray}
\frac{1}{a} & = & \frac{\frac{1}{2} + \frac{1}{2}}{a} \\
\frac{1}{a} & = & \frac{0.5 + 0.5}{a}
\end{eqnarray}
- compile with latex test.tex
- look at with xdvi test.dvi
- convert with dvips test.dvi into ps file
- look at with gv test.ps
- compile with pdflatex test.tex
- look at with xpdf test pdf
Back to examples
Back to overview
Forward to error documentation 1
Sascha Frank
Last modified: Wed Aug 31 20:37:53 MEST 2005