\documentstyle[a4,graphicx,apalike]{article}

% Comments: This file is simple and written by M. Wiering to introduce Latex
% a4 is the size of the article, one can also use a4wide.
% epsfig is for including figures.
% apalike is for the bibliography
% article can also be replaced by book or letter.

\title{Latex Exercises}

\author{Marco A. Wiering \\ University Utrecht \\ email:marco@cs.uu.nl}

\begin{document}

\maketitle

\section{Making a Table}

Try to make a table with three rows and four columns in the following way:

\begin{table}[h]
\centering
\begin{tabular}{|l||l|c|r|} \hline
Method & 12 & Centrum & Adam\\ \hline \hline
Algoriet & 12 & Kort & Eva \\ \hline
Ritmus & 13 & Langer & Slang \\ \hline
\end{tabular}
\caption{\label{table_results} {\bf The results are convincing, are they
not?}}
\end{table}


\subsection{Mathematics}

Try to write down the following equations:

\begin{equation}
\sum_{i=0}^n i^2 = \frac{1}{3} n (n+1) (n+\frac{1}{2})
\end{equation}

\begin{eqnarray}
2x & = & 6 \rightarrow x = 3 \\
x^2 & = & 4 \Longrightarrow x = 2 \vee x = -2   
\end{eqnarray}

\begin{equation}
\forall \alpha \exists \beta : \beta \geq \alpha
\end{equation}

\subsection{Super- and subscript}

Use subscript and superscript:
$x_{1 \ldots n}$ + $x_{n+1}$ =  $x_{1 \ldots n+1}$.

And 
\begin{displaymath}
x^t \wedge x^f = \nabla^2 G(x^t,x^f)
\end{displaymath}

\section{Boxes}

Let's try some box:

\begin{center}
\fbox{\parbox{8.2cm}{
\begin{itemize}
\item This is the story
\item Of a man 
\item Who is thinking
\item And he kept on thinking until he did not know anymore that the earth
existed.
\end{itemize}
}}
\end{center}

\section{Using References}

Try to make some references, e.g. try to cite Wiering as much as possible.

\end{document}


