diff --git a/PhDThesisPSnPDF.cls b/PhDThesisPSnPDF.cls index 4b501880..2cd82892 100644 --- a/PhDThesisPSnPDF.cls +++ b/PhDThesisPSnPDF.cls @@ -4,15 +4,15 @@ %% %% %% A PhD thesis LaTeX template for Cambridge University Engineering Department%% %% %% -%% Version: v2.4 %% +%% Version: v2.5 %% %% Authors: Krishna Kumar %% %% License: MIT License (c) 2016-2018 Krishna Kumar %% %% GitHub Repo: https://github.com/kks32/phd-thesis-template/ %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % ************************** Class Identification ****************************** -\newcommand\fileversion{2.4} -\newcommand\filedate{2018/04/12} +\newcommand\fileversion{2.5} +\newcommand\filedate{2020/12/02} \NeedsTeXFormat{LaTeX2e} \ProvidesClass{PhDThesisPSnPDF}[\filedate\space A PhD thesis class file by Krishna Kumar (v\fileversion)] @@ -224,6 +224,12 @@ footnotes.} \DeclareOption{lineno}{\PHD@linenotrue} \DeclareOption{nolineno}{\PHD@linenofalse} +% Declare new Boolean variable to allow separate toggle +% to include author name and title in abstract, +% i.e. Cambridge BGS style +\newif\ifntabstract\ntabstracttrue +\DeclareOption{ntabstract}{\ntabstracttrue} +\DeclareOption{nontabstract}{\ntabstractfalse} % Generates Warning for unknown options \DeclareOption*{ @@ -622,8 +628,10 @@ supported!} \ifsetCustomMargin % Margin to be define in preamble using geometry package \else - \RequirePackage[paper=\PHD@papersize,hmarginratio=1:1, - vmarginratio=1:1,scale=0.75,bindingoffset=5mm]{geometry} + % Edited DYC 2020 so print and online versions have the same + % body space per page + \RequirePackage[paper=\PHD@papersize,hmarginratio=1:1, + vmarginratio=1:1,vscale=0.75,width=157mm,bindingoffset=5mm]{geometry} \fi \if@twoside @@ -655,8 +663,10 @@ supported!} % Margin to be define in preamble using geometry package \else % No Margin staggering on Odd and Even side + % Edited DYC 2020 so print and online versions have the same + % body space per page \RequirePackage[paper=\PHD@papersize,hmarginratio=1:1, - vmarginratio=1:1,scale=0.75]{geometry} % dvips + vmarginratio=1:1,vscale=0.75,width=157mm]{geometry} % dvips \fi \hypersetup{pdfpagelayout=OneColumn} \fi @@ -1102,10 +1112,11 @@ wish to left align your text} % The abstract environment puts a large, bold, centered "Abstract" label at % the top of the page. Defines both abstract and separate abstract environment -% To include only the Title and the abstract pages for submission to BoGS +% To include only the abstract pages for submission to BoGS \ifPHD@abstract \defineAbstracttrue - % Disable the table of contents, figures, tables, index and nomenclature + % Disable the title, table of contents, figures, tables, index and nomenclature + \renewcommand{\maketitle}{} % Added by DYC 2020 \renewcommand{\tableofcontents}{} \renewcommand{\listoffigures}{} \renewcommand{\listoftables}{} @@ -1118,10 +1129,11 @@ wish to left align your text} \defineAbstractfalse \fi - \newenvironment{abstract} { -\ifPHD@abstract -% Separate abstract as per Student Registry guidelines +\ifntabstract +% Print name and title on abstract, whether when +% abstract is standalone or toggled by ntabstract option +% (per Student Registry guidelines) \thispagestyle{empty} \setsinglecolumn \begin{center} @@ -1129,7 +1141,8 @@ wish to left align your text} {{\large \vspace*{1em} \@author} \par} \end{center} \else -% Normal abstract in the thesis +% Normal abstract in the thesis, +% toggled by nontabstract option \cleardoublepage \setsinglecolumn \chapter*{\centering \Large \@abstracttitle} diff --git a/README.md b/README.md index 63c9048f..ea5c5ebc 100644 --- a/README.md +++ b/README.md @@ -183,6 +183,8 @@ It supports the following custom options in the documentclass in thesis.tex: * `abstract`: This option enables only the thesis title page and the abstract with title and author to be printed. +* `nontabstract`: This option prints the heading "Abstract" rather than your name and thesis title onto the abstract page of your thesis when the whole thesis is compiled. + * `chapter`: This option enables only the specified chapter and it's references. Useful for review and corrections. * `draft`: The default draft mode supports some special features such as line numbers, images, and water mark with diff --git a/thesis.tex b/thesis.tex index f3ea1128..81196d6a 100644 --- a/thesis.tex +++ b/thesis.tex @@ -31,6 +31,9 @@ % `abstract': To generate only the title page and abstract page with % dissertation title and name, to submit to the Student Registry % +% `nontabstract': To remove name and title from abstract page +% when bound into thesis +% % `chapter`: This option enables only the specified chapter and it's references % Useful for review and corrections. % @@ -87,13 +90,13 @@ \input{thesis-info} % ***************************** Abstract Separate ****************************** -% To printout only the titlepage and the abstract with the PhD title and the +% To printout only the abstract with the PhD title and the % author name for submission to the Student Registry, use the `abstract' option in % the document class. \ifdefineAbstract \pagestyle{empty} - \includeonly{Declaration/declaration, Abstract/abstract} + \includeonly{Abstract/abstract} \fi % ***************************** Chapter Mode *********************************** @@ -104,6 +107,8 @@ \ifdefineChapter \includeonly{Chapter3/chapter3} +% You can put multiple files into this command, e.g. +% \includeonly{Declaration/declaration, Chapter3/chapter3} \fi % ******************************** Front Matter ******************************** @@ -115,8 +120,8 @@ \include{Dedication/dedication} \include{Declaration/declaration} -\include{Acknowledgement/acknowledgement} \include{Abstract/abstract} +\include{Acknowledgement/acknowledgement} % *********************** Adding TOC and List of Figures *********************** @@ -126,10 +131,8 @@ \listoftables -% \printnomenclature[space] space can be set as 2em between symbol and description -%\printnomenclature[3em] - -\printnomenclature +% \printnomencl[space] space can be set as 2em between symbol and description +\printnomencl[3em] % ******************************** Main Matter ********************************* \mainmatter @@ -167,7 +170,9 @@ % specified in the preamble.tex file in the custombib section. % Comment out the lines related to natbib above and uncomment the following line. -%\printbibliography[heading=bibintoc, title={References}] +%\ifdefineAbstract\else \printbibliography[heading=bibintoc, title={References}] \fi +% The if command on the previous line is required because +% biber package is invoked after calling the class definition \end{spacing}