From 6b5e8eb67ed718e5eba61f143c48e4a7cc0bbb19 Mon Sep 17 00:00:00 2001
From: Camil Staps
Date: Thu, 17 Nov 2016 23:56:45 +0100
Subject: Formatting & makefile

---
 thesis/preamble.tex | 84 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 84 insertions(+)
 create mode 100644 thesis/preamble.tex

(limited to 'thesis/preamble.tex')

diff --git a/thesis/preamble.tex b/thesis/preamble.tex
new file mode 100644
index 0000000..10c6d59
--- /dev/null
+++ b/thesis/preamble.tex
@@ -0,0 +1,84 @@
+\documentclass[a4paper,twoside]{article}
+
+\usepackage[hmarginratio={3:2}]{geometry}
+\usepackage{multicol}
+
+\usepackage[T1]{fontenc}
+\usepackage{lmodern}
+\usepackage[scaled]{beramono}
+
+\usepackage[british]{babel}
+\usepackage[babel=true]{csquotes}
+
+\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
+\definecolor{linkcolor}{rgb}{0,0.65,0}
+\definecolor{citecolor}{rgb}{0.65,0,0}
+\definecolor{urlcolor}{rgb}{0,0,0.65}
+\usepackage[colorlinks=true,linkcolor=linkcolor,urlcolor=urlcolor,citecolor=citecolor]{hyperref}
+
+\usepackage{cleveref}
+\crefname{figure}{figure}{figures}
+
+\usepackage[style=authoryear,backend=biber]{biblatex}
+\bibliography{thesis}
+\renewcommand\nameyeardelim{, }
+\DefineBibliographyStrings{english}{%
+	urlseen={Retrieved}
+}
+
+\usepackage{rutitlepage}
+\usepackage{latexgit}
+
+\usepackage{minted}
+\usepackage{mdframed}
+% Need to patch mdframed, see http://tex.stackexchange.com/a/292090/23992
+\usepackage{xpatch}
+\makeatletter
+\xpatchcmd{\endmdframed}
+  {\aftergroup\endmdf@trivlist\color@endgroup}
+  {\endmdf@trivlist\color@endgroup\@doendpe}
+  {}{}
+\makeatother
+\definecolor{mintedbg}{rgb}{0.95,0.95,0.95}
+\surroundwithmdframed[%
+	backgroundcolor=mintedbg,
+	linewidth=0pt,
+	skipabove=.5em,skipbelow=.5em]{minted}
+\setminted{%
+	autogobble,
+	tabsize=4,
+	fontsize=\scriptsize,
+	style=lovelace
+	%bgcolor=mintedbg
+}
+\setmintedinline{fontsize=\footnotesize,bgcolor={}}
+\usepackage{ual}
+\usepackage{clean}
+\newmintinline[bash]{bash}{style=bw}
+
+\usepackage{subcaption}
+\usepackage{tikz}
+\usetikzlibrary{positioning}
+
+\let\oldtexttt\texttt
+\def\texttt#1{\oldtexttt{\footnotesize #1}}
+
+\newcommand*{\blankpage}{%
+	\vspace*{\fill}
+	{\centering\it This page intentionally left blank.\par}
+	\vspace{\fill}}
+\makeatletter
+\renewcommand*{\cleardoublepage}{\clearpage\if@twoside \ifodd\c@page\else
+	\blankpage\thispagestyle{empty}\newpage
+		\if@twocolumn\hbox{}\newpage\fi\fi\fi}
+\makeatother
+
+\let\oldsection\section
+\renewcommand{\section}{\cleardoublepage\oldsection}
+
+\raggedcolumns
+\renewcommand{\baselinestretch}{1.1} 
+
+\title{Code generation for Thumb-2 processors}
+\author{Camil Staps}
+\date{\gitcommitdate[formatDate]}
-- 
cgit v1.2.3

