增加 nocover 选项

This commit is contained in:
KAAAsS 2022-06-01 11:46:18 +08:00
parent 8e217f26df
commit bad7df9522
Signed by: KAAAsS
GPG Key ID: D22F53AF662411FE

View File

@ -23,10 +23,12 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newif\ifmasterdegree\masterdegreefalse %doctor
\newif\ifpdfcover\pdfcoverfalse
\newif\ifnocover\nocoverfalse
\newif\ifchapterx\chapterxfalse
\DeclareOption{master}{\masterdegreetrue}
\DeclareOption{pdfcover}{\pdfcovertrue} %using pdfcover,TOdo
\DeclareOption{nocover}{\nocovertrue}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
\ProcessOptions\relax %revised by Quansheng Guan \ProcessOptions
\LoadClass[12pt,a4paper,openany]{book}
@ -377,11 +379,14 @@
\renewcommand\mainmatter{%
\@mainmattertrue
\chapterxfalse %
\ifnocover
\else
\ifodd \arabic{page} %
\clearpage
\pagestyle{empty}
\mbox{} %
\fi
\fi
\clearpage
\pagenumbering{arabic}
@ -407,6 +412,8 @@
\ifpdfcover
%%coverpage from pdf file
\includepdf[pages=-]{thesis_cover.pdf}%pdftexlyx
\fi
\ifnocover
\else
%%buildin coverpage
\begin{titlepage}