Created
June 18, 2012 00:09
-
-
Save javajawa/2946127 to your computer and use it in GitHub Desktop.
LaTeXness
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[a4paper,12pt,twoside]{report} | |
% Input encoding and page size | |
\usepackage[utf8]{inputenc} | |
\usepackage[a4paper,twoside,bindingoffset=12mm,top=22mm,left=20mm,right=20mm,bottom=26mm]{geometry} | |
\usepackage[compact]{titlesec} | |
\usepackage{ifdraft} | |
\ifdraft | |
{ | |
\usepackage{showframe} | |
\usepackage[switch,modulo]{lineno} | |
} | |
{ | |
\usepackage[usenames]{color} | |
} | |
% L10n and colour names | |
\usepackage[british]{babel} | |
\usepackage[fixlanguage]{babelbib} | |
% File includers | |
\usepackage{pdfpages} | |
\usepackage{graphicx} | |
% Fonts | |
\usepackage{tgcursor} | |
% Floats | |
\usepackage{float} | |
\usepackage[hypcap,margin=12pt,font=small,labelfont=bf,labelsep=endash]{caption} | |
\usepackage{rotating} | |
\usepackage[final]{listings} | |
% Drawing | |
\usepackage{tikz} | |
% Maths | |
\usepackage{amsmath} | |
\usepackage{amssymb} | |
\usepackage{domimatrix} | |
\usepackage[perpage,symbol*,hang,bottom]{footmisc} | |
\usepackage[hyperindex,breaklinks]{hyperref} | |
\usepackage[toc,seeautonumberlist]{glossaries} | |
% Custom Colors | |
\definecolor{linkblue}{RGB}{0,0,32} | |
\definecolor{keywordblue}{RGB}{0,0,192} | |
\definecolor{comment}{RGB}{150,150,150} | |
\definecolor{string}{RGB}{206,123,0} | |
% Paragraph layout | |
\setlength{\parskip}{3.5mm plus1mm minus0.5mm} | |
\setlength{\parindent}{1cm} | |
\renewcommand{\baselinestretch}{1.25} | |
\titlespacing*{\section}{0pt}{6pt}{3pt} | |
% Page Layout | |
\pagestyle{plain} | |
% Bibliography Set-up | |
\selectbiblanguage{british} | |
\bibliographystyle{ieeetr} | |
\newcommand{\bibfile}{../common/references} | |
% Glossary Setup | |
\makeglossaries | |
\input{../common/glossary} | |
% File parameters | |
\title{Modelling Cloud Computing Networks as Common Pool Resources} | |
\author{Benedict Harcourt} | |
% Hyperlinks Setup | |
\hypersetup{ | |
unicode=true, % non-Latin characters in Acrobat's bookmarks | |
pdfnewwindow=true, % links in new window | |
colorlinks=true, % false: boxed links; true: colored links | |
linkcolor=linkblue, % color of internal links | |
citecolor=black, % color of links to bibliography | |
filecolor=linkblue, % color of file links | |
urlcolor=blue, % color of external links | |
pdftitle={Modelling Cloud Computing Networks as Common Pool Resources}, | |
pdfauthor={Benedict Harcourt}, | |
pdfsubject={Modelling Cloud Computing Networks as Common Pool Resources}, | |
pdfcreator={Benedict Harcourt}, | |
pdfkeywords={cloud}{multi-agent systems}{common pool resources} | |
} | |
% Listings Set-up | |
\lstset{ | |
language=Java, | |
columns=fullflexible, | |
basicstyle=\ttfamily\scriptsize, | |
keywordstyle=\color{keywordblue}\bfseries, | |
identifierstyle=\color{black}, | |
commentstyle=\color{comment}, | |
morecomment=[s][\color{comment}]{/**}{*/}, | |
stringstyle=\color{string}, | |
showstringspaces=false, | |
tabsize=4, | |
frame=l, | |
rulecolor=\color{gray}, | |
numbers=left, | |
numbersep=8pt, | |
numberstyle=\tiny\color{gray}, | |
xleftmargin=6mm, | |
} | |
\newcommand{\todo}[1]{ | |
\ifdraft{\par\texttt{TODO: #1}\par}{} | |
} | |
\newcommand{\aref}[1]{\autoref{#1} (page \pageref{#1})} | |
\newcommand{\expected}[1]{\ensuremath{\mathbb{E}\left[\,#1\,\right]}} | |
\newcommand{\prob}[1]{\ensuremath{\mathbb{P}\left[\,#1\,\right]}} | |
\newcommand{\dt}{\ensuremath{\Delta} t} | |
\newcommand{\deriv}[3][]{\ensuremath{\frac{\mathrm{d}^{#1}#2}{\mathrm{d}#3^{#1}}}} | |
\renewcommand{\iff}{\longleftrightarrow} | |
\pagenumbering{roman} | |
\begin{document} | |
\includepdf{coversheet.pdf} | |
\thispagestyle{empty} | |
\cleardoublepage | |
\setcounter{page}{1} | |
\pagenumbering{arabic} | |
\ifdraft{\linenumbers}{} | |
\abstract{...} | |
\tableofcontents | |
\clearpage | |
\chapter{Introduction} | |
\input{...} | |
................. | |
\appendix | |
\chapter{Code Segments} | |
\input{...} | |
\clearpage | |
\printglossaries | |
\clearpage | |
\phantomsection | |
\addcontentsline{toc}{chapter}{Bibliography} | |
\ifdraft{\nocite{*}}{} | |
\bibliography{\bibfile} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment