summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/thuthesis
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-03-03 00:55:52 +0000
committerKarl Berry <karl@freefriends.org>2009-03-03 00:55:52 +0000
commit2046a35855fc1cccdd896f31e355067d0a439362 (patch)
tree3452a55d72eb94e9b395ed48f5836bc5db4396bb /Master/texmf-dist/tex/latex/thuthesis
parent5f64b37bca0d72846da5567ee6f03dc574df261d (diff)
thuthesis update (2mar09)
git-svn-id: svn://tug.org/texlive/trunk@12293 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/thuthesis')
-rw-r--r--Master/texmf-dist/tex/latex/thuthesis/thuthesis.cfg187
-rw-r--r--Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls522
2 files changed, 367 insertions, 342 deletions
diff --git a/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cfg b/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cfg
index 889363c43f5..63b1838a447 100644
--- a/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cfg
+++ b/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cfg
@@ -8,7 +8,7 @@
%%
%% This is a generated file.
%%
-%% Copyright (C) 2005-2008 by Xue Ruini <xueruini@gmail.com>
+%% Copyright (C) 2005-2009 by Xue Ruini <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,136 +23,141 @@
%%
%% This is the configuration file of the thuthesis package with LaTeX2e.
%%
+
\ProvidesFile{thuthesis.cfg}
-[2007/11/08 4.0 Tsinghua University Thesis Template]
-\newtheorem{proof}{证明}
-\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]
-\renewcommand\contentsname{目\hspace{1em}录}
-\renewcommand\listfigurename{插图索引}
-\renewcommand\listtablename{表格索引}
-\newcommand\listequationname{公式索引}
-\newcommand\equationname{公式}
-\renewcommand\bibname{参考文献}
-\renewcommand\indexname{索引}
-\renewcommand\figurename{图}
-\renewcommand\tablename{表}
-\newcommand\CJKprepartname{第}
-\newcommand\CJKpartname{部分}
+[2008/02/28 4.5.1 Tsinghua University Thesis Template]
+\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]
+\renewcommand\contentsname{鐩甛hspace{1em}褰晑
+\renewcommand\listfigurename{鎻掑浘绱㈠紩}
+\renewcommand\listtablename{琛ㄦ牸绱㈠紩}
+\newcommand\listequationname{鍏紡绱㈠紩}
+\newcommand\equationname{鍏紡}
+\renewcommand\bibname{鍙傝冩枃鐚畗
+\renewcommand\indexname{绱㈠紩}
+\renewcommand\figurename{鍥緘
+\renewcommand\tablename{琛▆
+\newcommand\CJKprepartname{绗瑌
+\newcommand\CJKpartname{閮ㄥ垎}
\newcommand\CJKthepart{\CJKnumber{\@arabic\c@part}}
-\newcommand\CJKprechaptername{第}
-\newcommand\CJKchaptername{章}
+\newcommand\CJKprechaptername{绗瑌
+\newcommand\CJKchaptername{绔爙
\newcommand\CJKthechapter{\@arabic\c@chapter}
\renewcommand\chaptername{\CJKprechaptername~\CJKthechapter~\CJKchaptername}
-\renewcommand\appendixname{附录}
+\renewcommand\appendixname{闄勫綍}
\ifthu@bachelor
- \newcommand{\cabstractname}{中文摘要}
+ \newcommand{\cabstractname}{涓枃鎽樿}
\newcommand{\eabstractname}{ABSTRACT}
\else
- \newcommand{\cabstractname}{摘\hspace{1em}要}
+ \newcommand{\cabstractname}{鎽榎hspace{1em}瑕亇
\newcommand{\eabstractname}{Abstract}
\fi
\let\CJK@todaysave=\today
-\def\CJK@todaysmall{~\the\year~年~\the\month~月~\the\day~日}
-\def\CJK@todaybig{\CJKdigits{\the\year}年\CJKnumber{\the\month}月\CJKnumber{\the\day}日}
+\def\CJK@todaysmall@short{\the\year 骞 \the\month 鏈坿
+\def\CJK@todaysmall{\CJK@todaysmall \the\day 鏃
+\def\CJK@todaybig@short{\CJKdigits{\the\year} 骞 \CJKnumber{\the\month} 鏈坿
+\def\CJK@todaybig{\CJK@todaybig@short \CJKnumber{\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}
+ \or\def\CJK@today{\CJK@todaysmall}
+ \or\def\CJK@today{\CJK@todaybig}
\fi}
\def\thu@ckeywords@separator{
- \ifthu@bachelor,%todo:
+ \ifthu@bachelor\hspace{1em}
\else
- \ifthu@master\hspace{2em}\else;\fi
+ \ifthu@master\hspace{2em}\else锛沑fi
\fi}
\def\thu@ekeywords@separator{
- \ifthu@bachelor,%todo:
+ \ifthu@bachelor\hspace{1em}
\else
\ifthu@master\hspace{2em}\else;\fi
\fi}
-\def\thu@title@sep{:}
-\def\thu@secretlevel{秘密}
+\def\thu@title@sep{锛殅
+\def\thu@secretlevel{绉樺瘑}
\def\thu@secretyear{\the\year}
-\def\thu@schoolename{清华大学}
-\def\thu@bachelor@subtitle{综合论文训练}
-\def\thu@bachelor@title@pre{题目}
-\def\thu@bachelor@departmenttitle{系别}
-\def\thu@bachelor@majortitle{专业}
-\def\thu@bachelor@authortitle{姓名}
-\def\thu@secretlevel@inner{内部}
+\def\thu@schoolename{娓呭崕澶у}
+\def\thu@bachelor@subtitle{缁煎悎璁烘枃璁粌}
+\def\thu@bachelor@title@pre{棰樼洰}
+\def\thu@bachelor@departmenttitle{绯诲埆}
+\def\thu@bachelor@majortitle{涓撲笟}
+\def\thu@bachelor@authortitle{濮撳悕}
+\def\thu@secretlevel@inner{鍐呴儴}
\def\thu@secret@title{%
- \thu@secretlevel\ifx\thu@secretlevel\thu@secretlevel@inner\else★\fi%
- \hspace{2em}\thu@secretyear\hspace{1em}年}
-\def\thu@apply{(申请清华大学\thu@cdegree学位论文)}
-\def\thu@cdepartmenttitle{培养单位}
-\def\thu@cmajortitle{学科}
-\def\thu@cauthortitle{研究生}
-\def\thu@csupervisortitle{指导教师}
+ \thu@secretlevel\ifx\thu@secretlevel\thu@secretlevel@inner\else 鈽匼fi%
+ \hspace{2em}\thu@secretyear\hspace{1em}骞磢
+\def\thu@apply{锛堢敵璇锋竻鍗庡ぇ瀛thu@cdegree 瀛︿綅璁烘枃锛墋
+\def\thu@cdepartmenttitle{鍩瑰吇鍗曚綅}
+\def\thu@cmajortitle{瀛︾}
+\def\thu@cauthortitle{鐮旂┒鐢焳
+\def\thu@csupervisortitle{鎸囧鏁欏笀}
\ifthu@bachelor
- \def\thu@cassosupertitle{辅导教师}
+ \def\thu@cassosupertitle{杈呭鏁欏笀}
\else
- \def\thu@cassosupertitle{副指导教师}
+ \def\thu@cassosupertitle{鍓寚瀵兼暀甯坿
\fi
\def\thu@ccosupertitle{%
- \ifthu@doctor 联合导师\else \ifthu@master 联合指导教师\fi\fi}
-\cdate{\ifthu@bachelor\the\year~~年~~\the\month~~月~~\the\day~~日%
- \else\CJKdigits{\the\year}年\CJKnumber{\the\month}月\fi}
+ \ifthu@doctor 鑱斿悎瀵煎笀\else \ifthu@master 鑱斿悎鎸囧鏁欏笀\fi\fi}
+\cdate{\ifthu@bachelor\CJK@todaysmall@short\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@authtitle}{鍏充簬瀛︿綅璁烘枃浣跨敤鎺堟潈鐨勮鏄巬
\newcommand{\thu@authorization}{%
\ifthu@bachelor
-本人完全了解清华大学有关保留、使用学位论文的规定,即:学校有权保留学位
-论文的复印件,允许该论文被查阅和借阅;学校可以公布该论文的全部或部分内
-容,可以采用影印、缩印或其他复制手段保存该论文。
+鏈汉瀹屽叏浜嗚В娓呭崕澶у鏈夊叧淇濈暀銆佷娇鐢ㄥ浣嶈鏂囩殑瑙勫畾锛屽嵆锛氬鏍℃湁鏉冧繚鐣欏浣
+璁烘枃鐨勫鍗颁欢锛屽厑璁歌璁烘枃琚煡闃呭拰鍊熼槄锛涘鏍″彲浠ュ叕甯冭璁烘枃鐨勫叏閮ㄦ垨閮ㄥ垎鍐
+瀹癸紝鍙互閲囩敤褰卞嵃銆佺缉鍗版垨鍏朵粬澶嶅埗鎵嬫淇濆瓨璇ヨ鏂囥
\else
-本人完全了解清华大学有关保留、使用学位论文的规定,即:
+鏈汉瀹屽叏浜嗚В娓呭崕澶у鏈夊叧淇濈暀銆佷娇鐢ㄥ浣嶈鏂囩殑瑙勫畾锛屽嵆锛
-清华大学拥有在著作权法规定范围内学位论文的使用权,其中包括:(1)已获学位的研究生
-必须按学校规定提交学位论文,学校可以采用影印、缩印或其他复制手段保存研究生上交的
-学位论文;(2)为教学和科研目的,学校可以将公开的学位论文作为资料在图书馆、资料
-室等场所供校内师生阅读,或在校园网上供校内师生浏览部分内容\ifthu@master 。\else
-;(3)根据《中华人民共和国学位条例暂行实施办法》,向国家图书馆报送可以公开的学位
-论文。\fi
+娓呭崕澶у鎷ユ湁鍦ㄨ憲浣滄潈娉曡瀹氳寖鍥村唴瀛︿綅璁烘枃鐨勪娇鐢ㄦ潈锛屽叾涓寘鎷細锛1锛夊凡鑾峰浣嶇殑鐮旂┒鐢
+蹇呴』鎸夊鏍¤瀹氭彁浜ゅ浣嶈鏂囷紝瀛︽牎鍙互閲囩敤褰卞嵃銆佺缉鍗版垨鍏朵粬澶嶅埗鎵嬫淇濆瓨鐮旂┒鐢熶笂浜ょ殑
+瀛︿綅璁烘枃锛涳紙2锛変负鏁欏鍜岀鐮旂洰鐨勶紝瀛︽牎鍙互灏嗗叕寮鐨勫浣嶈鏂囦綔涓鸿祫鏂欏湪鍥句功棣嗐佽祫鏂
+瀹ょ瓑鍦烘墍渚涙牎鍐呭笀鐢熼槄璇伙紝鎴栧湪鏍″洯缃戜笂渚涙牎鍐呭笀鐢熸祻瑙堥儴鍒嗗唴瀹筡ifthu@master 銆俓else 锛
+锛3锛夋牴鎹婁腑鍗庝汉姘戝叡鍜屽浗瀛︿綅鏉′緥鏆傝瀹炴柦鍔炴硶銆嬶紝鍚戝浗瀹跺浘涔﹂鎶ラ佸彲浠ュ叕寮鐨勫浣
+璁烘枃銆俓fi
-本人保证遵守上述规定。
+鏈汉淇濊瘉閬靛畧涓婅堪瑙勫畾銆
\fi}
\newcommand{\thu@authorizationaddon}{%
- \ifthu@bachelor(涉密的学位论文在解密后应遵守此规定)\else(保密的论文在解密后应遵守此规定)\fi}
-\newcommand{\thu@authorsig}{\ifthu@bachelor 签\hskip2em名:\else作者签名:\fi}
-\newcommand{\thu@teachersig}{导师签名:}
-\newcommand{\thu@frontdate}{日\hspace{2em}期:}
-\newcommand{\thu@ckeywords@title}{关键词:}
-\newcommand{\thu@denotation@name}{主要符号对照表}
-\newcommand{\thu@ackshortname}{致谢}
-\newcommand{\thu@ackname}{致\hspace{1em}谢}
-\newcommand{\thu@acklongname}{致谢与声明}
-\newcommand{\thu@declareshortname}{声明}
-\newcommand{\thu@declarename}{声\hspace{1em}明}
-\newcommand{\thu@declaretext}{本人郑重声明:所呈交的学位论文,是本人在导师指导下
- ,独立进行研究工作所取得的成果。尽我所知,除文中已经注明引用的内容外,本学位论
- 文的研究成果不包含任何他人享有著作权的内容。对本论文所涉及的研究工作做出贡献的
- 其他个人和集体,均已在文中以明确方式标明。}
-\newcommand{\thu@signature}{签\hspace{1em}名:}
-\newcommand{\thu@backdate}{日\hspace{1em}期:}
+ \ifthu@bachelor(娑夊瘑鐨勫浣嶈鏂囧湪瑙e瘑鍚庡簲閬靛畧姝よ瀹)\else 锛堜繚瀵嗙殑璁烘枃鍦ㄨВ瀵嗗悗搴旈伒瀹堟瑙勫畾锛塡fi}
+\newcommand{\thu@authorsig}{\ifthu@bachelor 绛綷hskip1em鍚嶏細\else 浣滆呯鍚嶏細\fi}
+\newcommand{\thu@teachersig}{瀵煎笀绛惧悕锛殅
+\newcommand{\thu@frontdate}{鏃hspace{2em}鏈燂細}
+\newcommand{\thu@ckeywords@title}{鍏抽敭璇嶏細}
+\newcommand{\thu@denotation@name}{涓昏绗﹀彿瀵圭収琛▆
+\newcommand{\thu@ackshortname}{鑷磋阿}
+\newcommand{\thu@ackname}{鑷碶hspace{1em}璋
+\newcommand{\thu@acklongname}{鑷磋阿涓庡0鏄巬
+\newcommand{\thu@declareshortname}{澹版槑}
+\newcommand{\thu@declarename}{澹癨hspace{1em}鏄巬
+\newcommand{\thu@declaretext}{鏈汉閮戦噸澹版槑锛氭墍鍛堜氦鐨勫浣嶈鏂囷紝鏄湰浜哄湪瀵煎笀鎸囧涓
+ 锛岀嫭绔嬭繘琛岀爺绌跺伐浣滄墍鍙栧緱鐨勬垚鏋溿傚敖鎴戞墍鐭ワ紝闄ゆ枃涓凡缁忔敞鏄庡紩鐢ㄧ殑鍐呭澶栵紝鏈浣嶈
+ 鏂囩殑鐮旂┒鎴愭灉涓嶅寘鍚换浣曚粬浜轰韩鏈夎憲浣滄潈鐨勫唴瀹广傚鏈鏂囨墍娑夊強鐨勭爺绌跺伐浣滃仛鍑鸿础鐚殑
+ 鍏朵粬涓汉鍜岄泦浣擄紝鍧囧凡鍦ㄦ枃涓互鏄庣‘鏂瑰紡鏍囨槑銆倉
+\newcommand{\thu@signature}{绛綷hspace{1em}鍚嶏細}
+\newcommand{\thu@backdate}{鏃hspace{1em}鏈燂細}
\ifthu@bachelor
- \newcommand{\thu@resume@title}{在学期间参加课题的研究成果}
+ \newcommand{\thu@resume@title}{鍦ㄥ鏈熼棿鍙傚姞璇鹃鐨勭爺绌舵垚鏋渳
\else
- \newcommand{\thu@resume@title}{个人简历、在学期间发表的学术论文与研究成果}
+ \newcommand{\thu@resume@title}{涓汉绠鍘嗐佸湪瀛︽湡闂村彂琛ㄧ殑瀛︽湳璁烘枃涓庣爺绌舵垚鏋渳
\fi
\endinput
%%
diff --git a/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls b/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls
index f5bf295232f..e64755b4337 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-2008 by Xue Ruini <xueruini@gmail.com>
+%% Copyright (C) 2005-2009 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,17 @@
%% To produce the documentation run the original source files ending with `.dtx'
%% through LaTeX.
%%
+
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesClass{thuthesis}
-[2007/11/08 4.0 Tsinghua University Thesis Template]
+[2008/02/28 4.5.1 Tsinghua University Thesis Template]
+\newif\ifthu@UTF
+\newif\ifthu@GBK
+\DeclareOption{utf}{\thu@UTFtrue\thu@GBKfalse}
+\DeclareOption{gbk}{\thu@GBKtrue\thu@UTFfalse}
\hyphenation{Thu-Thesis}
\def\thuthesis{\textsc{ThuThesis}}
-\def\version{4.0}
+\def\version{4.5}
\newif\ifthu@bachelor\thu@bachelorfalse
\newif\ifthu@master\thu@masterfalse
\newif\ifthu@doctor\thu@doctorfalse
@@ -37,30 +42,14 @@
\DeclareOption{master}{\thu@mastertrue}
\DeclareOption{doctor}{\thu@doctortrue}
\DeclareOption{secret}{\thu@secrettrue}
-\AtEndOfClass{%
- \ifthu@bachelor\relax\else
- \ifthu@master\relax\else
- \ifthu@doctor\relax\else
- \ClassError{thuthesis}%
- {You have to specify one of thesis options: bachelor, master or doctor.}{}
- \fi
- \fi
- \fi}
\newif\ifthu@dvips
\newif\ifthu@dvipdfm
+\newif\ifthu@xetex
+\newif\ifthu@pdftex
\DeclareOption{dvips}{\thu@dvipstrue}
\DeclareOption{dvipdfm}{\thu@dvipdfmtrue}
-\AtEndOfClass{%
- \ifpdf
- \ifthu@dvips
- \ClassError{thuthesis}%
- {Please remove `dvips' if you run pdflatex.}{}
- \fi
- \ifthu@dvipdfm
- \ClassError{thuthesis}%
- {Please remove `dvipdfm' if you run pdflatex.}{}
- \fi
- \fi}
+\DeclareOption{pdftex}{\thu@pdftextrue}
+\DeclareOption{xetex}{\thu@xetextrue}
\newif\ifthu@arial
\DeclareOption{arial}{\thu@arialtrue}
\newif\ifthu@arialtoc
@@ -68,33 +57,79 @@
\newif\ifthu@arialtitle
\DeclareOption{arialtitle}{\thu@arialtitletrue}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
-\ExecuteOptions{arialtitle}
-\ProcessOptions
-\ifthu@bachelor
- %\thu@arialtoctrue % hard code
- \LoadClass[12pt, a4paper, openright]{book}
-\else
- \LoadClass[12pt, a4paper, openany]{book}
+\ExecuteOptions{utf,arialtitle}
+\ProcessOptions\relax
+\LoadClass[12pt,a4paper,openany]{book}
+\ifthu@bachelor\relax\else
+ \ifthu@master\relax\else
+ \ifthu@doctor\relax\else
+ \ClassError{thuthesis}%
+ {You have to specify one of thesis options: bachelor, master or doctor.}{}
+ \fi
+ \fi
\fi
-\RequirePackage{ifthen}
-\RequirePackage{calc}
-\RequirePackage{ifpdf}
-\RequirePackage{amsmath, amssymb}
+\RequirePackage{ifpdf,ifxetex}
+\ifthu@xetex\RequireXeTeX\fi
+\def\RequirePDFTeX{%
+ \ifpdf\else
+ \ClassError{thuthesis}%
+ {pdflatex is required to compile this document!}{}
+ \fi}
+\ifthu@pdftex\RequirePDFTeX\fi
+\def\thu@checkoption#1#2{%
+ \@for\reserved@a:=#2\do{%
+ \csname ifthu@\reserved@a\endcsname
+ \ClassError{thuthesis}%
+ {Please remove `\reserved@a' option when you run #1.}{}
+ \fi}}
+\ifpdf\thu@checkoption{pdflatex}{dvips,dvipdfm,xetex}\thu@pdftextrue\fi % force the option to be true
+\ifxetex\thu@checkoption{xelatex}{dvips,dvipdfm,pdftex}\thu@xetextrue\fi
+\RequirePackage{ifthen,calc}
+\RequirePackage{amsmath,amssymb}
\RequirePackage{txfonts}
-\ifthu@arial
- \IfFileExists{arial.sty}{\RequirePackage{arial}}%
- {\ClassWarning{thuthesis}{no arial.sty availiable!}}
-\fi
\RequirePackage{graphicx}
\RequirePackage[config]{subfig}
\RequirePackage{indentfirst}
\RequirePackage[neverdecrease]{paralist}
-\RequirePackage{CJK, CJKnumb}
-\RequirePackage{CJKpunct}
-\ifpdf % We're not running pdftex
- \RequirePackage{ccmap} % 用 pdflatex 编译
+\ifthu@xetex
+ \RequirePackage{xunicode,xltxtra}
+ \RequirePackage[CJKnumber,CJKtextspaces,CJKmathspaces]{xeCJK}
+ \punctstyle{kaiming}
+ % todo: minor fix of CJKnumb
+ \def\CJK@null{\kern\CJKnullspace\Unicode{48}{7}\kern\CJKnullspace}
+ \defaultfontfeatures{Mapping=tex-text} % after fontspec
+ \setCJKmainfont[BoldFont={Adobe Heiti Std}, ItalicFont={Adobe Kaiti Std}]{Adobe Song Std}
+ \setCJKsansfont{Adobe Heiti Std}
+ \setCJKmonofont{Adobe Kaiti Std}
+ \setCJKfamilyfont{song}{Adobe Song Std}
+ \setCJKfamilyfont{hei}{Adobe Heiti Std}
+ \setCJKfamilyfont{fs}{Adobe Fangsong Std}
+ \setCJKfamilyfont{kai}{Adobe Kaiti Std}
+ \setCJKfamilyfont{li}{Adobe Kaiti Std} % todo: 鐢ㄩ毝涔﹀瓧浣撲唬鏇
+ \setCJKfamilyfont{you}{Adobe Kaiti Std} % todo: 鐢ㄥ辜鍦嗗瓧浣撲唬鏇
+
+ \setmainfont{Times New Roman}
+ \setsansfont{Arial}
+ \setmonofont{Courier New}
\else
- % \RequirePackage{cmap}
+ \RequirePackage{CJKutf8}
+ \RequirePackage{CJKnumb}
+ \ifthu@GBK % CJKpunct 鍦 UTF 涓嬪伐浣滅殑涓嶅ソ銆
+ \IfFileExists{CJKpunct.sty}%
+ {\RequirePackage{CJKpunct}}%
+ {\ClassWarning{thuthesis}{no CJKpunct.sty availiable!}}
+ \fi
+ \RequirePackage{CJKspace}
+ \ifthu@arial
+ \IfFileExists{arial.sty}%
+ {\RequirePackage{arial}}%
+ {\ClassWarning{thuthesis}{no arial.sty availiable!}}
+ \fi
+\fi
+\ifthu@dvips\else
+ \ifthu@xetex\else
+ \RequirePackage{ccmap}
+ \fi
\fi
\RequirePackage[amsmath,thmmarks,hyperref]{ntheorem}
\RequirePackage{array}
@@ -102,9 +137,15 @@
\RequirePackage{booktabs}
\RequirePackage[numbers,super,sort&compress]{natbib}
\RequirePackage{hyperref}
+\ifxetex
+ \hypersetup{%
+ CJKbookmarks=true}
+\else
+ \hypersetup{%
+ unicode=true,
+ CJKbookmarks=false}
+\fi
\hypersetup{%
- unicode=true,
- CJKbookmarks=true,
bookmarksnumbered=true,
bookmarksopen=true,
bookmarksopenlevel=1,
@@ -113,6 +154,9 @@
plainpages=false,
pdfpagelabels,
pdfborder=0 0 0}
+\ifthu@dvips
+ \RequirePackage{breakurl}
+\fi
\urlstyle{same}
\RequirePackage{hypernat}
\renewcommand\frontmatter{%
@@ -124,22 +168,21 @@
\if@openright\cleardoublepage\else\clearpage\fi
\@mainmattertrue
\pagenumbering{arabic}
- \pagestyle{thu@headings}}
+ \ifthu@bachelor\pagestyle{thu@plain}\else\pagestyle{thu@headings}\fi}
\renewcommand\backmatter{%
\if@openright\cleardoublepage\else\clearpage\fi
- %\@mainmatterfalse
- \ifthu@bachelor\pagenumbering{Roman}\fi}
-\newcommand{\song}{\CJKfamily{song}} % 宋体
+ \@mainmattertrue}
+\newcommand{\song}{\CJKfamily{song}} % 瀹嬩綋
\def\songti{\song}
-\newcommand{\fs}{\CJKfamily{fs}} % 仿宋体
+\newcommand{\fs}{\CJKfamily{fs}} % 浠垮畫浣
\def\fangsong{\fs}
-\newcommand{\kai}{\CJKfamily{kai}} % 楷体
+\newcommand{\kai}{\CJKfamily{kai}} % 妤蜂綋
\def\kaishu{\kai}
-\newcommand{\hei}{\CJKfamily{hei}} % 黑体
+\newcommand{\hei}{\CJKfamily{hei}} % 榛戜綋
\def\heiti{\hei}
-\newcommand{\li}{\CJKfamily{li}} % 隶书
+\newcommand{\li}{\CJKfamily{li}} % 闅朵功
\def\lishu{\li}
-\newcommand{\you}{\CJKfamily{you}} % 幼圆
+\newcommand{\you}{\CJKfamily{you}} % 骞煎渾
\def\youyuan{\you}
\newlength\thu@linespace
\newcommand{\thu@choosefont}[2]{%
@@ -221,11 +264,21 @@
\vskip2pt\hbox{\vrule width\textwidth height0.4pt depth0pt}}}
\def\@oddfoot{\hfil\wuhao\thepage\hfil}
\let\@evenfoot=\@oddfoot}
-\renewcommand{\chaptermark}[1]{\@mkboth{\@chapapp\ ~~#1}{}}
-\newlength\CJKtwospaces
+\renewcommand{\chaptermark}[1]{\@mkboth{\@chapapp\ ~~#1}{}}
+\newlength\CJK@twochars
+\ifxetex
+ \def\CJK@spaceChar{\Unicode{48}{7}}
+\else
+ \ifthu@UTF
+ \def\CJK@spaceChar{\CJKchar{"080}{"080}}
+ \fi
+ \ifthu@GBK
+ \def\CJK@spaceChar{\CJKchar{"0A1}{"0A1}}
+ \fi
+\fi
\def\CJKindent{%
- \settowidth\CJKtwospaces{\CJKchar{"0A1}{"0A1}\CJKchar{"0A1}{"0A1}}%
- \parindent\CJKtwospaces}
+ \settowidth\CJK@twochars{\CJK@spaceChar\CJK@spaceChar}%
+ \parindent\CJK@twochars}
\setlength{\parskip}{0pt \@plus2pt \@minus0pt}
\def\thu@item@space{%
\let\itemize\compactitem
@@ -276,28 +329,19 @@
#1
\par\egroup}
\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@@@}
-\def\thu@make@df@tag@@#1{%
- \gdef\df@tag{\thu@maketag{#1}\def\@currentlabel{#1}}}
- % redefinitation of tagform broken eqref!
-\renewcommand{\eqref}[1]{\textup{\ref{#1}}}
+\def\thu@make@df@tag@@#1{\gdef\df@tag{\thu@maketag{#1}\def\@currentlabel{#1}}}
+\renewcommand{\eqref}[1]{\textup{(\ref{#1})}}
\renewcommand\theequation{\ifnum \c@chapter>\z@ \thechapter-\fi\@arabic\c@equation}
-\ifthu@bachelor
- \def\thu@maketag#1{\maketag@@@{%
- (\ignorespaces\text{\equationname\hskip0.5em}#1\unskip\@@italiccorr)}}
- \def\tagform@#1{\maketag@@@{%
- (\ignorespaces\text{\equationname\hskip0.5em}#1\unskip\@@italiccorr)\equcaption{#1}}}
-\else
- \def\thu@maketag#1{\maketag@@@{(\ignorespaces #1\unskip\@@italiccorr)}}
- \def\tagform@#1{\maketag@@@{%
- (\ignorespaces #1\unskip\@@italiccorr)\equcaption{#1}}}
-\fi
+\def\thu@maketag#1{\maketag@@@{(\ignorespaces #1\unskip\@@italiccorr)}}
+\def\tagform@#1{\maketag@@@{(\ignorespaces #1\unskip\@@italiccorr)\equcaption{#1}}}
\gdef\@endtrivlist#1{% % from \endtrivlist
\if@inlabel \indent\fi
\if@newlist \@noitemerr\fi
\ifhmode
- \ifdim\lastskip >\z@ #1\unskip \par %<<<<<<<<<<<<<<<<<<<<<<
- \else #1\unskip \par \fi
+ \ifdim\lastskip >\z@ #1\unskip \par %<<<<<<<<<<<<<<<<<<<<<<
+ \else #1\unskip \par \fi
\fi
\if@noparlist \else
\ifdim\lastskip >\z@
@@ -309,11 +353,6 @@
\fi #1}
\theorembodyfont{\song\rmfamily}
\theoremheaderfont{\hei\rmfamily}
- % \theoremsymbol{\ensuremath{\blacksquare}}
-\theoremsymbol{\ensuremath{\square}}
-\theoremstyle{nonumberplain}
-\theoremstyle{plain}
-\theoremsymbol{}
\setlength{\floatsep}{12bp \@plus4pt \@minus1pt}
\setlength{\intextsep}{12bp \@plus4pt \@minus2pt}
\setlength{\textfloatsep}{12bp \@plus4pt \@minus2pt}
@@ -330,19 +369,11 @@
\DeclareCaptionLabelSeparator{thu}{\hspace{1em}}
\DeclareCaptionFont{thu}{\dawu[1.5]}
\captionsetup{labelformat=thu,labelsep=thu,font=thu}
-\captionsetup[table]{position=top,belowskip={12bp-\intextsep},aboveskip=3bp}
-\captionsetup[figure]{position=bottom,belowskip={12bp-\intextsep},aboveskip=-2bp}
-\captionsetup[subfloat]{font=thu,captionskip=6bp,nearskip=6bp,farskip=0bp,topadjust=0bp}
- %\renewcommand{\thesubfigure}{\thefigure--(\arabic{subfigure})}
- % \renewcommand{\p@subfigure}{:}
-\def\LT@c@ption#1[#2]#3{% change code from longtable.sty
- \LT@makecaption#1\fnum@table{#3}%
- \def\@tempa{#2}%
- \ifx\@tempa\@empty\else
- {\let\\\space
- \addcontentsline{\csname ext@table\endcsname}{table}%
- {\protect\numberline{\tablename\hskip0.5em\thetable}{#2}}}%
- \fi}
+\captionsetup[table]{position=top,belowskip={12bp-\intextsep},aboveskip=6bp}
+\captionsetup[figure]{position=bottom,belowskip={12bp-\intextsep},aboveskip=6bp}
+\captionsetup[subfloat]{labelformat=simple,font=thu,captionskip=6bp,nearskip=6bp,farskip=0bp,topadjust=0bp}
+\renewcommand{\thesubfigure}{(\alph{subfigure})}
+\renewcommand{\thesubtable}{(\alph{subtable})}
\let\thu@LT@array\LT@array
\def\LT@array{\dawu[1.5]\thu@LT@array} % set default font size
\def\hlinewd#1{%
@@ -394,6 +425,7 @@
\interlinepenalty\@M
#1\par\nobreak
\vskip 24bp}}
+\newcounter{thu@bookmark}
\def\thu@chapter*{%
\@ifnextchar [ % ]
{\thu@@chapter}
@@ -409,7 +441,8 @@
\def\@tmpa{#1}
\def\@tmpb{#3}
\ifx\@tmpa\@empty
- \pdfbookmark[0]{#2}{\expandafter\@gobble\string#2}
+ \addtocounter{thu@bookmark}\@ne
+ \pdfbookmark[0]{#2}{thuchapter.\thethu@bookmark}
\else
\addcontentsline{toc}{chapter}{#1}
\fi
@@ -420,15 +453,15 @@
\@mkboth{#3}{#3}
\fi}
\renewcommand\section{\@startsection {section}{1}{\z@}%
- {-24bp \@plus -1ex \@minus -.2ex}%
+ {\ifthu@bachelor -20bp\else -24bp\fi\@plus -1ex \@minus -.2ex}%
{6bp \@plus .2ex}%
{\hei\csname thu@title@font\endcsname\sihao[1.429]}}
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
- {-16bp \@plus -1ex \@minus -.2ex}%
+ {\ifthu@bachelor -12bp\else -16bp\fi\@plus -1ex \@minus -.2ex}%
{6bp \@plus .2ex}%
- {\hei\csname thu@title@font\endcsname\banxiaosi[1.538]}}
+ {\hei\csname thu@title@font\endcsname\ifthu@bachelor\xiaosi[1.667]\else\banxiaosi[1.538]\fi}}
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
- {-16bp \@plus -1ex \@minus -.2ex}%
+ {\ifthu@bachelor -12bp\else -16bp\fi\@plus -1ex \@minus -.2ex}%
{6bp \@plus .2ex}%
{\hei\csname thu@title@font\endcsname\xiaosi[1.667]}}
\setcounter{secnumdepth}{3}
@@ -439,13 +472,13 @@
\fi
\renewcommand\tableofcontents{%
\thu@chapter*[]{\contentsname}
- \ifthu@bachelor\wuhao[1.8]\else\xiaosi[1.5]\fi\@starttoc{toc}\normalsize}
+ \ifthu@bachelor\xiaosi[1.8]\else\xiaosi[1.5]\fi\@starttoc{toc}\normalsize}
\ifthu@arialtoc
\def\thu@toc@font{\sffamily}
\fi
-\def\@pnumwidth{2em} % 这个参数没用了
+\def\@pnumwidth{2em} % 杩欎釜鍙傛暟娌$敤浜
\def\@tocrmarg{2em}
-\def\@dotsep{1} % 目录点间的距离
+\def\@dotsep{1} % 鐩綍鐐归棿鐨勮窛绂
\def\@dottedtocline#1#2#3#4#5{%
\ifnum #1>\c@tocdepth \else
\vskip \z@ \@plus.2\p@
@@ -471,15 +504,15 @@
\leavevmode
\advance\leftskip\@tempdima
\hskip -\leftskip
- {\hei\csname thu@toc@font\endcsname #1} % numberline is called here, and it use @tempdima
+ {\hei\ifthu@bachelor\sffamily\else\csname thu@toc@font\endcsname\fi #1} % numberline is called here, and it uses \@tempdima
\leaders\hbox{$\m@th\mkern \@dotsep mu\hbox{.}\mkern \@dotsep mu$}\hfill
\nobreak{\normalfont\normalcolor #2}\par
\penalty\@highpenalty
\endgroup
\fi}
-\renewcommand*\l@section{\@dottedtocline{1}{1.2em}{2.1em}}
-\renewcommand*\l@subsection{\@dottedtocline{2}{2em}{3em}}
-\renewcommand*\l@subsubsection{\@dottedtocline{3}{3.5em}{3.8em}}
+\renewcommand*\l@section{\@dottedtocline{1}{\ifthu@bachelor 1.0em\else 1.2em\fi}{2.1em}}
+\renewcommand*\l@subsection{\@dottedtocline{2}{\ifthu@bachelor 1.6em\else 2em\fi}{3em}}
+\renewcommand*\l@subsubsection{\@dottedtocline{3}{\ifthu@bachelor 2.4em\else 3.5em\fi}{3.8em}}
\def\thu@define@term#1{
\expandafter\gdef\csname #1\endcsname##1{%
\expandafter\gdef\csname thu@#1\endcsname{##1}}
@@ -489,11 +522,11 @@
\thu@define@term{ctitle}
\thu@define@term{cdegree}
\newcommand\cdepartment[2][]{\def\thu@cdepartment@short{#1}\def\thu@cdepartment{#2}}
-\def\caffil{\cdepartment} % for compatibility
+\def\caffil{\cdepartment} % todo: for compatibility
\def\thu@cdepartment@short{}
\def\thu@cdepartment{}
\thu@define@term{cmajor}
-\def\csubject{\cmajor} % for compatibility
+\def\csubject{\cmajor} % todo: for compatibility
\thu@define@term{cauthor}
\thu@define@term{csupervisor}
\thu@define@term{cassosupervisor}
@@ -544,15 +577,18 @@
\par\vskip1.2cm
{\ziju{18bp}\xiaochu\hei\thu@bachelor@subtitle}
\vskip2.5cm
- \hspace*{-0.3cm}\noindent\hei\xiaoer\thu@bachelor@title@pre\thu@title@sep
+ \noindent\hei\xiaoer\thu@bachelor@title@pre\thu@title@sep
\parbox[t]{12cm}{%
- \begin{picture}(0,0)(0,0)
- \setlength\unitlength{1cm}
- \linethickness{1.3pt}
- \put(0,-0.25){\line(1,0){12}}
- \put(0,-1.68){\line(1,0){12}}
- \end{picture}%
- \ignorespaces\yihao[1.55]\thu@ctitle} %TODO: CJKulem.sty
+ \setbox0=\hbox{{\yihao[1.55]\thu@ctitle}}
+ \begin{picture}(0,0)(0,0)
+ \setlength\unitlength{1cm}
+ \linethickness{1.3pt}
+ \put(0,-0.25){\line(1,0){12}}
+ \ifdim\wd0>12cm
+ \put(0,-1.68){\line(1,0){12}}
+ \fi
+ \end{picture}%
+ \ignorespaces\yihao[1.55]\thu@ctitle} %TODO: CJKulem.sty
\vskip1.55cm
\else
\parbox[t][9cm][t]{\paperwidth-8cm}{
@@ -567,39 +603,51 @@
\xiaoer[1] \textrm{{\ziju{2bp}\thu@apply}}
\end{center}}
\fi
- \parbox[t][7.8cm][t]{\textwidth}{{\sanhao[1.5]
- \begin{center}\fs
- \ifthu@bachelor
+ \ifthu@bachelor
+ \vskip1cm
+ \parbox[t][7.0cm][t]{\textwidth}{{\sanhao[1.8]
+ \hspace*{1.65cm}\fs
\setlength{\thu@title@width}{4em}
\setlength{\extrarowheight}{6pt}
- \begin{tabular}{p{\thu@title@width}@{}l@{\extracolsep{4pt}}l}
- \thu@put@title{\thu@bachelor@departmenttitle} & \thu@title@sep & \thu@cdepartment\\
- \thu@put@title{\thu@bachelor@majortitle} & \thu@title@sep & \thu@cmajor\\
- \thu@put@title{\thu@bachelor@authortitle} & \thu@title@sep & \thu@cauthor \\
- \thu@put@title{\thu@csupervisortitle} & \thu@title@sep & \thu@csupervisor\\
- \ifx\thu@cassosupervisor\@empty\else
- \thu@put@title{\thu@cassosupertitle} & \thu@title@sep & \thu@cassosupervisor\\
- \fi
- \end{tabular}
- \else
+ \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@bachelor@departmenttitle} & \thu@title@sep & \thu@cdepartment\\
+ \thu@put@title{\thu@bachelor@majortitle} & \thu@title@sep & \thu@cmajor\\
+ \thu@put@title{\thu@bachelor@authortitle} & \thu@title@sep & \thu@cauthor \\
+ \thu@put@title{\thu@csupervisortitle} & \thu@title@sep & \thu@csupervisor\\
+ \ifx\thu@cassosupervisor\@empty\else
+ \thu@put@title{\thu@cassosupertitle} & \thu@title@sep & \thu@cassosupervisor\\
+ \fi
+ \end{tabular}
+ }}
+ \else
+ \parbox[t][7.8cm][t]{\textwidth}{{\sanhao[1.5]
+ \begin{center}\fs
\setlength{\thu@title@width}{6em}
\setlength{\extrarowheight}{4pt}
- \begin{tabular}{p{\thu@title@width}c@{\extracolsep{4pt}}l}
- \thu@put@title{\thu@cdepartmenttitle} & \thu@title@sep & {\ziju{3bp}\thu@cdepartment}\\
- \thu@put@title{\thu@cmajortitle} & \thu@title@sep & {\ziju{3bp}\thu@cmajor}\\
- \thu@put@title{\thu@cauthortitle} & \thu@title@sep & {\ziju{11bp}\thu@cauthor}\\
- \thu@put@title{\thu@csupervisortitle} & \thu@title@sep & {\ziju{11bp}\thu@csupervisor}\\
- \ifx\thu@cassosupervisor\@empty\else
- \thu@put@title{\thu@cassosupertitle} & \thu@title@sep & {\ziju{11bp}\thu@cassosupervisor}\\
- \fi
- \ifx\thu@ccosupervisor\@empty\else
- \thu@put@title{\thu@ccosupertitle} & \thu@title@sep & {\ziju{11bp}\thu@ccosupervisor}\\
- \fi
- \end{tabular}
- \fi
- \end{center}}}
+ \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
+ \thu@put@title{\thu@cdepartmenttitle} & \thu@title@sep & {\ziju{3bp}\thu@cdepartment}\\
+ \thu@put@title{\thu@cmajortitle} & \thu@title@sep & {\ziju{3bp}\thu@cmajor}\\
+ \thu@put@title{\thu@cauthortitle} & \thu@title@sep & {\ziju{11bp}\thu@cauthor}\\
+ \thu@put@title{\thu@csupervisortitle} & \thu@title@sep & {\ziju{11bp}\thu@csupervisor}\\
+ \ifx\thu@cassosupervisor\@empty\else
+ \thu@put@title{\thu@cassosupertitle} & \thu@title@sep & {\ziju{11bp}\thu@cassosupervisor}\\
+ \fi
+ \ifx\thu@ccosupervisor\@empty\else
+ \thu@put@title{\thu@ccosupertitle} & \thu@title@sep & {\ziju{11bp}\thu@ccosupervisor}\\
+ \fi
+ \end{tabular}
+ \end{center}}}
+ \fi
\begin{center}
- {\ifthu@bachelor\xiaosi\else\sanhao\fi \song \thu@cdate}
+ {\ifthu@bachelor\hskip-0.9cm\xiaosi\else\sanhao\fi \song \thu@cdate}
\end{center}
\end{center}} % end of titlepage
\newcommand{\thu@doctor@engcover}{%
@@ -632,6 +680,8 @@
Dissertation Supervisor : & \thu@esupervisor\\
\ifx\thu@eassosupervisor\@empty
\else Associate Supervisor : & \thu@eassosupervisor\\\fi
+ \ifx\thu@ecosupervisor\@empty
+ \else Cooperate Supervisor : & \thu@ecosupervisor\\\fi
\end{tabular}}
\parbox[t][2cm][b]{\paperwidth-7.2cm}{
\begin{center}
@@ -645,9 +695,9 @@
\ifthu@bachelor\vskip\baselineskip\else\vskip18pt\sihao[2.03]\fi\par
\thu@authorization\par
\textbf{\thu@authorizationaddon}\par
- \ifthu@bachelor\vskip2.54cm\else\vskip1.9cm\fi
+ \ifthu@bachelor\vskip1.0cm\else\vskip1.9cm\fi
\ifthu@bachelor
- \noindent\thu@authorsig\thu@underline\relax%
+ \ifthu@bachelor\indent\else\noindent\fi\thu@authorsig\thu@underline\relax%
\thu@teachersig\thu@underline\relax\thu@frontdate\thu@underline\relax
\else
\begingroup
@@ -663,15 +713,15 @@
\pdfbookmark[-1]{\thu@ctitle}{ctitle}
\normalsize%
\begin{titlepage}
-\thu@first@titlepage
-\ifthu@doctor
- \cleardoublepage\thu@doctor@engcover
-\fi
-\cleardoublepage\thu@authorization@mk
- \end{titlepage}
-\normalsize
-\thu@makeabstract
-\let\@tabular\thu@tabular}
+ \thu@first@titlepage
+ \ifthu@doctor
+ \cleardoublepage\thu@doctor@engcover
+ \fi
+ \cleardoublepage\thu@authorization@mk
+ \end{titlepage}
+ \normalsize
+ \thu@makeabstract
+ \let\@tabular\thu@tabular}
\newcommand{\thu@makeabstract}{%
\cleardoublepage % always openright for Abstract
\thu@chapter*[]{\cabstractname} % no tocline
@@ -683,27 +733,29 @@
\pagenumbering{Roman}
\thu@cabstract
\vskip12bp
- \setbox0=\hbox{{\hei \thu@ckeywords@title}}
- \noindent\hangindent\wd0\hangafter1\box0\thu@ckeywords
+ \setbox0=\hbox{{\hei\thu@ckeywords@title}}
+ \ifthu@bachelor\indent\else\noindent\hangindent\wd0\hangafter1\fi
+ \box0\thu@ckeywords
\thu@chapter*[]{\eabstractname} % no tocline
\thu@eabstract
\vskip12bp
\setbox0=\hbox{\textbf{Key words:\enskip}}
- \noindent\hangindent\wd0\hangafter1\box0\thu@ekeywords}
+ \ifthu@bachelor\indent\else\noindent\hangindent\wd0\hangafter1\fi
+ \box0\thu@ekeywords}
\newenvironment{denotation}[1][2.5cm]{
\thu@chapter*[]{\thu@denotation@name} % no tocline
\noindent\begin{list}{}%
{\vskip-30bp\xiaosi[1.6]
\renewcommand\makelabel[1]{##1\hfil}
- \setlength{\labelwidth}{#1} % 标签盒子宽度
- \setlength{\labelsep}{0.5cm} % 标签与列表文本距离
- \setlength{\itemindent}{0cm} % 标签缩进量
- \setlength{\leftmargin}{\labelwidth+\labelsep} % 左边界
+ \setlength{\labelwidth}{#1} % 鏍囩鐩掑瓙瀹藉害
+ \setlength{\labelsep}{0.5cm} % 鏍囩涓庡垪琛ㄦ枃鏈窛绂
+ \setlength{\itemindent}{0cm} % 鏍囩缂╄繘閲
+ \setlength{\leftmargin}{\labelwidth+\labelsep} % 宸﹁竟鐣
\setlength{\rightmargin}{0cm}
- \setlength{\parsep}{0cm} % 段落间距
- \setlength{\itemsep}{0cm} % 标签间距
- \setlength{\listparindent}{0cm} % 段落缩进量
- \setlength{\topsep}{0pt} % 标签与上文的间距
+ \setlength{\parsep}{0cm} % 娈佃惤闂磋窛
+ \setlength{\itemsep}{0cm} % 鏍囩闂磋窛
+ \setlength{\listparindent}{0cm} % 娈佃惤缂╄繘閲
+ \setlength{\topsep}{0pt} % 鏍囩涓庝笂鏂囩殑闂磋窛
}}{\end{list}}
\newenvironment{ack}{%
\ifthu@bachelor
@@ -731,41 +783,29 @@
{\xiaosi\hfill\thu@signature\thu@underline[2.5cm]\relax%
\thu@backdate\thu@underline[2.5cm]\relax}%
}
-\long\def\@caption#1[#2]#3{%
- \par
- \addcontentsline{\csname ext@#1\endcsname}{#1}%
- {\protect\numberline{\csname #1name\endcsname\hskip0.5em\csname the#1\endcsname}%
- {\ignorespaces #2}}%
- \begingroup
- \@parboxrestore
- \if@minipage
- \@setminipage
- \fi
- \normalsize
- \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
- \endgroup}
-\def\thu@listof#1#2{%
+\def\thu@starttoc#1{% #1: float type, prepend type name in \listof*** entry.
+ \let\oldnumberline\numberline
+ \def\numberline##1{\oldnumberline{\csname #1name\endcsname\hskip.4em ##1}}
+ \@starttoc{\csname ext@#1\endcsname}
+ \let\numberline\oldnumberline}
+\def\thu@listof#1{% #1: float type
\@ifstar
- {\thu@chapter*[]{#1}\@starttoc{#2}}
- {\thu@chapter*{#1}\@starttoc{#2}}}
-\renewcommand\listoffigures{\thu@listof{\listfigurename}{\ext@figure}}
+ {\thu@chapter*[]{\csname list#1name\endcsname}\thu@starttoc{#1}}
+ {\thu@chapter*{\csname list#1name\endcsname}\thu@starttoc{#1}}}
+\renewcommand\listoffigures{\thu@listof{figure}}
\renewcommand*\l@figure{\@dottedtocline{1}{0em}{4em}}
-\renewcommand\listoftables{\thu@listof{\listtablename}{\ext@table}}
+\renewcommand\listoftables{\thu@listof{table}}
\let\l@table\l@figure
\def\ext@equation{loe}
\def\equcaption#1{%
\addcontentsline{\ext@equation}{equation}%
- {\protect\numberline{\equationname\hskip0.5em #1}}}
-\newcommand\listofequations{\thu@listof{\listequationname}{\ext@equation}}
-\ifthu@bachelor
- \newcommand*\l@equation{\@dottedtocline{1}{0em}{4em}}
-\else
- \newcommand*\l@equation{\@dottedtocline{1}{0em}{4.2em}}
-\fi
+ {\protect\numberline{#1}}}
+\newcommand\listofequations{\thu@listof{equation}}
+\let\l@equation\l@figure
\bibpunct{[}{]}{,}{s}{}{,}
-\renewcommand\NAT@citesuper[3]{\ifNAT@swa
-\unskip\kern\p@\textsuperscript{\NAT@@open #1\NAT@@close}%
- \if*#3*\else\ (#3)\fi\else #1\fi\endgroup}
+\renewcommand\NAT@citesuper[3]{\ifNAT@swa%
+ \unskip\kern\p@\textsuperscript{\NAT@@open #1\NAT@@close}%
+ \if*#3*\else\ (#3)\fi\else #1\fi\endgroup}
\DeclareRobustCommand\onlinecite{\@onlinecite}
\def\@onlinecite#1{\begingroup\let\@cite\NAT@citenum\citep{#1}\endgroup}
\def\thudot{\ifthu@bachelor\else\unskip.\fi}
@@ -777,14 +817,14 @@
\list{\@biblabel{\@arabic\c@enumiv}}%
{\renewcommand{\makelabel}[1]{##1\hfill}
\settowidth\labelwidth{1.1cm}
- \setlength{\labelsep}{0.6em}
+ \setlength{\labelsep}{0.4em}
\setlength{\itemindent}{0pt}
\setlength{\leftmargin}{\labelwidth+\labelsep}
\addtolength{\itemsep}{-0.7em}
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand\theenumiv{\@arabic\c@enumiv}}%
- \sloppy
+ \sloppy\frenchspacing
\clubpenalty4000
\@clubpenalty \clubpenalty
\widowpenalty4000%
@@ -792,7 +832,7 @@
\sfcode`\.\@m}
{\def\@noitemerr
{\@latex@warning{Empty `thebibliography' environment}}%
- \endlist}
+ \endlist\frenchspacing}
\let\thu@appendix\appendix
\renewenvironment{appendix}{%
\thu@appendix
@@ -802,80 +842,57 @@
\newenvironment{resume}{%
% \cleardoublepage
\thu@chapter*{\thu@resume@title}}{}
-\newcommand{\resumeitem}[1]{\vspace{2.5em}{\sihao \hei \centerline{#1}}\par}
-\newcommand{\thu@verticle}{%
- \renewcommand{\CJKsymbol}[1]{%
- \setbox0=\hbox{\symbol{##1}}%
- \newcommand{\POS}{}%
- \ifthenelse{\lengthtest{\ht0<.39\wd0}}%
- {\renewcommand{\POS}{c}}{\renewcommand{\POS}{r}}%
- \makebox[1.3\wd0][\POS]{\rotatebox[origin=lB]{90}{\symbol{##1}}}%
- \ifCJK@bold@%
- \hbox to \CJKboldshift{\hss\makebox[1.3\wd0][\POS]{%
- \rotatebox[origin=lB]{90}{\symbol{##1}}}}%
- \hbox to \CJKboldshift{\hss\makebox[1.3\wd0][\POS]{%
- \rotatebox[origin=lB]{90}{\symbol{##1}}}}%
- \fi}}
-\newsavebox{\thu@saverotate}%
-\newcommand{\shupai}[2][\textheight]{%
- \savebox{\thu@saverotate}{\parbox[t]{#1}{\thu@verticle #2}}
- \hfill\rotatebox[origin=lt]{-90}{\usebox{\thu@saverotate}}}
+\newcommand{\resumeitem}[1]{\vspace{2.5em}{\sihao\hei\centerline{#1}}\par}
\newcommand{\shuji}[1][\thu@ctitle]{
- \newpage%
- \thispagestyle{empty}
- \vspace*{1cm}
- \shupai[\textheight-2cm]{\fs\xiaosan #1\hfill\thu@cauthor}}
+ \newpage\thispagestyle{empty}\ziju{0.4em}\fs\xiaosan
+ \hfill\rotatebox{-90}{\hb@xt@ \textheight{#1\hfill\thu@cauthor}}}
\iffalse
\newcommand{\bs}{\symbol{'134}}%Print backslash
- % \newcommand{\bs}{\ensuremath{\mathtt{\backslash}}}%Print backslash
- % Index entry for a command (\cih for hidden command index
\newcommand{\cih}[1]{%
-\index{commands!#1@\texttt{\bs#1}}%
-\index{#1@\texttt{\hspace*{-1.2ex}\bs #1}}
-}
+ \index{commands!#1@\texttt{\bs#1}}%
+ \index{#1@\texttt{\hspace*{-1.2ex}\bs #1}}}
\newcommand{\ci}[1]{\cih{#1}\texttt{\bs#1}}
- % Package
\newcommand{\pai}[1]{%
-\index{packages!#1@\textsf{#1}}%
-\index{#1@\textsf{#1}}%
-\textsf{#1}}
- % Index entry for an environment
+ \index{packages!#1@\textsf{#1}}%
+ \index{#1@\textsf{#1}}%
+ \textsf{#1}}
\newcommand{\ei}[1]{%
-\index{environments!\texttt{#1}}%
-\index{#1@\texttt{#1}}%
-\texttt{#1}}
- % Indexentry for a word (Word inserted into the text)
+ \index{environments!\texttt{#1}}%
+ \index{#1@\texttt{#1}}%
+ \texttt{#1}}
\newcommand{\wi}[1]{\index{#1}#1}
\fi
\newcommand*{\ziju}[1]{\renewcommand{\CJKglue}{\hskip #1}}
\newcommand{\pozhehao}{\kern0.3ex\rule[0.8ex]{2em}{0.1ex}\kern0.3ex}
\def\thu@active@cjk{
% Activate all >128 characters.
- \count@=127
- \@whilenum\count@<255 \do{%
+ \count@=128
+ \@whilenum\count@<254 \do{%
\advance\count@ by 1
\lccode`\~=\count@
\catcode\count@=\active
\lowercase{\def~{\kern1ex}}}}
-\AtEndOfClass{\thu@active@cjk\input{thuthesis.cfg}}%
+\AtEndOfClass{\ifxetex\else\thu@active@cjk\fi\input{thuthesis.cfg}}
\def\thu@fixselectfont{%
- \DeclareRobustCommand{\selectfont}{%
+ \ifx\@EverySelectfont@EveryHook\@undefined\else% everysel package is loaded
+ \DeclareRobustCommand{\selectfont}{%
\ifx\f@linespread\baselinestretch \else
\set@fontsize\baselinestretch\f@size\f@baselineskip \fi
\xdef\font@name{%
\csname\curr@fontshape/\f@size\endcsname}%
\pickup@font
\font@name
- % CJK addition:
+ % CJK addition:
\CJK@bold@false
\csname \curr@fontshape\endcsname
- % everysel addition:
+ % everysel addition:
\@EverySelectfont@EveryHook
\@EverySelectfont@AtNextHook
\gdef\@EverySelectfont@AtNextHook{}%
- % end additions
+ % end additions
\size@update
- \enc@update}}
+ \enc@update}
+ \fi}
\def\thu@setup@pdfinfo{%
\hypersetup{%
pdftitle={\thu@ctitle},
@@ -884,18 +901,21 @@
pdfkeywords={\thu@ckeywords},
pdfcreator={\thu@cauthor},
pdfproducer={\thuthesis}}}
-\def\thu@beginCJK{%
- \thu@fixselectfont%
- \begin{CJK*}{GBK}{song}%
- \sloppy\CJKindent\CJKtilde}
-\def\thu@endCJK{\clearpage\end{CJK*}}
-\let\thu@begindocumenthook\@begindocumenthook
-\let\thu@enddocumenthook\@enddocumenthook
-\def\AtBeginDocument{\g@addto@macro\thu@begindocumenthook}
-\def\AtEndDocument{\g@addto@macro\thu@enddocumenthook}
-\def\@begindocumenthook{\thu@begindocumenthook\thu@beginCJK}
-\def\@enddocumenthook{\thu@endCJK\thu@enddocumenthook}
-\AtBeginDocument{\thu@setup@pdfinfo\thu@item@space}
+\ifxetex
+ \AtBeginDocument{\CJKindent}
+\else
+ \def\thu@beginCJK{%
+ \thu@fixselectfont%
+ \begin{CJK*}{UTF8}{song}\CJKindent}
+ \def\thu@endCJK{\clearpage\end{CJK*}}
+ \let\thu@begindocumenthook\@begindocumenthook
+ \let\thu@enddocumenthook\@enddocumenthook
+ \def\AtBeginDocument{\g@addto@macro\thu@begindocumenthook}
+ \def\AtEndDocument{\g@addto@macro\thu@enddocumenthook}
+ \def\@begindocumenthook{\thu@begindocumenthook\thu@beginCJK}
+ \def\@enddocumenthook{\thu@endCJK\thu@enddocumenthook}
+\fi
+\AtEndOfClass{\sloppy\thu@item@space}
\endinput
%%
%% End of file `thuthesis.cls'.