Skip to content

Instantly share code, notes, and snippets.

@bag-man

bag-man/template.tex

Last active Aug 29, 2015
Embed
What would you like to do?
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
You can’t perform that action at this time.