Skip to content
Permalink
Browse files
Merge pull request #4 from aa9863/Documentation
Merge Changes to Templates from Documentation Branch
  • Loading branch information
aa9863 committed Sep 20, 2018
2 parents fbf3c49 + 987a56d commit 7cb17eace5a0e99194d02aa8a93c46e2ae6bf485
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 118 deletions.
@@ -1,13 +1,17 @@
---
# ----- THINGS THAT YOU NEED TO CHANGE ----
author: "Your Name"
sid: 424242
title: "Project Title"

# Keywords associated with your project
keywords: Comma, Seperated, Keywords

degreetitle: 'BSc: Ethical Hacking and cybersecurity'

#Hide the Declaration and Ethics Form
draft: True

#Ethics form, REPLACE THIS WITH YOUR ONE
PDF-ethics: Supporting/ethics-certificate.pdf

@@ -6,7 +6,7 @@ classoption:
- numbered
- print
- index
- oneside
- twoside

toc: true
toc-depth: 2
@@ -6,7 +6,7 @@ classoption:
- numbered
- print
- index
- oneside
- twoside

toc: true
toc-depth: 2
@@ -820,6 +820,10 @@ wish to left align your text}
% These macros are used to declare arguments needed for the
% construction of the title page and other preamble.

%DG:
\newcommand{\@stuid}{}
\newcommand{\stuid}[1]{\renewcommand{\@stuid}{#1}}

% Subtitle (optional)
\newcommand{\@subtitle}{}
\newcommand{\subtitle}[1]{\renewcommand{\@subtitle}{#1}}
@@ -927,6 +931,9 @@ wish to left align your text}
{\usebox{\PHD@author}}
\vspace{.05\PHD@titlepagespacing}

{\usebox{\PHD@SID}}
\vspace{.05\PHD@titlepagespacing}

% Degree title on first submission)
\if@finalsub
\else
@@ -1147,10 +1154,20 @@ wish to left align your text}
\centering \Large {by} \par
\vspace{0.5em}
\centering \Large \bfseries{\@author}
\vspace{0.25em}
\end{minipage}
\end{lrbox}

% DG: Student ID Box
\newsavebox{\PHD@SID}
\begin{lrbox}{\PHD@SID}
\begin{minipage}[c]{\textwidth}
\centering \Large {\@stuid}
\vspace{0.5em}
\end{minipage}
\end{lrbox}


% Award Box
\newsavebox{\PHD@award}
\begin{lrbox}{\PHD@award}
@@ -1255,6 +1272,7 @@ wish to left align your text}
\setlength{\PHD@titlepagespacing}{ \textheight %
- \totalheightof{\usebox{\PHD@Title}}
- \totalheightof{\usebox{\PHD@author}}
- \totalheightof{\usebox{\PHD@SID}}
- \totalheightof{\usebox{\PHD@supervisor}}
- \totalheightof{\usebox{\PHD@advisor}}
- \totalheightof{\usebox{\PHD@award}}
@@ -5,15 +5,6 @@ $if(colorlinks)$
$endif$
%
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$paper,$endif$$if(beamer)$ignorenonframetext,$if(handout)$handout,$endif$$if(aspectratio)$aspectratio=$aspectratio$,$endif$$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
% $if(beamer)$
% \setbeamertemplate{caption}[numbered]
% \setbeamertemplate{caption label separator}{: }
% \setbeamercolor{caption name}{fg=normal text.fg}
% \beamertemplatenavigationsymbols$if(navigation)$$navigation$$else$empty$endif$
% $endif$
% $if(beamerarticle)$
% \usepackage{beamerarticle} % needs to be loaded first
% $endif$

%DG - Remove font familty stuff
$if(fontfamily)$
@@ -148,17 +139,9 @@ $highlighting-macros$
$endif$
$if(tables)$
\usepackage{longtable,booktabs}
$if(beamer)$
\usepackage{caption}
% These lines are needed to make table captions work with longtable:
\makeatletter
\def\fnum@table{\tablename~\thetable}
\makeatother
$else$
% Fix footnotes in tables (requires footnote package)
\IfFileExists{footnote.sty}{\usepackage{footnote}\makesavenoteenv{longtable}}{}
$endif$
$endif$
$if(graphics)$
\usepackage{graphicx,grffile}
\makeatletter
@@ -170,43 +153,6 @@ $if(graphics)$
% using explicit options in \includegraphics[width, height, ...]{}
\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
$endif$
%% $if(beamer)$
%% % Prevent slide breaks in the middle of a paragraph:
%% \widowpenalties 1 10000
%% \raggedbottom
%% $if(section-titles)$
%% \setbeamertemplate{part page}{
%% \centering
%% \begin{beamercolorbox}[sep=16pt,center]{part title}
%% \usebeamerfont{part title}\insertpart\par
%% \end{beamercolorbox}
%% }
%% \setbeamertemplate{section page}{
%% \centering
%% \begin{beamercolorbox}[sep=12pt,center]{part title}
%% \usebeamerfont{section title}\insertsection\par
%% \end{beamercolorbox}
%% }
%% \setbeamertemplate{subsection page}{
%% \centering
%% \begin{beamercolorbox}[sep=8pt,center]{part title}
%% \usebeamerfont{subsection title}\insertsubsection\par
%% \end{beamercolorbox}
%% }
%% \AtBeginPart{
%% \frame{\partpage}
%% }
%% \AtBeginSection{
%% \ifbibliography
%% \else
%% \frame{\sectionpage}
%% \fi
%% }
%% \AtBeginSubsection{
%% \frame{\subsectionpage}
%% }
%% $endif$
%% $endif$
$if(links-as-notes)$
% Make links footnotes instead of hotlinks:
\DeclareRobustCommand{\href}[2]{#2\footnote{\url{#1}}}
@@ -224,10 +170,7 @@ $if(numbersections)$
$else$
\setcounter{secnumdepth}{0}
$endif$
$if(beamer)$
$else$
$if(subparagraph)$
$else$
% Redefines (sub)paragraphs to behave more like sections
\ifx\paragraph\undefined\else
\let\oldparagraph\paragraph
@@ -238,7 +181,6 @@ $else$
\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
\fi
$endif$
$endif$
$if(pagestyle)$
\pagestyle{$pagestyle$}
$endif$
@@ -298,27 +240,26 @@ $endif$
%Allow PDF to be included
\usepackage{pdfpages}

%TITLE
$if(title)$
%EXISTS

\title{$title$$if(thanks)$\thanks{$thanks$}$endif$}
$endif$
$if(subtitle)$
\providecommand{\subtitle}[1]{}
\subtitle{$subtitle$}
$endif$
%TITEND

%METTIT
$if(title-meta)$
%MET EXISTS
$endif$
%ENDMETTIT

$if(author)$
\author{$for(author)$$author$$sep$ \and $endfor$}
$endif$


%\stuid{42}

$if(sid)$
\stuid{$sid$}
$endif$

$if(dept)$
\dept{$dept$}
$endif$
@@ -341,63 +282,47 @@ $if(institute)$
\institute{$for(institute)$$institute$$sep$ \and $endfor$}
$endif$
\date{$date$}
$if(beamer)$
$if(titlegraphic)$
\titlegraphic{\includegraphics{$titlegraphic$}}
$endif$
$if(logo)$
\logo{\includegraphics{$logo$}}
$endif$
$endif$

\begin{document}
\frontmatter
$if(title)$
$if(beamer)$
\frame{\titlepage}
$else$
\maketitle
$endif$
\maketitle
$endif$
%
$if(PDF-ethics)$
\includepdf[pages=-]{$PDF-ethics$}
$endif$
%
$if(TEX-declaration)$
%\input{"/tmp/02-Originallity_Statement.tex"}
\input{$TEX-declaration$}
$endif$
%
$if(PDF-declaration)$
\includepdf[pages=-]{$PDF-declaration$}
$endif$
%
$if(abstract)$
\begin{abstract}
$abstract$
\end{abstract}
$endif$
$if(draft)$
$else$
$if(PDF-ethics)$
\includepdf[pages=-]{$PDF-ethics$}
$endif$
%
$if(TEX-declaration)$
\input{$TEX-declaration$}
$endif$
%
$if(PDF-declaration)$
\includepdf[pages=-]{$PDF-declaration$}
$endif$
%
$endif$ %Stop Hiding Stuff if not in draft mode
$if(abstract)$
\begin{abstract}
$abstract$
\end{abstract}
$endif$
%
%
$for(include-before)$
$include-before$
$endfor$
$if(toc)$
$if(beamer)$
\begin{frame}
\tableofcontents[hideallsubsections]
\end{frame}
$else$
{
$if(colorlinks)$
\hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$$endif$}
$endif$
\setcounter{tocdepth}{$toc-depth$}
\tableofcontents
$if(colorlinks)$
\hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$$endif$}
$endif$
\setcounter{tocdepth}{$toc-depth$}
\tableofcontents
}
$endif$
$endif$
$if(lot)$
\listoftables
$endif$
@@ -419,14 +344,7 @@ $else$
\renewcommand\refname{$biblio-title$}
$endif$
$endif$
$if(beamer)$
\begin{frame}[allowframebreaks]{$biblio-title$}
\bibliographytrue
$endif$
\bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$}
$if(beamer)$
\end{frame}
$endif$

$endif$
$endif$

0 comments on commit 7cb17ea

Please sign in to comment.