Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Changes from eliasmeire/bap #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*.mtc1
*.out
*.synctex.gz
*.pdf
main.pdf
*.vscodeLog

.swp
Expand Down
Binary file added src/assets/abstract.pdf
Binary file not shown.
Binary file added src/assets/gegevens.pdf
Binary file not shown.
Binary file added src/assets/rtc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/voorblad.pdf
Binary file not shown.
4 changes: 2 additions & 2 deletions src/chapters/bijlagen.tex
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
% !TEX root = ../main.tex

\section*{Bijlagen} % (fold)
\chapter*{Bijlagen} % (fold)
\addcontentsline{toc}{section}{Bijlagen}
\label{sec:een-titel}

\appendix

\renewcommand{\thesubsection}{\Alph{subsection}}

\subsection{Een bijlage} % (fold)
\section{Een bijlage} % (fold)
\label{sub:nog-een-titel}

\lipsum[1]
2 changes: 1 addition & 1 deletion src/chapters/uitwerking.tex
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ \subsection{Ondertitel} % (fold)
\begin{figure}[H]
\label{figure:golden-circle}
\centering
\includegraphics[width=0.5\textwidth]{logo.pdf}
\includegraphics[width=0.5\textwidth]{rtc}
\caption{Figuur met referentie en bijschrift \cite{voorbeeld-ref}}
\end{figure}

Expand Down
6 changes: 3 additions & 3 deletions src/chapters/voorstelling.tex
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ \subsection{Het bedrijf} % (fold)
\lipsum[1]

\begin{figure}[H]
\label{figure:golden-circle}
\label{figure:webrtc}
\centering
\includegraphics[width=0.5\textwidth]{logo.pdf}
\includegraphics[width=0.8\textwidth]{rtc}
\caption{Figuur met referentie en bijschrift \cite{voorbeeld-ref}}
\end{figure}

\subsubsection{Werkomgeving}

Citeer bronnen van websites \cite{voorbeeld-ref} en boeken \cite{boek-ref}.
Citeer bronnen van websites \cite{voorbeeld-ref} en boeken \cite{boek-ref}. Verwijs naar figuren: zie figuur~\ref{figure:webrtc}

\lipsum[1]

33 changes: 25 additions & 8 deletions src/main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,31 @@

\begin{document}

\include{titlepage}
% \include{titlepage}

\include{chapters/abstract}
\includepdf{voorblad.pdf}

\newpage\null\thispagestyle{empty}\newpage

\includepdf{voorblad.pdf}

\includepdf{gegevens.pdf}

\setcounter{page}{1}
\addtocontents{toc}{\protect\renewcommand{\protect\numberline}[1]{}}
\includepdf[pagecommand={}, addtotoc={1,chapter,1,Abstract,abstract}]{abstract.pdf}
\addtocontents{toc}{\let\protect\numberline\protect\oldnumberline}

\include{chapters/woord-vooraf}

% TOC
\setcounter{tocdepth}{3}
\setcounter{tocdepth}{2}
\addcontentsline{toc}{chapter}{Inhoudsopgave}
\tableofcontents
% end TOC

\include{chapters/lijst-afkortingen}

\newpage
\setcounter{chapter}{0}

% main content
\include{chapters/voorstelling}
Expand All @@ -29,11 +40,17 @@
\newpage

% references
\addcontentsline{toc}{section}{Referenties}
\bibliographystyle{ieeetr}
\bibliography{references}
\addcontentsline{toc}{chapter}{Referenties}
\printbibliography[title={Referenties},keyword={ref}]
% end references

\newpage

% bibliography
\addcontentsline{toc}{chapter}{Bibliographie}
\printbibliography[keyword={bib}]
% end bibliography

\include{chapters/bijlagen}

\end{document}
34 changes: 27 additions & 7 deletions src/preamble.tex
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
\documentclass[a4paper]{article}
\documentclass[a4paper]{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[dutch]{babel}
\usepackage{siunitx,amsmath, epic, eepic, float, subfig, amsfonts, color, amsthm, textcomp, microtype, fullpage}
\usepackage{siunitx,amsmath, epic, eepic, float, subfig, amsfonts, color, amsthm, textcomp, microtype, fullpage, csquotes}
\usepackage[parfill]{parskip}
\usepackage[pdftex]{graphicx}
\graphicspath{{./assets/}}
\usepackage[titletoc,title]{appendix}
\usepackage[titletoc,title,page]{appendix}
\usepackage{standalone}
\usepackage{array}
\usepackage{tikz}
Expand All @@ -17,6 +17,7 @@
\definecolor{bluekeywords}{rgb}{0.13,0.13,1}
\definecolor{greencomments}{rgb}{0,0.5,0}
\definecolor{redstrings}{rgb}{0.9,0,0}
\definecolor{light-gray}{gray}{0.95}
\usepackage[font=small,format=plain,labelfont=bf,textfont=it]{caption}
\usepackage[linkcolor=black,urlcolor=black,citecolor=black]{hyperref}
\hypersetup{colorlinks=true}
Expand All @@ -31,19 +32,38 @@
\tabulinesep=1.2mm
\renewcommand*{\familydefault}{\sfdefault}
\renewcommand\arraystretch{1.7}
\newcommand{\code}[1]{\colorbox{light-gray}{\texttt{#1}}}
\usepackage{multirow}
\usepackage{abstract}
\usepackage[style=ieee,backend=biber,urldate=iso8601,date=iso8601]{biblatex}
\renewbibmacro*{bbx:savehash}{}
\addbibresource{references.bib}
\renewcommand{\abstractnamefont}{\normalfont\large\bfseries}
\makeatletter
\newcommand{\tocfill}{\cleaders\hbox{$\m@th \mkern\@dotsep mu . \mkern\@dotsep mu$}\hfill}
\makeatother
\newcommand{\abbrlabel}[1]{\makebox[3cm][l]{\textbf{#1}\ \tocfill}}
\newenvironment{abbreviations}{\begin{list}{}{\renewcommand{\makelabel}{\abbrlabel}%
\setlength{\itemsep}{0pt}}}{\end{list}}
\newenvironment{abbreviations}{
\begin{list}{}{
\renewcommand{\makelabel}{\abbrlabel}
\setlength{\itemsep}{0pt}
}}{\end{list}
}

\usepackage{longtable}
\usepackage[normalem]{ulem}
\useunder{\uline}{\ul}{}

\usepackage{titlesec}
\titleformat{\chapter}
{\normalfont\LARGE\bfseries}{\thechapter}{1em}{}
\titlespacing*{\chapter}{0pt}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex}

\let\oldnumberline\numberline

\usepackage{listings}
\lstdefinelanguage{JavaScript}{
keywords={typeof, new, true, false, catch, function, return, null, catch, switch, var, let, const, if, in, while, do, else, case, break},
keywords={typeof, new, true, false, catch, function, return, null, catch, switch, var, let, const, if, in, while, do, else, case, break, async, await},
keywordstyle=\color{blue}\bfseries,
ndkeywords={class, export, boolean, throw, implements, import, this},
ndkeywordstyle=\color{darkgray}\bfseries,
Expand Down Expand Up @@ -72,4 +92,4 @@
breaklines=true,
breakatwhitespace=true,
tabsize=3
}
}
29 changes: 17 additions & 12 deletions src/references.bib
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
@electronic{voorbeeld-ref,
Author = {\relax Jane Doe, Company Inc.},
Date-Added = {2017-01-09 16:25:41 +0000},
Date-Modified = {2017-01-09 16:26:29 +0000},
Title = {Source's title},
HowPublished = {\url{https://google.com/}}}
@online{voorbeeld-ref,
author = "Jane Doe",
company = "Company Inc",
year = "2017",
title = "Source Title",
url = "https://www.google.com",
urldate = {2017-04-03},
keywords = "bib"
}

@book{boek-ref,
Author = {John Doe and Jane Doe},
Isbn = {978-1-4493-6842-5},
Publisher = {Doe Media},
Title = {Book Title},
HowPublished = {\url{http://books.com}},
Year = {2017}}
title={Book Title},
author={John Doe},
isbn={9781449360726},
year={2014},
publisher={Publisher Name},
keywords = "bib"
}