Fixes issue #101, draft numbers frontmatter with roman and mainmatter with arabic numerals

This commit is contained in:
Krishna Kumar 2016-09-08 07:48:58 -07:00
parent 93ffa15fc4
commit ef6e4394f3
3 changed files with 22 additions and 12 deletions

View File

@ -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]{%

Binary file not shown.

View File

@ -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 ********************************