Skip to content

Instantly share code, notes, and snippets.

@bag-man
Last active August 29, 2015 14:18
Show Gist options
  • Save bag-man/8d11246a9e8940f4bff3 to your computer and use it in GitHub Desktop.
Save bag-man/8d11246a9e8940f4bff3 to your computer and use it in GitHub Desktop.
LaTeX template
\documentclass[10pt]{article}
\usepackage{a4wide}
\usepackage[english]{babel}
\usepackage{fancyhdr}
\usepackage{hyperref}
\usepackage{lastpage}
\usepackage{graphicx}
\usepackage[section]{placeins}
\usepackage[superscript,biblabel]{cite}
\usepackage[margin=1in]{geometry}
\newcommand\module{CS22510}
\newcommand\moduleName{C++, C and Java Programming Paradigms}
\newcommand\authorText{Owen Garland}
\newcommand\authorUsername{owg1}
\newcommand\studentID{130072557}
\newcommand\assesser{Fred Labrosse, Neal Snooke}
\title{\huge \module Assignment 2\\ \Large \moduleName}
\author{\vspace{100pt}
\begin{tabular}{r||l}
Author & \authorText (\authorUsername)\\
& \studentID \\
Date Published & \today \\
& \\
Assessed By & \assesser \\
Department & Computer Science \\
Address & Aberystwyth University \\
& Penglais Campas \\
& Ceredigion \\
& SY23 3DB \\
\end{tabular} \\
Copyright \textcopyright Aberystwyth University 2015
\date{}
}
\pagestyle{fancy}
\fancyhf{}
\lhead{\module~Assignment}
\rhead{\authorText~-~\studentID}
\rfoot{Page \thepage \hspace{1pt} of \pageref{LastPage}}
\lfoot{Aberystwyth University - Computer Science}
\begin{document}
\setcounter{page}{1}
\maketitle
\thispagestyle{empty}
\clearpage
\tableofcontents
\clearpage
\section{Introduction}
Introduction text
\section{C}
Some content!!\cite{torvalds}
\begin{itemize}
\item Object Orientation + efficiency
\item Operator overload
\item Strings
\item Native binaries
\item Multiple Inheritance
\item Exceptions
\end{itemize}
\bibliographystyle{unsrt}
\begin{thebibliography}{1}
\bibitem{torvalds}95\% of the Linux Kernel is written in C \url{https://github.com/torvalds/linux}
\end{thebibliography}
\end{document}
% Images
%\begin{landscape}
%\begin{figure}[ht!]
%\begin{center}
%\includegraphics[scale=0.10]{../images/design.jpg}
%\caption{initial design, full res image available in images folder \label{overflow}}
%\end{center}
%\end{figure}
%\end{landscape}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment