From 97ba464ea10fb58f4e44bef9f64513e47a3498a3 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 6 Apr 2015 21:34:59 +0000 Subject: bangorcsthesis (6apr15) git-svn-id: svn://tug.org/texlive/trunk@36727 c570f23f-e606-0410-a88d-b1316a301751 --- .../source/latex/bangorcsthesis/bangorcsthesis.dtx | 30 ++++++++++++++-------- 1 file changed, 20 insertions(+), 10 deletions(-) (limited to 'Master/texmf-dist/source/latex/bangorcsthesis') diff --git a/Master/texmf-dist/source/latex/bangorcsthesis/bangorcsthesis.dtx b/Master/texmf-dist/source/latex/bangorcsthesis/bangorcsthesis.dtx index 68245cc536e..e869f890ff4 100644 --- a/Master/texmf-dist/source/latex/bangorcsthesis/bangorcsthesis.dtx +++ b/Master/texmf-dist/source/latex/bangorcsthesis/bangorcsthesis.dtx @@ -40,15 +40,16 @@ \end{document} % %\fi -%\CheckSum{566} +%\CheckSum{577} %\RecordChanges %\changes{v1.0}{2014/07/01}{Initial version.} %\changes{v1.0.1}{2014/09/01}{Repackaged to remove external logo file.} -%\changes{v1.2.0}{2015/03/18}{Added serif headings and compressed cite style} +%\changes{v1.2.0}{2015/03/18}{Added serif headings and compressed cite style.} +%\changes{v1.3.0}{2015/04/06}{Added small references style.} %\pagestyle{fancy} %\title{Bangor University Computer Science Department\\ Thesis Document Class} %\author{Cameron Gray \texttt{}} -%\date{March 18, 2015} +%\date{April 6, 2015} %\maketitle % %\begin{abstract} @@ -185,11 +186,12 @@ % %\ \\ % -%\DescribeMacro{\references} This macro starts the appendices for the thesis and +%\DescribeMacro{\references\\\oarg{small}} This macro starts the appendices for the thesis and %generates an appropriately formatted `References' list. This differs from a %Bibliography as it only contains items specifically cited in the thesis text whereas %a Bibliography should contain everything that has been read/used during the -%preparation of the thesis. +%preparation of the thesis. If the small parameter is included, the font and spacing are +%altered for the references section to present a more compact form. % %\ \\ % @@ -254,11 +256,11 @@ % \end{macrocode} %\fi % \begin{macrocode} -\def\version{1.2.0} +\def\version{1.3.0} \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{bangorcsthesis}[2015/03/18 \version C. Gray] +\ProvidesClass{bangorcsthesis}[2015/04/06 \version C. Gray] % Originally inspired by Clean Thesis % - http://cleanthesis.der-ric.de/ @@ -452,10 +454,18 @@ } } -\newcommand{\references}{ +\DeclareDocumentCommand{\references}{ O{} }{% \appendix - \pagestyle{maincontentstyle} - \printbibliography[heading=bibnumbered] + { + \ifthenelse{\equal{#1}{small}}{% + \renewcommand*{\bibfont}{\footnotesize} + \linespread{1.0} + \setlength\itemsep{1ex} + \setlength\bibitemsep{0.7\itemsep} + }{} + \pagestyle{maincontentstyle} + \printbibliography[heading=bibnumbered] + } } % ************************************************** -- cgit v1.2.3