%% Copyright 2016 - Silke Hofstra
%
% Licensed under the EUPL, Version 1.1 or -- as soon they will be approved by
% the European Commission -- subsequent versions of the EUPL (the "Licence");
% You may not use this work except in compliance with the Licence.
% You may obtain a copy of the Licence at:
%
% https://joinup.ec.europa.eu/software/page/eupl
%
% Unless required by applicable law or agreed to in writing, software
% distributed under the Licence is distributed on an "AS IS" basis,
% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
% express or implied.
% See the Licence for the specific language governing
% permissions and limitations under the Licence.
%

% !TEX program = xelatexmk
% !TEX spellcheck = en_GB
\documentclass[a4paper,12pt,english,titlepage]{report}
\let\parindentold\parindent
\usepackage{csquotes,fontspec,geometry,babel,listings,parskip,xparse,multicol,titlesec,amsmath,metalogo,fancyhdr,lipsum}
\usepackage[ocgcolorlinks]{hyperref}
\usepackage[usenames,dvipsnames,table,svgnames]{xcolor}
\usepackage[backend=biber,style=ieee]{biblatex}
\bibliography{biblatex-examples}

\titleformat{\chapter}[display]   
{\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}   
\titlespacing*{\chapter}{0pt}{-50pt}{40pt}

%\setmainfont{Latin Modern Roman}
%\setsansfont{Source Sans Pro}
\newcommand*\sectionbreak{\clearpage}
\newcommand*\fnhref[2]{%
	\href{#1}{#2}\footnote{\url{#1}}%
}
%\setmonofont[Scale=.85]{Source Code Pro}
%\newfontfamily\helvetica[Mapping=tex-text]{Source Sans Pro}

\DeclareDocumentCommand\snip{}{[\dots] }
\DeclareDocumentCommand\strong{m}{\textbf{#1}}

\makeatletter
\def\input@path{{content/}}
\makeatother

% Hyperref config
\hypersetup{
    colorlinks,
    citecolor=Goldenrod!80!Black,
    filecolor=Cerulean,
    linkcolor=BrickRed,
    urlcolor=Blue
}

\DeclareTextFontCommand{\emph}{\bfseries}

% Listings config
\lstset{
	language=[LaTeX]TeX,
	morekeywords={\command,\url,\href,\hypersetup,\chapter,\subsection, \subsubsection,\part,\paragraph,\subparagraph,\begin,\end,\lstinputlisting},
	upquote=true,
	basicstyle=\small\ttfamily,%\addfontfeature{Mapping=,Ligatures=},
	numbers=none,
	numberstyle=\tiny\color{Gray}\ttfamily,
	stepnumber=1,
	numbersep=5pt,
	rulecolor=\color{black},
	backgroundcolor=\color{black!10},
	tabsize=4,
	captionpos=r,
	breaklines=true,
	breakatwhitespace=true,
	breakindent=0em,
	title=\lstname,
	keywordstyle=\color{RoyalBlue},
	commentstyle=\color{ForestGreen},
	stringstyle=\color{WildStrawberry},
	xleftmargin=0mm,
	xrightmargin=0mm,
	%aboveskip=0mm,
	%belowskip=0mm
}
\lstMakeShortInline[columns=fixed]|

\title{A brief introduction to \LaTeX}
\author{Silke Hofstra \& Matthijs van Minnen\\ Scintilla’s MasterCLASS}
\begin{document}
\maketitle

\chapter*{Introduction}
\addcontentsline{toc}{chapter}{Introduction}
The goal of this document is not to provide an extensive guide to all that is \LaTeX.
For that, books have been written.
This document is a very simple introduction to the most important parts of \LaTeX,
and isn't as comprehensive as most other documentation out there.
Because of this I’d like to link to some more complete, but maybe slightly outdated, resources:
\begin{itemize}
	\item \fnhref{http://en.wikibooks.org/wiki/LaTeX}{The \LaTeX\ Wikibook} has a lot of information.
	This document tries to loosely follow the structure of Wikibooks.
	
	\item \fnhref{http://tex.stackexchange.com/}{The \TeX\ Stack Exchange} is a high quality Q\&A site for \TeX\ related questions.
	If you have a question chances are you’ll find your answer on there as well.
	
	\item For books and other websites \fnhref{http://tex.stackexchange.com/q/11/17484}{this question} on the \TeX\ Stack Exchange is a good starting point.
\end{itemize}

For this course, you can download everything:
\begin{itemize}
	\item \fnhref{https://docs.scintilla.utwente.nl/masterclass/LaTeX2019/presentation}{The presentation}
	\item \fnhref{https://docs.scintilla.utwente.nl/masterclass/LaTeX2019/manual}{The manual \& assignments}

\end{itemize}
\clearpage
\label{toc}
\tableofcontents

\chapter{The Basics}
\input{whatis}
\input{install}
\input{controlsequence}
\input{preamble}
\input{basic-document}
\input{structure}
\input{titletoc}
\input{packages}
\input{text}
\input{lists}
\input{images}
\input{tables}
\input{labels}
\input{footnotes}
\input{math}
\input{listings}
\input{input}
\input{error}

\chapter{Beyond}
\input{bibliography}
\input{fancyhdr}
\input{engines}
\input{fonts}
\input{variables-commands}
\input{editortricks}

%\section{Using non-standard packages}
%To use packages that are not provided by your distribution or not installed on the system you are using you have to install them in you personal |texmf| tree.

\chapter{Assignments}
\input{assignment1}
\input{assignment2}

\appendix
\chapter{Sample data for the assignments}
\input{appendix-samples1}

\end{document}
