summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/thuthesis/thuthesis.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-10-22 22:57:41 +0000
committerKarl Berry <karl@freefriends.org>2011-10-22 22:57:41 +0000
commita2b557e7d2c3387ce36891f50c32974c80287978 (patch)
treeb6f9b245d57784c0d2a413115e6ca4ac484d5be9 /Master/texmf-dist/source/latex/thuthesis/thuthesis.dtx
parent075c26e33536dcb9ad942abec953b9c06fed1cde (diff)
thuthesis (22oct11)
git-svn-id: svn://tug.org/texlive/trunk@24361 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/thuthesis/thuthesis.dtx')
-rw-r--r--Master/texmf-dist/source/latex/thuthesis/thuthesis.dtx512
1 files changed, 340 insertions, 172 deletions
diff --git a/Master/texmf-dist/source/latex/thuthesis/thuthesis.dtx b/Master/texmf-dist/source/latex/thuthesis/thuthesis.dtx
index f1e1500f55d..f9ff1d2fe72 100644
--- a/Master/texmf-dist/source/latex/thuthesis/thuthesis.dtx
+++ b/Master/texmf-dist/source/latex/thuthesis/thuthesis.dtx
@@ -7,7 +7,7 @@
%
% \iffalse meta-comment
%
-% Copyright (C) 2005, 2006, 2007, 2008, 2009 by Ruini Xue <xueruini@gmail.com>
+% Copyright (C) 2005-2011 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
@@ -19,11 +19,11 @@
% and version 1.3a or later is part of all distributions of LaTeX
% version 2004/10/01 or later.
%
-% $Id: thuthesis.dtx 199 2009-02-28 15:20:35Z littleleo $
+% $Id$
%
% \fi
%
-% \CheckSum{2486}
+% \CheckSum{2639}
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
@@ -42,7 +42,7 @@
%
% \iffalse
%<*driver>
-\ProvidesFile{thuthesis.dtx}[2009/02/28 4.5.1 Tsinghua University Thesis Template]
+\ProvidesFile{thuthesis.dtx}[2011/10/22 4.6 Tsinghua University Thesis Template]
\documentclass[10pt]{ltxdoc}
\usepackage{dtx-style}
\EnableCrossrefs
@@ -129,6 +129,8 @@
% 年份后面,并用句点分割。在 thubib.bst 中增加 output.year 函数。}
% \changes{v2.6.1}{2006/06/16}{取消 thubib.bst 中 inbook 类 volume 后的页码。}
% \changes{v4.5}{2008/01/04}{彻底转向 UTF-8,并支持 xelatex。}
+% \changes{v4.6}{2011/04/27}{增加博士后文档部分。}
+% \changes{v4.6}{2011/10/22}{使用手册更新。}
%
% \DoNotIndex{\begin,\end,\begingroup,\endgroup}
% \DoNotIndex{\ifx,\ifdim,\ifnum,\ifcase,\else,\or,\fi}
@@ -161,8 +163,7 @@
%
% \begin{abstract}\noindent
% 此宏包旨在建立一个简单易用的清华大学学位论文模板,包括本科综合论文训练、硕士
-% 论文、博士论文以及博士哲学论文。现在已经支持本科、硕士和博士论文格式,对其它
-% 格式的支持会陆续加入。
+% 论文、博士论文以及博士后出站报告。
% \end{abstract}
%
% \vskip2cm
@@ -171,9 +172,9 @@
% \noindent
% \begin{enumerate}
% \item 本模板的发布遵守 \LaTeX{} Project Public License,使用前请认真阅读协议内容。
-% \item 本模板为作者根据清华大学教务处颁发的《综合论文训练写作指南》和清华大学研
-% 究生院颁发的《研究生学位论文写作指南》编写而成,旨在供清华大学毕业生撰写学位
-% 论文使用。
+% \item 本模板为作者根据清华大学教务处颁发的《综合论文训练写作指南》,清华大学研
+% 究生院颁发的《研究生学位论文写作指南》,清华大学《编写“清华大学博士后研究报告”参考意见》
+% 编写而成,旨在供清华大学毕业生撰写学位论文使用。
% \item 清华大学教务处和研究生院只提供毕业论文写作指南,不提供官方模板,也不会授
% 权第三方模板为官方模板,所以此模板仅为写作指南的参考实现,不保证格式审查老师
% 不提意见。任何由于使用本模板而引起的论文格式审查问题均与本模板作者无关。
@@ -211,13 +212,20 @@
% \label{sec:installation}
%
% \subsection{下载}
-% \thuthesis{} 主页:\url{http://thuthesis.sourceforge.net}。同时本模板也提交至
-% \href{http://www.ctan.org/macros/latex/contrib/thuthesis}{CTAN}。除此之外,不
-% 再维护任何镜像。
+% \thuthesis{} 相关链接:
+% \begin{itemize}
+% \item 主页:
+% \href{https://github.com/xueruini/thuthesis}{GitHub}\footnote{已经从
+% \url{http://thuthesis.sourceforge.net}迁移至此。}
+% \item 下载:\href{http://code.google.com/p/thuthesis/}{Google Code}
+% \item 同时本模板也提交至
+% \href{http://www.ctan.org/macros/latex/contrib/thuthesis}{CTAN}
+% \end{itemize}
+% 除此之外,不再维护任何镜像。
%
-% \thuthesis{} 的开发版本同样可以在 sourceforge 上获得:
+% \thuthesis{} 的开发版本同样可以在 GitHub 上获得:
% \begin{shell}
-% $ svn co https://svn.sourceforge.net/svnroot/thuthesis/trunk/thuthesis
+% $ git clone git://github.com/xueruini/thuthesis.git
% \end{shell}
%
% \subsection{模板的组成部分}
@@ -251,12 +259,14 @@
% \end{longtable}
% \end{center}
%
-% 需要说明几点:1) thuthesis.cls 和 thuthesis.cfg 可以
-% 由 thuthesis.ins 和thuthesis.dtx 生成,但为了降低新手用户的使用难度,故将 cls
-% 和 cfg 也一起发布。2) 学习一个新东西最好的办法就是读它的文
-% 档:\emph{thuthesis.pdf}.
-%
-%
+% 需要说明几点:
+% \begin{itemize}
+% \item \emph{thuthesis.cls} 和 \emph{thuthesis.cfg} 可以
+% 由 \emph{thuthesis.ins} 和 \emph{thuthesis.dtx} 生成,但为了降低新
+% 手用户的使用难度,故将 cls和 cfg 一起发布。
+% \item 使用前认真阅读文档:\emph{thuthesis.pdf}.
+% \end{itemize}
+%
% \subsection{准备工作}
% \label{sec:prepare}
% 本模板用到以下宏包:
@@ -264,7 +274,7 @@
% \begin{center}
% \begin{minipage}{1.0\linewidth}\centering
% \begin{tabular}{*{6}{l}}\hline
-% ifxetex & xunicode & xltxtra & CJK\footnote{版本要求:$\geq$ v4.8.1} & xeCJK\footnote{\href{http://bbs.ctex.org/viewthread.php?tid=40232&extra=page%3D1}{xeCJK 下载页}} & \pkg{CJKpunct} \\
+% ifxetex & xunicode & xltxtra & CJK\footnote{版本要求:$\geq$ v4.8.1} & xeCJK & \pkg{CJKpunct} \\
% array & booktabs & longtable & amsmath & amssymb & ntheorem \\
% indentfirst & paralist & txfonts & natbib & hyperref & hypernat \\
% graphicx & \pkg{subfig}\footnote{版本要求:$\geq$2005/06/28 ver: 1.3} &
@@ -275,7 +285,7 @@
% \end{center}
%
% 这些包在常见的 \TeX{} 系统中都有,如果没有请到 \url{www.ctan.org} 下载。推
-% 荐 \TeX live 2008。
+% 荐 \TeX live。
%
%
% \subsection{开始安装}
@@ -409,20 +419,12 @@
% 本手册假定用户已经能处理一般的 \LaTeX{} 文档,并对 \BibTeX{} 有一定了解。如果你
% 从来没有接触过 \TeX 和 \LaTeX,建议先学习相关的基础知识。磨刀不误砍柴工!
%
-% % todo: move some where..
% \subsection{关于提问}
% \label{sec:howtoask}
-% 提问之前先问自己几个问题:
-% \begin{enumerate}\addtolength{\itemsep}{-5pt}
-% \item 我是不是认真地学习了 \LaTeX{} 基础知识?
-% \item 我是不是认真地阅读了相关的文档?
-% \item 我是不是 Google 了?
-% \end{enumerate}
-%
-% 如果你确保自己已经完成了上面的操作,那么就可以到以下两个地方提问:
% \begin{itemize}\addtolength{\itemsep}{-5pt}
-% \item \url{http://groups.google.com/group/thuthesis}
-% 或直接给\href{mailto:thuthesis@googlegroups.com}{邮件列表}写信。
+% \item \url{http://groups.google.com/group/thuthesis}
+% 或直接给\href{mailto:thuthesis@googlegroups.com}{邮件列表}写信。
+% \item Google Groups mirror: \url{http://thuthesis.1048723.n5.nabble.com/}
% \item \href{http://www.newsmth.net/bbsdoc.php?board=TeX}{\TeX@newsmth}
% \end{itemize}
%
@@ -442,11 +444,12 @@
% \begin{example}
% \documentclass[bachelor]{thuthesis}
% %\documentclass[%
-% % bachelor|master|doctor, % 必选选项
+% % bachelor|master|doctor|postdoc, % 必选选项
% % xetex|pdftex|dvips|dvipdfm, % 可选选项
-% % secret,
-% % openany|openright,
-% % arialtoc,arialtitle]{thuthesis}
+% % secret, % 可选选项
+% % openany|openright, % 可选选项
+% % arialtoc,arialtitle % 可选选项
+% % ]{thuthesis}
%
% % 所有其它可能用到的包都统一放到这里了,可以根据自己的实际添加或者删除。
% \usepackage{thutils}
@@ -503,6 +506,7 @@
%
% % 个人简历
% \include{data/resume}
+%
% \end{document}
% \end{example}
%
@@ -528,6 +532,12 @@
% \documentclass[doctor]{thuthesis}
% \end{example}
%
+% \item[postdoctor]
+% 如果写博士博士后出站报告将此选项打开。
+% \begin{example}
+% \documentclass[postdoctor]{thuthesis}
+% \end{example}
+%
% \item[secret]
% 涉秘论文开关。配合另外两个命令 |\secretlevel| 和 |\secretyear| 分别用来指定保
% 密级别和时间。二者默认分别为\textbf{秘密}和当前年份。可以通过:
@@ -566,6 +576,64 @@
% 章节标题中英文是否用 arial 字体(默认打开)。
% \end{description}
%
+% \subsection{字体配置}
+% \label{sec:font-config}
+% 正确配置中文字体是使用模板的第一步。模板有两种字体使用方式:
+% \begin{itemize}
+% \item 基于传统 CJK 包,使用 latex、pdflatex 编译;
+% \item 基于 xeCJK 包,使用 xelatex 编译。
+% \end{itemize}
+%
+% 第一种方式的字体配置比较繁琐,建议使用 donated 制作的中文字体包(自
+% 包含安装方法),请用户自行下载安装,此处不再赘述。本模板推荐使用第二
+% 种方法,只要把所需字体放入系统字体文件夹(也可以指定自定义文件夹)即
+% 可。模板默认采用 Adobe 的四款免费字体,配置如下:
+% \begin{example}
+% \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: 用幼圆字体代替
+% \end{example}
+%
+% 一般系统中默认并不存在这四种字体,所以要根据自己的实际情况来修改上述
+% 定义。对 Windows XP 来说如下:
+% \begin{example}
+% \setCJKmainfont[BoldFont={SimHei}, ItalicFont={KaiTi}]{SimSun}
+% \setCJKsansfont{SimHei}
+% \setCJKmonofont{KaiTi_GB2312}
+% \setCJKfamilyfont{song}{SimSun}
+% \setCJKfamilyfont{hei}{SimHei}
+% \setCJKfamilyfont{fs}{FangSong_GB2312}
+% \setCJKfamilyfont{kai}{KaiTi_GB2312}
+% \setCJKfamilyfont{li}{LiSu}
+% \setCJKfamilyfont{you}{YouYuan}
+% \end{example}
+%
+% Vista 和 Win 7 中文字体名字略有不同:
+% \begin{example}
+% \setCJKmainfont[BoldFont={SimHei}, ItalicFont={KaiTi}]{SimSun}
+% \setCJKsansfont{SimHei}
+% \setCJKmonofont{KaiTi}
+% \setCJKfamilyfont{song}{SimSun}
+% \setCJKfamilyfont{hei}{SimHei}
+% \setCJKfamilyfont{fs}{FangSong}
+% \setCJKfamilyfont{kai}{KaiTi}
+% \setCJKfamilyfont{li}{LiSu}
+% \setCJKfamilyfont{you}{YouYuan}
+% \end{example}
+%
+% 总而言之,用户可以通过命令:
+% \begin{shell}
+% $ fs-list
+% \end{shell}
+%
+% 来查看系统中现有的字体,并相应替换上述配置。
+%
% \subsection{命令}
% \label{sec:command}
% 模板中的命令分为两类:一是格式控制,二是内容替换。格式控制如字体、字号、字距和
@@ -647,7 +715,7 @@
% 模式使用远比正文模式频繁,所以为了符合使用习惯,上标模式仍然用常规
% 的 |\cite{key}|,而 |\onlinecite{key}| 则用来生成正文模式。
%
-% 关于参考文献模板推荐使用 BIB\TeX,关于中文参考文献需要额外增加一个 Entry: lang,将其设置为 \texttt{zh}
+% 关于参考文献模板推荐使用 BIB\TeX,关于中文参考文献需要额外增加一个 Entry: lang,将其设置为 \texttt{zh}
% 用来指示此参考文献为中文,以便 thubib.bst 处理。如:
% \begin{example}
% @INPROCEEDINGS{cnproceed,
@@ -691,7 +759,7 @@
% \end{document}
% \end{example}
%
-% \myentry{破折号}
+% \myentry{破折号}
% \DescribeMacro{\pozhehao}
% 中文破折号在 CJK-\LaTeX\ 里没有很好的处理,我们平时输入的都是两个小短线,比如这
% 样,{\hei 中国——中华人民共和国}。这不符合中文习惯。所以这里定义了一个命令生成更
@@ -752,11 +820,18 @@
% \emajor{Major in English}
% \end{example}
%
+% \DescribeMacro{\cfirstdiscipline}
+% \DescribeMacro{\cseconddiscipline}
+% \begin{example}
+% \cfirstdiscipline{博士后一级学科}
+% \cseconddiscipline{博士后二级学科}
+% \end{example}
+%
% \myentry{导师姓名}
% \DescribeMacro{\csupervisor}
% \DescribeMacro{\esupervisor}
% \begin{example}
-% \csupervisor{大老板}
+% \csupervisor{导师~教授}
% \esupervisor{Supervisor}
% \end{example}
%
@@ -765,7 +840,7 @@
% \DescribeMacro{\eassosupervisor}
% 本科生的辅导教师,硕士的副指导教师。
% \begin{example}
-% \cassosupervisor{小老板}
+% \cassosupervisor{副导师~副教授}
% \eassosupervisor{Small Boss}
% \end{example}
%
@@ -774,17 +849,29 @@
% \DescribeMacro{\ecosupervisor}
% 硕士生联合指导教师,博士生联合导师。
% \begin{example}
-% \ccosupervisor{小小老板}
+% \ccosupervisor{联合导师~教授}
% \ecosupervisor{Tiny Boss}
% \end{example}
%
% \myentry{论文成文日期}
% \DescribeMacro{\cdate}
% \DescribeMacro{\edate}
+% \DescribeMacro{\postdoctordate}
% 默认为当前时间,也可以自己指定。
% \begin{example}
% \cdate{中文日期}
% \edate{English Date}
+% \postdoctordate{2009年7月——2011年7月} % 博士后研究起止日期
+% \end{example}
+%
+% \myentry{博士后封面其它参数}
+% \DescribeMacro{\catalognumber}
+% \DescribeMacro{\udc}
+% \DescribeMacro{\id}
+% \begin{example}
+% \catalognumber{分类号}
+% \udc{udc}
+% \id{编号}
% \end{example}
%
% \myentry{摘要}
@@ -968,23 +1055,18 @@
% 推荐在导言区使用 \cs{renewcommand}。当然,导言区里可以直接使用中文。
%
%
-%\section{致谢}
-%\label{sec:thanks}
-%
-% 在模板的开发和维护过程中,我得到不少同学的热情支持,如:edyfox@newsmth 编写
-% 了 Makefile,Truel@newsmth 编写了 msmake.cmd,oseen@newsmth 将其移植到 UTF-8 并
-% 制作了 Debian package,特别感谢 MagicGlaive@newsmth 为 2008 年本科论文格式修改
-% 作出的一切!
-%
-% 感谢我自己能把这件事坚持下来,模板制作期间颇多感慨,不断遇到问题,不断摸索解决。其中的
-% 酸甜苦辣恐怕只有自己能体会得到!
-%
-% 感谢所有在论文致谢中提及 \thuthesis{} 或者本人的同学:每当这个时候我都有说不出
-% 的欣慰。大家的认可才是 \thuthesis{} 最大的动力。与此同时我也感觉到更大的压力,
-% 因为模板的维护需要花费相当的精力。同时我对模板还不太满意,代码质量不高,结构组
-% 织不好,文档内容不足。我呼唤感兴趣的同学能出手相助,给模板的开发和维护注入新的
-% 活力,让我们一起把 \thuthesis{} 做得更好!
+% \section{致谢}
+% \label{sec:thanks}
+% 感谢这些年来一直陪伴 \thuthesis{} 成长的新老同学,大家的需求是模板前
+% 进的动力,大家的反馈是模板提高的机会。
+%
+% 此版本加入了博士后出站报告的支持,本意为制作一个支持清华所有学位报告
+% 的模板,孰料学校于近期对硕士、博士论文规范又有调整,未能及时更新,见
+% 谅!
%
+% 本人已于近期离开清华,虽不忍模板存此瑕疵,然精力有限,必不能如往日及
+% 时升级,还望新的同学能参与或者接手,继续为大家服务。
+%
% \StopEventually{\PrintChanges\PrintIndex}
% \clearpage
%
@@ -995,7 +1077,7 @@
%<cls>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<cls>\ProvidesClass{thuthesis}
%<cfg>\ProvidesFile{thuthesis.cfg}
-%<cls|cfg>[2008/02/28 4.5.1 Tsinghua University Thesis Template]
+%<cls|cfg>[2011/05/02 4.6 Tsinghua University Thesis Template]
% \end{macrocode}
%
% \subsection{定义选项}
@@ -1018,17 +1100,20 @@
% \changes{v2.5.1}{2006/05/26}{submit 只能由本科用。}
% \changes{v2.5.3}{2006/06/03}{submit 选项的一个笔误。}
% \changes{v3.0}{2007/05/12}{删除 submit 选项。}
+% \changes{v4.6}{2011/04/26}{增加 postdoctor 选项。}
% \begin{macrocode}
\hyphenation{Thu-Thesis}
\def\thuthesis{\textsc{ThuThesis}}
-\def\version{4.5}
+\def\version{4.6}
\newif\ifthu@bachelor\thu@bachelorfalse
\newif\ifthu@master\thu@masterfalse
\newif\ifthu@doctor\thu@doctorfalse
+\newif\ifthu@postdoctor\thu@postdoctorfalse
\newif\ifthu@secret\thu@secretfalse
\DeclareOption{bachelor}{\thu@bachelortrue}
\DeclareOption{master}{\thu@mastertrue}
\DeclareOption{doctor}{\thu@doctortrue}
+\DeclareOption{postdoctor}{\thu@postdoctortrue}
\DeclareOption{secret}{\thu@secrettrue}
% \end{macrocode}
%
@@ -1085,11 +1170,13 @@
\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.}{}
+ \ifthu@postdoctor\relax\else
+ \ClassError{thuthesis}%
+ {You have to specify one of thesis options: bachelor, master or doctor.}{}
+ \fi
\fi
\fi
-\fi
+\fi
% \end{macrocode}
%
% 检查用户指定的选项和实际编译命令是否冲突。
@@ -1163,12 +1250,13 @@
% \changes{v4.5}{2008/01/03}{加入 XeTeX 支持,需要 \pkg{xeCJK}。}
% \begin{macrocode}
\ifthu@xetex
- \RequirePackage{xunicode,xltxtra}
- \RequirePackage[CJKnumber,CJKtextspaces,CJKmathspaces]{xeCJK}
- \punctstyle{kaiming}
+ \RequirePackage{mathptmx} % fontspec conflicts with txfonts now, so we have to load other times-math fonts.
+ \RequirePackage{xltxtra}
+ \RequirePackage[CJKnumber,BoldFont,ItalicFont,normalindentfirst]{xeCJK}
+ \punctstyle{quanjiao}
% todo: minor fix of CJKnumb
\def\CJK@null{\kern\CJKnullspace\Unicode{48}{7}\kern\CJKnullspace}
- \defaultfontfeatures{Mapping=tex-text} % after fontspec
+ \defaultfontfeatures{Mapping=tex-text} % use TeX --
% \end{macrocode}
% 默认采用 Adobe 的四款 (宋,黑,楷,仿宋) 免费字体。这样的话,缺少隶书和幼圆。本
% 科的封面大字会受影响。请手动替换。
@@ -1185,7 +1273,7 @@
\setmainfont{Times New Roman}
\setsansfont{Arial}
- \setmonofont{Courier New}
+ \setmonofont{Courier New}
% \end{macrocode}
% 对于 \LaTeX\ 和 PDF\LaTeX,调用 \pkg{CJK} 以及相关的包。注意:\pkg{CJKpunct} 必
% 须放在 \pkg{CJKspace} 之前。
@@ -1320,7 +1408,7 @@
% \label{sec:font}
%
% \begin{macro}{\song}
-% \begin{macro}{\songit}
+% \begin{macro}{\songti}
% \begin{macro}{\fs}
% \begin{macro}{\fangsong}
% \begin{macro}{\kai}
@@ -1495,6 +1583,7 @@
% 大,所以只能微调。
% \changes{v2.4}{2006/04/14}{把页面尺寸写入 dvi,避免有的用户通
% 过 dvips 不指定页面类型而得到古怪的结果。}
+% \changes{v4.5.2}{2010/09/19}{研究生页面边距由 3.2cm 改为 3cm。}
% \begin{macrocode}
%<*cls>
\AtBeginDvi{\special{papersize=\the\paperwidth,\the\paperheight}}
@@ -1505,22 +1594,25 @@
\setlength{\textheight}{\paperheight}
\setlength\marginparwidth{0cm}
\setlength\marginparsep{0cm}
-\addtolength{\textwidth}{-6.4cm}
-\setlength{\oddsidemargin}{3.2cm-1in}
-\setlength{\evensidemargin}{\oddsidemargin}
-\setlength{\headheight}{20pt}
-\setlength{\topskip}{0pt}
-\setlength{\skip\footins}{15pt}
-\setlength{\topmargin}{2.8cm-1in}
\ifthu@bachelor
+ \addtolength{\textwidth}{-6.4cm}
+ \setlength{\topmargin}{2.8cm-1in}
+ \setlength{\oddsidemargin}{3.2cm-1in}
\setlength{\footskip}{1.3cm}
\setlength{\headsep}{0.6cm}
\addtolength{\textheight}{-7.8cm}
\else
+ \addtolength{\textwidth}{-6cm}
+ \setlength{\topmargin}{2.2cm-1in}
+ \setlength{\oddsidemargin}{3cm-1in}
\setlength{\footskip}{1.5cm}
\setlength{\headsep}{0.5cm}
- \addtolength{\textheight}{-8.6cm}
+ \addtolength{\textheight}{-6cm}
\fi
+\setlength{\evensidemargin}{\oddsidemargin}
+\setlength{\headheight}{20pt}
+\setlength{\topskip}{0pt}
+\setlength{\skip\footins}{15pt}
%</cls>
% \end{macrocode}
%
@@ -1563,11 +1655,11 @@
\let\@evenfoot=\@oddfoot}
\def\ps@thu@headings{%
\def\@oddhead{\vbox to\headheight{%
- \hb@xt@\textwidth{\hfill\wuhao\song\leftmark\ifthu@bachelor\relax\else\hfill\fi}%
+ \hb@xt@\textwidth{\hfill\wuhao\song\leftmark\ifthu@bachelor\relax\else\hfill\fi}%
\vskip2pt\hbox{\vrule width\textwidth height0.4pt depth0pt}}}
\def\@evenhead{\vbox to\headheight{%
\hb@xt@\textwidth{\wuhao\song%
- \ifthu@bachelor\thu@schoolename\thu@bachelor@subtitle%
+ \ifthu@bachelor\thu@schoolname\thu@bachelor@subtitle%
\else\hfill\leftmark\fi\hfill}%
\vskip2pt\hbox{\vrule width\textwidth height0.4pt depth0pt}}}
\def\@oddfoot{\hfil\wuhao\thepage\hfil}
@@ -1676,20 +1768,20 @@
\renewcommand\footnotesize{\thu@footnotesize\xiaowu[1.5]}
\def\@makefnmark{\textsuperscript{\hbox{\normalfont\@thefnmark}}}
\long\def\@makefntext#1{
- \bgroup
- \setbox\@tempboxa\hbox{%
- \hb@xt@ 2em{\@thefnmark\hss}}
- \leftmargin\wd\@tempboxa
- \rightmargin\z@
- \linewidth \columnwidth
- \advance \linewidth -\leftmargin
- \parshape \@ne \leftmargin \linewidth
- \footnotesize
- \@setpar{{\@@par}}%
- \leavevmode
- \llap{\box\@tempboxa}%
- #1
- \par\egroup}
+ \bgroup
+ \setbox\@tempboxa\hbox{%
+ \hb@xt@ 2em{\@thefnmark\hss}}
+ \leftmargin\wd\@tempboxa
+ \rightmargin\z@
+ \linewidth \columnwidth
+ \advance \linewidth -\leftmargin
+ \parshape \@ne \leftmargin \linewidth
+ \footnotesize
+ \@setpar{{\@@par}}%
+ \leavevmode
+ \llap{\box\@tempboxa}%
+ #1
+ \par\egroup}
%</cls>
% \end{macrocode}
%
@@ -1713,8 +1805,8 @@
% \changes{v3.0}{2007/05/12}{本科公式又要取消全文统一编号了,这帮家伙,早就告诉
% 过他们,就是不听。}
% 本科的公式编号太变态了,不得不修改 \pkg{amsmath} 中很深的一个命令 \cs{tagform@}。
-%\changes{v2.6.2}{2006/06/19}{根据不同论文格式显示不同公式编号,并自动加入索引。}
-%\changes{v4.2}{2008/01/23}{\cs{eqref} 加括号。}
+% \changes{v2.6.2}{2006/06/19}{根据不同论文格式显示不同公式编号,并自动加入索引。}
+% \changes{v4.2}{2008/01/23}{\cs{eqref} 加括号。}
% 同时为了让 \pkg{amsmath} 的 \cs{tag*} 命令得到正确的格式,我们必须修改这些代
% 码。\cs{make@df@tag} 是定义 \cs{tag*} 和 \cs{tag} 内部命令的。
% \cs{make@df@tag@@} 处理 \cs{tag*},我们就改它!
@@ -1728,7 +1820,7 @@
% \begin{macrocode}
\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!
+% redefinitation of tagform brokes eqref!
\renewcommand{\eqref}[1]{\textup{(\ref{#1})}}
\renewcommand\theequation{\ifnum \c@chapter>\z@ \thechapter-\fi\@arabic\c@equation}
%\ifthu@bachelor
@@ -1750,7 +1842,7 @@
\if@inlabel \indent\fi
\if@newlist \@noitemerr\fi
\ifhmode
- \ifdim\lastskip >\z@ #1\unskip \par %<<<<<<<<<<<<<<<<<<<<<<
+ \ifdim\lastskip >\z@ #1\unskip \par
\else #1\unskip \par \fi
\fi
\if@noparlist \else
@@ -1897,7 +1989,7 @@
\fi
\let\CJK@todaysave=\today
\def\CJK@todaysmall@short{\the\year 年 \the\month 月}
-\def\CJK@todaysmall{\CJK@todaysmall \the\day 日}
+\def\CJK@todaysmall{\CJK@todaysmall@short \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}
@@ -1928,12 +2020,13 @@
% \changes{v2.5.1}{2006/05/23}{让 \cs{chapter*} 自动 \cs{markboth}。}
% \changes{v3.1}{2006/06/16}{英文摘要标题要搞特殊化,ft!}
% \begin{macrocode}
-\renewcommand\chapter{\if@openright\cleardoublepage\else\clearpage\fi\phantomsection%
- \ifthu@bachelor\thispagestyle{thu@plain}%
- \else\thispagestyle{thu@headings}\fi%
- \global\@topnum\z@%
- \@afterindenttrue%
- \secdef\@chapter\@schapter}
+\renewcommand\chapter{%
+ \if@openright\cleardoublepage\else\clearpage\fi\phantomsection%
+ \ifthu@bachelor\thispagestyle{thu@plain}%
+ \else\thispagestyle{thu@headings}\fi%
+ \global\@topnum\z@%
+ \@afterindenttrue%
+ \secdef\@chapter\@schapter}
\def\@chapter[#1]#2{%
\ifnum \c@secnumdepth >\m@ne
\if@mainmatter
@@ -2004,7 +2097,7 @@
\def\@tmpb{#3}
\ifx\@tmpa\@empty
\addtocounter{thu@bookmark}\@ne
- \pdfbookmark[0]{#2}{thuchapter.\thethu@bookmark}
+ \pdfbookmark[0]{#2}{thuchapter.\thethu@bookmark}
\else
\addcontentsline{toc}{chapter}{#1}
\fi
@@ -2072,7 +2165,8 @@
\fi
% \end{macrocode}
%
-% 每章标题行前空 6 磅,后空 0 磅。如果使用目录项中英文要使用 Arial,那么就加上 \cs{sffamily}。章节名中英文用 Arial 字体,页码仍用 Times。
+% 每章标题行前空 6 磅,后空 0 磅。如果使用目录项中英文要使用 Arial,那么就加上 \cs{sffamily}。
+% 章节名中英文用 Arial 字体,页码仍用 Times。
% \changes{v2.0}{2005/12/18}{附录的目录项需要调整一下。以及公式编号方式等等。}
% \changes{v2.5}{2006/05/13}{取消 \pkg{titletoc} 宏包,用 \cs{dottedtocline} 调整
% 目录。}
@@ -2148,8 +2242,13 @@
\csname #1\endcsname{}}
% \end{macrocode}
% \end{macro}
-% 封面、摘要、版权、致谢格式定义
+%
% \changes{v2.0}{2005/12/18}{增加了封面密级,增加博士封面支持}
+% \changes{v4.6}{2011/04/27}{增加博士后相关指令。}
+%
+% \begin{macro}{\catalognumber}
+% \begin{macro}{\udc}
+% \begin{macro}{\id}
% \begin{macro}{\secretlevel}
% \begin{macro}{\secretyear}
% \begin{macro}{\ctitle}
@@ -2157,12 +2256,15 @@
% \begin{macro}{\cdepartment}
% \begin{macro}{\caffil}
% \begin{macro}{\cmajor}
+% \begin{macro}{\cfirstdiscipline}
+% \begin{macro}{\cseconddiscipline}
% \begin{macro}{\csubject}
% \begin{macro}{\cauthor}
% \begin{macro}{\csupervisor}
% \begin{macro}{\cassosupervisor}
% \begin{macro}{\ccosupervisor}
% \begin{macro}{\cdate}
+% \begin{macro}{\postdoctordate}
% \begin{macro}{\etitle}
% \begin{macro}{\edegree}
% \begin{macro}{\edepartment}
@@ -2175,9 +2277,12 @@
% \begin{macro}{\ecosupervisor}
% \begin{macro}{\edate}
% \changes{v2.5}{2006/05/20}{院系和专业分别改名用 department 和 major,代替原来
-% 的 affil 和 subject。} \changes{v2.6.2}{2006/06/18}{改正 groupmembers 的拼
-% 写错误。}
+% 的 affil 和 subject。}
+% \changes{v2.6.2}{2006/06/18}{改正 groupmembers 的拼写错误。}
% \begin{macrocode}
+\thu@define@term{catalognumber}
+\thu@define@term{udc}
+\thu@define@term{id}
\thu@define@term{secretlevel}
\thu@define@term{secretyear}
\thu@define@term{ctitle}
@@ -2188,11 +2293,14 @@
\def\thu@cdepartment{}
\thu@define@term{cmajor}
\def\csubject{\cmajor} % todo: for compatibility
+\thu@define@term{cfirstdiscipline}
+\thu@define@term{cseconddiscipline}
\thu@define@term{cauthor}
\thu@define@term{csupervisor}
\thu@define@term{cassosupervisor}
\thu@define@term{ccosupervisor}
\thu@define@term{cdate}
+\thu@define@term{postdoctordate}
\thu@define@term{etitle}
\thu@define@term{edegree}
\thu@define@term{edepartment}
@@ -2229,10 +2337,17 @@
% \end{macro}
% \end{macro}
% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
%
+% 封面、摘要、版权、致谢格式定义。
% \begin{environment}{cabstract}
% \begin{environment}{eabstract}
-% 摘要最好以环境的形式出现(否则命令的形式会导致开始结束的括号举例太远,我不喜
+% 摘要最好以环境的形式出现(否则命令的形式会导致开始结束的括号距离太远,我不喜
% 欢),这就必须让环境能够自己保存内容留待以后使用。ctt 上找到两种方法:1)使用
% \pkg{amsmath} 中的 \cs{collect@body},但是此宏没有定义为 long,不能直接用。
% 2)利用 \LaTeX{} 中环境和对应命令间的命名关系以及参数分隔符的特点非常巧妙地实
@@ -2294,6 +2409,8 @@
% \changes{v4.0}{2007/11/08}{\textbf{内部}密级前面终究还是不要五角星了。}
% \changes{v4.4.2}{2008/06/05}{本科生格式终于也开始用空格作为关键字分隔符了。}
% \changes{v4.4.2}{2008/06/07}{本科生签名之间距离改为 \cs{hskip1em}。}
+% \changes{v4.5.2}{2010/05/29}{本科论文日期具体到日。}
+% \changes{v4.6}{2011/04/26}{增加博士后相关配置。}
% \begin{macrocode}
%<*cfg>
\def\thu@ckeywords@separator{
@@ -2306,32 +2423,53 @@
\else
\ifthu@master\hspace{2em}\else;\fi
\fi}
+\def\thu@catalog@number@title{分类号}
+\def\thu@id@title{编号}
\def\thu@title@sep{:}
-\def\thu@secretlevel{秘密}
+\ifthu@postdoctor
+ \def\thu@secretlevel{密级}
+\else
+ \def\thu@secretlevel{秘密}
+\fi
\def\thu@secretyear{\the\year}
-\def\thu@schoolename{清华大学}
+\def\thu@schoolname{清华大学}
+\def\thu@postdoctor@report@title{博士后研究报告}
\def\thu@bachelor@subtitle{综合论文训练}
\def\thu@bachelor@title@pre{题目}
-\def\thu@bachelor@departmenttitle{系别}
-\def\thu@bachelor@majortitle{专业}
-\def\thu@bachelor@authortitle{姓名}
+\def\thu@department@title{系别}
+\def\thu@major@title{专业}
+\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@secretlevel@inner{内部}
-\def\thu@secret@title{%
- \thu@secretlevel\ifx\thu@secretlevel\thu@secretlevel@inner\else ★\fi%
+\def\thu@secret@content{%
+ \ifx\thu@secretlevel\thu@secretlevel@inner\relax\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{指导教师}
+\def\thu@department@title{培养单位}
+\def\thu@major@title{学科}
+\ifthu@postdoctor
+ \def\thu@supervisor@title{合作导师}
+\else
+ \def\thu@supervisor@title{指导教师}
+\fi
\ifthu@bachelor
- \def\thu@cassosupertitle{辅导教师}
+ \def\thu@assosuper@title{辅导教师}
\else
- \def\thu@cassosupertitle{副指导教师}
+ \def\thu@assosuper@title{副指导教师}
\fi
-\def\thu@ccosupertitle{%
+\def\thu@cosuper@title{%
\ifthu@doctor 联合导师\else \ifthu@master 联合指导教师\fi\fi}
-\cdate{\ifthu@bachelor\CJK@todaysmall@short\else\CJK@todaybig@short\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}
@@ -2374,23 +2512,66 @@
% \changes{v2.5.1}{2006/05/21}{本科封面标题第二行的横线上移一点。}
% \changes{v2.5.2}{2006/05/29}{研究生论文标题中英文用 arial 字体。}
% \changes{v2.6}{2006/06/09}{本科生题目加长,最多 24 个字。}
+% \changes{v4.6}{2011/04/26}{增加博士后封面。}
+%
% \begin{macrocode}
%<*cls>
+\newcommand\thu@underline[2][6em]{\hskip1pt\underline{\hb@xt@ #1{\hss#2\hss}}\hskip3pt}
\newlength{\thu@title@width}
-\def\thu@put@title#1{\makebox{\hb@xt@ \thu@title@width{#1}}}
-\newcommand{\thu@first@titlepage}{
+\def\thu@put@title#1{\makebox{\hb@xt@\thu@title@width{#1}}}
+\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*{1cm}
+ \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\hei
+ {\xiaochu\ziju{1em}\thu@schoolname}\par\vskip2cm
+ {\xiaoyi\ziju{1em}\thu@postdoctor@report@title}\par\vskip3cm
+ {\sanhao[1.5]\thu@ctitle}\par\vskip2cm
+ {\xiaoer\thu@cauthor}
+ \endgroup
+ \par\vskip3cm
+ {\xiaosan[1.5]\ziju{1em}\thu@schoolname\par\vskip0.5em\CJK@todaysmall@short}
+ \end{center}
+ \cleardoublepage
+ \begin{center}
+ \vspace*{2cm}
+ {\sihao\hei\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}}
+\newcommand{\thu@first@titlepage@other}{
\begin{center}
\vspace*{-1.3cm}
\parbox[b][2.4cm][t]{\textwidth}{%
- \ifthu@secret\hfill{\sihao\thu@secret@title}\else\rule{1cm}{0cm}\fi}
+ \ifthu@secret\hfill{\sihao\thu@secretlevel\thu@secret@content}\else\rule{1cm}{0cm}\fi}
\ifthu@bachelor
\vskip0.2cm
- {\ziju{10bp}\yihao\li\thu@schoolename}
+ {\ziju{10bp}\yihao\li\thu@schoolname}
\par\vskip1.2cm
{\ziju{18bp}\xiaochu\hei\thu@bachelor@subtitle}
\vskip2.5cm
\noindent\hei\xiaoer\thu@bachelor@title@pre\thu@title@sep
- \parbox[t]{12cm}{%
+ \parbox[t]{12cm}{%
\setbox0=\hbox{{\yihao[1.55]\thu@ctitle}}
\begin{picture}(0,0)(0,0)
\setlength\unitlength{1cm}
@@ -2435,12 +2616,12 @@
\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\\
+ \thu@put@title{\thu@department@title} & \thu@title@sep & \thu@cdepartment\\
+ \thu@put@title{\thu@major@title} & \thu@title@sep & \thu@cmajor\\
+ \thu@put@title{\thu@author@title} & \thu@title@sep & \thu@cauthor \\
+ \thu@put@title{\thu@supervisor@title} & \thu@title@sep & \thu@csupervisor\\
\ifx\thu@cassosupervisor\@empty\else
- \thu@put@title{\thu@cassosupertitle} & \thu@title@sep & \thu@cassosupervisor\\
+ \thu@put@title{\thu@assosuper@title} & \thu@title@sep & \thu@cassosupervisor\\
\fi
\end{tabular}
}}
@@ -2454,15 +2635,15 @@
\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}\\
+ \thu@put@title{\thu@department@title} & \thu@title@sep & {\ziju{3bp}\thu@cdepartment}\\
+ \thu@put@title{\thu@major@title} & \thu@title@sep & {\ziju{3bp}\thu@cmajor}\\
+ \thu@put@title{\thu@author@title} & \thu@title@sep & {\ziju{11bp}\thu@cauthor}\\
+ \thu@put@title{\thu@supervisor@title} & \thu@title@sep & {\ziju{11bp}\thu@csupervisor}\\
\ifx\thu@cassosupervisor\@empty\else
- \thu@put@title{\thu@cassosupertitle} & \thu@title@sep & {\ziju{11bp}\thu@cassosupervisor}\\
+ \thu@put@title{\thu@assosuper@title} & \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}\\
+ \thu@put@title{\thu@cosuper@title} & \thu@title@sep & {\ziju{11bp}\thu@ccosupervisor}\\
\fi
\end{tabular}
\end{center}}}
@@ -2529,7 +2710,6 @@
% \begin{macro}{\thu@authorization@mk}
% 封面中论文授权部分。
% \begin{macrocode}
-\newcommand\thu@underline[2][6em]{\hskip1pt\underline{\hb@xt@ #1{\hss#2\hss}}\hskip3pt}
\newcommand{\thu@authorization@mk}{%
\ifthu@bachelor\vspace*{-0.6cm}\else\vspace*{-0.1cm}\fi % shit code!
\begin{center}\erhao\hei\thu@authtitle\end{center}
@@ -2580,8 +2760,12 @@
%
% 授权说明
% \changes{v3.0}{2007/05/12}{本科论文授权图片扫描取消。}
+% \changes{v4.5.2}{2010/05/29}{本科封面和授权说明之间不要空白页。}
+% \changes{v4.6}{2011/05/29}{博士后报告无授权说明。}
% \begin{macrocode}
- \cleardoublepage\thu@authorization@mk
+ \ifthu@postdoctor\relax\else%
+ \ifthu@bachelor\clearpage\else\cleardoublepage\fi%
+ \thu@authorization@mk\fi
\end{titlepage}
% \end{macrocode}
%
@@ -2607,10 +2791,11 @@
% \changes{v2.5.2}{2006/05/29}{在研究生论文中,摘要不出现在目录中,但是要在书签中出现。}
% \changes{v2.5.3}{2006/06/03}{\cs{pagenumber} 会自动设置页码为 1。}
% \changes{v2.6.3}{2006/06/30}{为本科正确设置目录及以后的页码。}
+% \changes{v4.5.2}{2010/05/29}{本科论文摘要亦无需右开。}
% \begin{macrocode}
%<*cls>
\newcommand{\thu@makeabstract}{%
- \cleardoublepage % always openright for Abstract
+ \ifthu@bachelor\clearpage\else\cleardoublepage\fi
\thu@chapter*[]{\cabstractname} % no tocline
\ifthu@bachelor
\pagestyle{thu@plain}
@@ -2705,10 +2890,7 @@
% \changes{v2.4}{2006/04/14}{调整\textbf{致谢}等中间的距离。}
% \begin{macrocode}
%<*cfg>
-\newcommand{\thu@ackshortname}{致谢}
\newcommand{\thu@ackname}{致\hspace{1em}谢}
-\newcommand{\thu@acklongname}{致谢与声明}
-\newcommand{\thu@declareshortname}{声明}
\newcommand{\thu@declarename}{声\hspace{1em}明}
\newcommand{\thu@declaretext}{本人郑重声明:所呈交的学位论文,是本人在导师指导下
,独立进行研究工作所取得的成果。尽我所知,除文中已经注明引用的内容外,本学位论
@@ -2729,37 +2911,23 @@
% \changes{v2.5.2}{2006/05/29}{研究生致谢右开。}
% \changes{v2.5.2}{2006/05/30}{研究生致谢题目是致谢,目录是致谢与声明。}
% \changes{v2.6.3}{2006/07/01}{重画双虚线,自适应页面宽度。}
+% \changes{v4.5.2}{2010/09/19}{研究生论文的致谢和声明终于分开了。}
% \begin{macrocode}
%<*cls>
\newenvironment{ack}{%
- \ifthu@bachelor
\thu@chapter*{\thu@ackname}
- \else
- % \cleardoublepage
- \thu@chapter*[\thu@acklongname]{\thu@ackname}[\thu@acklongname]
- \fi}
- {%
- \ifthu@bachelor\relax\else %TAG 1
- \par\vfill%
- \noindent
- {\setlength{\unitlength}{0.1\textwidth}
- \begin{picture}(10, 0.1)
- \multiput(0,0)(1, 0){10}{\rule{0.8\unitlength}{1.2pt}}
- \multiput(0,0.08)(1, 0){10}{\rule{0.8\unitlength}{1.2pt}}
- \end{picture}}
- \fi % END TAG 1
+ }
% \end{macrocode}
% 声明部分
% \changes{v3.0}{2007/05/12}{本科论文声明部分图片扫描取消。}
% \begin{macrocode}
- \ifthu@bachelor
+ {
+ \ifthu@postdoctor\relax\else%
\thu@chapter*{\thu@declarename}
- \else
- \parbox[t][4cm][c]{\textwidth}{{\sanhao\hei\centerline{\thu@declarename}}}
- \fi
- \par{\xiaosi\parindent2em\thu@declaretext}\vskip2cm
- {\xiaosi\hfill\thu@signature\thu@underline[2.5cm]\relax%
- \thu@backdate\thu@underline[2.5cm]\relax}%
+ \par{\xiaosi\parindent2em\thu@declaretext}\vskip2cm
+ {\xiaosi\hfill\thu@signature\thu@underline[2.5cm]\relax%
+ \thu@backdate\thu@underline[2.5cm]\relax}%
+ \fi
}
%</cls>
% \end{macrocode}
@@ -2935,11 +3103,11 @@
% \changes{v2.0}{2005/12/18}{最后决定将 resume 定义为环境。这样与前面的主要符号
% 表、致谢等对应。}
% \changes{v2.5.2}{2006/05/29}{研究生的个人介绍要右开。}
+% \changes{v4.6}{2011/05/02}{支持可选参数,自己定义简历章节标题。}
% \begin{macrocode}
%<*cls>
-\newenvironment{resume}{%
- % \cleardoublepage
- \thu@chapter*{\thu@resume@title}}{}
+\newenvironment{resume}[1][\thu@resume@title]{%
+ \thu@chapter*{#1}}{}
%</cls>
% \end{macrocode}
% \end{environment}