Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow UCL Banner, Allow extra declaration, Signature on Declaration, … #25

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,7 @@ sympy-plots-for-*.tex/
*.tdo

# xindy
*.xdy
*.xdy

# Don't store PDF in git
Main.pdf
2 changes: 1 addition & 1 deletion Appendices.tex
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ \chapter{Colophon}
\label{appendixlabel3}
\textit{This is a description of the tools you used to make your thesis. It helps people make future documents, reminds you, and looks good.}

\textit{(example)} This document was set in the Times Roman typeface using \LaTeX\ and Bib\TeX , composed with a text editor.
\textit{(example)} This document was set in the Helvetica typeface using \LaTeX\ and Bib\TeX , composed with a text editor.
% description of document, e.g. type faces, TeX used, TeXmaker, packages and things used for figures. Like a computational details section.
% e.g. http://tex.stackexchange.com/questions/63468/what-is-best-way-to-mention-that-a-document-has-been-typeset-with-tex#63503

Expand Down
2 changes: 2 additions & 0 deletions Main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}

% Ensure Helvetica
\renewcommand\familydefault{\sfdefault}

\begin{document}

Expand Down
11 changes: 11 additions & 0 deletions Preamble.tex
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,21 @@
% \renewcommand {\@degree@string} {Master of Things}
% \makeatother

% Flags for content selection;
% They should be before calls to \maketitle, \makedeclaration etc.
% If set to true, download EPS file from: https://imagestore.ucl.ac.uk/imagestore/start/ucl-banners/For%20PRINT?authrequest=1&https=1
\setbool{useuclbanner}{false}
\uclbannerlocation{images/ucl-banner-a4.eps}

\title{A Thesis Title}
\author{Author Name}
\department{Department of Something}

% You can use this for extra information after the boilerplate declaration.
% Use the \\ macro for new lines. Can be useful if you have to declare
% contributions on papers.
\extradeclaration{}

\maketitle
\makedeclaration

Expand Down
56 changes: 50 additions & 6 deletions ucl_thesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,19 @@
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
\ProcessOptions
\LoadClass{book}
% This is the package that sets the fonts up as Times New Roman.
% This is the package that sets the fonts up as Helvetica/Arial per UCL requirement
\RequirePackage[scaled]{helvet}
\RequirePackage{mathptmx}
% The mathptmx package makes a subset of the math glyphs (mathcal) extremely calligraphically loopy.
% This sets sets the "alphabet" for \mathcal for the OMS encoding block, to the cmsy font,
% m series (medium, I think), n weight, which is the ordinary default.
% See issue #19 for some reference links and examples.
\DeclareMathAlphabet{\mathcal}{OMS}{cmsy}{m}{n}
% Used to select content
\RequirePackage{ifthen}
% Used for the text over the UCL Banner
\RequirePackage{xcolor}
\RequirePackage[pscoord]{eso-pic}
% \end{macrocode}
%
% \subsection{Page Layout}
Expand Down Expand Up @@ -202,9 +208,9 @@
% \begin{macro}{\ps@headings}
% Define a new style so that all the standard styles are available.
% \begin{macrocode}
\def \ps@headings{%
\def \@oddhead{\normalfont \rmfamily \slshape \hfill \rightmark \hfill \thepage}%
\def \@evenhead{\normalfont \rmfamily \slshape \thepage \hfill \leftmark \hfill}%
\def \ps@headings{%
\def \@oddhead{\normalfont \sffamily \slshape \hfill \rightmark \hfill \thepage}%
\def \@evenhead{\normalfont \sffamily \slshape \thepage \hfill \leftmark \hfill}%
\let \@oddfoot = \@empty%
\let \@evenfoot = \@empty%
\let \@mkboth = \markboth%
Expand Down Expand Up @@ -413,6 +419,22 @@
% \begin{macrocode}
\def\department#1{\gdef\@department{#1}}
\def\@department{\@latex@warning@no@line{No \noexpand\department given}}
% Allows extra text after the boiler-plate declaration
\def\extradeclaration#1{\gdef\@extradeclaration{#1}}
% Allows using the UCL eps A4 banners on the title page
\def\uclbannerlocation#1{\gdef\@uclbannerlocation{#1}}
\newboolean{useuclbanner}
\setboolean{useuclbanner}{false}
\ifthenelse{\boolean{useuclbanner}}%
{\def\@uclbannerlocation{\@latex@warning@no@line{No \noexpand\uclbannerlocation given}}}{}
% Used to place the department and UCL over the UCL eps banner
\newcommand{\placetextbox}[3]{% \placetextbox{<horizontal pos>}{<vertical pos>}{<stuff>}
\setbox0=\hbox{#3}% Put <stuff> in a box
\AddToShipoutPictureFG*{% Add <stuff> to current page foreground
\put(\LenToUnit{#1\paperwidth},\LenToUnit{#2\paperheight}){\vtop{{\null}\makebox[0pt][l]{\begin{tabular}{l}#3\end{tabular}}}}%
}%
}
%
\renewcommand \maketitle{%
\setcounter{page}{1}%
\thispagestyle{empty}%
Expand All @@ -422,7 +444,8 @@
\gdef \@address{}%
\gdef \@thanks{}%
%\gdef \@author{}%
\gdef \@department{}%
\ifthenelse{\boolean{useuclbanner}}{}{%
\gdef \@department{}}%
\gdef \@title{}%
\let \maketitle = \relax%
}
Expand All @@ -434,6 +457,17 @@
\newcommand \@maketitle{%
\newpage%
\null%
\ifthenelse{\boolean{useuclbanner}}{%
% The magic numbers here assume the standard UCL A4 Header EPS file
\vspace*{-100pt}%
\hspace*{-134.5pt}%
\includegraphics{\@uclbannerlocation}%
\placetextbox{0.14}{0.899}{%
\textcolor{white}{\large \bfseries \@department}\\%
\textcolor{white}{\large \bfseries University College London}%
}%
}{}%
\null%
\vspace*{5em}%
%%%
%%% Julia Schnabel wanted the following added.
Expand Down Expand Up @@ -476,9 +510,19 @@
% \begin{macrocode}
\newcommand \makedeclaration {%
\clearpage%
\thispagestyle{empty}%
I, \@author , confirm that the work presented in this thesis is my own.
Where information has been derived from other sources, I confirm that this has been indicated in the work.
Where information has been derived from other sources, I confirm that
this has been indicated in the work. \@extradeclaration

\null
\vspace*{2em}
\noindent Date: \@date\\
Name: \@author\\
Signature:
\gdef \@author{}%
\ifthenelse{\boolean{useuclbanner}}{%
\gdef \@department{}}{}%
\clearpage%
}%
% \end{macrocode}
Expand Down