Skip to content

Instantly share code, notes, and snippets.

@Kevin-De-Koninck
Last active February 12, 2021 19:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kevin-De-Koninck/d0faa3a9eb5ef4c9f5916bbd260b4741 to your computer and use it in GitHub Desktop.
Save Kevin-De-Koninck/d0faa3a9eb5ef4c9f5916bbd260b4741 to your computer and use it in GitHub Desktop.
\documentclass[11pt,a4paper]{article}
\usepackage[a4paper,left=3.5cm, right=2.5cm, top=3.5cm, bottom=3.5cm]{geometry}
\usepackage[dutch]{babel}
\usepackage{graphicx}
\graphicspath{{images/}} % Default location of all the images you want to add
\usepackage{a4wide}
\usepackage[utf8]{inputenc}
\usepackage{natbib}
\usepackage{verbatim}
\usepackage{hyperref}
\usepackage{url}
\usepackage[small,bf,hang]{caption}
\usepackage[final]{pdfpages}
\usepackage{pslatex}
\usepackage{sectsty}
\allsectionsfont{\sffamily}
\chapterfont{\raggedleft\sffamily}
\usepackage{float}
\usepackage{todonotes}
\usepackage{booktabs}
\newcommand{\ra}[1]{\renewcommand{\arraystretch}{#1}}
\usepackage{amsmath}
\setlength{\parindent}{0pt}
\usepackage{listings}
\usepackage{color}
\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{mauve}{rgb}{0.58,0,0.82}
\lstset{frame=tb,
language=C, % Default language is C
aboveskip=3mm,
belowskip=3mm,
showstringspaces=false,
columns=flexible,
basicstyle={\small\ttfamily},
numbers=none,
numberstyle=\tiny\color{gray},
keywordstyle=\color{blue},
commentstyle=\color{dkgreen},
stringstyle=\color{mauve},
breaklines=true,
breakatwhitespace=true,
tabsize=8
}
%*****************************************
% EXAMPLES
%*****************************************
% FORMATTING CODE
%-----------------------------------------
%\lstset{language=C} %You can switch languages here
%\begin{lstlisting}
%
% INSERT CODE HERE
%
%\end{lstlisting}
% ADDING TABLES
%-----------------------------------------
%\begin{table}[H]
%\begin{center}
%\ra{1.3} % Extra spacing
%\begin{tabular}{l c c} % This defines your columns (e.g. l is left allign, c is center, a vertical line is | )
%\toprule
%\textbf{titel 1} & \textbf{titel 2} & \textbf{titel 3} \\ % Insert header of table here, seperate cells with an &
%\midrule
%item & item & item \\ % Seperate cells with an &, go to the next row with \\
%item & item & item \\
%item & item & item \\
%\bottomrule
%\end{tabular}
%\end{center}
%\caption{caption here} % Add your caption here
%\label{tbl:label}
%\end{table}
% Inserting a figure
%--------------------------------------
%\begin{figure}[H]
%\centering
%\includegraphics[width=5in]{figuur.png} %instead of the width, you can use "scale=0.4" to scale an image
%\caption{caption here} % Add caption here
%\label{fig:label} % Add label here
%\end{figure}
% Adding a ToDo note
%--------------------------------------
%\todo{What you still need to do}
% Adding an URL
%--------------------------------------
%\url{http://}
% Alligning equations
%--------------------------------------
%\begin{align*}
% s &= \frac{-28151 \pm \sqrt{-792481199}}{2} \\ % Allign with &= and use \\ to insert a next equation
% s &= -14076 \pm 14076i
%\end{align*}
%***********************************************************************************************
% START OF THE DOCUMENT THAT YOU CAN EDIT
%***********************************************************************************************
%---------------------------------------
% References
%---------------------------------------
% Create a bibfile on disk
\begin{filecontents}{bibfile.bib}
@online{example,
author = {Tim Cook},
title = {Apples and their history},
year = {07/06/2018 - 10:15},
url = {https://www.apple.com}
}
\end{filecontents}
%---------------------------------------
% HEADING
%---------------------------------------
\title{Title} % Title
\author{Last name, First Name} % Author name
\date{\today} % Date
\begin{document}
\maketitle
\tableofcontents % Insert TOC
\newpage
%---------------------------------------
% BODY
%---------------------------------------
\section{References}
You can reference to your bibliography using citation. As mentionned by \citep{example} you can use the source.
You can also reference appendixes using their labels. As seen in \ref{appendix:example} we can include pdf pages too.
You can also use references to refer to tabels and images, just make sure to label them.
\section{Section 1}
section text.
\section*{Section 2}
section without number.
\subsection{Subsection 1}
subsection text, what else?
\subsection*{Subsection 2}
subsection without number, what else?
\subsubsection{Subsubsection 1}
subsubsection text, obviously.
\subsubsection*{Subsubsection 2}
subsubsection without number, obviously.
%---------------------------------------
% Bibliography
%---------------------------------------
\clearpage
\renewcommand\refname{Referenties}
\bibliographystyle{plainnat}
\bibliography{bibfile}
%---------------------------------------
% APPENDICES
%---------------------------------------
\clearpage
\appendix
\section{Example appendix}
\label{appendix:example}
This is an example appendix that includes a PDF file:
\includepdf[pages=-,offset=0 0]{file.pdf}
%***********************************************************************************************
% END OF THE DOCUMENT THAT YOU CAN EDIT
%***********************************************************************************************
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment