Added support to include supervisor and advisor

This commit is contained in:
Krishna Kumar 2015-12-21 18:16:39 +00:00
parent 928336b534
commit a5feb0732d
6 changed files with 637 additions and 469 deletions

View File

@ -1,4 +1,8 @@
## Change log
### 2015/06/20 - Version 2.1
> Commit
* Support for including supervisor and/or advisor
### 2015/06/20 - Version 2.0.1
> Commit 0e0d1e617acb42b034870ea325271cce8d3d8d8e
* Fixed centering of year on front page - Issue #16

View File

@ -4,15 +4,15 @@
%% %%
%% A PhD thesis LaTeX template for Cambridge University Engineering Department%%
%% %%
%% Version: v2.0 %%
%% Version: v2.1 %%
%% Authors: Krishna Kumar %%
%% License: MIT License (c) 2015 Krishna Kumar %%
%% GitHub Repo: https://github.com/kks32/phd-thesis-template/ %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ************************** Class Identification ******************************
\newcommand\fileversion{2.0}
\newcommand\filedate{2015/06/20}
\newcommand\fileversion{2.1}
\newcommand\filedate{2015/12/21}
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{PhDThesisPSnPDF}[\filedate\space A PhD thesis class file
by Krishna Kumar (v\fileversion)]
@ -876,10 +876,27 @@ wish to left align your text}
\newcommand{\@collegeshield}{}
\newcommand{\collegeshield}[1]{\renewcommand{\@collegeshield}{#1}\PHD@collegeshieldtrue}
% Supervisor
\newif\ifPHD@supervisor\PHD@supervisorfalse
\newcommand{\@supervisor}{}
\newcommand{\supervisor}[1]{\renewcommand{\@supervisor}{#1}\PHD@supervisortrue}
% Supervisor Title (Supervisor - Default, can be changed)
\newcommand{\@supervisorrole}{Supervisor: }
\newcommand{\supervisorrole}[1]{\renewcommand{\@supervisorrole}{#1}}
% Advisor
\newif\ifPHD@advisor\PHD@advisorfalse
\newcommand{\@advisor}{}
\newcommand{\advisor}[1]{\renewcommand{\@advisor}{#1}\PHD@advisortrue}
% Advisor Title (Advisor - Default, can be changed)
\newcommand{\@advisorrole}{Advisor: }
\newcommand{\advisorrole}[1]{\renewcommand{\@advisorrole}{#1}}
% Submission Text
\newcommand{\submissiontext}{This dissertation is submitted for the degree of }
% keywords (These keywords will appear in the PDF meta-information
% called `pdfkeywords`.)
\newcommand{\@keywords}{}
@ -980,6 +997,18 @@ wish to left align your text}
{\usebox{\PHD@author}}
\vspace*{1em}
% Supervisor
\ifPHD@supervisor%
{\usebox{\PHD@supervisor}}
\vspace*{0.5em}
\fi
% Advisor
\ifPHD@advisor%
{\usebox{\PHD@advisor}}
\vspace*{0.5em}
\fi
% Department and University
{\usebox{\PHD@dept}}
\vspace{.2\PHD@titlepagespacing}
@ -1188,6 +1217,30 @@ wish to left align your text}
\end{minipage}
\end{lrbox}
% Supervisor Box
\newsavebox{\PHD@supervisor}
\begin{lrbox}{\PHD@supervisor}
\begin{minipage}[c]{\textwidth}
\ifthenelse{\equal{\@supervisor}{}}{
% supervisor is not defined
}{
\centering \Large {\@supervisorrole \@supervisor}
} % supervisor is defined
\end{minipage}
\end{lrbox}
% Advisor Box
\newsavebox{\PHD@advisor}
\begin{lrbox}{\PHD@advisor}
\begin{minipage}[c]{\textwidth}
\ifthenelse{\equal{\@advisor}{}}{
% advisor is not defined
}{
\centering \Large {\@advisorrole \@advisor}
} % advisor is defined
\end{minipage}
\end{lrbox}
% Department Box
\newsavebox{\PHD@dept}
\begin{lrbox}{\PHD@dept}
@ -1237,6 +1290,8 @@ wish to left align your text}
- \totalheightof{\usebox{\PHD@crest}}
- \totalheightof{\usebox{\PHD@collegecrest}}
- \totalheightof{\usebox{\PHD@author}}
- \totalheightof{\usebox{\PHD@supervisor}}
- \totalheightof{\usebox{\PHD@advisor}}
- \totalheightof{\usebox{\PHD@dept}}
- \totalheightof{\usebox{\PHD@submission}}
- \totalheightof{\usebox{\PHD@collegedate}}

View File

@ -38,6 +38,8 @@ CUED PhD thesis template
* Draft mode: Draft water mark, timestamp, version numbering and line numbering
* Add supervisor and/or advisor to your PhD thesis or MPhil report
* A LyX Template is now available at [https://github.com/kks32/PhDThesisLyX/](https://github.com/kks32/PhDThesisLyX/)
--------------------------------------------------------------------------------

View File

@ -26,6 +26,18 @@
% Crest minimum should be 30mm.
%\collegeshield{\includegraphics[width=0.2\textwidth]{CollegeShields/Kings}}
%% Supervisor (optional)
%\supervisor{Prof. Kenichi Soga}
%% Supervisor Role (optional) - Supervisor (default) or advisor
%\supervisorrole{Advisor: }
%% Advisor (optional)
%\advisor{Prof. Malcolm Bolton}
%% Advisor Role (optional) - Advisor (default) or leave empty
%\advisorrole{Advisor: }
%% You can redefine the submission text:
% Default as per the University guidelines:
% ``This dissertation is submitted for the degree of''

Binary file not shown.

1023
thesis.ps

File diff suppressed because it is too large Load Diff