% -> comment

% The documentclass 'article' is for almost all cases the best.
\documentclass{article}

% Packages:
\usepackage[a4paper]{geometry} 
\usepackage[english]{babel} % Correct line cuts
\usepackage{parskip} % Paragraphs will begin left, and there is whitespace between them.
\usepackage{amsmath, amssymb, textcomp} % Mathematical symbols etc.
\usepackage{color} % Colors
\usepackage{enumerate} % Listings
\usepackage[official]{eurosym}
\usepackage{hyperref} % For the layout of hyperlinks

%Here the real document starts.
\begin{document}

\title{\LaTeX-workshop (Manual)}
\author{\TeX niCie\\ a \mbox{A--Es}kwadraat Committee }
\date{\today} % Includes a date automatically

\maketitle % Here the title will be made visible. (\title, \author, \date)

\tableofcontents

\newpage % The rest will start at a new page

\section{Introduction} % Articles are divided into sections (and subsections).
	This is the manual belonging to the \LaTeX\ course of \mbox{A--Es}kwadraat. Start with looking through the manual, including the bron code. There you will find most of the answers on the exercises and it gives you a look at how \LaTeX-code looks like. Then start with the exercises. It is the idea that you use the broncode of this file and perhaps also the internet. Probably you will make some small mistakes which will lead to errors when generating your pdf-file. This will happen many times when you are working with \LaTeX, so here you will learn how to handle this kind of problems. Then, last but not least, just like with a lot of things, there is not just one way to make a layout, but many more. After some time you will know what you like best. % As the command \LaTeX has no space after the word, I use (\ ) to force a space



\section{Math-mode}% The \verb command is used by us tot make commands show in text, look at the examples for the correct commands.
	\begin{itemize}
		\item Using \LaTeX \ it is quite easy to type mathematical formulas. Hereby, the signs \verb|_| (subscript) and \verb{^{ (superscript)play an important role. For example, we can write the row $a_1,a_2,\ldots$ or the rule: $a^b\cdot a^c = a^{b+c}$. \\
			Fractions we can type like: $\frac{teller}{noemer}$. There are different ways (` environments') in which you can write mathematical formulas.
		\item	 You could type between double \$-signs to center your mathematical formula. But actually this is not proper \LaTeX code, because not all versions will support this. It is better to use \verb+\begin{equation}+ and \verb+\end{equation}+. This will also place a number next to your equation, to which you can referee (\ref{eq:integral})\footnote{How to make referees we will discuss next week.}:
			\begin{equation}
				\int_{-\infty}^{\infty} \frac{\cos x}{x^2 + 1} = \frac{\pi}{e} \label{eq:integral}
			\end{equation}
		\item All signs can be found on the internet. Most of them are really logically. 
			
		\item When you want to solve an equation, it is neater to place all the =-signs precisely below each other:
			\begin{align*}%The star makes the linenumbers for the equations dissapear.
				\sin x 	&= \cos x \nonumber 	\\
				\sin x 	&= \sin(x + \tfrac{1}{2}\pi) \nonumber 	\\
				2x 		&= \tfrac{1}{2}\pi + 2\pi k, \hspace{2em} k \in \mathbb{Z}	\\
				x 		&= \tfrac{1}{4}\pi + \pi k \nonumber
			\end{align*}
	\end{itemize}

\section{Matrices and Tables}
	To make a matrix, you can use arrays:
	$$\left(
		\begin{array}
			{ccc} a^2 + b^2 & \tfrac{d}{c} & k \\ 
			f & g + h + i & l
		\end{array}
	\right)$$
	You could also place a matrix between text $\left(\begin{array}{cc} a^2 + b^2 & \tfrac{d}{c} \\ f & g + h + i\end{array}\right)$ by using single \$-signs.
	You could also use arrays to place all the =-signs neatly below each other without an equation number. 
	
\subsection{Tables}
	To make a table you can use tabular. You can change a lot in the table: no vertical line, one or even a double vertical line, an horizontal line etc. You can even say what column width you want to make sure the text does not leave the page.
	
	\begin{table}[h]% The table enivorment ensure that you can make a caption for your table.
		\begin{tabular}{l|ccrp{5cm}} % The letters l, c and r specify the alignment of the text in the table. p{width} specifies the width of the last column in cm/mm/inch. 
			\textbf{Measurement} & \textbf{Length (m)} & \textbf{Time (s)} & \textbf{g ($m/s^2$)}& \textbf{Remarks}\\ \hline
			1 & 2.0 & 2.8 & 10 & During this measurment the airconditioning was working so much, that the rope could not hang without motion.\\
			2 & 1.5 & 2.5 & 9.6 & During this measurment we have switched off the airconditioning.\\
			3 & 1.0 & 2.0 & 9.9 & Halfway the measurement the stopwatch collapsed.
		\end{tabular}
		\caption{This is the caption of the table and gives important information about the table.}
	\end{table}

\end{document}
