summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bangorcsthesis
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-08-24 22:47:14 +0000
committerKarl Berry <karl@freefriends.org>2016-08-24 22:47:14 +0000
commit8f3b9e66a653430a41400a3ebf84c68d53f1ba0e (patch)
tree5acfd0cec8620f7c6be42e669f44c20b77979c26 /Master/texmf-dist/tex/latex/bangorcsthesis
parent3b74a8e09fab3387e705efec46b0f364bc146394 (diff)
bangorcsthesis (24aug16)
git-svn-id: svn://tug.org/texlive/trunk@41919 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/bangorcsthesis')
-rw-r--r--Master/texmf-dist/tex/latex/bangorcsthesis/bangorcsthesis.cls26
1 files changed, 22 insertions, 4 deletions
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 <c.gray@bangor.ac.uk>
+%% Copyright 2014-16 Cameron Gray/Bangor University <c.gray@bangor.ac.uk>
%%
%% 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}}