From 02ea354c212af61a061260449c3e39e8adffc4b0 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 2 May 2019 22:31:15 +0000 Subject: thuthesis (27apr19) git-svn-id: svn://tug.org/texlive/trunk@50932 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/latex/thuthesis/thuthesis.cfg | 182 ------ .../texmf-dist/tex/latex/thuthesis/thuthesis.cls | 675 +++++++++++++++------ 2 files changed, 489 insertions(+), 368 deletions(-) delete mode 100644 Master/texmf-dist/tex/latex/thuthesis/thuthesis.cfg (limited to 'Master/texmf-dist/tex/latex/thuthesis') diff --git a/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cfg b/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cfg deleted file mode 100644 index dd230e3a7ad..00000000000 --- a/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cfg +++ /dev/null @@ -1,182 +0,0 @@ -%% -%% This is file `thuthesis.cfg', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% thuthesis.dtx (with options: `cfg') -%% -%% This is a generated file. -%% -%% Copyright (C) 2005-2018 by Xue Ruini -%% -%% This work may be distributed and/or modified under the -%% conditions of the LaTeX Project Public License, either version 1.3 -%% of this license or (at your option) any later version. -%% The latest version of this license is in -%% http://www.latex-project.org/lppl.txt -%% and version 1.3 or later is part of all distributions of LaTeX -%% version 2005/12/01 or later. -%% -%% This is the configuration file of the ThuThesis package with LaTeX2e. -%% - -\ProvidesFile{thuthesis.cfg} -[2018/05/17 5.4.5 Tsinghua University Thesis Template] -\theorembodyfont{\normalfont} -\theoremheaderfont{\normalfont\heiti} -\theoremsymbol{\ensuremath{\square}} -\newtheorem*{proof}{证明} -\theoremstyle{plain} -\theoremsymbol{} -\theoremseparator{:} -\newtheorem{assumption}{假设}[chapter] -\newtheorem{definition}{定义}[chapter] -\newtheorem{proposition}{命题}[chapter] -\newtheorem{lemma}{引理}[chapter] -\newtheorem{theorem}{定理}[chapter] -\newtheorem{axiom}{公理}[chapter] -\newtheorem{corollary}{推论}[chapter] -\newtheorem{exercise}{练习}[chapter] -\newtheorem{example}{例}[chapter] -\newtheorem{remark}{注释}[chapter] -\newtheorem{problem}{问题}[chapter] -\newtheorem{conjecture}{猜想}[chapter] -\ctexset{% - chapter/name={第,章}, - appendixname=附录, - contentsname={目\hspace{\ccwd}录}, - listfigurename=插图索引, - listtablename=表格索引, - figurename=图, - tablename=表, - bibname=参考文献, - indexname=索引, -} -\newcommand\listequationname{公式索引} -\newcommand\equationname{公式} -\ifthu@bachelor - \newcommand{\cabstractname}{中文摘要} - \newcommand{\eabstractname}{ABSTRACT} -\else - \newcommand{\cabstractname}{摘\hspace{\ccwd}要} - \newcommand{\eabstractname}{Abstract} -\fi -\let\CJK@todaysave=\today -\def\CJK@todaysmall@short{\the\year 年 \the\month 月} -\def\CJK@todaysmall{\the\year 年 \the\month 月 \the\day 日} -\def\CJK@todaybig@short{\zhdigits{\the\year}年\zhnumber{\the\month}月} -\def\CJK@todaybig{\zhdigits{\the\year}年\zhnumber{\the\month}月\zhnumber{\the\day}日} -\def\CJK@today{\CJK@todaysmall} -\renewcommand\today{\CJK@today} -\newcommand\CJKtoday[1][1]{% - \ifcase#1\def\CJK@today{\CJK@todaysave} - \or\def\CJK@today{\CJK@todaysmall} - \or\def\CJK@today{\CJK@todaybig} - \fi} -\def\thu@ckeywords@separator{;} -\def\thu@ekeywords@separator{;} -\def\thu@catalog@number@title{分类号} -\def\thu@id@title{编号} -\def\thu@title@sep{:} -\ifthu@postdoctor - \def\thu@secretlevel{密级} -\else - \def\thu@secretlevel{秘密} -\fi -\def\thu@secretyear{\the\year} -\def\thu@schoolname{清华大学} -\def\thu@postdoctor@report@title{博士后研究报告} -\def\thu@bachelor@subtitle{综合论文训练} -\def\thu@bachelor@title@pre{题目} -\def\thu@postdoctor@date@title{研究起止日期} -\ifthu@postdoctor - \def\thu@author@title{博士后姓名} -\else - \ifthu@bachelor - \def\thu@author@title{姓名} - \else - \def\thu@author@title{研究生} - \fi -\fi -\def\thu@postdoctor@first@discipline@title{流动站(一级学科)名称} -\def\thu@postdoctor@second@discipline@title{专\hspace{1em}业(二级学科)名称} -\def\thu@secret@content{% - \unskip\ifthu@master$\bigstar$ \fi% - \ifthu@doctor$\bigstar$ \fi% - \thu@secretyear 年} -\def\thu@apply{(申请清华大学\thu@cdegree 学位论文)} -\ifthu@bachelor - \def\thu@department@title{系别} - \def\thu@major@title{专业} -\else - \def\thu@department@title{培养单位} - \def\thu@major@title{学科} -\fi -\ifthu@postdoctor - \def\thu@supervisor@title{合作导师} -\else - \def\thu@supervisor@title{指导教师} -\fi -\ifthu@bachelor - \def\thu@assosuper@title{辅导教师} -\else - \def\thu@assosuper@title{副指导教师} -\fi -\def\thu@cosuper@title{% - \ifthu@doctor 联合导师\else \ifthu@master 联合指导教师\fi\fi} -\cdate{\ifthu@bachelor\CJK@todaysmall\else\CJK@todaybig@short\fi} -\edate{\ifcase \month \or January\or February\or March\or April\or May% - \or June\or July \or August\or September\or October\or November - \or December\fi\unskip,\ \ \the\year} -\newcommand{\thu@authtitle}{关于学位论文使用授权的说明} -\newcommand{\thu@authorization}{% -\ifthu@bachelor -本人完全了解清华大学有关保留、使用学位论文的规定,即:学校有权保留学位 -论文的复印件,允许该论文被查阅和借阅;学校可以公布该论文的全部或部分内 -容,可以采用影印、缩印或其他复制手段保存该论文。 -\else -本人完全了解清华大学有关保留、使用学位论文的规定,即: - -清华大学拥有在著作权法规定范围内学位论文的使用权,其中包括:(1)已获学位的研究生 -必须按学校规定提交学位论文,学校可以采用影印、缩印或其他复制手段保存研究生上交的 -学位论文;(2)为教学和科研目的,学校可以将公开的学位论文作为资料在图书馆、资料 -室等场所供校内师生阅读,或在校园网上供校内师生浏览部分内容\ifthu@master 。\else ; -(3)根据《中华人民共和国学位条例暂行实施办法》,向国家图书馆报送可以公开的学位 -论文。\fi - -本人保证遵守上述规定。 -\fi} -\newcommand{\thu@authorizationaddon}{% - \ifthu@bachelor(涉密的学位论文在解密后应遵守此规定)\else (保密的论文在解密后应遵守此规定)\fi} -\newcommand{\thu@authorsig}{\ifthu@bachelor 签\hskip1em名:\else 作者签名:\fi} -\newcommand{\thu@teachersig}{导师签名:} -\newcommand{\thu@frontdate}{% - 日\ifthu@bachelor\hspace{1em}\else\hspace{2em}\fi 期:} -\newcommand{\thu@ckeywords@title}{关键词:} -\def\thu@master@art{Master of Arts} -\def\thu@master@sci{Master of Science} -\def\thu@doctor@phi{Doctor of Philosophy} -\newcommand{\thu@denotation@name}{主要符号对照表} -\newcommand{\thu@ackname}{致\hspace{1em}谢} -\newcommand{\thu@declarename}{声\hspace{1em}明} -\newcommand{\thu@declaretext}{本人郑重声明:所呈交的学位论文,是本人在导师指导下 - ,独立进行研究工作所取得的成果。尽我所知,除文中已经注明引用的内容外,本学位论 - 文的研究成果不包含任何他人享有著作权的内容。对本论文所涉及的研究工作做出贡献的 - 其他个人和集体,均已在文中以明确方式标明。} -\newcommand{\thu@signature}{签\hspace{1em}名:} -\newcommand{\thu@backdate}{日\hspace{1em}期:} -\def\thumasterbib{\ifthu@bachelor D\else 硕士学位论文\fi} -\def\thuphdbib{\ifthu@bachelor D\else 博士学位论文\fi} -\ifthu@bachelor - \newcommand{\thu@resume@title}{在学期间参加课题的研究成果} -\else - \ifthu@postdoctor - \newcommand{\thu@resume@title}{个人简历、发表的学术论文与科研成果} - \else - \newcommand{\thu@resume@title}{个人简历、在学期间发表的学术论文与研究成果} - \fi -\fi -\endinput -%% -%% End of file `thuthesis.cfg'. diff --git a/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls b/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls index ed86f329ec2..7602ea229ec 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-2018 by Ruini Xue +%% Copyright (C) 2005-2019 by Ruini Xue %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3 @@ -21,69 +21,52 @@ %% To produce the documentation run the original source files ending with `.dtx' %% through LaTeX. %% - \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesClass{thuthesis} -[2018/05/17 5.4.5 Tsinghua University Thesis Template] +[2019/04/27 5.5.2 Tsinghua University Thesis Template] +\RequirePackage{ifxetex} +\ifxetex\else + \ClassError{thuthesis}{You should use XeLaTeX}{} + \end{document} +\fi \hyphenation{Thu-Thesis} -\def\thuthesis{\textsc{ThuThesis}} -\def\version{5.4.5} - +\def\thuthesis{ThuThesis} +\def\version{5.5.2} \RequirePackage{kvoptions} \SetupKeyvalOptions{ family=thu, prefix=thu@, setkeys=\kvsetkeys} -\newif\ifthu@bachelor -\newif\ifthu@master -\newif\ifthu@doctor -\newif\ifthu@postdoctor -\define@key{thu}{degree}{% - \thu@bachelorfalse - \thu@masterfalse - \thu@doctorfalse - \thu@postdoctorfalse - \expandafter\csname thu@#1true\endcsname} -\define@key{thu}{type}{% - \ClassError{thuthesis}{'type' is deprecated, \MessageBreak - please use 'degree=#1' instead}{}} -\def\thu@deprecated@degree@option{% - \ClassError{thuthesis}{Option '\CurrentOption' is deprecated, \MessageBreak - please use 'degree=\CurrentOption' instead}{}} -\DeclareVoidOption{bachelor}{\thu@deprecated@degree@option} -\DeclareVoidOption{master}{\thu@deprecated@degree@option} -\DeclareVoidOption{doctor}{\thu@deprecated@degree@option} -\DeclareVoidOption{postdoctor}{\thu@deprecated@degree@option} +\DeclareStringOption[doctor]{degree}[doctor] +\DeclareStringOption[chinese]{language}[chinese] \DeclareBoolOption{secret} \DeclareBoolOption{tocarialchapter} \DeclareBoolOption{tocarialchapterentry} \DeclareBoolOption{tocarialchapterpage} -\DeclareBoolOption{raggedbottom} -\DeclareBoolOption{pifootnote} +\DeclareBoolOption[true]{raggedbottom} \DeclareDefaultOption{\PassOptionsToClass{\CurrentOption}{ctexbook}} -\kvsetkeys{thu}{% - raggedbottom} \ProcessKeyvalOptions* -\ifthu@bachelor\relax\else - \ifthu@master\relax\else - \ifthu@doctor\relax\else - \ifthu@postdoctor\relax\else - \ClassError{thuthesis}% - {Please specify thesis degree in option: \MessageBreak - degree=[bachelor | master | doctor | postdoctor]}{} - \fi - \fi - \fi -\fi -\PassOptionsToPackage{no-math}{fontspec} +\newcommand\thu@validate@key[1]{% + \@ifundefined{thu@\csname thu@#1\endcsname true}{% + \ClassError{thuthesis}{Invalid value '\csname thu@#1\endcsname'}{}% + }{% + \csname thu@\csname thu@#1\endcsname true\endcsname + }% +} +\newif\ifthu@bachelor +\newif\ifthu@master +\newif\ifthu@doctor +\newif\ifthu@postdoctor +\thu@validate@key{degree} +\newif\ifthu@chinese +\newif\ifthu@english +\thu@validate@key{language} +\PassOptionsToPackage{quiet}{xeCJK} \LoadClass[a4paper,openany,UTF8,zihao=-4,scheme=plain]{ctexbook} \RequirePackage{etoolbox} -\RequirePackage{ifxetex} \RequirePackage{xparse} \RequirePackage{amsmath} -\RequirePackage[defaultsups]{newtxtext} -\RequirePackage{newtxmath} -\RequirePackage{courier} +\RequirePackage{unicode-math} \RequirePackage{graphicx} \RequirePackage[labelformat=simple]{subcaption} \RequirePackage{pdfpages} @@ -96,9 +79,6 @@ \else \RequirePackage[perpage,hang]{footmisc} \fi -\ifthu@pifootnote - \RequirePackage{pifont} -\fi \RequirePackage{CJKfntef} \RequirePackage[amsmath,thmmarks,hyperref]{ntheorem} \RequirePackage{array} @@ -106,24 +86,29 @@ \RequirePackage{booktabs} \RequirePackage[sort&compress]{natbib} \RequirePackage{hyperref} -\ifxetex - \hypersetup{% - CJKbookmarks=true} -\else - \hypersetup{% - unicode=true, - CJKbookmarks=false} -\fi -\hypersetup{% - linktoc=all, - bookmarksnumbered=true, - bookmarksopen=true, - bookmarksopenlevel=1, - breaklinks=true, - colorlinks=false, - plainpages=false, - pdfborder=0 0 0} +\hypersetup{ + linktoc = all, + bookmarksnumbered = true, + bookmarksopen = true, + bookmarksopenlevel = 1, + breaklinks = true, + plainpages = false, + hidelinks, +} +\pdfstringdefDisableCommands{ + \let\\\@empty + \let\hspace\@gobble +} \urlstyle{same} +\def\UrlBreaks{% + \do\/% + \do\a\do\b\do\c\do\d\do\e\do\f\do\g\do\h\do\i\do\j\do\k\do\l% + \do\m\do\n\do\o\do\p\do\q\do\r\do\s\do\t\do\u\do\v\do\w\do\x\do\y\do\z% + \do\A\do\B\do\C\do\D\do\E\do\F\do\G\do\H\do\I\do\J\do\K\do\L% + \do\M\do\N\do\O\do\P\do\Q\do\R\do\S\do\T\do\U\do\V\do\W\do\X\do\Y\do\Z% + \do0\do1\do2\do3\do4\do5\do6\do7\do8\do9\do=\do/\do.\do:% + \do\*\do\-\do\~\do\'\do\"\do\-} +\Urlmuskip=0mu plus 0.1mu \RequirePackage{geometry} \geometry{ a4paper, % 210 * 297mm @@ -156,7 +141,7 @@ \renewcommand\frontmatter{% \if@openright\cleardoublepage\else\clearpage\fi \@mainmatterfalse - \pagenumbering{Roman} + \pagenumbering{Alph} \pagestyle{thu@empty}} \renewcommand\mainmatter{% \if@openright\cleardoublepage\else\clearpage\fi @@ -167,28 +152,87 @@ \if@openright\cleardoublepage\else\clearpage\fi \@mainmattertrue} \newcommand\thu@fontset{\csname g__ctex_fontset_tl\endcsname} +\ifthenelse{\equal{\thu@fontset}{fandol}}{ + \setmainfont[ + Extension = .otf, + UprightFont = *-regular, + BoldFont = *-bold, + ItalicFont = *-italic, + BoldItalicFont = *-bolditalic, + ]{texgyretermes} + \setsansfont[ + Extension = .otf, + UprightFont = *-regular, + BoldFont = *-bold, + ItalicFont = *-italic, + BoldItalicFont = *-bolditalic, + ]{texgyreheros} + \setmonofont[ + Extension = .otf, + UprightFont = *-regular, + BoldFont = *-bold, + ItalicFont = *-italic, + BoldItalicFont = *-bolditalic, + Scale = MatchLowercase, + ]{texgyrecursor} +}{ + \setmainfont{Times New Roman} + \setsansfont{Arial} + \ifthenelse{\equal{\thu@fontset}{mac}}{ + \setmonofont[Scale=MatchLowercase]{Menlo} + }{ + \setmonofont[Scale=MatchLowercase]{Courier New} + } +} +\unimathsetup{ + math-style = ISO, + bold-style = ISO, + nabla = upright, + partial = upright, +} +\IfFontExistsTF{XITSMath-Regular.otf}{ + \setmathfont[ + Extension = .otf, + BoldFont = XITSMath-Bold, + StylisticSet = 8, + ]{XITSMath-Regular} + \setmathfont[range={cal,bfcal},StylisticSet=1]{XITSMath-Regular.otf} +}{ + \setmathfont[ + Extension = .otf, + BoldFont = *bold, + StylisticSet = 8, + ]{xits-math} + \setmathfont[range={cal,bfcal},StylisticSet=1]{xits-math.otf} +} \ifthenelse{\equal{\thu@fontset}{windows}}{ - \ifxetex - \setCJKsansfont{SimHei} - \else - \setCJKsansfont{simhei.ttf} - \csname ctex_punct_map_family:nn\endcsname{\CJKsfdefault}{zhhei} - \fi + \xeCJKsetup{EmboldenFactor=2} + \IfFileExists{C:/bootfont.bin}{ + \setCJKmainfont[AutoFakeBold,ItalicFont=KaiTi_GB2312]{SimSun} + \setCJKfamilyfont{zhkai}[AutoFakeBold]{KaiTi_GB2312} + }{ + \setCJKmainfont[AutoFakeBold,ItalicFont=KaiTi]{SimSun} + \setCJKfamilyfont{zhkai}[AutoFakeBold]{KaiTi} + } + \setCJKsansfont[AutoFakeBold]{SimHei} + \setCJKfamilyfont{zhsong}[AutoFakeBold]{SimSun} + \setCJKfamilyfont{zhhei}[AutoFakeBold]{SimHei} }{} \ifthenelse{\equal{\thu@fontset}{mac}}{ \setCJKmainfont[ UprightFont = * Light, BoldFont = * Bold, ItalicFont = Kaiti SC, - BoldItalicFont = Kaiti SC Bold + BoldItalicFont = Kaiti SC Bold, ]{Songti SC} - \setCJKsansfont{Heiti SC} + \setCJKsansfont[BoldFont=* Medium]{Heiti SC} \setCJKfamilyfont{zhsong}[ UprightFont = * Light, BoldFont = * Bold, ]{Songti SC} - \setCJKfamilyfont{zhhei}{Heiti SC} - \setCJKfamilyfont{zhkai}{Kaiti SC} + \setCJKfamilyfont{zhhei}[BoldFont=* Medium]{Heiti SC} + \setCJKfamilyfont{zhkai}[BoldFont=* Bold]{Kaiti SC} + \xeCJKsetwidth{‘’“”}{1em} }{} \renewcommand\normalsize{% \@setfontsize\normalsize{12bp}{20bp}% @@ -217,6 +261,94 @@ \thu@def@fontsize{xiaoliu}{6.5bp} \thu@def@fontsize{qihao}{5.5bp} \thu@def@fontsize{bahao}{5bp} +\newcommand\thu@setchinese{% + \xeCJKResetPunctClass +} +\newcommand\thu@setenglish{% + \xeCJKDeclareCharClass{HalfLeft}{"2018, "201C}% + \xeCJKDeclareCharClass{HalfRight}{ + "00B7, "2019, "201D, "2013, "2014, "2025, "2026, "2E3A, + }% +} +\newcommand\thu@setdefaultlanguage{% + \ifthu@chinese + \thu@setchinese + \else + \thu@setenglish + \fi +} +\ifthu@chinese + \ctexset{ + chapter/name = {第,章}, + appendixname = 附录, + contentsname = {目\hspace{\ccwd}录}, + listfigurename = 插图索引, + listtablename = 表格索引, + figurename = 图, + tablename = 表, + bibname = 参考文献, + indexname = 索引, + } + \newcommand\thu@denotation@name{主要符号对照表} + \newcommand\listequationname{公式索引} + \newcommand\equationname{公式} + \newcommand\thu@assumption@name{假设} + \newcommand\thu@definition@name{定义} + \newcommand\thu@proposition@name{命题} + \newcommand\thu@lemma@name{引理} + \newcommand\thu@theorem@name{定理} + \newcommand\thu@axiom@name{公理} + \newcommand\thu@corollary@name{推论} + \newcommand\thu@exercise@name{练习} + \newcommand\thu@example@name{例} + \newcommand\thu@remark@name{注释} + \newcommand\thu@problem@name{问题} + \newcommand\thu@conjecture@name{猜想} + \newcommand\thu@proof@name{证明} + \newcommand\thu@theorem@separator{:} + \newcommand\thu@ack@name{致\hspace{\ccwd}谢} + \ifthu@bachelor + \newcommand\thu@resume@title{在学期间参加课题的研究成果} + \else + \ifthu@postdoctor + \newcommand\thu@resume@title{个人简历、发表的学术论文与科研成果} + \else + \newcommand\thu@resume@title{个人简历、在学期间发表的学术论文与研究成果} + \fi + \fi +\else + \newcommand\thu@denotation@name{Nomenclature} + \newcommand\listequationname{List of Equations} + \newcommand\equationname{Equation} + \newcommand\thu@assumption@name{Assumption} + \newcommand\thu@definition@name{Definition} + \newcommand\thu@proposition@name{Proposition} + \newcommand\thu@lemma@name{Lemma} + \newcommand\thu@theorem@name{Theorem} + \newcommand\thu@axiom@name{Axiom} + \newcommand\thu@corollary@name{Corollary} + \newcommand\thu@exercise@name{Exercise} + \newcommand\thu@example@name{Example} + \newcommand\thu@remark@name{Remark} + \newcommand\thu@problem@name{Problem} + \newcommand\thu@conjecture@name{Conjecture} + \newcommand\thu@proof@name{proof} + \newcommand\thu@theorem@separator{: } + \newcommand\thu@ack@name{Acknowledgments} + \ifthu@bachelor + \newcommand\thu@resume@title{Research Achievements} + \else + \ifthu@postdoctor + \newcommand\thu@resume@title{% + Resume, Publications and Research Achievements% + } + \else + \newcommand\thu@resume@title{% + Resume, Publications and Research Achievements% + } + \fi + \fi +\fi \fancypagestyle{thu@empty}{% \fancyhf{} \renewcommand{\headrulewidth}{0pt} @@ -238,16 +370,26 @@ space=auto, autoindent=true} \setlist{nosep} +\ifthenelse{\equal{\thu@fontset}{mac}}{ + \newfontfamily\thu@circlefont{Songti SC Light} +}{ + \ifthenelse{\equal{\thu@fontset}{windows}}{ + \newfontfamily\thu@circlefont{SimSun} + }{ + \IfFontExistsTF{XITS-Regular.otf}{ + \newfontfamily\thu@circlefont{XITS-Regular.otf} + }{ + \newfontfamily\thu@circlefont{xits-regular.otf} + } + } +} \def\thu@textcircled#1{% - \ifnum\value{#1} >9 + \ifnum\value{#1} >9% \ClassError{thuthesis}% - {Too many footnotes in this page.}{Keep footnote less than 10.} + {Too many footnotes in this page.}{Keep footnote less than 10.}% \fi - \ifthu@pifootnote% - \ding{\the\numexpr\value{#1}+171\relax}% - \else% - \textcircled{\xiaoliu\arabic{#1}}% - \fi} + {\thu@circlefont\symbol{\the\numexpr\value{#1}+"245F\relax}}% +} \renewcommand{\thefootnote}{\thu@textcircled{footnote}} \renewcommand{\thempfootnote}{\thu@textcircled{mpfootnote}} \def\footnoterule{\vskip-3\p@\hrule\@width0.3\textwidth\@height0.4\p@\vskip2.6\p@} @@ -258,6 +400,32 @@ \def\thu@@makefnmark{\hbox{{\normalfont\@thefnmark}}} \pretocmd{\@makefntext}{\let\@makefnmark\thu@@makefnmark}{}{} \apptocmd{\@makefntext}{\let\@makefnmark\thu@makefnmark}{}{} +\ifthu@chinese + \def\mathellipsis{\cdots} +\fi +\protected\def\le{\leqslant} +\protected\def\ge{\geqslant} +\AtBeginDocument{% + \renewcommand\leq{\leqslant}% + \renewcommand\geq{\geqslant}% +} +\removenolimits{% + \int\iint\iiint\iiiint\oint\oiint\oiiint + \intclockwise\varointclockwise\ointctrclockwise\sumint + \intbar\intBar\fint\cirfnint\awint\rppolint + \scpolint\npolint\pointint\sqint\intlarhk\intx + \intcap\intcup\upint\lowint +} +\AtBeginDocument{% + \renewcommand{\Re}{\operatorname{Re}}% + \renewcommand{\Im}{\operatorname{Im}}% +} +\AtBeginDocument{% + \renewcommand\nabla{\mbfnabla}% +} +\newcommand\bm{\symbf} +\renewcommand\boldsymbol{\symbf} +\newcommand\square{\mdlgwhtsquare} \allowdisplaybreaks[4] \renewcommand\theequation{\ifnum \c@chapter>\z@ \thechapter-\fi\@arabic\c@equation} \def\make@df@tag{\@ifstar\thu@make@df@tag@@\make@df@tag@@@} @@ -273,9 +441,28 @@ \def\thu@maketag#1{\maketag@@@{(\ignorespaces #1\unskip\@@italiccorr)}} \def\tagform@#1{\maketag@@@{(\ignorespaces #1\unskip\@@italiccorr)\equcaption{#1}}} \renewcommand{\eqref}[1]{\textup{(\ref{#1})}} -\setlength{\floatsep}{20bp \@plus4pt \@minus1pt} -\setlength{\intextsep}{20bp \@plus4pt \@minus2pt} -\setlength{\textfloatsep}{20bp \@plus4pt \@minus2pt} +\theorembodyfont{\normalfont} +\theoremheaderfont{\normalfont\sffamily} +\theoremsymbol{\ensuremath{\square}} +\newtheorem*{proof}{\thu@proof@name} +\theoremstyle{plain} +\theoremsymbol{} +\theoremseparator{\thu@theorem@separator} +\newtheorem{assumption}{\thu@assumption@name}[chapter] +\newtheorem{definition}{\thu@definition@name}[chapter] +\newtheorem{proposition}{\thu@proposition@name}[chapter] +\newtheorem{lemma}{\thu@lemma@name}[chapter] +\newtheorem{theorem}{\thu@theorem@name}[chapter] +\newtheorem{axiom}{\thu@axiom@name}[chapter] +\newtheorem{corollary}{\thu@corollary@name}[chapter] +\newtheorem{exercise}{\thu@exercise@name}[chapter] +\newtheorem{example}{\thu@example@name}[chapter] +\newtheorem{remark}{\thu@remark@name}[chapter] +\newtheorem{problem}{\thu@problem@name}[chapter] +\newtheorem{conjecture}{\thu@conjecture@name}[chapter] +\setlength{\floatsep}{12bp \@plus 2bp \@minus 4bp} +\setlength{\textfloatsep}{12bp} +\setlength{\intextsep}{12bp} \setlength{\@fptop}{0bp \@plus1.0fil} \setlength{\@fpsep}{12bp \@plus2.0fil} \setlength{\@fpbot}{0bp \@plus1.0fil} @@ -289,12 +476,15 @@ \fi \let\old@tabular\@tabular \def\thu@tabular{\dawu[1.5]\old@tabular} -\DeclareCaptionLabelFormat{thu}{{\dawu[1.5]\normalfont #1~#2}} -\DeclareCaptionLabelSeparator{thu}{\hspace{1em}} -\DeclareCaptionFont{thu}{\dawu[1.5]} -\captionsetup{labelformat=thu,labelsep=thu,font=thu,skip=6bp} -\captionsetup[table]{position=top} -\captionsetup[figure]{position=bottom} +\DeclareCaptionFont{thu}{\dawu[1.3]} +\DeclareCaptionLabelSeparator{thu}{\hspace{\ccwd}} +\captionsetup{ + font = thu, + labelsep = thu, + skip = 6bp, + figureposition = bottom, + tableposition = top, +} \captionsetup[sub]{font=thu} \renewcommand{\thesubfigure}{(\alph{subfigure})} \renewcommand{\thesubtable}{(\alph{subtable})} @@ -303,6 +493,25 @@ \def\hlinewd#1{% \noalign{\ifnum0=`}\fi\hrule \@height #1 \futurelet \reserved@a\@xhline} +\ifthu@bachelor + \newcommand{\cabstractname}{中文摘要} + \newcommand{\eabstractname}{ABSTRACT} +\else + \newcommand{\cabstractname}{摘\hspace{\ccwd}要} + \newcommand{\eabstractname}{Abstract} +\fi +\let\CJK@todaysave=\today +\def\CJK@todaysmall@short{\the\year 年 \the\month 月} +\def\CJK@todaysmall{\the\year 年 \the\month 月 \the\day 日} +\def\CJK@todaybig@short{\zhdigits{\the\year}年\zhnumber{\the\month}月} +\def\CJK@todaybig{\zhdigits{\the\year}年\zhnumber{\the\month}月\zhnumber{\the\day}日} +\def\CJK@today{\CJK@todaysmall} +\renewcommand\today{\CJK@today} +\newcommand\CJKtoday[1][1]{% + \ifcase#1\def\CJK@today{\CJK@todaysave} + \or\def\CJK@today{\CJK@todaysmall} + \or\def\CJK@today{\CJK@todaybig} + \fi} \AtBeginDocument{% \pagestyle{thu@empty} \renewcommand{\chaptermark}[1]{\@mkboth{\CTEXthechapter\hskip\ccwd#1}{}}} @@ -432,25 +641,9 @@ \thu@def@term{cdegree} \thu@def@term{edegree} \thu@def@term{cdepartment} -\def\caffil{% for compatibility - \ClassWarning{thuthesis} - {'\string\caffil' is deprecated, please use '\string\cdepartment' instead.}{}% - \cdepartment} \thu@def@term{edepartment} -\def\eaffil{% for compability - \ClassWarning{thuthesis} - {'\string\eaffil' is deprecated, please use '\string\edepartment' instead.}{}% - \edepartment} \thu@def@term{cmajor} -\def\csubject{% for compatibility - \ClassWarning{thuthesis} - {'\string\csubject' is deprecated, please use '\string\cmajor' instead.}{}% - \cmajor} \thu@def@term{emajor} -\def\esubject{%for compability - \ClassWarning{thuthesis} - {'\string\esubject' is deprecated, please use '\string\emajor' instead.}{}% - \emajor} \thu@def@term{cdate} \thu@def@term{edate} \thu@def@term{id} @@ -459,6 +652,8 @@ \thu@def@term{cfirstdiscipline} \thu@def@term{cseconddiscipline} \thu@def@term{postdoctordate} +\thu@def@term{postdocstartdate} +\thu@def@term{postdocenddate} \newcommand{\thu@@cabstract}[1]{\long\gdef\thu@cabstract{#1}} \newenvironment{cabstract}{\Collect@Body\thu@@cabstract}{} \newcommand{\thu@@eabstract}[1]{\long\gdef\thu@eabstract{#1}} @@ -477,64 +672,154 @@ \thu@parse@keywords{ckeywords} \thu@parse@keywords{ekeywords} \def\thusetup{\kvsetkeys{thu}} +\def\thu@ckeywords@separator{;} +\def\thu@ekeywords@separator{;} +\def\thu@title@sep{:} +\ifthu@postdoctor + \def\thu@secretlevel{密级} +\else + \def\thu@secretlevel{秘密} +\fi +\def\thu@secretyear{\the\year} +\def\thu@schoolname{清华大学} +\def\thu@bachelor@subtitle{综合论文训练} +\def\thu@bachelor@title@pre{题目} +\def\thu@postdoctor@date@title{研究起止日期} +\ifthu@postdoctor + \def\thu@author@title{博士后姓名} +\else + \ifthu@bachelor + \def\thu@author@title{姓名} + \else + \def\thu@author@title{研究生} + \fi +\fi +\def\thu@postdoctor@first@discipline@title{流动站(一级学科)名称} +\def\thu@postdoctor@second@discipline@title{专\hspace{1em}业(二级学科)名称} +\def\thu@secret@content{% + \unskip\ifthu@master$\bigstar$ \fi% + \ifthu@doctor$\bigstar$ \fi% + \thu@secretyear 年} +\def\thu@apply{(申请清华大学\thu@cdegree 学位论文)} +\ifthu@bachelor + \def\thu@department@title{系别} + \def\thu@major@title{专业} +\else + \def\thu@department@title{培养单位} + \def\thu@major@title{学科} +\fi +\ifthu@postdoctor + \def\thu@supervisor@title{合作导师} +\else + \def\thu@supervisor@title{指导教师} +\fi +\ifthu@bachelor + \def\thu@assosuper@title{辅导教师} +\else + \def\thu@assosuper@title{副指导教师} +\fi +\def\thu@cosuper@title{% + \ifthu@doctor 联合导师\else \ifthu@master 联合指导教师\fi\fi} +\cdate{\ifthu@bachelor\CJK@todaysmall\else\ifthu@postdoctor\CJK@todaysmall@short\else\CJK@todaybig@short\fi\fi} +\edate{\ifcase \month \or January\or February\or March\or April\or May% + \or June\or July \or August\or September\or October\or November + \or December\fi\unskip,\ \ \the\year} +\newcommand{\thu@authtitle}{关于学位论文使用授权的说明} +\newcommand{\thu@authorization}{% +\ifthu@bachelor +本人完全了解清华大学有关保留、使用学位论文的规定,即:学校有权保留学位 +论文的复印件,允许该论文被查阅和借阅;学校可以公布该论文的全部或部分内 +容,可以采用影印、缩印或其他复制手段保存该论文。 +\else +本人完全了解清华大学有关保留、使用学位论文的规定,即: + +清华大学拥有在著作权法规定范围内学位论文的使用权,其中包括:(1)已获学位的研究生 +必须按学校规定提交学位论文,学校可以采用影印、缩印或其他复制手段保存研究生上交的 +学位论文;(2)为教学和科研目的,学校可以将公开的学位论文作为资料在图书馆、资料 +室等场所供校内师生阅读,或在校园网上供校内师生浏览部分内容\ifthu@master 。\else ; +(3)根据《中华人民共和国学位条例暂行实施办法》,向国家图书馆报送可以公开的学位 +论文。\fi + +本人保证遵守上述规定。 +\fi} +\newcommand{\thu@authorizationaddon}{% + \ifthu@bachelor(涉密的学位论文在解密后应遵守此规定)\else (保密的论文在解密后应遵守此规定)\fi} +\newcommand{\thu@authorsig}{\ifthu@bachelor 签\hskip1em名:\else 作者签名:\fi} +\newcommand{\thu@teachersig}{导师签名:} +\newcommand{\thu@frontdate}{% + 日\ifthu@bachelor\hspace{1em}\else\hspace{2em}\fi 期:} +\newcommand{\thu@ckeywords@title}{关键词:} \newcommand\thu@underline[2][6em]{\hskip1pt\underline{\hb@xt@ #1{\hss#2\hss}}\hskip3pt} +\newcommand\thu@CJKunderline[2][6em]{\CJKunderline*{\hb@xt@ #1{\hss#2\hss}}} \newlength{\thu@title@width} -\ifxetex % todo: ugly codes - \newcommand{\thu@put@title}[2][\thu@title@width]{% +\newcommand{\thu@put@title}[2][\thu@title@width]{% \begin{CJKfilltwosides}[b]{#1}#2\end{CJKfilltwosides}} -\else - \newcommand{\thu@put@title}[2][\thu@title@width]{% - \begin{CJKfilltwosides}{#1}#2\end{CJKfilltwosides}} -\fi \def\thu@first@titlepage{% \ifthu@postdoctor\thu@first@titlepage@postdoctor\else\thu@first@titlepage@other\fi} -\newcommand{\thu@first@titlepage@postdoctor}{ - \begin{center} - \setlength{\thu@title@width}{3em} - \vspace*{0.7cm} - \begingroup\wuhao[1.5]% - \thu@put@title{\thu@catalog@number@title}\thu@underline\thu@catalognumber\hfill% - \thu@put@title{\thu@secretlevel}% - \expandafter\thu@underline\ifthu@secret\thu@secret@content\else\relax\fi\par - \thu@put@title{U D C}\thu@underline\thu@udc\hfill% - \thu@put@title{\thu@id@title}\thu@underline\thu@id\par\vskip3cm\endgroup - \begingroup\heiti - {\xiaochu\ziju{1}\thu@schoolname}\par\vskip2cm - {\xiaoyi\ziju{1}\thu@postdoctor@report@title}\par\vskip3cm - {\sanhao[1.5]\thu@ctitle}\par\vskip2cm - {\xiaoer\thu@cauthor} - \endgroup - \par\vskip3cm - {\xiaosan[1.5]\ziju{1}\thu@schoolname\par\vskip0.5em\CJK@todaysmall@short} - \end{center} +\newcommand\thu@first@titlepage@postdoctor{% + \begin{center}% + \setlength{\thu@title@width}{3.5em}% + \renewcommand\ULthickness{0.7pt}% + \vspace*{0.35cm}% + {\sihao[2.6]% + \thu@put@title{分类号}\thu@underline[3.7cm]{\thu@catalognumber}\hfill + 密级\thu@underline[3.7cm]{\ifthu@secret\thu@secret@content\fi}\par + \thu@put@title{U D C}\thu@underline[3.7cm]{\thu@udc}\hfill + 编号\thu@underline[3.7cm]{\thu@id}\par + }% + \vskip 3.15cm% + {\sffamily\bfseries\xiaoer[2.6]% + {\ziju{1.5}\thu@schoolname\par}% + {\ziju{0.5}博士后研究工作报告\par}% + }% + \vskip 0.2cm% + \parbox[t][4.0cm][c]{\textwidth}{% + \centering\sihao[3.46]\CJKunderline*[depth=1em]{\thu@ctitle}\par + }\par + \vskip 0.4cm% + {\xiaosi\thu@cauthor\par}% + \vskip 1.4cm% + {\xiaosi[1.58]\xeCJKsetup{underline/depth=0.9em}% + 工作完成日期\quad\thu@CJKunderline[5.9cm]{\thu@postdoctordate}\par + \vskip 0.55cm% + 报告提交日期\quad\thu@CJKunderline[5.9cm]{\thu@cdate}\par + }% + \vskip 0.45cm% + {\xiaosi[2]{\ziju{1}\thu@schoolname}\quad (北京)\par}% + \vskip 0.25cm% + {\xiaosi[2]\thu@cdate\par}% + \end{center}% \cleardoublepage - \begin{center} - \vspace*{2cm} - {\sihao\heiti\thu@ctitle\par\thu@etitle}\par - \parbox[t][7cm][b]{\textwidth-6cm}{\sihao[1.5]% - \setlength{\thu@title@width}{11em} - \setlength{\extrarowheight}{6pt} - \ifxetex % todo: ugly codes - \begin{tabular}{p{\thu@title@width}@{}l@{\extracolsep{8pt}}l} - \else - \begin{tabular}{p{\thu@title@width}l@{}l} - \fi - \thu@put@title{\thu@author@title} - & \thu@title@sep - & \thu@cauthor \\ - \thu@put@title{\thu@postdoctor@first@discipline@title} - & \thu@title@sep - & \thu@cfirstdiscipline\\ - \thu@put@title{\thu@postdoctor@second@discipline@title} - & \thu@title@sep - & \thu@cseconddiscipline\\ - \thu@put@title{\thu@supervisor@title} - & \thu@title@sep - & \thu@csupervisor\\ - \end{tabular}} - \vskip2cm - {\sihao\thu@postdoctor@date@title\hskip1em\underline\thu@postdoctordate} - \end{center}} + \begin{center}% + \vspace*{1.5cm}% + \parbox[t][3cm][c]{\textwidth}{% + \centering\sanhao[1.95]\thu@ctitle\par + }\par + \vskip 0.15cm% + \parbox[t][3cm][c]{\textwidth}{% + \centering\sihao[1.36]\thu@etitle\par + }\par + \vskip 0.4cm% + {\xiaosi[2.6]% + \setlength{\thu@title@width}{11em}% + \begin{tabular}{l@{\quad}l}% + \thu@put@title{博士后姓名} & \thu@cauthor \\ + \thu@put@title{流动站(一级学科)名称} & \thu@cfirstdiscipline \\ + \thu@put@title{专\quad{}业(二级学科)名称} & \thu@cseconddiscipline \\ + \end{tabular}\par + }% + \vskip 2.7cm% + {\xiaosi[2.6]% + 研究工作起始时间\quad\thu@postdocstartdate\par + \vskip 0.1cm% + 研究工作期满时间\quad\thu@postdocenddate\par + }% + \vskip 2.1cm% + {\xiaosi[2.6]\thu@schoolname{}人事部(北京)\par}% + \vskip 0.6cm% + {\wuhao\thu@cdate\par}% + \end{center}% +} \newcommand{\thu@first@titlepage@other}{ \begin{center} \vspace*{-1.6cm} @@ -542,7 +827,7 @@ \ifthu@secret{\heiti\sanhao\thu@secretlevel\thu@secret@content}\else\rule{1cm}{0cm}\fi} \ifthu@bachelor \vskip0.65cm - {\ifcsname lishu\endcsname\yihao\lishu\ziju{0.5}\thu@schoolname\else\includegraphics{tsinghua}\fi} + {\ifcsname lishu\endcsname\yihao\lishu\ziju{0.5}\thu@schoolname\else\includegraphics{tsinghua.pdf}\fi} \par\vskip1.5cm {\xiaochu\heiti\ziju{0.5}\textbf\thu@bachelor@subtitle} \vskip2.2cm\hskip0.8cm @@ -551,11 +836,7 @@ \ignorespaces\yihao[1.51]% \renewcommand{\CJKunderlinebasesep}{0.25cm}% \renewcommand{\ULthickness}{1.3pt}% - \ifxetex - \xeCJKsetup{underline/format=\color{black}}% - \else - \def\CJKunderlinecolor{\color{black}}% - \fi + \xeCJKsetup{underline/format=\color{black}}% \CJKunderline*{\thu@ctitle}}% \vskip1.3cm \else @@ -580,11 +861,7 @@ \hspace*{1.9cm} \setlength{\thu@title@width}{4em} \setlength{\extrarowheight}{6pt} - \ifxetex % todo: ugly codes - \begin{tabular}{p{\thu@title@width}@{}l@{\extracolsep{8pt}}l} - \else - \begin{tabular}{p{\thu@title@width}l@{}l} - \fi + \begin{tabular}{p{\thu@title@width}@{}l@{\extracolsep{8pt}}l} \thu@put@title{\thu@department@title} & \thu@title@sep & \thu@cdepartment\\ \thu@put@title{\thu@major@title} & \thu@title@sep @@ -605,11 +882,7 @@ \begin{center}\fangsong \setlength{\thu@title@width}{5em} \setlength{\extrarowheight}{4pt} - \ifxetex % todo: ugly codes - \begin{tabular}{p{\thu@title@width}@{}c@{\extracolsep{8pt}}l} - \else - \begin{tabular}{p{\thu@title@width}c@{\extracolsep{4pt}}l} - \fi + \begin{tabular}{p{\thu@title@width}@{}c@{\extracolsep{8pt}}l} \thu@put@title{\thu@department@title} & \thu@title@sep & {\ziju{0.1875}\thu@cdepartment}\\ \thu@put@title{\thu@major@title} & \thu@title@sep @@ -641,6 +914,9 @@ \songti\thu@cdate} \end{center} \end{center}} % end of titlepage +\def\thu@master@art{Master of Arts} +\def\thu@master@sci{Master of Science} +\def\thu@doctor@phi{Doctor of Philosophy} \newcommand{\thu@engcover}{% \newif\ifthu@professional\thu@professionalfalse \ifthu@master @@ -727,11 +1003,22 @@ \def\makecover{% \thu@setup@pdfinfo\thu@makecover} \def\thu@setup@pdfinfo{% - \hypersetup{% - pdftitle={\thu@ctitle}, - pdfauthor={\thu@cauthor}, - pdfsubject={\thu@cdegree}, - pdfkeywords={\thu@ckeywords}, + \ifthu@chinese + \hypersetup{ + pdftitle = \thu@ctitle, + pdfauthor = \thu@cauthor, + pdfsubject = \thu@cdegree, + pdfkeywords = \thu@ckeywords, + }% + \else + \hypersetup{ + pdftitle = \thu@etitle, + pdfauthor = \thu@eauthor, + pdfsubject = \thu@edegree, + pdfkeywords = \thu@ekeywords, + }% + \fi + \hypersetup{ pdfcreator={\thuthesis-v\version}}} \NewDocumentCommand{\thu@makecover}{o}{ \phantomsection @@ -773,6 +1060,7 @@ \endgroup} \newcommand{\thu@makeabstract}{% \ifthu@bachelor\clearpage\else\cleardoublepage\fi + \thu@setchinese \thu@chapter*[]{\cabstractname} % no tocline \ifthu@bachelor \pagestyle{thu@plain} @@ -783,11 +1071,14 @@ \thu@cabstract \ifthu@doctor\vfill\else\vskip12bp\fi \thu@put@keywords{\textbf\thu@ckeywords@title}{\thu@ckeywords} + \thu@setenglish \thu@chapter*[]{\eabstractname} % no tocline \thu@eabstract \ifthu@doctor\vfill\else\vskip12bp\fi \thu@put@keywords{% - \textbf{\ifthu@bachelor Keywords:\else Key Words:\fi\enskip}}{\thu@ekeywords}} + \textbf{\ifthu@bachelor Keywords:\else Key Words:\fi\enskip}}{\thu@ekeywords}% + \thu@setdefaultlanguage +} \newenvironment{denotation}[1][2.5cm]{% \thu@chapter*[]{\thu@denotation@name} % no tocline \vskip-30bp\xiaosi[1.6]\begin{thu@denotation}[labelwidth=#1] @@ -805,8 +1096,15 @@ labelsep*=0.5cm, itemindent=0pt, } +\newcommand\thu@declarename{声\hspace{\ccwd}明} +\newcommand{\thu@declaretext}{本人郑重声明:所呈交的学位论文,是本人在导师指导下 + ,独立进行研究工作所取得的成果。尽我所知,除文中已经注明引用的内容外,本学位论 + 文的研究成果不包含任何他人享有著作权的内容。对本论文所涉及的研究工作做出贡献的 + 其他个人和集体,均已在文中以明确方式标明。} +\newcommand{\thu@signature}{签\hspace{1em}名:} +\newcommand{\thu@backdate}{日\hspace{1em}期:} \NewDocumentEnvironment{acknowledgement}{o}{% - \thu@chapter*{\thu@ackname} + \thu@chapter*{\thu@ack@name} } { \ifthu@postdoctor\relax\else% @@ -917,12 +1215,17 @@ \setlist[achievements]{label=[\arabic*],align=left,nosep,itemsep=8bp, leftmargin=10mm,labelsep=!,before=\xiaosi[1.26]} \def\publicationskip{\bigskip\bigskip} +\newcommand\thu@atendpackage{\csname ctex_at_end_package:nn\endcsname} +\thu@atendpackage{nomencl}{ + \let\nomname\thu@denotation@name + \def\thenomenclature{\begin{denotation}[\nom@tempdim]} + \def\endthenomenclature{\end{denotation}} +} \NewDocumentCommand{\shuji}{O{\thu@ctitle} O{\thu@cauthor}}{% \newpage\thispagestyle{empty}% - \fangsong\ifxetex\addCJKfontfeatures*{RawFeature={vertical:}}\fi + \fangsong\addCJKfontfeatures*{RawFeature={vertical:}} \xiaosan\ziju{0.4}% \noindent\hfill\rotatebox[origin=lt]{-90}{\makebox[\textheight]{#1\hfill#2}}} -\AtEndOfClass{\input{thuthesis.cfg}} \AtEndOfClass{\sloppy} \endinput %% -- cgit v1.2.3