From b27b7205b08db16f8f56603b54d3045661292a80 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 2 Dec 2014 22:29:17 +0000 Subject: bangorcsthesis (2dec14) git-svn-id: svn://tug.org/texlive/trunk@35721 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/bangorcsthesis/README | 23 +++++++++++---------- .../doc/latex/bangorcsthesis/bangorcsthesis.pdf | Bin 284129 -> 283873 bytes .../source/latex/bangorcsthesis/bangorcsthesis.dtx | 23 ++++++++++++--------- .../tex/latex/bangorcsthesis/bangorcsthesis.cls | 16 +++++++------- 4 files changed, 34 insertions(+), 28 deletions(-) diff --git a/Master/texmf-dist/doc/latex/bangorcsthesis/README b/Master/texmf-dist/doc/latex/bangorcsthesis/README index d91c05be73c..75e62dc7283 100644 --- a/Master/texmf-dist/doc/latex/bangorcsthesis/README +++ b/Master/texmf-dist/doc/latex/bangorcsthesis/README @@ -1,7 +1,7 @@ Bangor University Computer Science Department Thesis Document Class Cameron Gray -September 1, 2014 +December 1, 2014 Abstract @@ -22,13 +22,14 @@ The document class is activated (or loaded) using the usual LATEX command following options to be specified, these dictate what type of thesis the document forms; -[⟨phd⟩] - Doctor of Philosophy / Doctorate mphil⟩] - Master of Philosophy -[⟨mscres⟩] - Master of Science by Research mres⟩] - Master of Research - +[⟨phd⟩] - Doctor of Philosophy / Doctorate +[⟨pgcert⟩] - Postgraduate Certificate +[⟨mphil⟩] - Master of Philosophy +[⟨mscres⟩] - Master of Science by Research +[⟨mres⟩] - Master of Research [⟨msc⟩] - Master of Science (Taught courses) - -[⟨ba⟩] - Bachelor of Arts (Undergraduate courses) bsc⟩] - Bachelor of Science -[⟨(Undergraduate courses) +[⟨ba⟩] - Bachelor of Arts (Undergraduate courses) +[⟨bsc⟩] - Bachelor of Science (Undergraduate courses) For example; an undergraduate dissertation for a Computer Science degree (a B.Sc. course) would start with a document class definition as follows:- @@ -38,15 +39,15 @@ optional modifiers that student’s can elect to use; [⟨noindent⟩] - Suppress indentation of first lines of paragraphs. [⟨nohyphen⟩] - Attempt (as far as possible) to prevent LATEX hyphenating words -[⟨at the ends of lines in the output. +at the ends of lines in the output. [⟨draft⟩] - Mark the document as draft, this includes adding a watermark to -[⟨all pages. This is highly recommended until the document is final. +all pages. This is highly recommended until the document is final. -[⟨serif ⟩] - Convert the thesis to use serif fonts for the main body text. +[⟨serif⟩] - Convert the thesis to use serif fonts for the main body text. [⟨twoside⟩] - Make the output ‘two-sided’, much like a book. This may only be -[⟨required for the final copy to be deposited in certain libraries. +required for the final copy to be deposited in certain libraries. 2 Usage - Preamble Macros diff --git a/Master/texmf-dist/doc/latex/bangorcsthesis/bangorcsthesis.pdf b/Master/texmf-dist/doc/latex/bangorcsthesis/bangorcsthesis.pdf index 2901e89ba20..4f820362962 100644 Binary files a/Master/texmf-dist/doc/latex/bangorcsthesis/bangorcsthesis.pdf and b/Master/texmf-dist/doc/latex/bangorcsthesis/bangorcsthesis.pdf differ diff --git a/Master/texmf-dist/source/latex/bangorcsthesis/bangorcsthesis.dtx b/Master/texmf-dist/source/latex/bangorcsthesis/bangorcsthesis.dtx index 711c4742263..10548b86a2c 100644 --- a/Master/texmf-dist/source/latex/bangorcsthesis/bangorcsthesis.dtx +++ b/Master/texmf-dist/source/latex/bangorcsthesis/bangorcsthesis.dtx @@ -50,14 +50,14 @@ \end{document} % %\fi -%\CheckSum{529} +%\CheckSum{539} %\RecordChanges %\changes{v1.0}{2014/07/01}{Initial version.} %\changes{v1.0.1}{2014/09/01}{Repackaged to remove external logo file.} %\pagestyle{fancy} %\title{Bangor University Computer Science Department\\ Thesis Document Class} %\author{Cameron Gray \texttt{}} -%\date{September 1, 2014} +%\date{December 1, 2014} %\maketitle % %\begin{abstract} @@ -80,6 +80,7 @@ %document forms;\\ % %\oarg{phd} - Doctor of Philosophy / Doctorate\\ +%\oarg{pgcert} - Postgraduate Certificate\\ %\oarg{mphil} - Master of Philosophy\\ %\oarg{mscres} - Master of Science by Research\\ %\oarg{mres} - Master of Research\\ @@ -258,11 +259,11 @@ % \end{macrocode} %\fi % \begin{macrocode} -\def\version{1.0.1} +\def\version{1.1.0} \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{bangorcsthesis}[2014/09/01 \version C. Gray] +\ProvidesClass{bangorcsthesis}[2014/12/01 \version C. Gray] % Originally inspired by Clean Thesis % - http://cleanthesis.der-ric.de/ @@ -308,6 +309,10 @@ \newcommand{\degree}{Doctor of Philosophy} \newcommand{\phd}{\relax} } +\DeclareOption{pgcert}{ + \newcommand{\degree}{Postgraduate Certificate} + \newcommand{\pgcert}{\relax} +} \newboolean{@draft} \setboolean{@draft}{false} @@ -384,9 +389,8 @@ \newcommand{\tgherosfontfoot}{\fontfamily{fvs}\selectfont} -\RequirePackage{graphicx,url,csquotes,fixltx2e,microtype,setspace,fancyhdr,enumitem} -\RequirePackage{enumerate,textcomp,blindtext} -\RequirePackage[hidelinks,bookmarks=true]{hyperref} +\RequirePackage{graphicx,url,csquotes,fixltx2e,microtype,setspace,fancyhdr,enumitem,amsmath} +\RequirePackage[hidelinks,bookmarks=true,colorlinks=false]{hyperref} \RequirePackage[nameinlink,capitalize]{cleveref} \RequirePackage[ % page layout modifications @@ -409,7 +413,7 @@ % ************************************************** -% Bibliography Options - use Harvard Bibliography style. +% Bibliography Options - use IEEE (NYT) Bibliography style. % ************************************************** \newcommand{\bibliographySetup}{% \RequirePackage[ % use biblatex for bibliography @@ -3887,7 +3891,6 @@ pdfsubject={\@scheme},% - subject (PDF meta) pdfauthor={\@author}, % - author (PDF meta) plainpages=false, % - - colorlinks=false, % - colorize links? pdfborder={0 0 0}, % - breaklinks=true, % - allow line break inside links bookmarksnumbered=true, % @@ -3917,7 +3920,7 @@ \vfill {\setstretch{1.1}\footnotesize Submitted in partial satisfaction of the requirements for the\\ - Degree of \degree\\ + \ifx\pgcert\undefined Degree of\ \fi\degree\\ \vspace{-2.7mm}in \@scheme} \vspace{1cm} diff --git a/Master/texmf-dist/tex/latex/bangorcsthesis/bangorcsthesis.cls b/Master/texmf-dist/tex/latex/bangorcsthesis/bangorcsthesis.cls index bbc3e595c5c..0bae1b9273d 100644 --- a/Master/texmf-dist/tex/latex/bangorcsthesis/bangorcsthesis.cls +++ b/Master/texmf-dist/tex/latex/bangorcsthesis/bangorcsthesis.cls @@ -45,11 +45,11 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} -\def\version{1.0.1} +\def\version{1.1.0} \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{bangorcsthesis}[2014/09/01 \version C. Gray] +\ProvidesClass{bangorcsthesis}[2014/12/01 \version C. Gray] \def\degreeScheme#1{\def\@scheme{#1}} @@ -88,6 +88,10 @@ \newcommand{\degree}{Doctor of Philosophy} \newcommand{\phd}{\relax} } +\DeclareOption{pgcert}{ +\newcommand{\degree}{Postgraduate Certificate} +\newcommand{\pgcert}{\relax} +} \newboolean{@draft} \setboolean{@draft}{false} @@ -158,9 +162,8 @@ \newcommand{\tgherosfontfoot}{\fontfamily{fvs}\selectfont} -\RequirePackage{graphicx,url,csquotes,fixltx2e,microtype,setspace,fancyhdr,enumitem} -\RequirePackage{enumerate,textcomp,blindtext} -\RequirePackage[hidelinks,bookmarks=true]{hyperref} +\RequirePackage{graphicx,url,csquotes,fixltx2e,microtype,setspace,fancyhdr,enumitem,amsmath} +\RequirePackage[hidelinks,bookmarks=true,colorlinks=false]{hyperref} \RequirePackage[nameinlink,capitalize]{cleveref} \RequirePackage[ % page layout modifications @@ -3620,7 +3623,6 @@ pdftitle={\@title}, % - title (PDF meta) pdfsubject={\@scheme},% - subject (PDF meta) pdfauthor={\@author}, % - author (PDF meta) plainpages=false, % - -colorlinks=false, % - colorize links? pdfborder={0 0 0}, % - breaklinks=true, % - allow line break inside links bookmarksnumbered=true, % @@ -3649,7 +3651,7 @@ bookmarksopen=true % \vfill {\setstretch{1.1}\footnotesize Submitted in partial satisfaction of the requirements for the\\ - Degree of \degree\\ + \ifx\pgcert\undefined Degree of\ \fi\degree\\ \vspace{-2.7mm}in \@scheme} \vspace{1cm} -- cgit v1.2.3