diff --git a/Style/ucasthesis.cfg b/Style/ucasthesis.cfg index 6c430196..87a9f4e8 100644 --- a/Style/ucasthesis.cfg +++ b/Style/ucasthesis.cfg @@ -105,6 +105,8 @@ \def\ucas@label@en@proofname{Proof} \def\ucas@label@ch@keywords{关键词:} \def\ucas@label@en@keywords{Keywords:} + +\def\ucas@value@review{***} %---------------------------------------------------------------------------% %->> Author's declaration %---------------------------------------------------------------------------% diff --git a/Style/ucasthesis.cls b/Style/ucasthesis.cls index 7356660e..a84f621e 100644 --- a/Style/ucasthesis.cls +++ b/Style/ucasthesis.cls @@ -43,6 +43,13 @@ \ucas@plaintrue% } %- +%-> Rewiew +%- +\newif\ifucas@review \ucas@reviewfalse +\DeclareOption{review}{% + \ucas@reviewtrue% +} +%- %-> Draft version info %- \newif\ifucas@versioninfo \ucas@versioninfofalse @@ -309,8 +316,13 @@ \def\tabcolsep{1pt} \def\arraystretch{1.3} \begin{tabular}{lc} + \ifucas@review + \ucas@label@ch@author & \ulenhance[1.2pt]{\ulextend{\ucas@value@review}}\\ + \ucas@label@ch@advisor & \ucaslntotab[1.2pt]{\ucas@value@review}\\ + \else \ucas@label@ch@author & \ulenhance[1.2pt]{\ulextend{\ucas@value@ch@author}}\\ \ucas@label@ch@advisor & \ucaslntotab[1.2pt]{\ucas@value@ch@advisor}\\ + \fi \ucas@label@ch@degree & \ulenhance[1.2pt]{\ulextend{\ucas@value@ch@degreetype\ucas@value@ch@degree}}\\ \ucas@label@ch@major & \ulenhance[1.2pt]{\ulextend{\ucas@value@ch@major}}\\ \ucas@label@ch@institute & \ucaslntotab[1.2pt]{\ucas@value@ch@institute}\\ @@ -428,9 +440,15 @@ {By} + \ifucas@review + {\ucas@value@review} + + {\ucas@value@review} + \else {\ucas@value@en@author} {\ucas@value@en@advisor} + \fi \vspace*{\stretch{3}} @@ -542,6 +560,14 @@ \fi } %---------------------------------------------------------------------------% +%->> make backmatter +%---------------------------------------------------------------------------% +\newcommand{\makebackmatter}[1]{ + \unless\ifucas@review + \input{#1} + \fi +} +%---------------------------------------------------------------------------% %->> New environments %---------------------------------------------------------------------------% %- define chinese keywords diff --git a/Thesis.tex b/Thesis.tex index b56554e9..ba787ef9 100644 --- a/Thesis.tex +++ b/Thesis.tex @@ -16,6 +16,7 @@ %- []% oneside eprint, twoside eprint, or paper print %- [fontset=]% specify font set instead of automatic detection %- [scheme=plain]% thesis writing of international students +%- [review]% generate review version %- [draftversion]% show draft version information %- [standard options for ctex book class: draft|paper size|font size|...]% %---------------------------------------------------------------------------% @@ -89,7 +90,7 @@ }{% \printbibliography% bibliography } -\input{Tex/Backmatter}% other information +\makebackmatter{Tex/Backmatter}% other information \end{document} %---------------------------------------------------------------------------%