summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ryethesis
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-01-05 22:58:13 +0000
committerKarl Berry <karl@freefriends.org>2014-01-05 22:58:13 +0000
commit4efeb5d9a59b329fd122a2b40cc7f1bee5374323 (patch)
treefb8b59684c306db4108a225e13687daea98baeea /Master/texmf-dist/tex/latex/ryethesis
parent1899ca043c36f94224898b8cad0f2cbaf633ab21 (diff)
ryethesis (5jan14)
git-svn-id: svn://tug.org/texlive/trunk@32584 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/ryethesis')
-rw-r--r--Master/texmf-dist/tex/latex/ryethesis/ryethesis.cls35
1 files changed, 26 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/ryethesis/ryethesis.cls b/Master/texmf-dist/tex/latex/ryethesis/ryethesis.cls
index 69b04fa47c0..f2bb53fcf5c 100644
--- a/Master/texmf-dist/tex/latex/ryethesis/ryethesis.cls
+++ b/Master/texmf-dist/tex/latex/ryethesis/ryethesis.cls
@@ -50,6 +50,13 @@
\setboolean{@ryedraft}{true}
}
+\DeclareOption{review}{
+ \typeout{Ryerson-Thesis Class Option: `review'}
+ \ExecuteOptions{10pt,oneside}
+ \PassOptionsToClass{final,oneside}{book}
+ \setboolean{@ryedraft}{false}
+}
+
\DeclareOption{final}{
\typeout{Ryerson-Thesis Class Option: `final'}
\ExecuteOptions{10pt,twoside}
@@ -182,7 +189,7 @@
\pagenumbering{roman}
\pagestyle{plain}
\maketitle
- \ryethesis@insertdeclaration
+ \ryethesis@insertdeclaration
\ryethesis@insertabstract
\ryethesis@insertacknowledgements
\ryethesis@insertdedication
@@ -324,12 +331,15 @@
\newcommand{\ryethesis@insertdeclaration}{%
\ifthenelse{\boolean{@ryedraft}}
{}
-{\ryethesis@clearpage\declaration}
+{
+\ryethesis@clearpage\phantomsection\label{declaration}\addcontentsline{toc}{section}{\textit{\mdseries{}Declaration}}\declaration
+}
}
\newcommand{\abstract}[1]{\ifx\empty#1\else\gdef\ryethesis@theabstract{\begin{center}\section*{Abstract}\end{center}#1}\fi}
\newcommand{\ryethesis@insertabstract}{%
\ryethesis@clearpage
+\phantomsection\label{abstract}\addcontentsline{toc}{section}{\textit{\mdseries{}Abstract}}
\begin{spacing}{2}
\begin{center}
\normalsize
@@ -350,6 +360,7 @@ Ryerson University{\ifx\empty\ryethesis@partnerUniv\else{ and
\newcommand{\ryethesis@insertacknowledgements}{%
\ifx\empty\ryethesis@theacknowledgements\else{
\ryethesis@clearpage
+\phantomsection\label{acknowledgements}\addcontentsline{toc}{section}{\textit{\mdseries{}Acknowledgements}}
\begin{center}
\section*{Acknowledgements}
\end{center}
@@ -362,6 +373,7 @@ Ryerson University{\ifx\empty\ryethesis@partnerUniv\else{ and
\newcommand{\ryethesis@insertdedication}{%
\ifx\empty\ryethesis@thededication\else{
\ryethesis@clearpage
+\phantomsection\label{dedication}\addcontentsline{toc}{section}{\textit{\mdseries{}Dedication}}
\begin{center}
\section*{Dedication}
\end{center}
@@ -393,25 +405,29 @@ Ryerson University{\ifx\empty\ryethesis@partnerUniv\else{ and
}
\newcommand{\ryethesis@insertlot}{
-\ifthenelse{\boolean{@ryelistoftables}}{\ryethesis@clearpage\listoftables}{}
+\ifthenelse{\boolean{@ryelistoftables}}{\ryethesis@clearpage\phantomsection\label{listoftab}\addcontentsline{toc}{section}{\textit{\mdseries{}List
+ of Tables}}\listoftables}{}
}
\ifthenelse{\boolean{@ryelistofplates}}
{\RequirePackage{float}\newfloat{plate}{h}{lop}}{}
\newcommand{\ryethesis@insertlop}{
-\ifthenelse{\boolean{@ryelistofplates}}{\ryethesis@clearpage\listof{plate}{List of Plates}}{}
+\ifthenelse{\boolean{@ryelistofplates}}{\ryethesis@clearpage\phantomsection\label{listofplates}\addcontentsline{toc}{section}{\textit{\mdseries{}List
+ of Plates}}\listof{plate}{List of Plates}}{}
}
\newcommand{\ryethesis@insertlof}{
-\ifthenelse{\boolean{@ryelistoftables}}{\ryethesis@clearpage\listoffigures}{}
+\ifthenelse{\boolean{@ryelistoftables}}{\ryethesis@clearpage\phantomsection\label{listoffig}\addcontentsline{toc}{section}{\textit{\mdseries{}List
+ of Figures}}\listoffigures}{}
}
\ifthenelse{\boolean{@ryelistofillustrations}}
{\RequirePackage{float}\newfloat{illustration}{h}{loi}}{}
\newcommand{\ryethesis@insertloi}{
-\ifthenelse{\boolean{@ryelistofillustrations}}{\ryethesis@clearpage\listof{illustration}{List of Illustrations}}{}
+\ifthenelse{\boolean{@ryelistofillustrations}}{\ryethesis@clearpage\phantomsection\label{listofillustrations}\addcontentsline{toc}{section}{\textit{\mdseries{}List
+ of Illustrations}}\listof{illustration}{List of Illustrations}}{}
}
\ifthenelse{\boolean{@ryelistofappendices}}
@@ -422,7 +438,8 @@ Ryerson University{\ifx\empty\ryethesis@partnerUniv\else{ and
{}
\newcommand{\ryethesis@insertloa}{%
-\ifthenelse{\boolean{@ryelistofappendices}}{\ryethesis@clearpage\listofappendices}{}
+\ifthenelse{\boolean{@ryelistofappendices}}{\ryethesis@clearpage\phantomsection\label{listofapp}\addcontentsline{toc}{section}
+ {\textit{\mdseries{}List of Appendices}}\listofappendices}{}
}
\renewcommand{\appendix}[1]{\ifx\empty#1\else\gdef\ryethesis@theappendices{#1}\fi}
@@ -430,7 +447,6 @@ Ryerson University{\ifx\empty\ryethesis@partnerUniv\else{ and
\newcommand{\ryethesis@insertappendix}{%
\ifx\empty\ryethesis@theappendices\else{
\ryethesis@clearpage
-\renewcommand{\thechapter}{\Alph{chapter}}
\renewcommand{\chaptername}{Appendix}
\setcounter{chapter}{0}
\ryethesis@theappendices
@@ -529,7 +545,8 @@ Ryerson University{\ifx\empty\ryethesis@partnerUniv\else{ and
\onehalfspacing}
\usereferences
}
-\AtBeginDocument{
+\RequirePackage{etoolbox}
+\AfterEndPreamble{
\frontmatter\mainmatter
}
\AtEndDocument{\backmatter}