From 8f3b9e66a653430a41400a3ebf84c68d53f1ba0e Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 24 Aug 2016 22:47:14 +0000 Subject: bangorcsthesis (24aug16) git-svn-id: svn://tug.org/texlive/trunk@41919 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/latex/bangorcsthesis/bangorcsthesis.cls | 26 ++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) (limited to 'Master/texmf-dist/tex/latex/bangorcsthesis') diff --git a/Master/texmf-dist/tex/latex/bangorcsthesis/bangorcsthesis.cls b/Master/texmf-dist/tex/latex/bangorcsthesis/bangorcsthesis.cls index 4c8e3d1061e..72ef2a6365d 100644 --- a/Master/texmf-dist/tex/latex/bangorcsthesis/bangorcsthesis.cls +++ b/Master/texmf-dist/tex/latex/bangorcsthesis/bangorcsthesis.cls @@ -7,7 +7,7 @@ %% bangorcsthesis.dtx (with options: `bangorcsthesis.cls,package') %% %% bangorcsthesis.dtx -%% Copyright 2014-15 Cameron Gray/Bangor University +%% Copyright 2014-16 Cameron Gray/Bangor University %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3 @@ -45,11 +45,11 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} -\def\version{1.5.0} +\def\version{1.5.1} \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{bangorcsthesis}[2016/01/20 \version C. Gray] +\ProvidesClass{bangorcsthesis}[2016/08/24 \version C. Gray] \def\degreeScheme#1{\def\@scheme{#1}} @@ -120,8 +120,10 @@ \setboolean{@sansserifheadings}{true} \DeclareOption{serifheadings}{\setboolean{@sansserifheadings}{false}} +\setboolean{@twoside}{false} \DeclareOption{twoside}{ \PassOptionsToClass{\CurrentOption}{report} +\setboolean{@twoside}{true} } \ProcessOptions\relax @@ -167,7 +169,7 @@ \newcommand{\tgherosfontfoot}{\fontfamily{bch}\selectfont} } -\RequirePackage{graphicx,url,csquotes,fixltx2e,microtype,setspace,fancyhdr,enumitem,amsmath} +\RequirePackage{graphicx,url,csquotes,microtype,setspace,fancyhdr,enumitem,amsmath} \RequirePackage[hidelinks,bookmarks=true,colorlinks=false]{hyperref} \RequirePackage[nameinlink,capitalize]{cleveref} @@ -271,6 +273,7 @@ footskip=1cm % - footer skip size \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{0pt} + \ifthenelse{\boolean{@twoside}}{ \fancyfootoffset[RO]{1.75cm} \fancyfoot[RO]{% \tgherosfontfoot\footnotesize% @@ -282,6 +285,13 @@ footskip=1cm % - footer skip size \tgherosfontfoot\footnotesize% \makebox[1.4cm][l]{\textbf{\thepage}}\hspace*{9pt} } +}{ + \fancyfootoffset[R]{1.75cm} + \fancyfoot[R]{% + \tgherosfontfoot\footnotesize% + \hspace*{9pt}\makebox[1.4cm][l]{\textbf{\thepage}}% + } +} } \fancypagestyle{maincontentstyle} { @@ -290,6 +300,7 @@ footskip=1cm % - footer skip size \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{0pt} + \ifthenelse{\boolean{@twoside}}{ \fancyfootoffset[RO]{1.75cm} \fancyfoot[RO]{% \tgherosfontfoot\footnotesize% @@ -301,6 +312,13 @@ footskip=1cm % - footer skip size \tgherosfontfoot\footnotesize% \makebox[1.4cm][l]{\textbf{\thepage}}\hspace*{9pt}\rightmark } +}{ +\fancyfootoffset[RO]{1.75cm} + \fancyfoot[R]{% + \tgherosfontfoot\footnotesize% + \leftmark\hspace*{9pt}\makebox[1.4cm][l]{\textbf{\thepage}}% + } +} } \ifthenelse{\boolean{@centredcaptions}} -- cgit v1.2.3