diff --git a/.gitignore b/.gitignore index b3e5304..c7668f5 100644 --- a/.gitignore +++ b/.gitignore @@ -119,4 +119,7 @@ sympy-plots-for-*.tex/ *.tdo # xindy -*.xdy \ No newline at end of file +*.xdy + +# Don't store PDF in git +Main.pdf \ No newline at end of file diff --git a/Appendices.tex b/Appendices.tex index 86e242a..169db61 100644 --- a/Appendices.tex +++ b/Appendices.tex @@ -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 diff --git a/Main.tex b/Main.tex index 0fa480e..9cd3d39 100644 --- a/Main.tex +++ b/Main.tex @@ -76,6 +76,8 @@ \setcounter{secnumdepth}{3} \setcounter{tocdepth}{3} +% Ensure Helvetica +\renewcommand\familydefault{\sfdefault} \begin{document} diff --git a/Preamble.tex b/Preamble.tex index bdf287d..6f446f2 100644 --- a/Preamble.tex +++ b/Preamble.tex @@ -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 diff --git a/ucl_thesis.cls b/ucl_thesis.cls index 99cc1de..8e08477 100644 --- a/ucl_thesis.cls +++ b/ucl_thesis.cls @@ -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} @@ -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% @@ -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{}{}{} + \setbox0=\hbox{#3}% Put in a box + \AddToShipoutPictureFG*{% Add 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}% @@ -422,7 +444,8 @@ \gdef \@address{}% \gdef \@thanks{}% %\gdef \@author{}% - \gdef \@department{}% + \ifthenelse{\boolean{useuclbanner}}{}{% + \gdef \@department{}}% \gdef \@title{}% \let \maketitle = \relax% } @@ -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. @@ -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}