Skip to content

Instantly share code, notes, and snippets.

@jonasbleyl
Last active April 18, 2017 11:21
Show Gist options
  • Save jonasbleyl/53fcf68bedc2273ec8bd1ef76bcd345a to your computer and use it in GitHub Desktop.
Save jonasbleyl/53fcf68bedc2273ec8bd1ef76bcd345a to your computer and use it in GitHub Desktop.
\usepackage{parskip, titling, float, csquotes, hyperref}
\usepackage[british]{babel}
\usepackage{microtype}
% Reference configuration
\usepackage[backend=biber]{biblatex}
% Add bib file ↓
\addbibresource{report.bib}
\setlength\bibitemsep{8pt}
% Image configuration
% Blank images to improve compile times ↓
% \usepackage[draft]{graphicx}
\usepackage{graphicx}
\graphicspath{{images/}}
% Code listing configuration
% Usage example ↓
% \lstinputlisting[language=Java]{code-listings/Example.java}
\usepackage{listings, xcolor}
\definecolor{green}{HTML}{638832}
\definecolor{grey}{HTML}{535a67}
\definecolor{light}{HTML}{D4D4D4}
\definecolor{purple}{HTML}{8359B1}
\definecolor{blue}{HTML}{2A539F}
\lstset{frame=tb,
aboveskip=4mm,
belowskip=2mm,
framexleftmargin=6mm,
showstringspaces=false,
columns=flexible,
basicstyle={\small\ttfamily},
numbers=left,
rulecolor=\color{light},
numberstyle=\tiny\color{grey},
keywordstyle=\color{blue},
commentstyle=\color{green},
stringstyle=\color{purple},
breaklines=true,
breakatwhitespace=true,
tabsize=3,
xleftmargin=7mm
}
% Inline listings
\lstMakeShortInline[basicstyle=\ttfamily]|
% Margin configuration
% \usepackage[margin=4.2cm]{geometry}
% Title and name
\title{My Title}
\author{Name}
\documentclass{article}
\input{preamble.tex}
\begin{document}
\maketitle
% Use this instead for titlepage ↓
% \input{titlepage.tex}
\tableofcontents
\clearpage
% --------------------------------------------------------------------------------------
% INTRODUCTION
% --------------------------------------------------------------------------------------
\section{Introduction}
\printbibliography{}
\appendix
\section*{Appendix}
\addcontentsline{toc}{section}{Appendix}
\renewcommand{\thesubsection}{\Alph{subsection}}
\subsection{Title\label{title-label}}
\end{document}
\begin{titlepage}
\center{}
\textsc{\LARGE University}\\[2cm]
\textsc{\Large Course}\\[0.5cm]
\textsc{\large Assignment}\\[1.5cm]
\rule{\linewidth}{0.2mm}\\[1cm]
\huge{\bfseries \thetitle}\\[0.7cm]
\rule{\linewidth}{0.2mm}\\[6cm]
\Large{\emph{Author:}\\\theauthor}\\[2cm]
\large{\today}
\vfill
\end{titlepage}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment