Fixes issue #101, draft numbers frontmatter with roman and mainmatter with arabic numerals
This commit is contained in:
parent
93ffa15fc4
commit
ef6e4394f3
@ -228,14 +228,6 @@ footnotes.}
|
||||
`preamble.tex'}}%
|
||||
|
||||
|
||||
% Deprecated option - use draft instead
|
||||
\DeclareOption{draftmode}{
|
||||
\ClassError{PhDThesisPSnPDF}{This option is deprecated. Use `draft'
|
||||
instead this option replaces `draftmode'. To use the classic version
|
||||
of draft use `draftclassic`}
|
||||
\stop}%
|
||||
|
||||
|
||||
% Line Numbers
|
||||
\newif\ifPHD@lineno\PHD@linenotrue
|
||||
\DeclareOption{lineno}{\PHD@linenotrue}
|
||||
@ -362,9 +354,27 @@ supported!}
|
||||
% Line numbering (can be switched off)
|
||||
\ifPHD@lineno
|
||||
\RequirePackage[switch,pagewise,mathlines]{lineno}
|
||||
\renewcommand{\frontmatter}{\nolinenumbers}
|
||||
\renewcommand{\mainmatter}{\linenumbers}
|
||||
\renewcommand{\backmatter}{\linenumbers}
|
||||
\renewcommand{\frontmatter}{%
|
||||
\cleardoublepage
|
||||
\@mainmatterfalse
|
||||
\pagenumbering{roman}
|
||||
\nolinenumbers
|
||||
}
|
||||
\renewcommand{\mainmatter}{%
|
||||
\cleardoublepage
|
||||
\@mainmattertrue
|
||||
\pagenumbering{arabic}
|
||||
\linenumbers
|
||||
}
|
||||
\renewcommand{\backmatter}{%
|
||||
\if@openright
|
||||
\cleardoublepage
|
||||
\else
|
||||
\clearpage
|
||||
\fi
|
||||
\@mainmatterfalse
|
||||
\linenumbers
|
||||
}
|
||||
|
||||
% Fix display lineno issue in mathmode
|
||||
\newcommand*\patchAmsMathEnvironmentForLineno[1]{%
|
||||
|
BIN
thesis.pdf
BIN
thesis.pdf
Binary file not shown.
@ -1,7 +1,7 @@
|
||||
% ******************************* PhD Thesis Template **************************
|
||||
% Please have a look at the README.md file for info on how to use the template
|
||||
|
||||
\documentclass[a4paper,12pt,times,numbered,print,index]{Classes/PhDThesisPSnPDF}
|
||||
\documentclass[a4paper,12pt,times,numbered,print,draft,index]{Classes/PhDThesisPSnPDF}
|
||||
|
||||
% ******************************************************************************
|
||||
% ******************************* Class Options ********************************
|
||||
|
Loading…
Reference in New Issue
Block a user