Skip to content
Permalink
Browse files
Added tudent Id to the Document Metadata
  • Loading branch information
aa9863 committed Sep 20, 2018
1 parent 506e0f9 commit 987a56db66a57f39573ee3a646087a8f97982dc5
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 9 deletions.
@@ -1,6 +1,7 @@
---
# ----- THINGS THAT YOU NEED TO CHANGE ----
author: "Your Name"
sid: 424242
title: "Project Title"

# Keywords associated with your project
@@ -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}}
@@ -240,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$

0 comments on commit 987a56d

Please sign in to comment.