College shield

This commit is contained in:
Krishna Kumar 2015-06-19 23:22:31 +01:00
parent 9d18abc2b4
commit 5623f64387
7 changed files with 7603 additions and 4429 deletions

View File

@ -4,15 +4,15 @@
%% %%
%% A PhD thesis LaTeX template for Cambridge University Engineering Department%%
%% %%
%% Version: v2.0 Beta %%
%% Version: v2.0 %%
%% Authors: Krishna Kumar %%
%% License: MIT License (c) 2015 Krishna Kumar %%
%% GitHub Repo: https://github.com/kks32/phd-thesis-template/ %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ************************** Class Identification ******************************
\newcommand\fileversion{2.0Beta}
\newcommand\filedate{2015/04/26}
\newcommand\fileversion{2.0}
\newcommand\filedate{2015/06/19}
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{PhDThesisPSnPDF}[\filedate\space A PhD thesis class file
by Krishna Kumar (v\fileversion)]
@ -381,12 +381,12 @@ supported!}
}%
\AtBeginDocument{%
\patchBothAmsMathEnvironmentsForLineno{equation}%
\patchBothAmsMathEnvironmentsForLineno{align}%
\patchBothAmsMathEnvironmentsForLineno{flalign}%
\patchBothAmsMathEnvironmentsForLineno{alignat}%
\patchBothAmsMathEnvironmentsForLineno{gather}%
\patchBothAmsMathEnvironmentsForLineno{multline}%
\patchBothAmsMathEnvironmentsForLineno{equation}%
\patchBothAmsMathEnvironmentsForLineno{align}%
\patchBothAmsMathEnvironmentsForLineno{flalign}%
\patchBothAmsMathEnvironmentsForLineno{alignat}%
\patchBothAmsMathEnvironmentsForLineno{gather}%
\patchBothAmsMathEnvironmentsForLineno{multline}%
}
\fi % End \ifPDH@lineno
@ -397,23 +397,30 @@ supported!}
% Draft text
\newcommand\drafttext{Draft}
\renewcommand\SetDraftText[1]{%
\renewcommand\drafttext{#1}}
\renewcommand\drafttext{#1}
}
% Draft Version
\newcommand\draftVersion{v1.0}
\renewcommand\SetDraftVersion[1]{%
\renewcommand\draftVersion{#1}}
\renewcommand\draftVersion{#1}
}
% Draft Gray Scale
\newcommand\draftGrayScale{0.75}
\renewcommand\SetDraftGrayScale[1]{%
\renewcommand\draftGrayScale{#1}}
\renewcommand\draftGrayScale{#1}
}
% Draft Content
\newcommand\DraftContent{%
\hspace*{\fill}
\Large
\textcolor[gray]{\draftGrayScale}{%
{\drafttext}\space-\space{\draftVersion}\hspace{\stretch{1}}{\PHD@daytime}
\hspace*{\fill}}}
\hspace*{\fill}
\Large
\textcolor[gray]{\draftGrayScale}{%
{\drafttext}\space-\space{\draftVersion}\hspace{\stretch{1}}{\PHD@daytime}
\hspace*{\fill}
}
}
% Adding watermark in draft mode with time stamp
\RequirePackage{everypage}
@ -422,23 +429,23 @@ supported!}
\newcommand\draftposition{top}
\newcommand\draftnodeanchor{1in+\voffset-\topmargin}
\AddEverypageHook{%
\begin{textblock*}{\paperwidth}[0.,2.5](0\paperwidth,\draftnodeanchor)
\DraftContent
\end{textblock*}
\begin{textblock*}{\paperwidth}[0.,2.5](0\paperwidth,\draftnodeanchor)
\DraftContent
\end{textblock*}
}
% Conditional evaluation to position the draft water mark (top / bottom)
\renewcommand\SetDraftWMPosition[1]{%
\renewcommand\draftposition{#1}
\ifthenelse{\equal{\draftposition}{bottom}}
{\renewcommand\draftnodeanchor{\paperheight-\voffset}} %Bottom
{\ifthenelse{\equal{\draftposition}{top}}
{\renewcommand\draftnodeanchor{1in+\voffset-\topmargin}} %Top
{\ClassWarning{PDThesisPSnPDF}{Unrecognised draft position
using default value of top}
\renewcommand\draftnodeanchor{1in+\voffset-\topmargin}}} %Top
\AddEverypageHook{%
{\renewcommand\draftnodeanchor{\paperheight-\voffset}} %Bottom
{\ifthenelse{\equal{\draftposition}{top}}
{\renewcommand\draftnodeanchor{1in+\voffset-\topmargin}} %Top
{\ClassWarning{PDThesisPSnPDF}{Unrecognised draft position
using default value of top}
\renewcommand\draftnodeanchor{1in+\voffset-\topmargin}}} %Top
\AddEverypageHook{%
\begin{textblock*}{\paperwidth}[0.,2.5](0\paperwidth,\draftnodeanchor)
\DraftContent
\end{textblock*}
@ -864,6 +871,11 @@ wish to left align your text}
\newcommand{\@crest}{}
\newcommand{\crest}[1]{\renewcommand{\@crest}{#1}}
% Defining the college crest
\newif\ifPHD@collegeshield\PHD@collegeshieldfalse
\newcommand{\@collegeshield}{}
\newcommand{\collegeshield}[1]{\renewcommand{\@collegeshield}{#1}\PHD@collegeshieldtrue}
% Submission Text
\newcommand{\submissiontext}{This dissertation is submitted for the degree of }
@ -912,8 +924,8 @@ wish to left align your text}
\else
\@restonecolfalse\newpage
\fi
\thispagestyle{empty}
\setcounter{page}\z@
\thispagestyle{empty}
\setcounter{page}\z@
}%
{
@ -939,55 +951,47 @@ wish to left align your text}
\begin{singlespace}
\begin{center}
% Title
{\Huge \bfseries{\@title} \par}
\ifthenelse{\equal{\@subtitle}{}}{
% subtitle is not defined
}{
\vspace*{1em}
\centering \Large {\@subtitle}
} % subtitle is defined
\vspace{.25\PHD@titlepagespacing}
% University Crest Long if college crest is defined
\ifPHD@collegeshield%
{\usebox{\PHD@crest}}
\vspace{.15\PHD@titlepagespacing}
\fi
% Title
{\usebox{\PHD@Title}} % subtitle is defined
% Crest
{\@crest \par}
\vspace{.2\PHD@titlepagespacing}
\ifPHD@collegeshield%
\vspace{.15\PHD@titlepagespacing}
{\usebox{\PHD@collegecrest}}
\vspace{.1\PHD@titlepagespacing}
\else
\vspace{.25\PHD@titlepagespacing}
{\usebox{\PHD@crest}}
\vspace{.15\PHD@titlepagespacing}
\fi
% Author
{\Large \bfseries{\@author} \par}
{\usebox{\PHD@author}}
\vspace*{1em}
% Department and University
{\large \@dept \par}
\vspace*{1ex}
{\large \@university \par}
{\usebox{\PHD@dept}}
\vspace{.2\PHD@titlepagespacing}
% Submission Text
{\large \submissiontext \par}
\vspace*{1ex}
{\large \textit {\@degreetitle} \par}
{\usebox{\PHD@submission}}
\end{center}
% College and degree date
\vfill
\large
\ifthenelse{\equal{\@college}{}}{
% college is not defined
\centering
\@degreedate
}{
% college is defined
\begin{minipage}[b]{0.45\textwidth}
\flushleft\@college
\end{minipage}
\begin{minipage}[b]{0.45\textwidth}
\flushright\@degreedate
\end{minipage}
} % end-if- college is defined
{\usebox{\PHD@collegedate}}
\end{singlespace}
}
@ -1123,24 +1127,23 @@ wish to left align your text}
\newenvironment{abstract} {
\ifPHD@abstract
% Separate abstract as per Student Registry guidelines
\thispagestyle{empty}
\setsinglecolumn
\begin{center}
{ \Large {\bfseries {\@title}} \par}
{{\large \vspace*{1em} \@author} \par}
\end{center}
\thispagestyle{empty}
\setsinglecolumn
\begin{center}
{ \Large {\bfseries {\@title}} \par}
{{\large \vspace*{1em} \@author} \par}
\end{center}
\else
% Normal abstract in the thesis
\cleardoublepage
\setsinglecolumn
\chapter*{\centering \Large Abstract}
\thispagestyle{empty}
\cleardoublepage
\setsinglecolumn
\chapter*{\centering \Large Abstract}
\thispagestyle{empty}
\fi
}
% ******************** To compute empty space in title page ********************
% ******************** To compute empty space in title page *******************
% Boxes below are used to space different contents on the title page
% Based on https://github.com/cambridge/thesis
@ -1150,70 +1153,77 @@ wish to left align your text}
% Title Box
\newsavebox{\PHD@Title}
\begin{lrbox}{\PHD@Title}
\begin{minipage}[c]{0.98\textwidth}
\centering \Huge \bfseries{\@title}
\ifthenelse{\equal{\@subtitle}{}}{
% subtitle is not defined
}{
\vspace*{1em}
\centering \Large {\@subtitle}
} % subtitle is defined
\end{minipage}
\begin{minipage}[c]{0.98\textwidth}
\centering \Huge \bfseries{\@title}
\ifthenelse{\equal{\@subtitle}{}}{
% subtitle is not defined
}{
\\
\centering \Large {\@subtitle}
} % subtitle is defined
\end{minipage}
\end{lrbox}
% University Crest Box
\newsavebox{\PHD@crest}
\begin{lrbox}{\PHD@crest}
\@crest
{\@crest \par}
\end{lrbox}
\newsavebox{\PHD@collegecrest}
\begin{lrbox}{\PHD@collegecrest}
\ifPHD@collegeshield%
{\@collegeshield}
\else
% College shield is undefined
\fi
\end{lrbox}
% Author Box
\newsavebox{\PHD@author}
\begin{lrbox}{\PHD@author}
\begin{minipage}[c]{\textwidth}
\centering \Large \bfseries{\@author}
\end{minipage}
\begin{minipage}[c]{\textwidth}
\centering \Large \bfseries{\@author}
\end{minipage}
\end{lrbox}
% Department Box
\newsavebox{\PHD@dept}
\begin{lrbox}{\PHD@dept}
\begin{minipage}[c]{\textwidth}
\centering {\large \@dept \par}
\vspace*{1em}
{\large \@university \par}
\end{minipage}
\begin{minipage}[c]{\textwidth}
\centering {\large \@dept \par}
{\large \@university \par}
\end{minipage}
\end{lrbox}
% Submission Box
\newsavebox{\PHD@submission}
\begin{lrbox}{\PHD@submission}
\begin{minipage}[c]{\textwidth}
\begin{center}
\large \submissiontext \par
\vspace*{1ex}
\large \textit {\@degreetitle} \par
\end{center}
\end{minipage}
\begin{minipage}[c]{\textwidth}
\begin{center}
\large \submissiontext \par
\large \textit {\@degreetitle} \par
\end{center}
\end{minipage}
\end{lrbox}
% College and Date Box
\newsavebox{\PHD@collegedate}
\begin{lrbox}{\PHD@collegedate}
\begin{minipage}[c]{\textwidth}
\large
\ifthenelse{\equal{\@college}{}}{
% college is not defined
\@degreedate
}{
% college is defined
\begin{minipage}{0.49\textwidth}
\flushleft\@college
\end{minipage}
\begin{minipage}{0.49\textwidth}
\flushright \@degreedate
\end{minipage}
} % college is defined
\large
\ifthenelse{\equal{\@college}{}}{
% college is not defined
\@degreedate
}{
% college is defined
\begin{minipage}[b]{0.49\textwidth}
\flushleft\@college
\end{minipage}
\begin{minipage}[b]{0.49\textwidth}
\flushright \@degreedate
\end{minipage}
} % college is defined
\end{minipage}
\end{lrbox}
@ -1222,6 +1232,7 @@ wish to left align your text}
\setlength{\PHD@titlepagespacing}{ \textheight %
- \totalheightof{\usebox{\PHD@Title}}
- \totalheightof{\usebox{\PHD@crest}}
- \totalheightof{\usebox{\PHD@collegecrest}}
- \totalheightof{\usebox{\PHD@author}}
- \totalheightof{\usebox{\PHD@dept}}
- \totalheightof{\usebox{\PHD@submission}}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -17,10 +17,14 @@ CUED PhD thesis template
* Adaptive Title Page: Title page adapts to title length
* Title page with both College and University crests.
* Print / On-line version: Different layout and hyper-referencing styles
* Pre-defined and custom fonts (Times / Fourier / Latin Modern) with math support
* Supports system fonts (XeLaTeX)
* Pre-defined and custom bibliography style support (authoryear / numbered / custom)
* Custom page styles: 3 Different Header / Footer styles
@ -51,7 +55,7 @@ This template supports `XeLaTeX` compilation chain. To generate PDF run
This template supports `XeLaTeX` compilation chain. To generate PDF run
latexmk -pdflatex=lualatex -pdf thesis.tex
latexmk -pdflatex=lualatex -pdf thesis.tex
## Building your thesis - LaTeX / PDFLaTeX
@ -173,11 +177,16 @@ The front page (title page) resizes to fit your title length. You can modify the
If `\college` is defined, the bottom of the title page will look like this:
King's College 2014
King's College 2014
If `\college` is undefined or blank, the `degreedate` will be centered.
2014
2014
The template offers support to having both the college and university crests or just one of the crests.
* `\collegeshield` (optional): Includes college crest in addition to the university crest. This reformats the front page layout.
### Abstract separate
* A separate abstract with the title of the PhD and the candidate name has to be submitted to the Student Registry. This can be generated using `abstract` option in the document class. Ignore subsequent warnings about skipping sections (if any).
@ -418,7 +427,25 @@ or
or
`texcount -inc *.tex` (eg., result 2341 words)
#### _Q5_: I found a bug in the template. Where do I report bugs?
#### _Q5_: How do I use a system font (libertine)?
To use a system font (open type) font with XeLaTeX, please select `customfont` option in the `documentclass` in `thesis.tex`. Add the path and font name to the custom font definition in `preamble.tex`
\ifsetCustomFont
\setmainfont[
Path = ./libertine/opentype/,
Extension = .otf,
UprightFont = LinLibertine_R,
BoldFont = LinLibertine_RZ, % Regular Semibold
ItalicFont = LinLibertine_RI,
BoldItalicFont = LinLibertine_RZI, % Regular Semibold Italic
] {libertine}
\newfontfamily\libertinesystemfont{Linux Libertine O}
\fi
Please use XeLaTeX tool chain with LaTeXmk.
#### _Q6_: I found a bug in the template. Where do I report bugs?
You can report issues at
[our GitHub repository](https://github.com/kks32/phd-thesis-template).

View File

@ -17,7 +17,7 @@
%% University and Crest
\university{University of Cambridge}
% Crest minimum should be 30mm.
\crest{\includegraphics[width=0.2\textwidth]{University_Crest}}
%\crest{\includegraphics[width=0.2\textwidth]{University_Crest}}
%% Use this crest, if you are using the college crest
%% Crest long miminum should be 65mm
%\crest{\includegraphics[width=0.45\textwidth]{University_Crest_Long}}

Binary file not shown.

9250
thesis.ps

File diff suppressed because it is too large Load Diff