summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/aucklandthesis
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/aucklandthesis
Initial commit
Diffstat (limited to 'macros/latex/contrib/aucklandthesis')
-rw-r--r--macros/latex/contrib/aucklandthesis/README.txt27
-rw-r--r--macros/latex/contrib/aucklandthesis/aucklandthesis.cls330
-rw-r--r--macros/latex/contrib/aucklandthesis/aucklandthesis_userguide.pdfbin0 -> 711131 bytes
-rw-r--r--macros/latex/contrib/aucklandthesis/template.tex160
4 files changed, 517 insertions, 0 deletions
diff --git a/macros/latex/contrib/aucklandthesis/README.txt b/macros/latex/contrib/aucklandthesis/README.txt
new file mode 100644
index 0000000000..fa1f33a0a7
--- /dev/null
+++ b/macros/latex/contrib/aucklandthesis/README.txt
@@ -0,0 +1,27 @@
+2016-06-11
+
+aucklandthesis.cls
+
+A class for formatting University of Auckland masters' and doctors' theses, with a user guide designed to complement introductory workshops taught at University of Auckland Libraries and Learning Services.
+
+Built on the Memoir class by Peter Wilson (maintained by Lars Madsen).
+
+Includes two further files:
+
+aucklandthesis_user_guide.pdf
+template.tex
+
+Copyright 2016 Alistair M. Kwan
+
+This class and template may be distributed
+and/or modified under the conditions of the LaTeX Project
+Public License, either version 1.3 of this license or
+(at your option) any later version. The latest version
+of this license is in
+ http://www.latex-project.org/lppl.txt
+and version 1.3 or later is part of all distributions of
+LaTeX version 2005/12/01 or later.
+
+The user guide may be distributed and used under the conditions of
+the Creative Commons license CC BY—NC-ND. The latest version
+of this license is at https://creativecommons.org/licenses/
diff --git a/macros/latex/contrib/aucklandthesis/aucklandthesis.cls b/macros/latex/contrib/aucklandthesis/aucklandthesis.cls
new file mode 100644
index 0000000000..29629db352
--- /dev/null
+++ b/macros/latex/contrib/aucklandthesis/aucklandthesis.cls
@@ -0,0 +1,330 @@
+% University of Auckland thesis class
+%
+% aucklandthesis.cls
+%
+% built on memoir.cls by Peter Wilson, Lars Madsen
+%
+% Written for broader applicability
+% across disciplines by
+% Alistair Kwan
+% Centre for Learning & Research in Higher Education
+% University of Auckland
+%
+% Version of 2016-06-11
+%
+% Accommodates theses for the PhD and some other degrees.
+%
+% This class does not intervene much — font and
+% chapter heading customisation are left for
+% user to determine, as is the choice to compile
+% using XeLaTeX or LuaTeX.
+%
+% Incorporates code snippets from the Memoir class manual.
+%
+% This file may be distributed and/or modified under the conditions of
+% the LaTeX Project Public License, either version 1.2 of this license
+% or (at your option) any later version. The latest version of this
+% license is in:
+%
+% http://www.latex-project.org/lppl.txt
+%
+% and version 1.2 or later is part of all distributions of LaTeX version
+% 1999/12/01 or later.
+%
+
+
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesClass{aucklandthesis}
+ [2016/06/11 University of Auckland thesis class]
+\newif\ifUa@examcp
+\newif\ifUa@singlesp
+\newif\ifUa@onehalfsp
+\newif\ifUa@doublesp
+\newif\ifUa@partialfulfilment
+\newif\ifUa@subtitle
+
+\Ua@examcpfalse
+\Ua@onehalfspfalse
+\Ua@doublespfalse
+\Ua@partialfulfilmentfalse
+\Ua@subtitlefalse
+
+\DeclareOption{doublespace}{\Ua@doublesptrue}
+\DeclareOption{singlespace}{\Ua@singlesptrue}
+\DeclareOption{onehalfspace}{\Ua@onehalfsptrue}
+\DeclareOption{examcopy}{\Ua@examcptrue}
+\DeclareOption{partial}{\Ua@partialfulfilmenttrue}
+%\DeclareOption{draft} option already exists
+%\DeclareOption{twoside}{\PassOptionsToPackage{twoside}{geometry}}
+
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{memoir}}
+
+%\ExecuteOptions{oneside}
+\ProcessOptions\relax
+
+\LoadClass{memoir}
+
+% Set page dimensions
+\setlrmarginsandblock{4cm}{4cm}{*}
+\setulmarginsandblock{3cm}{4cm}{*}
+\setheadfoot{\baselineskip}{3\baselineskip}
+\setheaderspaces{*}{2\baselineskip}{*}
+\setmarginnotes{3mm}{3cm}{6pt}
+\checkandfixthelayout
+\fixpdflayout
+
+% Typeface: leave the author to choose
+
+\midsloppy % author can override with fussy or sloppy
+\sloppybottom % for fewer widows and orphans
+
+% Constrain excessive subdivisional numberings
+\setsecnumdepth{subsubsection}
+
+% Title page
+\def\@title{}
+\def\@subtitle{\relax}
+\def\subtitle#1{
+ \gdef\@subtitle{#1}
+ \sbox0{#1}%
+ \ifdim\wd0=0pt %
+ \Ua@subtitlefalse%
+ \else%
+ \Ua@subtitletrue%
+ \fi%
+}
+\def\@author{}
+\def\degreesought#1{\gdef\@degreesought{#1}}
+\def\@degreesought{\@latex@error{No \noexpand\degreesought given}\@ehc}
+\def\degreediscipline#1{\gdef\@degreediscipline{#1}}
+\def\@degreediscipline{\@latex@error{No \noexpand\degreediscipline given}\@ehc}
+\def\degreecompletionyear#1{\gdef\@degreecompletionyear{#1}}
+\def\@degreecompletionyear{\@latex@error{No \noexpand\degreecompletionyear given}\@ehc}
+
+\renewcommand{\maketitle}{
+ \cleardoublepage
+ \thispagestyle{empty}
+ \enlargethispage{1cm}
+ \setcounter{page}{1}
+ \noindent\hrulefill
+
+ \noindent\begin{minipage}[t][0.3\textheight][t]{\textwidth}
+ \vspace*{\fill}
+ \begin{center}
+ \Huge \@title \par
+ \ifUa@subtitle
+ \huge \vspace{0.5\baselineskip} \@subtitle \par
+ \else \relax
+ \fi
+ \end{center}
+ \vspace*{\fill}
+ \end{minipage}
+
+ \vfill
+
+ \noindent\begin{minipage}[t][0.3\textheight][t]{\textwidth}
+ \vspace*{\fill}
+ \begin{center}
+ \large
+ \@author
+ \end{center}
+ \vspace*{\fill}
+ \end{minipage}
+
+ \vfill
+
+ \noindent\begin{minipage}[t][0.3\textheight][t]{\textwidth}
+ \vspace*{\fill}
+ \begin{center}
+ \normalfont
+ A thesis submitted in
+ \ifUa@partialfulfilment
+ partial
+ \fi
+ fulfilment of the requirements for the degree of
+
+ \@degreesought\
+ in
+ \@degreediscipline,
+
+ The University of Auckland,
+ \@degreecompletionyear.
+
+ \ifUa@examcp
+ \bigskip
+ \textbf{This thesis is for examination purposes only,}
+
+ \textbf{and is confidential to the examination process.}
+ \fi
+ \end{center}
+ \vspace*{\fill}
+ \end{minipage}
+
+ \noindent\hrulefill
+
+ \clearpage
+ \killtitle
+ \mainmatter
+}
+
+% Command for dedication page
+\newcommand\thesisdedication[1]{
+ \cleardoublepage
+\thispagestyle{plain}
+\vspace*{\fill}
+\begin{center}
+#1
+\end{center}
+\vspace*{\fill}
+\vspace*{\fill}
+}
+
+% line spacing
+\renewcommand\mainmatter{
+ \ifUa@doublesp
+ \DoubleSpacing%
+\else\ifUa@singlesp
+ \SingleSpacing%
+\else
+ \OnehalfSpacing
+\fi%
+\fi
+}
+
+\renewcommand\backmatter{
+ \clearpage
+ \setcounter{page}{0}
+}
+
+\frenchspacing
+
+
+
+\nouppercaseheads
+\createmark{chapter}{both}{nonumber}{}{}
+\createmark{section}{right}{nonumber}{}{}
+
+% Pagestyle: Forder
+\copypagestyle{Forder}{myheadings}
+\makerunningwidth{Forder}{1.2\textwidth}
+\makeheadposition{Forder}{flushright}{flushleft}{}{}
+\makeoddhead{Forder}{}{}{\itshape{\rightmark}\makebox[0.2\textwidth]{\quad\normalfont\thepage\hfill}}
+\makeevenhead{Forder}{\makebox[0.2\textwidth]{\hfill\thepage\quad}\emph{\leftmark}}{}{}
+\makepsmarks{Forder}{
+ \nouppercaseheads
+ \createmark{chapter}{both}{nonumber}{}{}
+ \createmark{section}{right}{nonumber}{}{}
+ }
+
+% Chapter style: Forder
+\makechapterstyle{Forder}{%
+ \renewcommand\chaptername{chapter}
+ \def\chapterheadstart{\vspace*{\beforechapskip}}
+ \def\printchaptername{\SingleSpacing\center\chapnamefont --- \@chapapp}
+ \def\chapternamenum{\space}
+ \def\printchapternum{\chapnumfont \NumToName{\value{chapter}}}
+ \def\printchapternum{\chapnumfont \roman{chapter} ---}
+ \def\afterchapternum{\par\nobreak\vskip\midchapskip}
+ \def\printchapternonum{}
+ \def\printchaptertitle##1{\begin{center}\SingleSpace\chaptitlefont ##1\end{center}}
+ \def\afterchaptertitle{\par\nobreak\vskip \afterchapskip}
+ \renewcommand*{\chapnamefont}{\normalfont\Large\scshape}
+ \renewcommand*{\chapnumfont}{\chapnamefont}
+ \renewcommand*{\chaptitlefont}{\normalfont\Huge\scshape\MakeLowercase}
+ \setlength{\beforechapskip}{50pt}
+ \setlength{\midchapskip}{20pt}
+ \setlength{\afterchapskip}{60pt}
+ %
+ \setsecnumdepth{section}
+ \renewcommand*\thesection{\arabic{section}}
+ %
+ \setsechook{\hangsecnum}
+ \setaftersecskip{3pt}
+ \setsecheadstyle{\raggedright\Large\scshape}
+ \setbeforesecskip{-1.5\onelineskip}
+ \setaftersecskip{0.5\onelineskip}
+ %
+ \setsubsechook{\defaultsecnum}
+ \setsubsecheadstyle{\raggedright\large\bfseries}
+ \setbeforesubsecskip{-\onelineskip}
+ \setaftersubsecskip{0.5\onelineskip}
+ %
+ \setsubsubsecheadstyle{\raggedright\itshape}
+ \setbeforesubsubsecskip{-\onelineskip}
+ \setaftersubsubsecskip{0.5\onelineskip}
+ %
+ \pagestyle{Forder}
+}
+
+% Page style: Sewell
+\copypagestyle{Sewell}{myheadings}
+\makeoddhead{Sewell}{\itshape{\rightmark}}{}{\thepage}
+\makeevenhead{Sewell}{\thepage}{}{\itshape{\thechapter. \leftmark}}
+\makeheadrule{Sewell}{\textwidth}{0.5pt}
+\makepsmarks{Sewell}{
+ \nouppercaseheads
+ \createmark{chapter}{both}{nonumber}{}{}
+ \createmark{section}{right}{nonumber}{}{}
+ }
+
+% Chapter style: Sewell
+\makechapterstyle{Sewell}{%
+ \renewcommand\chaptername{Chapter}
+ \def\chapterheadstart{\vspace*{\beforechapskip}}
+ \def\printchaptername{\SingleSpacing\flushright \chapnamefont \@chapapp}
+ \def\chapternamenum{\space}
+ \def\printchapternum{\chapnumfont\numtoName{\value{chapter}}}
+ \def\afterchapternum{\par\nobreak \hrulefill\par\vskip\midchapskip}
+ \def\printchapternonum{}
+ \def\printchaptertitle##1{\SingleSpacing\raggedright\chaptitlefont ##1}
+ \def\afterchaptertitle{\par\nobreak\vskip \afterchapskip}
+ \renewcommand*{\chapnamefont}{\normalfont\Large\scshape}
+ \renewcommand*{\chapnumfont}{\chapnamefont}
+ \renewcommand*{\chaptitlefont}{\normalfont\Huge\itshape}
+ \setlength{\beforechapskip}{50pt}
+ \setlength{\midchapskip}{12pt}
+ \setlength{\afterchapskip}{60pt}
+ %
+ \setsecnumdepth{chapter}
+ %
+ \setsecheadstyle{\center\Large\scshape\MakeLowercase}
+ \setbeforesecskip{-1.5\onelineskip}
+ \setaftersecskip{0.5\onelineskip}
+ %
+ \setsubsecheadstyle{\center\large\bfseries}
+ \setbeforesubsecskip{-\onelineskip}
+ \setaftersubsecskip{0.01\onelineskip}
+ %
+ \setsubsubsecheadstyle{\center\itshape}
+ \setbeforesubsubsecskip{-\onelineskip}
+ \setaftersubsubsecskip{0.01\onelineskip}
+ %
+ \pagestyle{Sewell}
+}
+
+
+% uppercase chapter entries in ToC, hyperref-friendly
+%\makeatletter
+%\renewcommand*{\l@chapter}[2]{%
+% \l@chapapp{\uppercase{#1}}{#2}{\cftchaptername}}
+%\makeatother
+
+\renewcommand\cftchapterfont{\scshape}
+\setlength\cftsubsectionindent{6em}
+\renewcommand\cftsubsectionfont{\itshape}
+
+\AtBeginDocument{%
+% Mark drafts in page footer
+\ifdraftdoc
+ \makeevenfoot{plain}{\textit{Draft}}{\thepage}{\textit\today}
+ \makeoddfoot{plain}{\textit{Draft}}{\thepage}{\textit\today}
+ \makeevenfoot{myheadings}{\thepage}{\textit{Draft: \today}}{}
+ \makeoddfoot{myheadings}{}{\textit{Draft: \today}}{\thepage}
+ \nouppercaseheads
+ \createmark{chapter}{both}{nonumber}{}{}
+ \createmark{section}{right}{nonumber}{}{}
+\fi
+}
+
+
+\endinput
diff --git a/macros/latex/contrib/aucklandthesis/aucklandthesis_userguide.pdf b/macros/latex/contrib/aucklandthesis/aucklandthesis_userguide.pdf
new file mode 100644
index 0000000000..c0db3fd70c
--- /dev/null
+++ b/macros/latex/contrib/aucklandthesis/aucklandthesis_userguide.pdf
Binary files differ
diff --git a/macros/latex/contrib/aucklandthesis/template.tex b/macros/latex/contrib/aucklandthesis/template.tex
new file mode 100644
index 0000000000..5f1bfb64de
--- /dev/null
+++ b/macros/latex/contrib/aucklandthesis/template.tex
@@ -0,0 +1,160 @@
+\documentclass[11pt]{aucklandthesis}
+%
+% This is a template for University of Auckland theses.
+%
+% Written by Alistair Kwan, June 2016
+%
+%
+% Options:
+% 10pt, 11pt, 12pt: size of main text
+% examcopy: asserts confidentiality for examination copies
+% partial: thesis partial fulfils degree requirements
+% singlespace, onehalfspace, doublespace: line spacing
+% oneside: format for single-sided printing
+% draft: adds 'draft' and date to footer
+%
+
+%
+% Add, delete or un-comment packages below as required.
+%
+
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+
+%\usepackage{graphicx} % for inserting graphics files
+%\usepackage{appendix} % for appendices
+
+%\usepackage{hyperref} % for formatting web addresses and other URLs
+%\urlstyle{same} % try also tt, sf if this option doesn't produce clear enough output
+
+% Readability options
+%
+%\usepackage{booktabs} % for table rules
+%\usepackage{microtype} % for improved justification
+
+% Typeface options — choose one if desired
+% or choose a different typeface to accommmodate character sets
+% as needed for East Asian and other languages.
+%
+% Consider compiling using the XeLaTeX engine if you have more extreme
+% typeface needs, e.g. for multiple languages, or a need for symbols particular
+% to a typeface.
+%
+% See also the LaTeX Symbols List at
+% https://http://www.ctan.org/pkg/comprehensive
+%
+%\usepackage{mathptmx} % Times New Roman, including mathematics
+%\usepackage{mathpazo} % Palatino with mathematics support
+%\usepackage{fourier} % Utopia, a serif typeface with Fourier mathematics
+%\usepackage{gentium} % a contemporary serif typeface
+%\usepackage{libertine} % a softer-feeling serif typeface; also installs sans-serif font Biolinum
+%\usepackage{fouriernc} % Century Schoolbook with Fourier maths
+%\usepackage{mathpple} % Palatino with Fourier maths
+
+
+% To set the sans serif font (for \sffamily):
+%\usepackage[scaled]{helvet} % Nimbus, like Helvetica
+%\usepackage{universalis} % Universalis
+%\usepackage{avant} % URW Gothic, like Avant Garde
+%\usepackage{PTSansNarrow}
+%\usepackage{AlegreyaSans} % Alegreya Sans
+
+% To set the mathematics font:
+%\usepackage{eulervm} % Euler, based on a Zapf design
+
+% To set the (usually monospaced) typewriter font:
+%\usepackage[ttdefault=true]{AnonymousPro}
+%\usepackage[scaled]{beramono}
+%\usepackage{inconsolata}
+%\usepackage{sourcecodepro}
+
+%\usepackage{cjk} % for Chinese, Japanese, Korean
+
+%\usepackage{tabularx} % For easier table formatting.
+
+%\usepackage[nottoc]{tocbibind} % Controls the table of contents
+% nottoc: don't list table of contents inside itself
+% section: go as far as section-level headings
+
+% Automated bibliography
+%
+%\usepackage[
+% style=authortitle,
+% citestyle=authortitle,
+% backend=biber
+% ]
+% {biblatex}
+%bibliography{bibliography1.bib, bibliography2.bib} % Specify bibliography files
+
+\begin{document}
+
+% ====================================================
+%
+% FRONTMATTER
+%
+% Arabic pagination, starting with the title page
+% which is counted but not numbered
+%
+% ====================================================
+
+% Specify the title page content
+\title{[thesis title]}
+\subtitle{[subtitle]}
+\author{[candidate's name]}
+\degreesought{[degree]}
+\degreediscipline{[discipline]}
+\degreecompletionyear{[year]}
+
+% Print the title page
+\maketitle
+
+% Abstract, up to 350 words
+%\input{abstract} % it's in a separate file
+
+% Dedication (optional)
+%\thesisdedication{Dedicated to grandma, and to grammar.}
+
+% Preface and/or acknowledgements (optional)
+%\input{acknowledgements} % it's in a separate file
+
+% Contents, lists of tables and figures
+\settocdepth{section} % choose chapter, section, subsection \cleardoublepage\tableofcontents
+%\cleardoublepage\listoffigures
+%\cleardoublepage\listoftables
+
+% Glossary (optional)
+%\input{glossary}
+
+% ====================================================
+%
+% MAINMATTER
+%
+% Include external chapter files here using
+% the \input{} command
+%
+% If you run out of memory during compilation,
+% switch some or all chapters to \include{} instead of \input{},
+% but watch out for pagination problems.
+%
+% ====================================================
+
+%\input{chapter1} % I hope that you have better titles than this
+%\input{chapter2}
+%\input{chapter3}
+
+% ====================================================
+%
+% ENDMATTER
+%
+% Appendices and bibliography
+% Pagination arabic, re-starts at 1
+%
+% ====================================================
+\cleardoublepage % start afresh on a new page
+\setcounter{page}{1} % re-sets the page counter
+%\appendixpage* % makes a page to mark beginning of appendices
+% \input{appendix1}
+
+%\printbibliography[title={Works cited}, heading=bibintoc]
+
+\end{document} \ No newline at end of file