\documentclass[11pt]{article} \usepackage{amsmath, amssymb} % the package hyperref adds links to the DVI/PDF files % % if \usepackage{hyperref} gives error messages, change to % \documentclass{amsart} \usepackage{hyperref} \title{An example} \author{Anonymous} % if you do not specify the date, it will be the day when the document is % processed; can also use \date{\today} \date{August 26, 2011} % this part (until the \begin{document}) is called the PREAMBLE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{document} \maketitle Before we start, here are the correct type-settings of \TeX, \LaTeX{} and \LaTeXe\ (notice the empty string \{\} or extra space \verb*+\ + we had to use; otherwise, we obtain \TeX and \LaTeX). It is better to use \{\}, since this allows \TeX{} to adjust spacing as needed to fill in the line. \tableofcontents \section{Fonts \& sizes} \subsection{Sizes} One can use the {\normalsize normal} size, or from {\tiny tiny} to {\Huge HUGE}. \subsection{Fonts}\label{fonts} In each size, there are various fonts, e.g. \begin{large} \begin{itemize} \item \textnormal{document font} \item \textrm{roman} \item \textit{italic} \item \textsc{small caps} \item \textsl{slanted} \item \textbf{bold face} \end{itemize} \end{large} You can also \underline{underline}, or \emph{emphasize}. \subsubsection{Accents \& co.} And you can add accents, or use other symbols: \P, \S, \^\i, \~n, \"A (note that \i{} and \j{} are the i and j without the dot --- so that one can put other accents on them). \section{Mathematical formulas} Mathematical formulas are typed between \$ signs. Simple \$'s will produce the formula in the text, double \$'s (or, preferably in \LaTeX, the construction $\backslash[ \dots \backslash]$) will ``display'' it. For example, $\int^\infty_0 \frac{x^2}{x+1} d x$ and \[ \forall x\in \mathbb R \Rightarrow x^2\ge 0. \] % there is also \implies, which is a longer \Rightarrow Subscripts are introduced with the underscore \_, and have to be enclosed in braces, \{ and \}, if they are more than one character long. The same applies for superscripts, which are introduced with \^{}. \textbf{Note:} sub- and superscripts are allowed only in \emph{math mode}. If you want your formulas numbered (for example as in equation \eqref{pythagoras} below), you should include them in the \emph{equation} environment. You can add a label, so that you can refer to them in other parts of the text. The same way you can label and refer to any numbered item (e.g., the section \ref{fonts}, on page \pageref{fonts}). \begin{equation} \label{pythagoras} a^2+b^2=c^2, a,b,c\in\mathbb Z \Leftrightarrow a=m^2-n^2, b=2mn, c=m^2+n^2, % \textnormal{ where } m,n\in\mathbb Z. \end{equation} % there is also \iff, which is a longer \Leftrightarrow One can change the numbering format. For example, the line \begin{verbatim} \numberwithin{equation}{section} \end{verbatim} in the preamble will add to the equation labels the section number as well (hence, equation \eqref{pythagoras} would become (\thesection.\ref{pythagoras})). Moreover, the numbering of equation will start from 1 in each section. \end{document}