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