diff options
author | Karl Berry <karl@freefriends.org> | 2016-01-11 22:12:17 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-01-11 22:12:17 +0000 |
commit | 4d5ecf8fcf4e6667025feb557ddbb30c9f671c7a (patch) | |
tree | b4673eb7b310c02a8d5a222d5a654fdf0a9ebab0 /Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls | |
parent | 8e4a709fa64caddcfe3600d3a8ba56826ef750e1 (diff) |
thuthesis (11jan16)
git-svn-id: svn://tug.org/texlive/trunk@39351 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls | 112 |
1 files changed, 52 insertions, 60 deletions
diff --git a/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls b/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls index 35320b4a26c..f7c251b455c 100644 --- a/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls +++ b/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2005-2015 by Ruini Xue <xueruini@gmail.com> +%% Copyright (C) 2005-2016 by Ruini Xue <xueruini@gmail.com> %% %% This file may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3a @@ -23,12 +23,13 @@ %% To produce the documentation run the original source files ending with `.dtx' %% through LaTeX. %% +%% \end{latex} \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesClass{thuthesis} -[2015/12/27 5.1.0 Tsinghua University Thesis Template] +[2016/1/11 5.2.0 Tsinghua University Thesis Template] \hyphenation{Thu-Thesis} \def\thuthesis{\textsc{ThuThesis}} -\def\version{5.1.0} +\def\version{5.2.0} \RequirePackage{kvoptions} \SetupKeyvalOptions{ @@ -65,7 +66,6 @@ raggedbottom, arial, arialtitle} - \ProcessKeyvalOptions* \PassOptionsToPackage{no-math}{fontspec} \LoadClass[a4paper,openany,UTF8,zihao=-4,scheme=plain,fontset=none]{ctexbook} @@ -359,35 +359,26 @@ subparagraph/afterindent=true} \newcounter{thu@bookmark} \NewDocumentCommand\thu@chapter{s o m o}{ - \IfBooleanF{#1} - {% + \IfBooleanF{#1}{% \ClassError{thuthesis}{You have to use the star form: \string\thu@chapter*}{} - } - - \IfValueTF{#2} - {% - \ifthenelse{\equal{#2}{}} - {% + }% + \if@openright\cleardoublepage\else\clearpage\fi\phantomsection% + \IfValueTF{#2}{% + \ifthenelse{\equal{#2}{}}{% \addtocounter{thu@bookmark}\@ne \pdfbookmark[0]{#3}{thuchapter.\thethu@bookmark} - } - {% + }{% \addcontentsline{toc}{chapter}{#3} } - } - {% + }{% \addcontentsline{toc}{chapter}{#3} - } - - \chapter*{#3}%\phantomsection - - \IfValueTF{#4} - {% + }% + \chapter*{#3}% + \IfValueTF{#4}{% \ifthenelse{\equal{#4}{}} {\@mkboth{}{}} {\@mkboth{#4}{#4}} - } - {% + }{% \@mkboth{#3}{#3} } } @@ -441,23 +432,23 @@ \expandafter\gdef\csname #1\endcsname##1{% \expandafter\gdef\csname thu@#1\endcsname{##1}} \csname #1\endcsname{}} -\thu@def@term{catalognumber} -\thu@def@term{udc} \thu@def@term{id} +\thu@def@term{udc} +\thu@def@term{catalognumber} \thu@def@term{secretlevel} \thu@def@term{secretyear} \thu@def@term{ctitle} \thu@def@term{cdegree} -\newcommand\cdepartment[2][]{% todo: for definekeys - \def\thu@cdepartment@short{#1} - \def\thu@cdepartment{#2}} -\define@key{thu}{cdepartment}{% - \expandafter\cdepartment#1} -\def\caffil{\cdepartment} % for compatibility -\def\thu@cdepartment@short{} -\def\thu@cdepartment{} +\thu@def@term{cdepartment} +\def\caffil{% for compatibility + \ClassWarning{thuthesis} + {'\string\caffil' is deprecated, please use '\string\cdepartment' instead.}{}% + \cdepartment} \thu@def@term{cmajor} -\def\csubject{\cmajor} % for compatibility +\def\csubject{% for compatibility + \ClassWarning{thuthesis} + {'\string\csubject' is deprecated, please use '\string\cmajor' instead.}{}% + \cmajor} \thu@def@term{cfirstdiscipline} \thu@def@term{cseconddiscipline} \thu@def@term{cauthor} @@ -469,9 +460,15 @@ \thu@def@term{etitle} \thu@def@term{edegree} \thu@def@term{edepartment} -\def\eaffil{\edepartment} % for compability +\def\eaffil{% for compability + \ClassWarning{thuthesis} + {'\string\eaffil' is deprecated, please use '\string\edepartment' instead.}{}% + \edepartment} \thu@def@term{emajor} -\def\esubject{\emajor} %for compability +\def\esubject{%for compability + \ClassWarning{thuthesis} + {'\string\esubject' is deprecated, please use '\string\emajor' instead.}{}% + \emajor} \thu@def@term{eauthor} \thu@def@term{esupervisor} \thu@def@term{eassosupervisor} @@ -851,38 +848,33 @@ \endlist\frenchspacing} \let\thu@appendix\appendix \renewenvironment{appendix}{% - \thu@appendix - }{} + \let\title\thu@appendix@title + \thu@appendix}{% + \let\title\@gobble} +\let\title\@gobble +\newcommand{\thu@appendix@title}[1]{% + \begin{center} + \bfseries\xiaosi #1 + \end{center}} +\newlist{translationbib}{enumerate}{1} +\setlist[translationbib]{label=[\arabic*],align=left,nosep,itemsep=6bp, + leftmargin=10mm,labelsep=!,before=\vspace{0.5\baselineskip}\wuhao[1.3]} \newenvironment{resume}[1][\thu@resume@title]{% \thu@chapter*{#1}}{} -\newcommand{\resumeitem}[1]{\vspace{24bp}{\sihao\heiti\centerline{#1}}\par\vspace{6bp}} -\newcommand{\researchitem}[1]{\vspace{32bp}{\sihao\heiti\centerline{#1}}\par\vspace{14bp}} +\newcommand{\resumeitem}[1]{% + \vspace{24bp}{\sihao\heiti\centerline{#1}}\par\vspace{6bp}} +\newcommand{\researchitem}[1]{% + \vspace{32bp}{\sihao\heiti\centerline{#1}}\par\vspace{14bp}} \newlist{publications}{enumerate}{1} \setlist[publications]{label=[\arabic*],align=left,nosep,itemsep=8bp, -leftmargin=10mm,labelsep=!,before*=\xiaosi[1.26],after*=\vspace{29bp},resume} + leftmargin=10mm,labelsep=!,before=\xiaosi[1.26],resume} \newlist{achievements}{enumerate}{1} \setlist[achievements]{label=[\arabic*],align=left,nosep,itemsep=8bp, -leftmargin=10mm,labelsep=!,before*=\xiaosi[1.26]} + leftmargin=10mm,labelsep=!,before=\xiaosi[1.26]} +\def\publicationskip{\bigskip\bigskip} \NewDocumentCommand{\shuji}{O{\thu@ctitle} O{\thu@cauthor}}{% \newpage\thispagestyle{empty}\fangsong\xiaosan\ziju{0.4}% \noindent\hfill\rotatebox[origin=lt]{-90}{\makebox[\textheight]{#1\hfill#2}}} -\iffalse -\newcommand{\bs}{\symbol{'134}}%Print backslash -\newcommand{\cih}[1]{% - \index{commands!#1@\texttt{\bs#1}}% - \index{#1@\texttt{\hspace*{-1.2ex}\bs #1}}} -\newcommand{\ci}[1]{\cih{#1}\texttt{\bs#1}} -\newcommand{\pai}[1]{% - \index{packages!#1@\textsf{#1}}% - \index{#1@\textsf{#1}}% - \textsf{#1}} -\newcommand{\ei}[1]{% - \index{environments!\texttt{#1}}% - \index{#1@\texttt{#1}}% - \texttt{#1}} -\newcommand{\wi}[1]{\index{#1}#1} -\fi -\newcommand{\pozhehao}{——} \AtEndOfClass{\input{thuthesis.cfg}} \AtEndOfClass{\sloppy} \endinput |