main.tex (1781B)
1 \documentclass[12pt,notitlepage]{article} 2 \usepackage[a4paper, margin=0.7in]{geometry} 3 4 % Todo 5 \usepackage{todonotes} 6 \newgeometry{margin=2.5cm} 7 \setlength {\marginparwidth}{2cm} 8 9 % Set language & encoding; Babel is good for unified rules 10 \usepackage[utf8]{inputenc} 11 \usepackage[USenglish]{babel} 12 \usepackage{csquotes} % recommended with Babel 13 14 % Hyperlinks, as well as automatically adding "section..." or "chapter..." with \autoref 15 % Set the color of links with xcolor 16 \usepackage{hyperref} 17 \usepackage{xcolor} 18 \hypersetup{ 19 colorlinks, 20 linkcolor={red!50!black}, 21 citecolor={blue!50!black}, 22 urlcolor={blue!80!black} 23 } 24 25 % Captions also in subfigures, and set caption style 26 \usepackage{caption} 27 \usepackage{subcaption} 28 \captionsetup{width=0.8\textwidth,font+=it} 29 30 % Code listings 31 \usepackage{listings} 32 \lstset{captionpos=b, frame=lines, xleftmargin=1em, framextopmargin=0.5em, framexbottommargin=0.5em, aboveskip=1em, belowskip=1em, linewidth=0.98\linewidth, basicstyle=\small} 33 \captionsetup[lstlisting]{justification=centering} 34 35 % Pictures & diagrams 36 \usepackage{graphicx} 37 \graphicspath{{images/}{diagrams/}} 38 39 % Set up the bibliography 40 \usepackage[style=ieee]{biblatex} 41 \addbibresource{references.bib} 42 43 % Show overfull boxes in the document 44 \setlength{\overfullrule}{5pt} 45 46 % Metadata 47 \def\theauthor{Author} 48 \def\thetitle{Title} 49 \def\thedate{\today} 50 \def\theinstitution{Institution Name} 51 \def\thesubject{Subject} 52 53 54 % \result: insert numeric results from numbers/*.tex 55 \newcommand{\result}[1]{\input{numbers/#1}\unskip} 56 57 58 \begin{document} 59 \input{titlepage} 60 61 \begin{abstract} 62 This is the abstract. 63 \end{abstract} 64 65 \input{meta} 66 \input{introduction} 67 \input{background} 68 \input{results} 69 \input{related} 70 \input{conclusion} 71 \printbibliography 72 73 \end{document}