From 2046a35855fc1cccdd896f31e355067d0a439362 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 3 Mar 2009 00:55:52 +0000 Subject: thuthesis update (2mar09) git-svn-id: svn://tug.org/texlive/trunk@12293 c570f23f-e606-0410-a88d-b1316a301751 --- .../source/latex/thuthesis/thuthesis.dtx | 2832 ++++++++++---------- .../source/latex/thuthesis/thuthesis.ins | 16 +- 2 files changed, 1429 insertions(+), 1419 deletions(-) (limited to 'Master/texmf-dist/source/latex/thuthesis') diff --git a/Master/texmf-dist/source/latex/thuthesis/thuthesis.dtx b/Master/texmf-dist/source/latex/thuthesis/thuthesis.dtx index 745395b155e..f1e1500f55d 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 by Xue Ruini +% Copyright (C) 2005, 2006, 2007, 2008, 2009 by Ruini Xue % % 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 123 2007-11-08 13:05:49Z littleleo $ +% $Id: thuthesis.dtx 199 2009-02-28 15:20:35Z littleleo $ % % \fi % -% \CheckSum{2387} +% \CheckSum{2486} % \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 @@ -40,120 +40,24 @@ % Grave accent \` Left brace \{ Vertical bar \| % Right brace \} Tilde \~} % -% % \iffalse %<*driver> -\ProvidesFile{thuthesis.dtx}[2007/11/08 4.0 Tsinghua University Thesis Template] +\ProvidesFile{thuthesis.dtx}[2009/02/28 4.5.1 Tsinghua University Thesis Template] \documentclass[10pt]{ltxdoc} -\usepackage{calc} -\usepackage{array} -\usepackage{fancybox} -\usepackage{fancyvrb} -\usepackage{shapepar} -\usepackage{url} - %\IfFileExists{lucidabr.sty}{\usepackage{lucidabr}}{} -\usepackage{txfonts} -\usepackage{xcolor} -\usepackage{CJK,CJKpunct} -\usepackage[CJKbookmarks=true, bookmarksnumbered=true, - colorlinks=true, linkcolor=blue, dvips]{hyperref} -\usepackage{indentfirst} -\setlength{\parskip}{4pt plus1pt minus0pt} -\setlength{\topsep}{0pt} -\setlength{\partopsep}{0pt} -\setlength{\parindent}{20pt} -\addtolength{\oddsidemargin}{-1cm} -\advance\textwidth 1.5cm -\addtolength{\topmargin}{-1cm} -\addtolength{\headsep}{0.3cm} -\addtolength{\textheight}{2.3cm} -\newcommand\hei{\CJKfamily{hei}} -\newcommand\fs{\CJKfamily{fs}} -\renewcommand{\baselinestretch}{1.3} -\setlength{\shadowsize}{3pt} -\def\DescribeOption#1{\SpecialOptionIndex{#1}} -\def\SpecialOptionIndex#1{\index{#1\actualchar\textbf{#1}}} -\renewenvironment{description} - {\list{}{\setlength\labelwidth{2cm} - \setlength\labelsep{3pt} - \setlength\leftmargin{\labelwidth+\labelsep} - \addtolength{\itemsep}{3pt} - \renewcommand\makelabel[1]{\shadowbox{\color{blue!90}\texttt##1}\DescribeOption{##1}} - } - }{\endlist} -\DefineVerbatimEnvironment{example}{Verbatim}% - {frame=single, framerule=0.3mm, rulecolor=\color{red!75!green!50!blue}, - fillcolor=\color{red!75!green!50!blue!15},framesep=2mm, baselinestretch=1.2, - fontsize=\small, gobble=1} -\DefineVerbatimEnvironment{shell}{Verbatim}% - {frame=single, framerule=0.3mm, rulecolor=\color{red!85!green!60}, - fillcolor=\color{red!85!green!10},framesep=2mm,fontsize=\small, gobble=1} -\makeatletter -\long\def\myentry#1{\vskip5pt\par\noindent\llap{{\color{blue}\fs #1}}\marginpar{\strut}\hskip\parindent} -\def\tableofcontents{\renewcommand{\baselinestretch}{1.0}\@starttoc{toc}} -\def\DescribeMacro{\Describe@Macro} -\def\Describe@Macro#1{\PrintDescribeMacro{#1}\SpecialUsageIndex{#1}} -\def\PrintDescribeMacro#1{{\color{-red!75!green!50!blue!55}\MacroFont \string #1\hskip1em }} -\def\ps@headings{% - \let\@oddfoot\@empty - \def\@oddhead{\vbox{\hbox - to\textwidth{\llap{\fbox{\rightmark\rule[-2pt]{0pt}{13pt}}}\hfil\thepage}\vskip-0.7pt - \hbox to \textwidth{\hrulefill}}}% - \let\@evenfoot\@oddfoot - \let\@evenhead\@oddhead - \let\@mkboth\markboth - \def\sectionmark##1{% - \markright{\ifnum \c@secnumdepth >\m@ne - \thesection\quad - \fi - ##1}} - \def\subsectionmark##1{% - \markright{\ifnum \c@secnumdepth >\m@ne - \thesubsection\quad - \fi - ##1}} - \def\subsubsectionmark##1{% - \markright{\ifnum \c@secnumdepth >\m@ne - \thesubsubsection\quad - \fi - ##1}}} -\renewcommand\section{\@startsection{section}{1}{\z@}% - {-3.5ex \@plus -1ex \@minus -.2ex}% - {2.3ex \@plus.2ex}% - {\normalfont\Large\bfseries\hei}} -\renewcommand\subsection{\@startsection{subsection}{2}{\z@}% - {-3.25ex\@plus -1ex \@minus -.2ex}% - {1.5ex \@plus .2ex}% - {\normalfont\large\bfseries\hei}} -\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}% - {-3.25ex\@plus -1ex \@minus -.2ex}% - {1.5ex \@plus .2ex}% - {\normalfont\normalsize\bfseries\hei}} -\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}% - {3.25ex \@plus1ex \@minus.2ex}% - {-1em}% - {\normalfont\normalsize\bfseries}} -\renewcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}% - {3.25ex \@plus1ex \@minus .2ex}% - {-1em}% - {\normalfont\normalsize\bfseries}} - -\makeatother -\pagestyle{empty} +\usepackage{dtx-style} \EnableCrossrefs \CodelineIndex \RecordChanges %\OnlyDescription - \begin{document} -\begin{CJK*}{GBK}{song} -\DocInput{thuthesis.dtx} -\clearpage\end{CJK*} +\begin{CJK*}{UTF8}{song} + \DocInput{\jobname.dtx} +\end{CJK*} \end{document} % % \fi % -% \GetFileInfo{thuthesis.dtx} +% \GetFileInfo{\jobname.dtx} % \MakeShortVerb{\|} % % \def\thuthesis{\textsc{Thu}\-\textsc{Thesis}} @@ -180,21 +84,20 @@ % workaround is merge them up. Add \textbf{shuji} example. Add \textbf{pozhehao} command.} % % \changes{v2.1}{2006/02/27}{Add support to bachelor thesis.} -% \changes{v2.1}{2006/03/01}{Remove |fancyhdr| and |geometry|.} +% \changes{v2.1}{2006/03/01}{Remove \pkg{fancyhdr} and \pkg{geometry}.} % \changes{v2.1}{2006/03/01}{Redefine footnote marks.} % \changes{v2.1}{2006/03/01}{Replace thubib.bst with chinesebst.bst.} -% \changes{v2.1}{2006/03/02}{Merge the modification of |ntheorem|.} -% \changes{v2.1}{2006/03/02}{Remove |footmisc| and refine the document.} +% \changes{v2.1}{2006/03/02}{Merge the modification of \pkg{ntheorem}.} +% \changes{v2.1}{2006/03/02}{Remove \pkg{footmisc} and refine the document.} % \changes{v2.1}{2006/03/03}{Work very hard on the document.} % \changes{v2.1}{2006/03/03}{Add |checklab| code to reduce ``unresolved labels'' warning} % \changes{v2.2}{2006/03/26}{Adjust margins. How bad it is to simulate MS WORD!.} % \changes{v2.2}{2006/03/26}{Add bachelor training overview details supporting.} % \changes{v2.2}{2006/03/26}{CJK support in preamble.} % \changes{v2.2}{2006/03/26}{Adjust hyperref to avoid boxes around links.} -% \changes{v2.3}{2006/04/07}{Fix a great bug: PassOptionsToClass and LoadClass -% rather than PassOptionToPackage and LoadPackage.} -% \changes{v2.3}{2006/04/07}{Reorganize the codes in cover, make the pagestyle -% more readable.} +% \changes{v2.3}{2006/04/07}{Fix a great bug: \cmd{PassOptionsToClass} and \cs{LoadClass} +% rather than \cs{PassOptionToPackage} and \cs{LoadPackage}.} +% \changes{v2.3}{2006/04/07}{Reorganize the codes in cover, make the pagestyle more readable.} % \changes{v2.3}{2006/04/07}{Add gbk2uni into the document.} % \changes{v2.3}{2006/04/07}{Support openright and openany.} % \changes{v2.3}{2006/04/09}{Adjust hypersetup to remove color and box.} @@ -204,29 +107,28 @@ % \changes{v2.3}{2006/04/09}{Add assumption environment.} % \changes{v2.3}{2006/04/09}{Change the brace in the cover.} % \changes{v2.4}{2006/04/14}{Fill more pdf info. with hypersetup.} -% \changes{v2.4}{2006/04/14}{自动隐藏密级为内部时后面的五角星。} -% \changes{v2.4}{2006/04/14}{增加“注释”(Remark)环境。} -% \changes{v2.4}{2006/04/14}{压缩~item~之间的距离。} -% \changes{v2.4}{2006/04/14}{thubib.bst~文献标题取消自动小写。} -% \changes{v2.4}{2006/04/14}{中文参考文献取消~In: Proceedings。} -% \changes{v2.4}{2006/04/14}{英文文参考文献调整~In: editor, Proceedings。} -% \changes{v2.4}{2006/04/14}{参考文献为学位论文时,加方括号,作者后面为实心点。} -% \changes{v2.4}{2006/04/14}{中文参考文献作者超过三个加等。} -% \changes{v2.4}{2006/04/14}{中文参考文献需要在~bib~中指定~|lang="chinese"|。} -% \changes{v2.4}{2006/04/14}{学位论文不在需要~type~字段。} -% \changes{v2.4}{2006/04/14}{为摘要等条目增加书签。} -% \changes{v2.4}{2006/04/14}{章节的编号用黑体,也就是自动打开~arialtitle~选项。} -% \changes{v2.4.1}{2006/04/17}{2.4 忘了把关键词的tabular改成thu@tabular。} -% \changes{v2.4.1}{2006/04/17}{参考文献最后一个作者前是逗号而不是~and。} -% \changes{v2.4.2}{2006/04/18}{去掉参考文献第二个作者后面烦人的逗号。} -% \changes{v2.5}{2006/05/19}{对本科论文进行大幅度的重写,因为教务处修改了格式要 -% 求。} -% \changes{v2.5}{2006/05/19}{重新整理代码,使其布局更易读。} -% \changes{v2.5.1}{2006/05/24}{根据教务处的新要求调整附录部分。} -% \changes{v2.5.1}{2006/05/25}{参考文献中杂志文章如果没有卷号,那么页码直接跟在 -% 年份后面,并用句点分割。在~thubib.bst 中增加~output.year 函数。} -% \changes{v2.6.1}{2006/06/16}{取消~thubib.bst 中~inbook 类~volume 后的页码。} -% +% \changes{v2.4}{2006/04/14}{鑷姩闅愯棌瀵嗙骇涓哄唴閮ㄦ椂鍚庨潰鐨勪簲瑙掓槦銆倉 +% \changes{v2.4}{2006/04/14}{澧炲姞``娉ㄩ噴(Remark)''鐜銆倉 +% \changes{v2.4}{2006/04/14}{鍘嬬缉 item 涔嬮棿鐨勮窛绂汇倉 +% \changes{v2.4}{2006/04/14}{thubib.bst 鏂囩尞鏍囬鍙栨秷鑷姩灏忓啓銆倉 +% \changes{v2.4}{2006/04/14}{涓枃鍙傝冩枃鐚彇娑 In: Proceedings銆倉 +% \changes{v2.4}{2006/04/14}{鑻辨枃鏂囧弬鑰冩枃鐚皟鏁 In: editor, Proceedings銆倉 +% \changes{v2.4}{2006/04/14}{鍙傝冩枃鐚负瀛︿綅璁烘枃鏃讹紝鍔犳柟鎷彿锛屼綔鑰呭悗闈负瀹炲績鐐广倉 +% \changes{v2.4}{2006/04/14}{涓枃鍙傝冩枃鐚綔鑰呰秴杩囦笁涓姞绛夈倉 +% \changes{v2.4}{2006/04/14}{涓枃鍙傝冩枃鐚渶瑕佸湪 bib 涓寚瀹 |lang="chinese"|銆倉 +% \changes{v2.4}{2006/04/14}{瀛︿綅璁烘枃涓嶅湪闇瑕 type 瀛楁銆倉 +% \changes{v2.4}{2006/04/14}{涓烘憳瑕佺瓑鏉$洰澧炲姞涔︾銆倉 +% \changes{v2.4}{2006/04/14}{绔犺妭鐨勭紪鍙风敤榛戜綋锛屼篃灏辨槸鑷姩鎵撳紑 arialtitle 閫夐」銆倉 +% \changes{v2.4.1}{2006/04/17}{2.4 蹇樹簡鎶婂叧閿瘝鐨 tabular 鏀规垚 thu@tabular銆倉 +% \changes{v2.4.1}{2006/04/17}{鍙傝冩枃鐚渶鍚庝竴涓綔鑰呭墠鏄楀彿鑰屼笉鏄 and銆倉 +% \changes{v2.4.2}{2006/04/18}{鍘绘帀鍙傝冩枃鐚浜屼釜浣滆呭悗闈㈢儲浜虹殑閫楀彿銆倉 +% \changes{v2.5}{2006/05/19}{瀵规湰绉戣鏂囪繘琛屽ぇ骞呭害鐨勯噸鍐欙紝鍥犱负鏁欏姟澶勪慨鏀逛簡鏍煎紡瑕佹眰銆倉 +% \changes{v2.5}{2006/05/19}{閲嶆柊鏁寸悊浠g爜锛屼娇鍏跺竷灞鏇存槗璇汇倉 +% \changes{v2.5.1}{2006/05/24}{鏍规嵁鏁欏姟澶勭殑鏂拌姹傝皟鏁撮檮褰曢儴鍒嗐倉 +% \changes{v2.5.1}{2006/05/25}{鍙傝冩枃鐚腑鏉傚織鏂囩珷濡傛灉娌℃湁鍗峰彿锛岄偅涔堥〉鐮佺洿鎺ヨ窡鍦 +% 骞翠唤鍚庨潰锛屽苟鐢ㄥ彞鐐瑰垎鍓层傚湪 thubib.bst 涓鍔 output.year 鍑芥暟銆倉 +% \changes{v2.6.1}{2006/06/16}{鍙栨秷 thubib.bst 涓 inbook 绫 volume 鍚庣殑椤电爜銆倉 +% \changes{v4.5}{2008/01/04}{褰诲簳杞悜 UTF-8锛屽苟鏀寔 xelatex銆倉 % % \DoNotIndex{\begin,\end,\begingroup,\endgroup} % \DoNotIndex{\ifx,\ifdim,\ifnum,\ifcase,\else,\or,\fi} @@ -242,504 +144,447 @@ % \DoNotIndex{\@@par,\DeclareOperation,\RequirePackage,\LoadClass} % \DoNotIndex{\AtBeginDocument,\AtEndDocument} % -% \IndexPrologue{\section*{索引}% -% \addcontentsline{toc}{section}{索~~~~引}} -% \GlossaryPrologue{\section*{修改记录}% -% \addcontentsline{toc}{section}{修改记录}} +% \IndexPrologue{\section*{绱㈠紩}% +% \addcontentsline{toc}{section}{绱~~~寮晑} +% \GlossaryPrologue{\section*{淇敼璁板綍}% +% \addcontentsline{toc}{section}{淇敼璁板綍}} % -% \renewcommand{\abstractname}{摘~~要} -% \renewcommand{\contentsname}{目~~录} +% \renewcommand{\abstractname}{鎽榽~瑕亇 +% \renewcommand{\contentsname}{鐩畘~褰晑 % % -% \title{\thuthesis:清华大学学位论文模板\thanks{Tsinghua University \LaTeX{} Thesis Template.}} -% \author{{\fs 薛瑞尼\thanks{LittleLeo@newsmth}}\\[5pt]{\fs 清华大学计算机系高性能所}\\[5pt] \texttt{xueruini@gmail.com}} +% \title{\thuthesis锛氭竻鍗庡ぇ瀛﹀浣嶈鏂囨ā鏉縗thanks{Tsinghua University \LaTeX{} Thesis Template.}} +% \author{{\fs 钖涚憺灏糪thanks{LittleLeo@newsmth}}\\[5pt]{\fs 娓呭崕澶у璁$畻鏈虹郴楂樻ц兘鎵}\\[5pt] \texttt{xueruini@gmail.com}} % \date{v\fileversion\ (\filedate)} % \maketitle\thispagestyle{empty} % % % \begin{abstract}\noindent -% 此宏包旨在建立一个简单易用的清华大学学位论文模板,包括本科综合论文训练、硕士 -% 论文、博士论文以及博士哲学论文。现在已经支持本科、硕士和博士论文格式,对其它 -% 格式的支持会陆续加入。 +% 姝ゅ畯鍖呮棬鍦ㄥ缓绔嬩竴涓畝鍗曟槗鐢ㄧ殑娓呭崕澶у瀛︿綅璁烘枃妯℃澘锛屽寘鎷湰绉戠患鍚堣鏂囪缁冦佺澹 +% 璁烘枃銆佸崥澹鏂囦互鍙婂崥澹摬瀛﹁鏂囥傜幇鍦ㄥ凡缁忔敮鎸佹湰绉戙佺澹拰鍗氬+璁烘枃鏍煎紡锛屽鍏跺畠 +% 鏍煎紡鐨勬敮鎸佷細闄嗙画鍔犲叆銆 % \end{abstract} % % \vskip2cm -% \def\abstractname{免责声明} +% \def\abstractname{鍏嶈矗澹版槑} % \begin{abstract} % \noindent % \begin{enumerate} -% \item 本模板的发布遵守~\LaTeX{} Project Public License,使用前请认真阅读协议内容。 -% \item 本模板为作者根据清华大学教务处颁发的《综合论文训练写作指南》和清华大学研 -% 究生院颁发的《研究生学位论文写作指南》编写而成,旨在供清华大学毕业生撰写学位 -% 论文使用。 -% \item 此模板已经得到清华大学教务处和研究生院的“认证”,但不保证格式审查老师不 -% 提意见,任何由于使用本模板而引起的论文格式审查问题均与本模板作者无关。 -% \item 任何个人或组织以本模板为基础进行修改、扩展而生成的新的专用模板,请严格遵 -% 守~\LaTeX{} Project Public License 协议。由于违犯协议而引起的任何纠纷争端均与 -% 本模板作者无关。 +% \item 鏈ā鏉跨殑鍙戝竷閬靛畧 \LaTeX{} Project Public License锛屼娇鐢ㄥ墠璇疯鐪熼槄璇诲崗璁唴瀹广 +% \item 鏈ā鏉夸负浣滆呮牴鎹竻鍗庡ぇ瀛︽暀鍔″棰佸彂鐨勩婄患鍚堣鏂囪缁冨啓浣滄寚鍗椼嬪拰娓呭崕澶у鐮 +% 绌剁敓闄㈤鍙戠殑銆婄爺绌剁敓瀛︿綅璁烘枃鍐欎綔鎸囧崡銆嬬紪鍐欒屾垚锛屾棬鍦ㄤ緵娓呭崕澶у姣曚笟鐢熸挵鍐欏浣 +% 璁烘枃浣跨敤銆 +% \item 娓呭崕澶у鏁欏姟澶勫拰鐮旂┒鐢熼櫌鍙彁渚涙瘯涓氳鏂囧啓浣滄寚鍗楋紝涓嶆彁渚涘畼鏂规ā鏉匡紝涔熶笉浼氭巿 +% 鏉冪涓夋柟妯℃澘涓哄畼鏂规ā鏉匡紝鎵浠ユ妯℃澘浠呬负鍐欎綔鎸囧崡鐨勫弬鑰冨疄鐜帮紝涓嶄繚璇佹牸寮忓鏌ヨ佸笀 +% 涓嶆彁鎰忚銆備换浣曠敱浜庝娇鐢ㄦ湰妯℃澘鑰屽紩璧风殑璁烘枃鏍煎紡瀹℃煡闂鍧囦笌鏈ā鏉夸綔鑰呮棤鍏炽 +% \item 浠讳綍涓汉鎴栫粍缁囦互鏈ā鏉夸负鍩虹杩涜淇敼銆佹墿灞曡岀敓鎴愮殑鏂扮殑涓撶敤妯℃澘锛岃涓ユ牸閬 +% 瀹 \LaTeX{} Project Public License 鍗忚銆傜敱浜庤繚鐘崗璁屽紩璧风殑浠讳綍绾犵悍浜夌鍧囦笌 +% 鏈ā鏉夸綔鑰呮棤鍏炽 % \end{enumerate} % \end{abstract} % % % \clearpage % \begin{multicols}{2}[ -% \section*{\contentsname} -% \setlength{\columnseprule}{.4pt} -% \setlength{\columnsep}{18pt}] -% \tableofcontents +% \section*{\contentsname} +% \setlength{\columnseprule}{.4pt} +% \setlength{\columnsep}{18pt}] +% \tableofcontents % \end{multicols} % % \clearpage % \pagenumbering{arabic} % \pagestyle{headings} -% \section{模板介绍} -% 2005 年夏天我把自己写硕士论文的模板稍加整理做了一个所谓的“清华硕士论文 -% ~\LaTeX\ 模板报盘版”。此模板基于王磊编写、王垠整理的博士论文模板,借鉴了 -% ~mynewid@SMTH~的参考文献~bst~工作,并根据清华大学~2005~年研究生院硕士论文最新模 -% 板要求修改而成。其时大家的论文基本上都写完了,所以用的人不是很多;而且那个模板 -% 的结构不好,很多都是将就的写法。 -% -% 为了给想用~\LaTeX\ 写论文的同学提供方便,我在报盘版的基础上重新整理,在结构上采 -% 用标准的~docstrip 组织,中文支持采用~CJK\footnote{对~CCT 不熟悉,所以没有专门花 -% 时间去看。},在内容上尽量融合所有论文格式要求,同时更名为~\thuthesis,即 -% ~\textbf{T}sing\textbf{hu}a \textbf{Thesis},并在 -% ~\href{http://thuthesis.sourceforge.net}{sourceforge.net} 上安了家,随后在 -% ~\href{http://gforge.oss.org.cn/projects/thuthesis}{gforge.oss.org.cn} 建立了镜 -% 像,近来准备将其迁移到~\href{http://thuthesis.googlecode.com}{code.google.com}。 -% -% 由于个人精力有限,不能保证三者完全同步。现在~\thuthesis{} 也提交到了% -% ~\href{http://www.ctan.org/macros/latex/contrib/thuthesis}{CTAN} 上,更新一下你 -% 的~\TeX{} 就能得到最新的~\thuthesis。 -% -% 2005 年圣诞节前,\thuthesis-2.0 发布,成为第一个同时支持硕士、博士论文格式的模 -% 板,后直到~2006 年~3 月初才加入本科论文格式支持,即~\thuthesis-2.1。这个版本除 -% 了增加本科论文格式支持,同时去掉了很多不必要的宏包,改由基本~\TeX{} 和 -% ~\LaTeX{} 命令实现。在随后的几个月时间里,由于教务处的督促以及同学们的积极反馈 -% ,模板进入了一个“高速”发展的阶段,其间增加了许多有用的功能,同时发现并排除了 -% 不少问题,使得~\thuthesis{} 日臻完善。现在的~\thuthesis{} 不仅在结构上跟报盘版 -% 相去甚远,而且在功能上也更加丰富,最重要的是~\thuthesis{} 符合学校的最新规范。 -% -% 2007 年~11 月~8 日,研究生院同意将~\thuthesis{} 作为官方模板。至此,教务处和研 -% 究生院都认可了~\thuthesis,所有的毕业生都可以放心地使用~\thuthesis{} 来准备论 -% 文,而不必像以前那样犹豫不决,提心吊胆。 -% -% 在整理这个模板的过程中,我得到不少同学热情的支持,在此不一一列出,感谢他们提供 -% 的每一份帮助!让人感到欣喜的是很多同学都开始为~\thuthesis{} 添砖加瓦,目前包括% -% ~edyfox~的~Makefile,Truel 的~msmake.cmd,oseen~将其移植到~UTF-8 并制作了% -% ~Debian package,EricH 制作了~Gentoo ebuild。 -% -% 本文档将尽量完整的介绍模板的使用方法,如有不清楚之处可以参考示例文档或者给邮件 -% 列表(见后)写信,欢迎感兴趣的同学出力完善此使用手册。由于个人水平有限,虽然现 -% 在的这个版本基本上满足了学校的要求,但难免还存在不足之处,欢迎大家积极反馈。 -% -% 最后补充一点:{\color{blue}\fs 模板的作用在于减轻论文写作过程中格式调整的时间, -% 其前提就是遵守模板的规定,否则即使使用了~\thuthesis{} 也难以保证输出的论文符 -% 合学校规范。} -% -% -% \section{安装} -% \label{sec:installation} +% \section{妯℃澘浠嬬粛} +% \thuthesis\ (\textbf{T}sing\textbf{hu}a \textbf{Thesis}) 鏄负浜嗗府鍔╂竻鍗庡ぇ瀛︽瘯涓 +% 鐢熸挵鍐欐瘯涓氳鏂囪岀紪鍐欑殑 \LaTeX{} 璁烘枃妯℃澘銆 % -% \subsection{下载} -% \thuthesis{} 主页: \url{http://thuthesis.sourceforge.net}。 +% 鏈枃妗e皢灏介噺瀹屾暣鐨勪粙缁嶆ā鏉跨殑浣跨敤鏂规硶锛屽鏈変笉娓呮涔嬪鍙互鍙傝冪ず渚嬫枃妗f垨鑰呯粰閭欢 +% 鍒楄〃锛堣鍚庯級鍐欎俊锛屾杩庢劅鍏磋叮鐨勫悓瀛﹀嚭鍔涘畬鍠勬浣跨敤鎵嬪唽銆傜敱浜庝釜浜烘按骞虫湁闄愶紝铏界劧鐜 +% 鍦ㄧ殑杩欎釜鐗堟湰鍩烘湰涓婃弧瓒充簡瀛︽牎鐨勮姹傦紝浣嗛毦鍏嶈繕瀛樺湪涓嶈冻涔嬪锛屾杩庡ぇ瀹剁Н鏋佸弽棣堛 % -% 但由于各种各样的原因,这个主页访问起来并不顺利,下面提供其它几个链接,按照维护 -% 的优先级排序: -% \begin{itemize}\addtolength{\itemsep}{-5pt} -% \item \url{http://gforge.oss.org.cn/projects/thuthesis} -% \item \url{http://thuthesis.googlecode.com} -% \item \url{http://www.ctan.org/macros/latex/contrib/thuthesis} -% \end{itemize} +% {\color{blue}\fs 妯℃澘鐨勪綔鐢ㄥ湪浜庡噺杞昏鏂囧啓浣滆繃绋嬩腑鏍煎紡璋冩暣鐨勬椂闂达紝鍏跺墠鎻愬氨鏄伒 +% 瀹堟ā鏉跨殑鐢ㄦ硶锛屽惁鍒欏嵆浣夸娇鐢ㄤ簡 \thuthesis{} 涔熼毦浠ヤ繚璇佽緭鍑虹殑璁烘枃绗﹀悎瀛︽牎瑙勮寖銆倉 +% +% +% \section{瀹夎} +% \label{sec:installation} % -% \thuthesis{} 的开发版本同样可以在~sourceforge 上获得: +% \subsection{涓嬭浇} +% \thuthesis{} 涓婚〉锛歕url{http://thuthesis.sourceforge.net}銆傚悓鏃舵湰妯℃澘涔熸彁浜よ嚦 +% \href{http://www.ctan.org/macros/latex/contrib/thuthesis}{CTAN}銆傞櫎姝や箣澶栵紝涓 +% 鍐嶇淮鎶や换浣曢暅鍍忋 +% +% \thuthesis{} 鐨勫紑鍙戠増鏈悓鏍峰彲浠ュ湪 sourceforge 涓婅幏寰楋細 % \begin{shell} % $ svn co https://svn.sourceforge.net/svnroot/thuthesis/trunk/thuthesis % \end{shell} % -% \subsection{模板的组成部分} -% 下表列出了~\thuthesis{} 的主要文件及其功能介绍: +% \subsection{妯℃澘鐨勭粍鎴愰儴鍒唥 +% 涓嬭〃鍒楀嚭浜 \thuthesis{} 鐨勪富瑕佹枃浠跺強鍏跺姛鑳戒粙缁嶏細 % % \begin{center} -% \begin{tabular}{l|p{10cm}} +% \begin{longtable}{l|p{10cm}} +% \hline +% {\hei 鏂囦欢锛堝す锛墋 & {\hei 鍔熻兘鎻忚堪}\\\hline\hline +% \endfirsthead % \hline -% {\hei 文件(夹)} & {\hei 功能描述}\\\hline\hline -% thuthesis.ins & 模板驱动文件 \\ -% thuthesis.dtx & 模板文档代码的混合文件\\ -% thuthesis.cls & 模板类文件\\ -% thuthesis.cfg & 模板配置文件\\ -% thubib.bst & 参考文献样式文件\\\hline -% main.tex & 示例文档主文件\\ -% shuji.tex & 书脊示例文档\\ -% ref/ & 示例文档参考文献目录\\ -% data/ & 示例文档章节具体内容\\ -% figures/ & 示例文档图片路径\\ -% thutils.sty & 为示例文档加载其它宏包\\\hline +% {\hei 鏂囦欢锛堝す锛墋 & {\hei 鍔熻兘鎻忚堪}\\\hline\hline +% \endhead +% \endfoot +% \endlastfoot +% thuthesis.ins & 妯℃澘椹卞姩鏂囦欢 \\ +% thuthesis.dtx & 妯℃澘鏂囨。浠g爜鐨勬贩鍚堟枃浠禱\ +% thuthesis.cls & 妯℃澘绫绘枃浠禱\ +% thuthesis.cfg & 妯℃澘閰嶇疆鏂囦欢\\ +% thubib.bst & 鍙傝冩枃鐚牱寮忔枃浠禱\\hline +% main.tex & 绀轰緥鏂囨。涓绘枃浠禱\ +% shuji.tex & 涔﹁剨绀轰緥鏂囨。\\ +% ref/ & 绀轰緥鏂囨。鍙傝冩枃鐚洰褰昞\ +% data/ & 绀轰緥鏂囨。绔犺妭鍏蜂綋鍐呭\\ +% figures/ & 绀轰緥鏂囨。鍥剧墖璺緞\\ +% thutils.sty & 涓虹ず渚嬫枃妗e姞杞藉叾瀹冨畯鍖匼\\hline % Makefile & self-explanation \\ -% msmake.cmd & Windows 批处理工具\\\hline +% msmake.cmd & Windows 鎵瑰鐞嗗伐鍏穃\\hline % Readme & self-explanation\\ -% \textbf{thuthesis.pdf} & 用户手册(本文档)\\\hline -% \end{tabular} +% \textbf{thuthesis.pdf} & 鐢ㄦ埛鎵嬪唽锛堟湰鏂囨。锛塡\\hline +% \end{longtable} % \end{center} % -% 需要说明几点:1) thuthesis.cls 和~thuthesis.cfg 可以由~thuthesis.ins 和% -% ~thuthesis.dtx 生成,但为了降低新手用户的使用难度,特将~cls 和~cfg 也一起发布。 -% 2) 学习一个新东西最好的办法就是读它的文档。请时刻记住~RTFM\footnote{Read The -% Fucking Manual} 和~STFW\footnote{Search The Fucking Web},不要滥用你提问的权 -% 力,不要抱怨没人帮助你:任何人都有权利不回答你的问题。 +% 闇瑕佽鏄庡嚑鐐癸細1) thuthesis.cls 鍜 thuthesis.cfg 鍙互 +% 鐢 thuthesis.ins 鍜宼huthesis.dtx 鐢熸垚锛屼絾涓轰簡闄嶄綆鏂版墜鐢ㄦ埛鐨勪娇鐢ㄩ毦搴︼紝鏁呭皢 cls +% 鍜 cfg 涔熶竴璧峰彂甯冦2) 瀛︿範涓涓柊涓滆タ鏈濂界殑鍔炴硶灏辨槸璇诲畠鐨勬枃 +% 妗o細\emph{thuthesis.pdf}. % -% 如果对上面表格中的文件及其解释还存在疑问,没有关系,继续往下看,一会儿就会天开 -% 云散了。 % -% \subsection{准备工作} +% \subsection{鍑嗗宸ヤ綔} % \label{sec:prepare} -% 本模板用到以下宏包: +% 鏈ā鏉跨敤鍒颁互涓嬪畯鍖咃細 % % \begin{center} % \begin{minipage}{1.0\linewidth}\centering % \begin{tabular}{*{6}{l}}\hline -% ifthen & clac & ifpdf & CJK & CJKnumb & \textbf{CJKpunct} \\ -% array & booktabs & longtable & amsmath & amssymb & ntheorem \\ +% 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} \\ +% array & booktabs & longtable & amsmath & amssymb & ntheorem \\ % indentfirst & paralist & txfonts & natbib & hyperref & hypernat \\ -% graphicx & \textbf{subfig}\footnote{版本要求:$\geq$2005/06/28 ver: 1.3} & -% \textbf{caption}\footnote{版本要求:$\geq$2006/03/21 v3.0j} & -% \textbf{thubib.bst} & &\\\hline +% graphicx & \pkg{subfig}\footnote{鐗堟湰瑕佹眰锛$\geq$2005/06/28 ver: 1.3} & +% \pkg{caption}\footnote{鐗堟湰瑕佹眰锛$\geq$2006/03/21 v3.0j} & +% \pkg{thubib.bst} & &\\\hline % \end{tabular} % \end{minipage} % \end{center} % -% 不要害怕,绝大多数包你的~\TeX{} 系统已经都有了,如果没有请到~\url{www.ctan.org} -% 去下载。中文标点优化的~\pkg{CJKpunct}~可能需要到~\url{www.ctex.org} 去下载,如 -% 果你用~C\TeX{} 中文套装的话,那么~\pkg{CJKpunct} 也已经有了。参考文献 -% 样式~thubib.bst 为模板自带,不必操心。 +% 杩欎簺鍖呭湪甯歌鐨 \TeX{} 绯荤粺涓兘鏈夛紝濡傛灉娌℃湁璇峰埌 \url{www.ctan.org} 涓嬭浇銆傛帹 +% 鑽 \TeX live 2008銆 % % -% \subsection{开始安装} +% \subsection{寮濮嬪畨瑁厎 % \label{sec:install} -% 模板解压缩后生成文件夹~thuthesis-VERSION\footnote{VERSION 为版本号。},其中包 -% 括:模板源文件(thuthesis.ins 和~thuthesis.dtx),参考文献样式~thubib.bst,示例文 -% 档(main.tex,shuji.tex,thutils.sty\footnote{我把所有可能用到但不一定用到的包 -% 以及一些命令定义都放在这里面,以免主~thuthesis.cls 过分臃肿。}, -% \linebreak[4]data/ 和~figures/ 和~ref/)。在使用之前需要先生成模板文件和配置文 -% 件(具体命令细节请参考~|Readme| 和~|Makefile|): +% +% \subsubsection{鐢熸垚妯℃澘} +% \label{sec:generate-cls} +% {\hei 璇存槑锛氶粯璁ょ殑鍙戣鍖呬腑宸茬粡鍖呭惈浜嗘墍鏈夋枃浠讹紝鍙互鐩存帴浣跨敤銆傚鏋滃濡備綍鐢 dtx 鐢 +% 鎴愭ā鏉挎枃浠朵互鍙婃ā鏉挎枃妗d笉鎰熷叴瓒o紝璇疯烦杩囨湰灏忚妭銆倉 +% +% 妯℃澘瑙e帇缂╁悗鐢熸垚鏂囦欢澶 thuthesis-VERSION\footnote{VERSION 涓虹増鏈彿銆倉锛屽叾涓寘鎷細 +% 妯℃澘婧愭枃浠讹紙thuthesis.ins 鍜 thuthesis.dtx锛夛紝鍙傝冩枃鐚牱寮 thubib.bst锛岀ず渚嬫枃妗 +% 锛坢ain.tex锛宻huji.tex锛宼hutils.sty\footnote{鎴戞妸鍙兘鐢ㄥ埌浣嗕笉涓瀹氱敤鍒扮殑鍖呬互鍙婁竴 +% 浜涘懡浠ゅ畾涔夐兘鏀惧湪杩欓噷闈紝浠ュ厤 thuthesis.cls 杩囧垎鑷 +% 鑲裤倉锛宒ata/ 鍜 figures/ 鍜 ref/锛夈傚湪浣跨敤涔嬪墠闇瑕佸厛鐢熸垚妯℃澘鏂囦欢鍜岄厤缃枃浠 +% 锛堝叿浣撳懡浠ょ粏鑺傝鍙傝 |Readme| 鍜 |Makefile|锛夛細 % % \begin{shell} % $ cd thuthesis-VERSION -% # 生成 thuthesis.cls 和 thuthesis.cfg +% # 鐢熸垚 thuthesis.cls 鍜 thuthesis.cfg % $ latex thuthesis.ins % -% # 下面的命令用来生成用户手册,可以不执行 +% # 涓嬮潰鐨勫懡浠ょ敤鏉ョ敓鎴愮敤鎴锋墜鍐岋紝鍙互涓嶆墽琛 % $ latex thuthesis.dtx % $ makeindex -s gind.ist -o thuthesis.ind thuthesis.idx % $ makeindex -s gglo.ist -o thuthesis.gls thuthesis.glo % $ latex thuthesis.dtx -% $ latex thuthesis.dtx % 生成说明文档 thuthesis.dvi +% $ latex thuthesis.dtx % 鐢熸垚璇存槑鏂囨。 thuthesis.dvi % \end{shell} % -% \thuthesis{} 发布的时候已经自带了编译好的文档,如果你对文档如何生成并不关心, -% 那么上面只需要执行~\texttt{latex thuthesis.ins} 即可。为了进一步简化模板的使用 -% ,\thuthesis{} 的发布中已经自带了~thuthesis.cls~和~thuthesis.cfg,也就是说上面 -% 的命令一条都不必执行。 % -%\subsubsection{dvi$\rightarrow$ps$\rightarrow$pdf} -%\label{sec:dvipspdf} -% -% 很多用户对~\LaTeX{} 命令执行的次数不太清楚,一个基本的原则就是如果有引用,如 -% ~ref 和~cite,那么至少需要执行~3 次。第一次发现引用,后两次解决引用。下面给出 -% 生成示例文档的详细过程(\# 开头的行为注释),首先来看经典的 -% ~\texttt{dvi$\rightarrow$ps$\rightarrow$pdf} 方式: +% \subsubsection{dvi$\rightarrow$ps$\rightarrow$pdf} +% \label{sec:dvipspdf} +% 寰堝鐢ㄦ埛瀵 \LaTeX{} 鍛戒护鎵ц鐨勬鏁颁笉澶竻妤氾紝涓涓熀鏈殑鍘熷垯鏄娆¤繍琛 \LaTeX{} +% 鍛戒护鐩磋嚦涓嶅啀鍑虹幇璀﹀憡銆備笅闈㈢粰鍑虹敓鎴愮ず渚嬫枃妗g殑璇︾粏杩囩▼锛圽# 寮澶寸殑琛屼负娉ㄩ噴锛夛紝棣栧厛 +% 鏉ョ湅缁忓吀鐨 \texttt{dvi$\rightarrow$ps$\rightarrow$pdf} 鏂瑰紡锛 % \begin{shell} -% # 1. 发现里面的引用关系,文件后缀 .tex 可以省略 +% # 1. 鍙戠幇閲岄潰鐨勫紩鐢ㄥ叧绯伙紝鏂囦欢鍚庣紑 .tex 鍙互鐪佺暐 % $ latex main % -% # 2. 编译参考文件源文件,生成 bbl 文件 +% # 2. 缂栬瘧鍙傝冩枃浠舵簮鏂囦欢锛岀敓鎴 bbl 鏂囦欢 % $ bibtex main % -% # 3. 下面两次解决引用 +% # 3. 涓嬮潰瑙e喅寮曠敤 % $ latex main -% $ gbk2uni main # 防止书签乱码 -% $ latex main # 此时生成完整的 dvi 文件 +% # 濡傛灉鏄 GBK 缂栫爜锛屾澶勮繍琛岋細 +% # $ gbk2uni main # 闃叉涔︾涔辩爜 +% $ latex main # 姝ゆ椂鐢熸垚瀹屾暣鐨 dvi 鏂囦欢 % -% # 4. 生成 ps +% # 4. 鐢熸垚 ps % $ dvips main.dvi % -% # 5. 生成 pdf +% # 5. 鐢熸垚 pdf % $ ps2pdf main.ps % \end{shell} % -% 模板已经把纸型信息写入目标文件,这样执行~\texttt{dvips}~时就可以避免由于遗忘 -% ~\texttt{-ta4}~参数而导致输出不合格的文件(因为~\texttt{dvips}~默认使用 -% ~letter~纸型)。 -% -%\subsubsection{dvipdfm(x)} -%\label{sec:dvipdfmx} +% 妯℃澘宸茬粡鎶婄焊鍨嬩俊鎭啓鍏ョ洰鏍囨枃浠讹紝杩欐牱鎵ц \texttt{dvips} 鏃跺氨鍙互閬垮厤鐢变簬閬楀繕 +% \texttt{-ta4} 鍙傛暟鑰屽鑷磋緭鍑轰笉鍚堟牸鐨勬枃浠讹紙鍥犱负 \texttt{dvips} 榛樿浣跨敤 +% letter 绾稿瀷锛夈 % -% 如果使用~dvipdfm(x),那么在生成完整的~dvi 文件之后(参见上面的例子),可以直接得到~pdf: +% \subsubsection{dvipdfm(x)} +% \label{sec:dvipdfmx} +% 濡傛灉浣跨敤 dvipdfm(x)锛岄偅涔堝湪鐢熸垚瀹屾暣鐨 dvi 鏂囦欢涔嬪悗锛堝弬瑙佷笂闈㈢殑渚嬪瓙锛夛紝鍙互鐩存帴寰楀埌 pdf锛 % \begin{shell}% % $ dvipdfm main.dvi -% # 或者 +% # 鎴栬 % $ dvipdfmx main.dvi % \end{shell} % +% \subsubsection{pdflatex} +% \label{sec:pdflatex} +% 濡傛灉浣跨敤 PDF\LaTeX锛屾寜鐓х~\ref{sec:dvipspdf} 鑺傜殑椤哄簭鎵ц鍒扮 3 姝ュ嵆鍙紝涓嶅啀缁 +% 杩囦腑闂磋浆鎹€ % -%\subsubsection{pdflatex} -%\label{sec:pdflatex} +% 闇瑕佹敞鎰忕殑鏄 PDF\LaTeX\ 涓嶈兘澶勭悊甯歌鐨 EPS 鍥惧舰锛岄渶瑕佸厛鐢 epstopdf 灏嗗叾杞寲 +% 鎴 PDF銆備笉杩 PDF\LaTeX\ 澧炲姞浜嗗 png锛宩pg 绛夋爣閲忓浘褰㈢殑鏀寔锛屾瘮杈冩柟渚裤 % -% 如果使用~pdflatex,那么上面的步骤就可以大大简化: -% \begin{shell} -% # 1. 发现里面的引用关系,文件后缀 .tex 可以省略 -% $ pdflatex main +% \subsubsection{xelatex} +% \label{sec:xelatex} +% XeTeX 鏈澶х殑浼樺娍灏辨槸涓嶅啀闇瑕佺箒鐞愮殑瀛椾綋閰嶇疆銆俓thuthesis{} 閫氳繃 \pkg{xeCJK} 鏉ユ帶 +% 鍒朵腑鏂囧瓧浣撳拰鏍囩偣鍘嬬缉銆傛ā鏉块噷榛樿鐢ㄧ殑鏄 Adobe 鐨勫洓娆惧厤璐瑰瓧浣擄紙瀹嬶紝榛戯紝妤凤紝浠垮畫锛夛紝 +% 鐢ㄦ埛鍙互鏍规嵁鑷繁鐨勫疄闄呮儏鍐垫柟渚跨殑鏇挎崲銆傚彟澶栵紝鏈璁烘枃灏侀潰瑕佺敤鍒伴毝涔︼紝璇风敤鎴疯嚜琛 +% 淇敼銆 % -% # 2. 编译参考文件源文件,生成 bbl 文件 -% $ bibtex main +% Xe\LaTeX\ 鐨勪娇鐢ㄦ楠ゅ悓 PDF\LaTeX銆 % -% # 3. 下面两次解决引用 -% $ pdflatex main -% $ gbk2uni main # 防止书签乱码 -% $ pdflatex main # 此时生成完整的 pdf 文件 -% \end{shell} % -% 需要注意的是~pdflatex 不能处理常见的~eps 图形,如果要用需要先将~eps 转化成~pdf。 -% 但增加了对~png,jpg~等标量图形的支持,比较方便。另外需要注意的是很多同学使用 -% 默认的示例文件写论文,但用~pdflatex 编译,这时务必将~\textbf{dvips} 和 ~\textbf{dvipdfm} 选项去掉。 -% -% \subsubsection{自动化过程} +% \subsubsection{鑷姩鍖栬繃绋媫 % \label{sec:automation} +% 涓婇潰鐨勪緥瀛愬彧鏄粰鍑轰竴鑸儏鍐典笅鐨勪娇鐢ㄦ柟娉曪紝鍙互鍙戠幇铏界劧鍛戒护寰堢畝鍗曪紝浣嗘槸姣忔閮借緭鍏 +% 鐨勮瘽杩樻槸闈炲父缃楀棪鐨勶紝鎵浠 \thuthesis{} 杩樻彁渚涗簡涓浜涜嚜鍔ㄥ鐞嗙殑鏂囦欢銆 % -% 上面的例子只是给出一般情况下的使用方法,可以发现虽然命令很简单,但是每次都输入 -% 的话还是非常罗嗦的,所以~\thuthesis{} 还提供了一些自动处理的文件。 -% -% 如果使用~Windows 平台,可以试一试~Truel 编写的批处理脚本~msmake.cmd\footnote{ -% 目前尚不完善,需要进一步测试。}: -% +% 鎴戜滑鎻愪緵浜嗕竴涓畝鍗曠殑 \texttt{Makefile}锛 % \begin{shell} -% your_path $ msmake setup % 生成宏包文件和说明文档 -% your_path $ msmake all % 生成示例文档和书脊 -% your_path $ msmake main % 生成示例文档 -% your_path $ msmake shuji % 生成书脊 -% your_path $ msmake clean % 清除临时文件 +% $ make clean +% $ make cls # 鐢熸垚 thuthesis.cls 鍜 thuthesis.cfg +% $ make doc # 鐢熸垚璇存槑鏂囨。 thuthesis.pdf +% $ make thesis # 鐢熸垚绀轰緥鏂囨。 main.pdf +% $ make shuji # 鐢熸垚涔﹁剨 shuji.pdf % \end{shell} % -% 如果你的系统有~make 那就方便多了: +% 濡傛灉浣跨敤 Windows 骞冲彴锛屽彲浠ヨ瘯涓璇 Truel 缂栧啓鐨勬壒澶勭悊鑴 +% 鏈 \texttt{msmake.cmd}\footnote{灏氫笉瀹屽杽锛屼簾闇鏀硅繘銆倉锛 % \begin{shell} -% $ make clean -% $ make cls % 生成 thuthesis.cls 和 thuthesis.cfg -% $ make doc % 生成说明文档 thuthesis.pdf -% $ make thesis % 生成示例文档 main.pdf -% $ make shuji % 生成书脊 shuji.pdf +% your_path $ msmake setup # 鐢熸垚瀹忓寘鏂囦欢鍜岃鏄庢枃妗 +% your_path $ msmake all # 鐢熸垚绀轰緥鏂囨。鍜屼功鑴 +% your_path $ msmake main # 鐢熸垚绀轰緥鏂囨。 +% your_path $ msmake shuji # 鐢熸垚涔﹁剨 +% your_path $ msmake clean # 娓呴櫎涓存椂鏂囦欢 % \end{shell} % -% edyfox 整理的~Makefile 非常细致(我将他给的四个文件合成一个大~Makefile),稍微有 -% 这方面知识的用户会感到非常~happy。如果你不知道怎么用,最好学习学习。 -% -% 关于~msmake 以及~Makefile 的用法请参见~Readme,此处不再详述。 -% -% 经过上面的操作得到的模板文件都在当前目录,没有安装到系统~|TDS|,主要是考虑到方 -% 便,修改,更新容易一些。只有自己用没必要全局安装。 +% \texttt{Makefile} 鍜 \texttt{msmake.cmd} 榛樿閲囩敤 \LaTeX\ 缂栬瘧锛屽彲浠ユ牴鎹嚜宸辩殑 +% 闇瑕佷慨鏀瑰懡浠ゃ % % -% \subsection{升级} +% \subsection{鍗囩骇} % \label{sec:updgrade} -% \thuthesis{} 升级非常简单,下载最新的版本,将~thuthesis.ins,thuthesis.dtx 和 -% ~thubib.bst 拷贝至你的工作目录覆盖相应的文件,然后运行一次: +% \thuthesis{} 鍗囩骇闈炲父绠鍗曪紝涓嬭浇鏈鏂扮殑鐗堟湰锛 +% 灏 thuthesis.ins锛宼huthesis.dtx 鍜宼hubib.bst 鎷疯礉鑷冲伐浣滅洰褰曡鐩栫浉搴旂殑鏂囦欢锛岀劧鍚 +% 杩愯锛 % \begin{shell} % $ latex thuthesis.ins % \end{shell} % -% 生成新的类文件和配置文件即可。当然也可以直接拷贝~thuthesis.cls、 -% thuthesis.cfg 和~thubib.bst,免去上面命令的执行。只要明白它的工作原理,这个很容 -% 易。 +% 鐢熸垚鏂扮殑绫绘枃浠跺拰閰嶇疆鏂囦欢鍗冲彲銆傚綋鐒朵篃鍙互鐩存帴鎷疯礉 thuthesis.cls, thuthesis.cfg +% 鍜 thubib.bst锛屽厤鍘讳笂闈㈠懡浠ょ殑鎵ц銆傚彧瑕佹槑鐧藉畠鐨勫伐浣滃師鐞嗭紝杩欎釜涓嶉毦鎿嶄綔銆 % % -% \section{使用说明} +% \section{浣跨敤璇存槑} % \label{sec:usage} -% 本手册假定用户已经能处理一般的~\LaTeX{} 文档,并对~BIB\TeX{} 有一定了解。如果你 -% 从来没有接触过~\TeX 和~\LaTeX,建议先学习相关的基础知识。磨刀不误砍柴工! +% 鏈墜鍐屽亣瀹氱敤鎴峰凡缁忚兘澶勭悊涓鑸殑 \LaTeX{} 鏂囨。锛屽苟瀵 \BibTeX{} 鏈変竴瀹氫簡瑙c傚鏋滀綘 +% 浠庢潵娌℃湁鎺ヨЕ杩 \TeX 鍜 \LaTeX锛屽缓璁厛瀛︿範鐩稿叧鐨勫熀纭鐭ヨ瘑銆傜(鍒涓嶈鐮嶆煷宸ワ紒 % -% -% \subsection{关于提问} +% % todo: move some where.. +% \subsection{鍏充簬鎻愰棶} % \label{sec:howtoask} -% 提问之前先问自己几个问题: +% 鎻愰棶涔嬪墠鍏堥棶鑷繁鍑犱釜闂锛 % \begin{enumerate}\addtolength{\itemsep}{-5pt} -% \item 我是不是认真地学习了~\LaTeX{} 基础知识? -% \item 我是不是认真地阅读了相关的文档? -% \item 我是不是~Google 了? +% \item 鎴戞槸涓嶆槸璁ょ湡鍦板涔犱簡 \LaTeX{} 鍩虹鐭ヨ瘑锛 +% \item 鎴戞槸涓嶆槸璁ょ湡鍦伴槄璇讳簡鐩稿叧鐨勬枃妗o紵 +% \item 鎴戞槸涓嶆槸 Google 浜嗭紵 % \end{enumerate} % -% 如果你确保自己做到了上面的“三大步”,那么就可以到以下两个推荐的地方提问: +% 濡傛灉浣犵‘淇濊嚜宸卞凡缁忓畬鎴愪簡涓婇潰鐨勬搷浣滐紝閭d箞灏卞彲浠ュ埌浠ヤ笅涓や釜鍦版柟鎻愰棶锛 % \begin{itemize}\addtolength{\itemsep}{-5pt} -% \item \url{http://groups.google.com/group/thuthesis} \\ -% 直接给~thuthesis@googlegroups.com 写信就可以 +% \item \url{http://groups.google.com/group/thuthesis} +% 鎴栫洿鎺ョ粰\href{mailto:thuthesis@googlegroups.com}{閭欢鍒楄〃}鍐欎俊銆 % \item \href{http://www.newsmth.net/bbsdoc.php?board=TeX}{\TeX@newsmth} % \end{itemize} % -% 考虑到不能将所有的问题堆积到~\TeX@newsmth 版(或许可以申请一个附属版面,但是除 -% 非毕业前夕,这个版面必然十分荒凉,故暂不可行);邮件列表又不易维护~FAQ,所以我 -% 为~\thuthesis{} 建了一个~wiki:\url{http://thuthesis.wiki.sf.net}。大家可以一起 -% 贡献力量把这个~wiki 弄好,这样以后的同学就不至于有了问题不知该如何求救。 -% -% \subsection{\thuthesis{} 使用向导} +% \subsection{\thuthesis{} 浣跨敤鍚戝} % \label{sec:userguide} -% 推荐新用户先看网上的《\thuthesis{} 使用向导》幻灯片,那份讲稿比这份文档简练易懂。前面列出的几个网址都有这个幻灯片。 +% 鎺ㄨ崘鏂扮敤鎴峰厛鐪嬬綉涓婄殑銆奬thuthesis{} 浣跨敤鍚戝銆嬪够鐏墖\footnote{鏈夌偣鑰佷簡锛屼笉杩囪繕鏄 +% 寰堟湁甯姪鐨勩倉锛岄偅浠借绋挎瘮杩欎唤鏂囨。绠缁冩槗鎳傘 % -% \subsection{\thuthesis{} 示例文件} +% \subsection{\thuthesis{} 绀轰緥鏂囦欢} % \label{sec:userguide1} -% 模板核心文件只有三个:thuthesis.cls,thuthesis.cfg 和~thubib.bst,但是如果没有 -% 示例文档用户会发现很难下手。所以推荐新用户从模板自带的示例文档入手,里面包 -% 括了论文写作用到的所有命令及其使用方法,只需要用自己的内容进行相应替换就可以。 -% 对于不清楚的命令可以查阅本手册。下面的例子描述了模板中章节的组织形式,来自于示 -% 例文档,具体内容可以参考模板附带的~main.tex 和~data/。 +% 妯℃澘鏍稿績鏂囦欢鍙湁涓変釜锛歵huthesis.cls锛宼huthesis.cfg 鍜 thubib.bst锛屼絾鏄鏋滄病鏈 +% 绀轰緥鏂囨。鐢ㄦ埛浼氬彂鐜板緢闅句笅鎵嬨傛墍浠ユ帹鑽愭柊鐢ㄦ埛浠庢ā鏉胯嚜甯︾殑绀轰緥鏂囨。鍏ユ墜锛岄噷闈㈠寘鎷簡 +% 璁烘枃鍐欎綔鐢ㄥ埌鐨勬墍鏈夊懡浠ゅ強鍏朵娇鐢ㄦ柟娉曪紝鍙渶瑕佺敤鑷繁鐨勫唴瀹硅繘琛岀浉搴旀浛鎹㈠氨鍙互銆傚浜 +% 涓嶆竻妤氱殑鍛戒护鍙互鏌ラ槄鏈墜鍐屻備笅闈㈢殑渚嬪瓙鎻忚堪浜嗘ā鏉夸腑绔犺妭鐨勭粍缁囧舰寮忥紝鏉ヨ嚜浜庣ず渚嬫枃 +% 妗o紝鍏蜂綋鍐呭鍙互鍙傝冩ā鏉块檮甯︾殑 main.tex 鍜 data/銆 % % \begin{example} % \documentclass[bachelor]{thuthesis} -% % \documentclass[master|doctor,dvips|dvipdfm,secret,arialtoc]{thuthesis} -% -% % 所有其它可能用到的包都统一放到这里了,可以根据自己的实际添加或者删除。 +% %\documentclass[% +% % bachelor|master|doctor, % 蹇呴夐夐」 +% % xetex|pdftex|dvips|dvipdfm, % 鍙夐夐」 +% % secret, +% % openany|openright, +% % arialtoc,arialtitle]{thuthesis} +% +% % 鎵鏈夊叾瀹冨彲鑳界敤鍒扮殑鍖呴兘缁熶竴鏀惧埌杩欓噷浜嗭紝鍙互鏍规嵁鑷繁鐨勫疄闄呮坊鍔犳垨鑰呭垹闄ゃ % \usepackage{thutils} % -% % 你可以在这里修改配置文件中的定义,导言区可以使用中文。 -% % \def\myname{薛瑞尼} +% % 鍙互鍦ㄨ繖閲屼慨鏀归厤缃枃浠朵腑鐨勫畾涔夛紝瀵艰█鍖哄彲浠ヤ娇鐢ㄤ腑鏂囥 +% % \def\myname{钖涚憺灏紏 % % \begin{document} % -% % 定义所有的eps文件在 figures 子目录下 +% % 鎸囧畾鍥剧墖鐨勬悳绱㈢洰褰 % \graphicspath{{figures/}} % % -% %%% 封面部分 +% %%% 灏侀潰閮ㄥ垎 % \frontmatter % \input{data/cover} % \makecover % -% % 目录 +% % 鐩綍 % \tableofcontents % -% % 符号对照表 +% % 绗﹀彿瀵圭収琛 % \input{data/denotation} % % -% %%% 正文部分 +% %%% 姝f枃閮ㄥ垎 % \mainmatter % \include{data/chap01} % \include{data/chap02} % % -% %%% 其它部分 +% %%% 鍏跺畠閮ㄥ垎 % \backmatter -% % 插图索引 +% % 鎻掑浘绱㈠紩 % \listoffigures -% % 表格索引 +% % 琛ㄦ牸绱㈠紩 % \listoftables -% % 公式索引 +% % 鍏紡绱㈠紩 % \listofequations % % -% % 参考文献 +% % 鍙傝冩枃鐚 % \bibliographystyle{thubib} % \bibliography{ref/refs} % % -% % 致谢 +% % 鑷磋阿 % \include{data/ack} % -% % 附录 +% % 闄勫綍 % \begin{appendix} % \input{data/appendix01} % \end{appendix} % -% % 个人简历 +% % 涓汉绠鍘 % \include{data/resume} % \end{document} % \end{example} % -% \subsection{选项} +% \subsection{閫夐」} % \label{sec:option} -% 本模板提供了一些选项以方便使用: +% 鏈ā鏉挎彁渚涗簡涓浜涢夐」浠ユ柟渚夸娇鐢細 % \begin{description} % \item[bachelor] -% 如果写本科论文将此选项打开。 +% 濡傛灉鍐欐湰绉戣鏂囧皢姝ら夐」鎵撳紑銆 % \begin{example} % \documentclass[bachelor]{thuthesis} % \end{example} % % \item[master] -% 如果写硕士论文将此选项打开。 +% 濡傛灉鍐欑澹鏂囧皢姝ら夐」鎵撳紑銆 % \begin{example} % \documentclass[master]{thuthesis} % \end{example} % % \item[doctor] -% 如果写博士论文将此选项打开。 +% 濡傛灉鍐欏崥澹鏂囧皢姝ら夐」鎵撳紑銆 % \begin{example} % \documentclass[doctor]{thuthesis} % \end{example} % % \item[secret] -% 涉秘论文开关。配合另外两个命令~|\secretlevel| 和~|\secretyear| 分别用来指定保 -% 密级别和时间。 二者默认分别为“秘密”和当前年份。可以通过: -% \cs{secretlevel}|{|绝密|}| 和~\cs{secretyear}|{|10|}| 年独立修改。 +% 娑夌璁烘枃寮鍏炽傞厤鍚堝彟澶栦袱涓懡浠 |\secretlevel| 鍜 |\secretyear| 鍒嗗埆鐢ㄦ潵鎸囧畾淇 +% 瀵嗙骇鍒拰鏃堕棿銆備簩鑰呴粯璁ゅ垎鍒负\textbf{绉樺瘑}鍜屽綋鍓嶅勾浠姐傚彲浠ラ氳繃锛 +% \cs{secretlevel}|{|缁濆瘑|}| 鍜 \cs{secretyear}|{|10|}| 骞寸嫭绔嬩慨鏀广 % \begin{example} % \documentclass[bachelor, secret]{thuthesis} % \end{example} % -% \changes{v3.0}{2007/05/12}{不用专门为本科论文生成“提交”版本了。} +% \changes{v3.0}{2007/05/12}{涓嶇敤涓撻棬涓烘湰绉戣鏂囩敓鎴怽textbf{鎻愪氦}鐗堟湰浜嗐倉 % % \item[openany, openright] -% 正规出版物的章节出现在奇数页,也就是右手边的页面,这就是~\texttt{openright}, -% 也是~\thuthesis~的默认选项。在这种情况下,如果前一章的最后一页也是奇数,那么 -% 模板会自动生成一个纯粹的空白页,很多人不是很习惯这种方式,而且学校的格式似乎 -% 更倾向于页面连续,那就是通常所说的~\texttt{openany}。{\fs 目前教务处明确规定 -% 本科论文采用~openright,研究生论文据推断是~openany。}这两个选项不用专门设置, -% \thuthesis{} 会根据当前论文类型自动选择。 -% -% \item[dvips] -% 打开~dvips 支持。如果用~pdflatex~编译,请务必去掉此选项,否则模板会报错。 -% \begin{example} -% \documentclass[master, dvips]{thuthesis} -% \end{example} -% -% \item[dvipdfm] -% 打开~dvipdfm 支持,本选项和~dvips 主要是为了~hyperref 能正确生成书签和链接。 -% \begin{example} -% \documentclass[master, dvipdfm]{thuthesis} -% \end{example} +% 姝h鍑虹増鐗╃殑绔犺妭鍑虹幇鍦ㄥ鏁伴〉锛屼篃灏辨槸鍙虫墜杈圭殑椤甸潰锛岃繖灏辨槸 \texttt{openright}锛 +% 涔熸槸 \thuthesis 鐨勯粯璁ら夐」銆傚湪杩欑鎯呭喌涓嬶紝濡傛灉鍓嶄竴绔犵殑鏈鍚庝竴椤典篃鏄鏁帮紝閭d箞 +% 妯℃澘浼氳嚜鍔ㄧ敓鎴愪竴涓函绮圭殑绌虹櫧椤碉紝寰堝浜轰笉鏄緢涔犳儻杩欑鏂瑰紡锛岃屼笖瀛︽牎鐨勬牸寮忎技涔 +% 鏇村惧悜浜庨〉闈㈣繛缁紝閭e氨鏄氬父鎵璇寸殑 \texttt{openany}銆倇\fs 鐩墠鎵鏈夎鏂囬兘鏄 +% openany銆倉杩欎袱涓夐」涓嶇敤涓撻棬璁剧疆锛孿thuthesis{} 浼氭牴鎹綋鍓嶈鏂囩被鍨嬭嚜鍔ㄩ +% 鎷┿ +% +% \item[dvips,dvipdfm,pdftex,xetex] +% 杩欎簺閫夐」涓昏鏄厤鍚 \pkg{hyperref} 鑳芥纭敓鎴愪功绛惧拰閾炬帴锛屼互鍙婃墍鏈夊叾瀹冨搴曞眰椹卞姩鏈変緷 +% 璧栫殑鍖呫備竴鑸潵璇达紝杩欎簺閫夐」鍙互蹇界暐锛屼笉杩囦竴鏃︽寚瀹氫簡锛屽氨瑕佷繚璇佷娇鐢ㄥ搴旂殑鍛戒护缂 +% 璇戯紝鍚﹀垯妯℃澘浼氭姤閿欍 % % \item[arial] -% 使用真正的~arial 字体。此选项会装载~arial 字体宏包,如果此宏包不存在,就装载 -% ~Helvet。arialtoc 和~arialtitle 不受~arial 的影响。因为一般的~\TeX{} 发行都没 -% 有~arial 字体,所以默认采用~helvet,因为二者效果非常相似。如果你执着的要用 -% ~arial 字体,请参看: -% \href{http://www.mail-archive.com/ctan-ann@dante.de/msg00627.html}{Arial 字体}。 +% 浣跨敤鐪熸鐨 arial 瀛椾綋銆傛閫夐」浼氳杞 arial 瀛椾綋瀹忓寘锛屽鏋滄瀹忓寘涓嶅瓨鍦紝灏辫 +% 杞紿elvet銆俛rialtoc 鍜 arialtitle 涓嶅彈 arial 鐨勫奖鍝嶃傚洜涓轰竴鑸殑 \TeX{} 鍙戣閮 +% 娌℃湁 arial 瀛椾綋锛屾墍浠ラ粯璁ら噰鐢 Helvet锛屽洜涓轰簩鑰呮晥鏋滈潪甯哥浉浼笺傚鏋滀綘鎵х潃鐨勮 +% 鐢╝rial 瀛椾綋锛岃鍙傜湅锛歕href{http://www.mail-archive.com/ctan-ann@dante.de/msg00627.html}{Arial +% 瀛椾綋}銆 % % \item[arialtoc] -% 目录项中的英文是否用~arial 字体。本选项和下一个~\textsl{arialtitle} 都不用用户 -% 操心,模板都自动设置好了。 +% 鐩綍椤癸紙绔犵洰褰曢」闄ゅ锛変腑鐨勮嫳鏂囨槸鍚︾敤 arial 瀛椾綋銆傛湰閫夐」鍜屼笅涓涓 \textsl{arialtitle} 閮戒笉鐢ㄧ敤鎴 +% 鎿嶅績锛屾ā鏉块兘鑷姩璁剧疆濂戒簡銆 % % \item[arialtitle] -% 章节标题中英文是否用~arial 字体(默认打开)。 +% 绔犺妭鏍囬涓嫳鏂囨槸鍚︾敤 arial 瀛椾綋锛堥粯璁ゆ墦寮锛夈 % \end{description} % -% 上面只是给出了简单的用法示例,如果你不明白~\LaTeX{} 的选项究竟是怎么一回事,那 -% 就再补充一下基础知识。 -% -% \subsection{命令} +% \subsection{鍛戒护} % \label{sec:command} -% 模板中的命令分为两类:一是格式控制,二是内容替换。格式控制如字体、字号、字距和 -% 行距。内容替换如姓名、院系、专业、致谢等等。其中内容替换命令居多,而且主要集中 -% 在封面上,其中有以本科论文为最(比硕士和博士论文多了“综合论文训练任务书”一页 -% )。首先来看格式控制命令。 +% 妯℃澘涓殑鍛戒护鍒嗕负涓ょ被锛氫竴鏄牸寮忔帶鍒讹紝浜屾槸鍐呭鏇挎崲銆傛牸寮忔帶鍒跺瀛椾綋銆佸瓧鍙枫佸瓧璺濆拰 +% 琛岃窛銆傚唴瀹规浛鎹㈠濮撳悕銆侀櫌绯汇佷笓涓氥佽嚧璋㈢瓑绛夈傚叾涓唴瀹规浛鎹㈠懡浠ゅ眳澶氾紝鑰屼笖涓昏闆嗕腑 +% 鍦ㄥ皝闈笂锛屽叾涓湁浠ユ湰绉戣鏂囦负鏈锛堟瘮纭曞+鍜屽崥澹鏂囧浜哱textbf{缁煎悎璁烘枃璁粌浠诲姟涔涓 +% 椤碉級銆傞鍏堟潵鐪嬫牸寮忔帶鍒跺懡浠ゃ % -% \subsubsection{基本控制命令} +% \subsubsection{鍩烘湰鎺у埗鍛戒护} % \label{sec:basiccom} % -% \myentry{字体} +% \myentry{瀛椾綋} % \DescribeMacro{\song} % \DescribeMacro{\fs} % \DescribeMacro{\hei} % \DescribeMacro{\kai} % \DescribeMacro{\li} % \DescribeMacro{\you} -% 等分别用来切换宋体、仿宋、黑体、楷体、隶书和幼圆字体。为了兼容不同用户的习惯,模 -% 板还定义了另外一些字体切换命令,对应关系如下: +% 绛夊垎鍒敤鏉ュ垏鎹㈠畫浣撱佷豢瀹嬨侀粦浣撱佹シ浣撱侀毝涔﹀拰骞煎渾瀛椾綋銆備负浜嗗吋瀹逛笉鍚岀敤鎴风殑涔犳儻锛屾ā +% 鏉胯繕瀹氫箟浜嗗彟澶栦竴浜涘瓧浣撳垏鎹㈠懡浠わ紝瀵瑰簲鍏崇郴濡備笅锛 % % \begin{center} % \begin{tabular}{llllll}\hline @@ -748,21 +593,20 @@ % \end{tabular} % \end{center} % -% \begin{example} -% {\song 乾:元,亨,利贞} -% {\fs 初九,潜龙勿用} -% {\hei 九二,见龙在田,利见大人} -% {\kai 九三,君子终日乾乾,夕惕若, -% 厉,无咎} -% {\li 九四,或跃在渊,无咎} -% {\hei 九五,飞龙在天,利见大人} -% {\song 上九,亢龙有悔} -% {\you 用九,见群龙无首,吉} -% \end{example} +% \begin{example} +% {\song 涔撅細鍏冿紝浜紝鍒╄礊} +% {\fs 鍒濅節锛屾綔榫欏嬁鐢▆ +% {\hei 涔濅簩锛岃榫欏湪鐢帮紝鍒╄澶т汉} +% {\kai 涔濅笁锛屽悰瀛愮粓鏃ヤ咕涔撅紝澶曟儠鑻ワ紝鍘夛紝鏃犲拵} +% {\li 涔濆洓锛屾垨璺冨湪娓婏紝鏃犲拵} +% {\hei 涔濅簲锛岄榫欏湪澶╋紝鍒╄澶т汉} +% {\song 涓婁節锛屼孩榫欐湁鎮攠 +% {\you 鐢ㄤ節锛岃缇ら緳鏃犻锛屽悏} +% \end{example} % -% \myentry{字号} +% \myentry{瀛楀彿} % \DescribeMacro{\chuhao} -% 等命令定义一组字体大小,分别为: +% 绛夊懡浠ゅ畾涔変竴缁勫瓧浣撳ぇ灏忥紝鍒嗗埆涓猴細 % % \begin{center} % \begin{tabular}{lllll} @@ -774,50 +618,52 @@ % \end{tabular} % \end{center} % -% 使用方法为:\cs{command}\oarg{num},其中~|command| 为字号命令,|num| 为行距。比 -% 如~|\xiaosi[1.5]| 表示选择小四字体,行距~1.5 倍。表格中的字体是~\cs{dawu},如果 -% 你不使用类~tabular 环境,那么就需要自己调整表格中的字号。 +% 浣跨敤鏂规硶涓猴細\cs{command}\oarg{num}锛屽叾涓 |command| 涓哄瓧鍙峰懡浠わ紝|num| 涓鸿璺濄傛瘮 +% 濡 |\xiaosi[1.5]| 琛ㄧず閫夋嫨灏忓洓瀛椾綋锛岃璺 1.5 鍊嶃傚啓浣滄寚鍗楄姹傝〃鏍间腑鐨勫瓧浣 +% 鏄 \cs{dawu}锛屾ā鏉垮凡缁忚缃ソ浜嗐 % -% \begin{example} -% {\erhao 二号 \sanhao 三号 \sihao 四号 \qihao 七号} -% \end{example} +% \begin{example} +% {\erhao 浜屽彿 \sanhao 涓夊彿 \sihao 鍥涘彿 \qihao 涓冨彿} +% \end{example} % -% \myentry{字距} +% \myentry{瀛楄窛} % \DescribeMacro{\ziju} -% 更改汉字之间默认的距离,使用格式为~|\ziju{4bp}|,其中的距离只要是合格的~\TeX{} 距离即可。 +% 鏇存敼姹夊瓧涔嬮棿榛樿鐨勮窛绂伙紝浣跨敤鏍煎紡涓 |\ziju{4bp}|锛屽叾涓殑璺濈鍙鏄悎鏍肩殑 \TeX{} 璺濈鍗冲彲銆 % -% \myentry{密级} +% \myentry{瀵嗙骇} % \DescribeMacro{\secretlevel} % \DescribeMacro{\secretyear} -% 定义秘密级别和年限: +% 瀹氫箟绉樺瘑绾у埆鍜屽勾闄愶細 % \begin{example} % \secretyear{5} -% \secretlevel{内部} +% \secretlevel{鍐呴儴} % \end{example} % -% \myentry{引用方式} +% \myentry{寮曠敤鏂瑰紡} % \DescribeMacro{\onlinecite} -% 学校要求的参考文献引用有两种模式:1)上标模式。比如“同样的工作有很多$^{[1,2]}$\ldots” -% 。2)正文模式。比如“文[3] 中详细说明了\ldots”。其中上标模式使用远比正文模式频 -% 繁,所以为了符合使用习惯,上标模式仍然用常规的~|\cite{key}|,而~|\onlinecite{key}| 则用来生成正文模式。 + +% 瀛︽牎瑕佹眰鐨勫弬鑰冩枃鐚紩鐢ㄦ湁涓ょ妯″紡锛氾紙1锛変笂鏍囨ā寮忋傛瘮濡俙`鍚屾牱鐨勫伐浣滄湁寰 +% 澶$^{[1,2]}$\ldots''銆傦紙2锛夋鏂囨ā寮忋傛瘮濡俙`鏂嘯3] 涓缁嗚鏄庝簡\ldots''銆傚叾涓笂鏍 +% 妯″紡浣跨敤杩滄瘮姝f枃妯″紡棰戠箒锛屾墍浠ヤ负浜嗙鍚堜娇鐢ㄤ範鎯紝涓婃爣妯″紡浠嶇劧鐢ㄥ父瑙 +% 鐨 |\cite{key}|锛岃 |\onlinecite{key}| 鍒欑敤鏉ョ敓鎴愭鏂囨ā寮忋 % -% 关于参考文献模板推荐使用~BIB\TeX,关于中文参考文献需要额外增加一个~Entry: lang -% ,将其设置为~\texttt{zh} 用来指示此参考文献为中文,以便~thubib.bst~处理。如: +% 鍏充簬鍙傝冩枃鐚ā鏉挎帹鑽愪娇鐢 BIB\TeX锛屽叧浜庝腑鏂囧弬鑰冩枃鐚渶瑕侀澶栧鍔犱竴涓 Entry: lang锛屽皢鍏惰缃负 \texttt{zh} +% 鐢ㄦ潵鎸囩ず姝ゅ弬鑰冩枃鐚负涓枃锛屼互渚 thubib.bst 澶勭悊銆傚锛 % \begin{example} % @INPROCEEDINGS{cnproceed, -% author = {王重阳 and 黄药师 and 欧阳峰 and 洪七公 and 段皇帝}, -% title = {武林高手从入门到精通}, -% booktitle = {第~$N$~次华山论剑}, +% author = {鐜嬮噸闃 and 榛勮嵂甯 and 娆ч槼宄 and 娲竷鍏 and 娈电殗甯潁, +% title = {姝︽灄楂樻墜浠庡叆闂ㄥ埌绮鹃殅, +% booktitle = {绗瑍$N$~娆″崕灞辫鍓憓, % year = 2006, -% address = {西安, 中国}, +% address = {瑗垮畨, 涓浗}, % month = sep, % lang = "zh", % } % % @ARTICLE{cnarticle, -% AUTHOR = "贾宝玉 and 林黛玉 and 薛宝钗 and 贾探春", -% TITLE = "论刘姥姥食量大如牛之现实意义", -% JOURNAL = "红楼梦杂谈", +% AUTHOR = "璐惧疂鐜 and 鏋楅粵鐜 and 钖涘疂閽 and 璐炬帰鏄", +% TITLE = "璁哄垬濮ュД椋熼噺澶у鐗涗箣鐜板疄鎰忎箟", +% JOURNAL = "绾㈡ゼ姊︽潅璋", % PAGES = "260--266", % VOLUME = "224", % YEAR = "1800", @@ -825,218 +671,210 @@ % } % \end{example} % -% 如果你坚持自己写~\cs{bibitem},我也没有办法,祝你好运!\footnote{由于调整某篇文 -% 献的引用顺序而导致其后所有文献引用序号统统发生变化而带来的繁重的而且极容易出 -% 错的体力劳动谁也帮不了你。} -% -% \myentry{书脊} +% \myentry{涔﹁剨} % \DescribeMacro{\shuji} -% 生成装订的书脊,为竖排格式,默认参数为论文中文题目。如果中文题目中没有英文字母, -% 那么直接调用此命令即可。否则,就要像例子里面那样做一些微调。其实这个命令在独立 -% 的文件生成更好一些,不要和论文混在一起(看到模板自带的~shuji.tex 了么?)。下面 -% 是一个列子: +% 鐢熸垚瑁呰鐨勪功鑴婏紝涓虹珫鎺掓牸寮忥紝榛樿鍙傛暟涓鸿鏂囦腑鏂囬鐩傚鏋滀腑鏂囬鐩腑娌℃湁鑻辨枃瀛楁瘝锛 +% 閭d箞鐩存帴璋冪敤姝ゅ懡浠ゅ嵆鍙傚惁鍒欙紝灏辫鍍忎緥瀛愰噷闈㈤偅鏍峰仛涓浜涘井璋冿紙鍙傜湅妯℃澘鑷甫 +% 鐨 shuji.tex锛夈備笅闈㈡槸涓涓垪瀛愶細 % \begin{example} % \documentclass[bachelor]{thuthesis} % \begin{document} -% \ctitle{论文中文题目} -% \cauthor{中文姓名} -% % |\shuji| 命令需要上面两个变量 +% \ctitle{璁烘枃涓枃棰樼洰} +% \cauthor{涓枃濮撳悕} +% % |\shuji| 鍛戒护闇瑕佷笂闈袱涓彉閲 % \shuji % -% % 如果你的中文标题中有英文,那可以指定: -% \shuji[清华大学~\hspace{0.2em}\raisebox{2pt}{\LaTeX}% -% \hspace{-0.25em} 论文模板~\hspace{0.1em}\raisebox{2pt}% -% {v\version}\hspace{-0.25em}样例] +% % 濡傛灉浣犵殑涓枃鏍囬涓湁鑻辨枃锛岄偅鍙互鎸囧畾锛 +% \shuji[娓呭崕澶у~\hspace{0.2em}\raisebox{2pt}{\LaTeX}% +% \hspace{-0.25em} 璁烘枃妯℃澘 \hspace{0.1em}\raisebox{2pt}% +% {v\version}\hspace{-0.25em}鏍蜂緥] % \end{document} % \end{example} % -% \myentry{破折号} \DescribeMacro{\pozhehao} 中文破折号在~CJK-\LaTeX\ 里没有很好 -% 的处理,我们平时输入的都是两个小短线,比如这样,{\hei 中国——中华人民共和国}。 -% 这不符合中文习惯。所以这里定义了一个命令生成更好看的破折号,不过这似乎不是一个 -% 好的解决办法。有同学说不能用在~|\section| 等命令中使用,可以提供 -% 一个不带破折号的段标题:\cs{section}\oarg{没有破折号精简标题}\marg{带破折号的 -% 标题}。 -% -% \subsubsection{封面命令} -% \label{sec:titlepage} +% \myentry{鐮存姌鍙穧 +% \DescribeMacro{\pozhehao} +% 涓枃鐮存姌鍙峰湪 CJK-\LaTeX\ 閲屾病鏈夊緢濂界殑澶勭悊锛屾垜浠钩鏃惰緭鍏ョ殑閮芥槸涓や釜灏忕煭绾匡紝姣斿杩 +% 鏍凤紝{\hei 涓浗鈥斺斾腑鍗庝汉姘戝叡鍜屽浗}銆傝繖涓嶇鍚堜腑鏂囦範鎯傛墍浠ヨ繖閲屽畾涔変簡涓涓懡浠ょ敓鎴愭洿 +% 濂界湅鐨勭牬鎶樺彿锛屼笉杩囪繖浼间箮涓嶆槸涓涓ソ鐨勮В鍐冲姙娉曘傛湁鍚屽璇翠笉鑳界敤鍦 |\section| 绛夊懡 +% 浠や腑浣跨敤锛岀畝鍗曠殑鍔炴硶鏄彲浠ユ彁渚涗竴涓笉甯︾牬鎶樺彿鐨勬鏍囬锛歕cs{section}\oarg{娌℃湁鐮 +% 鎶樺彿绮剧畝鏍囬}\marg{甯︾牬鎶樺彿鐨勬爣棰榼銆 % -% 下面是内容替换命令,其中以~|c| 开头的命令跟中文相关,|e| 开头则为对应的英文。 -% 这部分的命令数目比较多,但实际上都相当简单,套用即可。 % -% 大多数命令的使用方法都是: \cs{command}\marg{arg},例外者将具体指出。这些命令都 -% 在示例文档的~data/cover.tex 中。 +% \subsubsection{灏侀潰鍛戒护} +% \label{sec:titlepage} +% 涓嬮潰鏄唴瀹规浛鎹㈠懡浠わ紝鍏朵腑浠 |c| 寮澶寸殑鍛戒护璺熶腑鏂囩浉鍏筹紝|e| 寮澶村垯涓哄搴旂殑鑻辨枃銆 +% 杩欓儴鍒嗙殑鍛戒护鏁扮洰姣旇緝澶氾紝浣嗗疄闄呬笂閮界浉褰撶畝鍗曪紝濂楃敤鍗冲彲銆 % +% 澶у鏁板懡浠ょ殑浣跨敤鏂规硶閮芥槸锛 \cs{command}\marg{arg}锛屼緥澶栬呭皢鍏蜂綋鎸囧嚭銆傝繖浜涘懡浠ら兘 +% 鍦ㄧず渚嬫枃妗g殑 data/cover.tex 涓 % -% \myentry{论文标题} +% \myentry{璁烘枃鏍囬} % \DescribeMacro{\ctitle} % \DescribeMacro{\etitle} % \begin{example} -% \ctitle{在这里写论文中文题目} -% \etitle{and here for the English title} +% \ctitle{璁烘枃涓枃棰樼洰} +% \etitle{Thesis English Title} % \end{example} % -% \myentry{作者姓名} +% \myentry{浣滆呭鍚峿 % \DescribeMacro{\cauthor} % \DescribeMacro{\eauthor} % \begin{example} -% \cauthor{这是您的大名} -% \eauthor{Here is your name in PinYin} +% \cauthor{涓枃濮撳悕} +% \eauthor{Your name in PinYin} % \end{example} % -% \myentry{申请学位名称} +% \myentry{鐢宠瀛︿綅鍚嶇О} % \DescribeMacro{\cdegree} % \DescribeMacro{\edegree} % \begin{example} -% \cdegree{您要申请什么学位} +% \cdegree{鎮ㄨ鐢宠浠涔堝浣峿 % \edegree{degree in English} % \end{example} % -% \myentry{院系名称} -% \DescribeMacro{\cdepartment} 旧版本中为~\DescribeMacro{\caffil}\unskip; -% \DescribeMacro{\edepartment} 旧版本中为~\DescribeMacro{\eaffil} +% \myentry{闄㈢郴鍚嶇О} +% \DescribeMacro{\cdepartment} +% \DescribeMacro{\edepartment} % -% \cs{cdepartment} 可以加一个可选参数,如:\cs{cdepartmentl}\oarg{精简}\marg{详 -% 细},主要针对本科生的“综合论文训练”部分,因为需要填写的空间有限,最好给出一 -% 个详细和精简院系名称,如“计算机科学与技术”和“计算机”。 +% \cs{cdepartment} 鍙互鍔犱竴涓彲閫夊弬鏁帮紝濡傦細\cs{cdepartmentl}\oarg{绮剧畝}\marg{璇 +% 缁唥锛屼富瑕侀拡瀵规湰绉戠敓鐨刓textbf{缁煎悎璁烘枃璁粌}閮ㄥ垎锛屽洜涓洪渶瑕佸~鍐欑殑绌洪棿鏈夐檺锛屾渶濂 +% 缁欏嚭涓涓缁嗗拰绮剧畝闄㈢郴鍚嶇О锛屽\textbf{璁$畻鏈虹瀛︿笌鎶鏈瘆鍜孿textbf{璁$畻鏈簘銆 % \begin{example} -% \cdepartment[系名简称]{贵系是?} -% \edepartment{what's you department} +% \cdepartment[绯诲悕绠绉癩{绯诲悕鍏ㄧО} +% \edepartment{Department} % \end{example} % -% \myentry{专业名称} -% \DescribeMacro{\cmajor} 旧版本中为~\DescribeMacro{\csubject}; -% \DescribeMacro{\emajor} 旧版本中为~\DescribeMacro{\esubject} +% \myentry{涓撲笟鍚嶇О} +% \DescribeMacro{\cmajor} +% \DescribeMacro{\emajor} % \begin{example} -% \cmajor{您的专业} -% \emajor{major in English} +% \cmajor{涓撲笟鍚嶇О} +% \emajor{Major in English} % \end{example} % -% \myentry{导师姓名} +% \myentry{瀵煎笀濮撳悕} % \DescribeMacro{\csupervisor} % \DescribeMacro{\esupervisor} % \begin{example} -% \csupervisor{老板} -% \esupervisor{boss} +% \csupervisor{澶ц佹澘} +% \esupervisor{Supervisor} % \end{example} % -% \myentry{副导师姓名} +% \myentry{鍓甯堝鍚峿 % \DescribeMacro{\cassosupervisor} % \DescribeMacro{\eassosupervisor} -% 本科生的辅导教师,硕士的副指导教师。 +% 鏈鐢熺殑杈呭鏁欏笀锛岀澹殑鍓寚瀵兼暀甯堛 % \begin{example} -% \cassosupervisor{二老板} -% \eassosupervisor{second boss} +% \cassosupervisor{灏忚佹澘} +% \eassosupervisor{Small Boss} % \end{example} % -% \myentry{联合导师} +% \myentry{鑱斿悎瀵煎笀} % \DescribeMacro{\ccosupervisor} % \DescribeMacro{\ecosupervisor} -% 硕士生联合指导教师,博士生联合导师。 +% 纭曞+鐢熻仈鍚堟寚瀵兼暀甯堬紝鍗氬+鐢熻仈鍚堝甯堛 % \begin{example} -% \ccosupervisor{小老板} -% \ecosupervisor{small boss} +% \ccosupervisor{灏忓皬鑰佹澘} +% \ecosupervisor{Tiny Boss} % \end{example} % -% \myentry{论文成文日期} +% \myentry{璁烘枃鎴愭枃鏃ユ湡} % \DescribeMacro{\cdate} % \DescribeMacro{\edate} -% 默认为当前时间,也可以自己指定。 +% 榛樿涓哄綋鍓嶆椂闂达紝涔熷彲浠ヨ嚜宸辨寚瀹氥 % \begin{example} -% \cdate{你真的不必自己指定这个时间} -% \edate{let thuthesis do it!} +% \cdate{涓枃鏃ユ湡} +% \edate{English Date} % \end{example} % -% \myentry{摘要} +% \myentry{鎽樿} % \DescribeEnv{cabstract} % \DescribeEnv{eabstract} % \begin{example} % \begin{cabstract} -% 您的摘要请写在这里 +% 鎽樿璇峰啓鍦ㄨ繖閲... % \end{cabstract} % \begin{eabstract} -% here comes English abstract +% here comes English abstract... % \end{eabstract} % \end{example} % -% \myentry{关键词} +% \myentry{鍏抽敭璇峿 % \DescribeMacro{\ckeywords} % \DescribeMacro{\ekeywords} -% 关键词用英文逗号分割写入相应的命令中,模板会解析各关键词并生成符合不同论文格式 -% 要求的关键词格式。 +% 鍏抽敭璇嶇敤鑻辨枃閫楀彿鍒嗗壊鍐欏叆鐩稿簲鐨勫懡浠や腑锛屾ā鏉夸細瑙f瀽鍚勫叧閿瘝骞剁敓鎴愮鍚堜笉鍚岃鏂囨牸寮 +% 瑕佹眰鐨勫叧閿瘝鏍煎紡銆 % \begin{example} -% \ckeywords{关键词, 填在这里} -% \ekeywords{keywords, come here} +% \ckeywords{鍏抽敭璇 1, 鍏抽敭璇 2} +% \ekeywords{keyword 1, key word 2} % \end{example} % -% \subsubsection{其它部分} +% \subsubsection{鍏跺畠閮ㄥ垎} % \label{sec:otherparts} -% 论文其它主要部分命令: +% 璁烘枃鍏跺畠涓昏閮ㄥ垎鍛戒护锛 % -% \myentry{符号对照表} +% \myentry{绗﹀彿瀵圭収琛▆ % \DescribeEnv{denotation} -% 主要符号表环境。简单定义的一个~list,跟~description 非常类似,使用方法参见示例 -% 文件。带一个可选参数,用来指定符号列的宽度(默认为~2.5cm)。 +% 涓昏绗﹀彿琛ㄧ幆澧冦傜畝鍗曞畾涔夌殑涓涓 list锛岃窡 description 闈炲父绫讳技锛屼娇鐢ㄦ柟娉曞弬瑙佺ず渚 +% 鏂囦欢銆傚甫涓涓彲閫夊弬鏁帮紝鐢ㄦ潵鎸囧畾绗﹀彿鍒楃殑瀹藉害锛堥粯璁や负 2.5cm锛夈 % \begin{example} % \begin{denotation} -% \item[E] 能量 -% \item[m] 质量 -% \item[c] 光速 +% \item[E] 鑳介噺 +% \item[m] 璐ㄩ噺 +% \item[c] 鍏夐 % \end{denotation} % \end{example} % -% 如果你觉得符号列的宽度不满意,那可以这样来调整: +% 濡傛灉浣犺寰楃鍙峰垪鐨勫搴︿笉婊℃剰锛岄偅鍙互杩欐牱鏉ヨ皟鏁达細 % \begin{example} -% \begin{denotation}[1.5cm] % 设置为 1.5cm -% \item[E] 能量 -% \item[m] 质量 -% \item[c] 光速 +% \begin{denotation}[1.5cm] % 璁剧疆涓 1.5cm +% \item[E] 鑳介噺 +% \item[m] 璐ㄩ噺 +% \item[c] 鍏夐 % \end{denotation} % \end{example} % -% \myentry{索引} -% 插图、表格和公式三个索引命令分别如下,将其插入到期望的位置即可(带星号的命令表 -% 示对应的索引表不会出现在目录中): +% \myentry{绱㈠紩} +% 鎻掑浘銆佽〃鏍煎拰鍏紡涓変釜绱㈠紩鍛戒护鍒嗗埆濡備笅锛屽皢鍏舵彃鍏ュ埌鏈熸湜鐨勪綅缃嵆鍙紙甯︽槦鍙风殑鍛戒护琛 +% 绀哄搴旂殑绱㈠紩琛ㄤ笉浼氬嚭鐜板湪鐩綍涓級锛 % % \begin{center} % \begin{tabular}{ll} % \hline -% {\hei 命令} & {\hei 说明} \\\hline -% \cs{listoffigures} & 插图索引\\ +% {\hei 鍛戒护} & {\hei 璇存槑} \\\hline +% \cs{listoffigures} & 鎻掑浘绱㈠紩\\ % \cs{listoffigures*} & \\\hline -% \cs{listoftables} & 表格索引\\ +% \cs{listoftables} & 琛ㄦ牸绱㈠紩\\ % \cs{listoftables*} & \\\hline -% \cs{listofequations} & 公式索引\\ +% \cs{listofequations} & 鍏紡绱㈠紩\\ % \cs{listofequations*} & \\\hline % \end{tabular} % \end{center} % -% \LaTeX{} 默认支持插图和表格索引,是通过~\cs{caption} 命令完成的,因此它们必须出现在浮动环境中 -% ,否则不被计数。 -% -% 有的同学不想让某个表格或者图片出现在索引里面,那么请使用命令~\cs{caption*}, -% 这个命令不会给表格编号,也就是出来的只有标题文字而没有“表~xx”,“图~xx”,否则 -% 索引里面序号不连续就显得不伦不类,这也是~\LaTeX{} 里星号命令默认的规则。 -% -% 有这种需求的多是本科同学的英文资料翻译部分,如果你觉得附录中英文原文中的表格和 -% 图片显示成“表”和“图”很不协调的话,一个很好的办法还是用~\cs{caption*},参数 -% 随便自己写,具体用法请参看示例文档。 -% -% 如果你的确想让它编号,但又不想让它出现在索引中的话,那就自己改一改模板的代码吧, -% 我目前不打算给模板增加这种另类命令\footnote{\thuthesis{} 在教务处和研究生院写 -% 作指南的“导引”下,已经够不伦不类了。我记的有个人在网上说“~\thuthesis{} 的 -% 模版不断要向学校难看的规定妥协!”是啊,除此之外,我又能怎样做呢?提点建议人 -% 家都不愿意听。}。 -% -% 公式索引为本模板扩展,模板扩展了~\pkg{amsmath} 几个内部命令,使得公式编号样式和 -% 自动索引功能非常方便。一般来说,你用到的所有数学环境编号都没问题了, 这个可以 -% 参看示例文档。如果你有个非常特殊的数学环境需要加入公式索引,那么请使用 -% ~\cs{equcaption}\marg{编号}。此命令表示~equation caption,带一个参数,即显示在 -% 索引中的编号。因为公式与图表不同,我们很少给一个公式附加一个标题,之所以起这么 -% 个名字是因为图表就是通过~\cs{caption} 加入索引的,\cs{equcaption} 完全就是为了 -% 生成公式列表,不产生什么标题。 -% -% 使用方法如下。假如有一个非~equation 数学环境~mymath,只要在其中写一句 -% ~\cs{equcaption} 就可以将它加入公式列表。 +% \LaTeX{} 榛樿鏀寔鎻掑浘鍜岃〃鏍肩储寮曪紝鏄氳繃 \cs{caption} 鍛戒护瀹屾垚鐨勶紝鍥犳瀹冧滑蹇呴』鍑 +% 鐜板湪娴姩鐜涓紝鍚﹀垯涓嶈璁℃暟銆 +% +% 鏈夌殑鍚屽涓嶆兂璁╂煇涓〃鏍兼垨鑰呭浘鐗囧嚭鐜板湪绱㈠紩閲岄潰锛岄偅涔堣浣跨敤鍛戒护 \cs{caption*}锛岃繖 +% 涓懡浠や笉浼氱粰琛ㄦ牸缂栧彿锛屼篃灏辨槸鍑烘潵鐨勫彧鏈夋爣棰樻枃瀛楄屾病鏈塦`琛▇xx''锛宍`鍥緙xx''锛屽惁鍒 +% 绱㈠紩閲岄潰搴忓彿涓嶈繛缁氨鏄惧緱涓嶄鸡涓嶇被锛岃繖涔熸槸 \LaTeX{} 閲屾槦鍙峰懡浠ら粯璁ょ殑瑙勫垯銆 +% +% 鏈夎繖绉嶉渶姹傜殑澶氭槸鏈鍚屽鐨勮嫳鏂囪祫鏂欑炕璇戦儴鍒嗭紝濡傛灉浣犺寰楅檮褰曚腑鑻辨枃鍘熸枃涓殑琛ㄦ牸鍜 +% 鍥剧墖鏄剧ず鎴恅`琛''鍜宍`鍥''寰堜笉鍗忚皟鐨勮瘽锛屼竴涓緢濂界殑鍔炴硶杩樻槸鐢 \cs{caption*}锛屽弬鏁 +% 闅忎究鑷繁鍐欙紝鍏蜂綋鐢ㄦ硶璇峰弬鐪嬬ず渚嬫枃妗c +% +% 濡傛灉浣犵殑纭兂璁╁畠缂栧彿锛屼絾鍙堜笉鎯宠瀹冨嚭鐜板湪绱㈠紩涓殑璇濓紝閭e氨鑷繁鏀逛竴鏀规ā鏉跨殑浠g爜鍚э紝 +% 鎴戠洰鍓嶄笉鎵撶畻缁欐ā鏉垮鍔犺繖绉嶅彟绫诲懡浠ゃ +% +% 鍏紡绱㈠紩涓烘湰妯℃澘鎵╁睍锛屾ā鏉挎墿灞曚簡 \pkg{amsmath} 鍑犱釜鍐呴儴鍛戒护锛屼娇寰楀叕寮忕紪鍙锋牱寮忓拰 +% 鑷姩绱㈠紩鍔熻兘闈炲父鏂逛究銆備竴鑸潵璇达紝浣犵敤鍒扮殑鎵鏈夋暟瀛︾幆澧冪紪鍙烽兘娌¢棶棰樹簡锛岃繖涓彲浠ュ弬 +% 鐪嬬ず渚嬫枃妗c傚鏋滀綘鏈変釜闈炲父鐗规畩鐨勬暟瀛︾幆澧冮渶瑕佸姞鍏ュ叕寮忕储寮曪紝閭d箞璇蜂娇 +% 鐢 \cs{equcaption}\marg{缂栧彿}銆傛鍛戒护琛ㄧず equation caption锛屽甫涓涓弬鏁帮紝鍗虫樉绀 +% 鍦ㄧ储寮曚腑鐨勭紪鍙枫傚洜涓哄叕寮忎笌鍥捐〃涓嶅悓锛屾垜浠緢灏戠粰涓涓叕寮忛檮鍔犱竴涓爣棰橈紝涔嬫墍浠ヨ捣杩 +% 涔堜釜鍚嶅瓧鏄洜涓哄浘琛ㄥ氨鏄氳繃 \cs{caption} 鍔犲叆绱㈠紩鐨勶紝\cs{equcaption} 瀹屽叏灏辨槸涓 +% 浜嗙敓鎴愬叕寮忓垪琛紝涓嶄骇鐢熶粈涔堟爣棰樸 +% +% 浣跨敤鏂规硶濡備笅銆傚亣濡傛湁涓涓潪 equation 鏁板鐜 mymath锛屽彧瑕佸湪鍏朵腑鍐欎竴 +% 鍙 \cs{equcaption} 灏卞彲浠ュ皢瀹冨姞鍏ュ叕寮忓垪琛ㄣ % \begin{example} % \begin{mymath} % \label{eq:emc2}\equcaption{\ref{eq:emc2}} @@ -1044,22 +882,22 @@ % \end{mymath} % \end{example} % -% 当然~mymath 正文中公式的编号需要你自己来做。 +% 褰撶劧 mymath 姝f枃涓叕寮忕殑缂栧彿闇瑕佷綘鑷繁鏉ュ仛銆 % -% 同图表一样,附录中的公式有时候也不希望它跟全文统一编号,而且不希望它出现在公式 -% 索引中,目前的解决办法就是利用~\cs{tag*}\marg{公式编号} 来解决。用法很简单,此 -% 处不再罗嗦,实例请参看示例文档附录~A 的前两个公式。 +% 鍚屽浘琛ㄤ竴鏍凤紝闄勫綍涓殑鍏紡鏈夋椂鍊欎篃涓嶅笇鏈涘畠璺熷叏鏂囩粺涓缂栧彿锛岃屼笖涓嶅笇鏈涘畠鍑虹幇鍦ㄥ叕寮 +% 绱㈠紩涓紝鐩墠鐨勮В鍐冲姙娉曞氨鏄埄鐢 \cs{tag*}\marg{鍏紡缂栧彿} 鏉ヨВ鍐炽傜敤娉曞緢绠鍗曪紝姝 +% 澶勪笉鍐嶇綏鍡︼紝瀹炰緥璇峰弬鐪嬬ず渚嬫枃妗i檮褰 A 鐨勫墠涓や釜鍏紡銆 % -% \myentry{简历} +% \myentry{绠鍘唥 % \DescribeEnv{resume}\DescribeMacro{\resumeitem} -% 开启个人简历章节,包括发表文章列表等。其实就是一个~chapter。里面的每个子项目请用命令~|\resumeitem{sub title}|。 +% 寮鍚釜浜虹畝鍘嗙珷鑺傦紝鍖呮嫭鍙戣〃鏂囩珷鍒楄〃绛夈傚叾瀹炲氨鏄竴涓 chapter銆傞噷闈㈢殑姣忎釜瀛愰」鐩鐢ㄥ懡浠 |\resumeitem{sub title}|銆 % -% 这里我就不再列举例子了,请参看示例文档的~data/resume.tex。 +% 杩欓噷灏变笉鍐嶅垪涓句緥瀛愪簡锛岃鍙傜湅绀轰緥鏂囨。鐨 data/resume.tex銆 % -% \myentry{附录} +% \myentry{闄勫綍} % \DescribeEnv{appendix} -% 所有的附录都插到这里来。因为附录会更改默认的~chapter 属性,而后面的 -% {\hei 个人简历}又需要恢复,所以实现为环境可以保证全局的属性不受影响。 +% 鎵鏈夌殑闄勫綍閮芥彃鍒拌繖閲屾潵銆傚洜涓洪檮褰曚細鏇存敼榛樿鐨 chapter 灞炴э紝鑰屽悗闈㈢殑{\hei 涓汉绠 +% 鍘唥鍙堥渶瑕佹仮澶嶏紝鎵浠ュ疄鐜颁负鐜鍙互淇濊瘉鍏ㄥ眬鐨勫睘鎬т笉鍙楀奖鍝嶃 % \begin{example} % \begin{appendix} % \input{data/appendix01} @@ -1067,134 +905,123 @@ % \end{appendix} % \end{example} % -% \myentry{致谢声明} +% \myentry{鑷磋阿澹版槑} % \DescribeEnv{ack} -% \changes{2.0}{2005/12/19}{把~acknowledge 改为~ack,简单而已。} -% 把致谢做成一个环境更好一些,直接往里面写感谢的话就可以啦!下面是数学系一位同 -% 学致谢里的话,拿过来做个广告,多希望每个人都能写这么一句啊! +% 鎶婅嚧璋㈠仛鎴愪竴涓幆澧冩洿濂戒竴浜涳紝鐩存帴寰閲岄潰鍐欐劅璋㈢殑璇濆氨鍙互鍟︼紒涓嬮潰鏄暟瀛︾郴涓浣嶅悓 +% 瀛﹁嚧璋㈤噷鐨勮瘽锛屾嬁杩囨潵鍋氫釜骞垮憡锛屽甯屾湜姣忎釜浜洪兘鑳藉啓杩欎箞涓鍙ュ晩锛 % \begin{example} % \begin{ack} -% …… -% 还要特别感谢计算机系薛瑞尼同学在论文格式和~\LaTeX{} 编译等方面给我的很多帮助! +% 鈥︹ +% 杩樿鐗瑰埆鎰熻阿璁$畻鏈虹郴钖涚憺灏煎悓瀛﹀湪璁烘枃鏍煎紡鍜 \LaTeX{} 缂栬瘧绛夋柟闈㈢粰鎴戠殑寰堝甯姪锛 % \end{ack} % \end{example} % -% \myentry{列表环境} +% \myentry{鍒楄〃鐜} % \DescribeEnv{itemize} % \DescribeEnv{enumerate} % \DescribeEnv{description} -% 为了适合中文喜欢,模板将这三个常用的列表环境用~\pkg{paralist} 对应的压缩环境替换。一 -% 方面满足了多余空间的清楚,另一方面可以自己指定标签的样式和符号。细节请参看 -% ~\pkg{paralist} 文档,此处不再赘述。 +% 涓轰簡閫傚悎涓枃涔犳儻锛屾ā鏉垮皢杩欎笁涓父鐢ㄧ殑鍒楄〃鐜鐢 \pkg{paralist} 瀵瑰簲鐨勫帇缂╃幆澧冩浛 +% 鎹€備竴鏂归潰婊¤冻浜嗗浣欑┖闂寸殑娓呮锛屽彟涓鏂归潰鍙互鑷繁鎸囧畾鏍囩鐨勬牱寮忓拰绗﹀彿銆傜粏鑺傝鍙 +% 鐪 \pkg{paralist} 鏂囨。锛屾澶勪笉鍐嶈禈杩般 % -% \changes{v3.0}{2007/05/12}{没有了综合论文训练页面,很多本科论文专用命令就消失了。} +% \changes{v3.0}{2007/05/12}{娌℃湁浜嗙患鍚堣鏂囪缁冮〉闈紝寰堝鏈璁烘枃涓撶敤鍛戒护灏辨秷澶变簡銆倉 % -% \subsection{数学环境} +% \subsection{鏁板鐜} % \label{sec:math} -% \thuthesis{} 定义了常用的数学环境: +% \thuthesis{} 瀹氫箟浜嗗父鐢ㄧ殑鏁板鐜锛 % % \begin{center} % \begin{tabular}{*{7}{l}}\hline % axiom & theorem & definition & proposition & lemma & conjecture &\\ -% 公理 & 定理 & 定义 & 命题 & 引理 & 猜想 &\\\hline +% 鍏悊 & 瀹氱悊 & 瀹氫箟 & 鍛介 & 寮曠悊 & 鐚滄兂 &\\\hline % proof & corollary & example & exercise & assumption & remark & problem \\ -% 证明 & 推论 & 例子& 练习 & 假设 & 注释 & 问题\\\hline +% 璇佹槑 & 鎺ㄨ & 渚嬪瓙& 缁冧範 & 鍋囪 & 娉ㄩ噴 & 闂\\\hline % \end{tabular} % \end{center} % -% 比如: +% 姣斿锛 % \begin{example} % \begin{definition} -% 道千乘之国,敬事而信,节用而爱人,使民以时。 +% 閬撳崈涔樹箣鍥斤紝鏁簨鑰屼俊锛岃妭鐢ㄨ岀埍浜猴紝浣挎皯浠ユ椂銆 % \end{definition} % \end{example} -% 产生(自动编号):\\[5pt] -% \fbox{{\hei 定义~1.1~~~} {道千乘之国,敬事而信,节用而爱人,使民以时。}} +% 浜х敓锛堣嚜鍔ㄧ紪鍙凤級锛歕\[5pt] +% \fbox{{\hei 瀹氫箟~1.1~~~} {閬撳崈涔樹箣鍥斤紝鏁簨鑰屼俊锛岃妭鐢ㄨ岀埍浜猴紝浣挎皯浠ユ椂銆倉} % -% 当然我能想到的数学环境是有限的,如果你想用“胡说”这样的数学环境,那么很容易定 -% 义: +% 鍒椾妇鍑烘潵鐨勬暟瀛︾幆澧冩瘯绔熸槸鏈夐檺鐨勶紝濡傛灉鎯崇敤{\hei 鑳¤}杩欐牱鐨勬暟瀛︾幆澧冿紝閭d箞寰堝鏄撳畾涔夛細 % \begin{example} -% \newtheorem{nonsense}{胡说}[chapter] +% \newtheorem{nonsense}{鑳¤}[chapter] % \end{example} % -% 然后这样使用: +% 鐒跺悗杩欐牱浣跨敤锛 % \begin{example} % \begin{nonsense} -% 契丹武士要来中原夺武林秘笈。\pozhehao 慕容博 +% 濂戜腹姝﹀+瑕佹潵涓師澶烘鏋楃绗堛俓pozhehao 鎱曞鍗 % \end{nonsense} % \end{example} -% 产生(自动编号):\\[5pt] -% \fbox{{\hei 胡说~1.1~~~} {契丹武士要来中原夺武林秘笈。\kern0.3ex\rule[0.8ex]{2em}{0.1ex}\kern0.3ex 慕容博}} +% 浜х敓锛堣嚜鍔ㄧ紪鍙凤級锛歕\[5pt] +% \fbox{{\hei 鑳¤~1.1~~~} {濂戜腹姝﹀+瑕佹潵涓師澶烘鏋楃绗堛俓kern0.3ex\rule[0.8ex]{2em}{0.1ex}\kern0.3ex 鎱曞鍗殅} % -% \subsection{自定义以及其它} +% \subsection{鑷畾涔変互鍙婂叾瀹儅 % \label{sec:othercmd} +% 妯℃澘鐨勯厤缃枃浠 thuthesis.cfg 涓畾涔変簡寰堝鍥哄畾璇嶆眹锛屼竴鑸棤椤讳慨鏀广傚鏋滄湁鐗规畩闇姹傦紝 +% 鎺ㄨ崘鍦ㄥ瑷鍖轰娇鐢 \cs{renewcommand}銆傚綋鐒讹紝瀵艰█鍖洪噷鍙互鐩存帴浣跨敤涓枃銆 % -% 模板的配置文件~thuthesis.cfg 中定义了很多“固定”词汇,一般无须修改。如果你有 -% 特殊需求,推荐在导言区使用~\cs{renewcommand}。当然,导言区里可以直接使用中文。 % -% 此外,模板中定义了很多内部命令,由于设计过多繁琐的实现细节,此处将其略去。感兴 -% 趣的同学可以参看源代码,重新定义以适合自己的需要。 +%\section{鑷磋阿} +%\label{sec:thanks} % +% 鍦ㄦā鏉跨殑寮鍙戝拰缁存姢杩囩▼涓紝鎴戝緱鍒颁笉灏戝悓瀛︾殑鐑儏鏀寔锛屽锛歟dyfox@newsmth 缂栧啓 +% 浜 Makefile锛孴ruel@newsmth 缂栧啓浜 msmake.cmd锛宱seen@newsmth 灏嗗叾绉绘鍒 UTF-8 骞 +% 鍒朵綔浜 Debian package锛岀壒鍒劅璋 MagicGlaive@newsmth 涓 2008 骞存湰绉戣鏂囨牸寮忎慨鏀 +% 浣滃嚭鐨勪竴鍒囷紒 % -%\section{致谢} -%\label{sec:thanks} +% 鎰熻阿鎴戣嚜宸辫兘鎶婅繖浠朵簨鍧氭寔涓嬫潵锛屾ā鏉垮埗浣滄湡闂撮澶氭劅鎱紝涓嶆柇閬囧埌闂锛屼笉鏂懜绱㈣В鍐炽傚叾涓殑 +% 閰哥敎鑻﹁荆鎭愭曞彧鏈夎嚜宸辫兘浣撲細寰楀埌锛 % -% 感谢~edyfox~的~Makefile,感谢~Truel 的~msmake.cmd,感谢~oseen~的~utf-8~移植工作 -% 和~debian package,感谢~EricH 制作的~gentoo ebuild! -% -% 感谢我自己能把这件事坚持下来,模板制作期间颇多感慨,不断遇到问题,不断摸索解决。其中的 -% 酸甜苦辣恐怕只有自己能体会得到! -% -% 很多同学用~\thuthesis{} 提交论文之后都会给我写一封感谢信,有的还会把打印出来的 -% 论文送给我一份:每当这个时候我都有说不出的欣慰。大家的认可才是~\thuthesis{} 最 -% 大的动力。与此同时我也感觉到更大的压力,因为模板的维护还需要花费相当的精力。同 -% 时我对模板还不太满意,代码质量不高,结构组织不好,文档内容不足。我呼唤感兴趣的 -% 同学能出手相助,给模板的开发和维护注入新的活力,让我们一起把~\thuthesis{} 做得 -% 更好! -% -% \newpage\hbox{}\vfill -% \heartpar{\textbf{\thuthesis} is a \LaTeX{} package aiming to facilitate the -% thesis writing for bachelors, masters and doctors of Tsinghua University. -% By now, \thuthesis\ has been widely used among lots of \TeX\ zealots who do -% not want to format their several years' hard work with the infamous MS -% WORD. I created \thuthesis\ in the summer of 2005, and made it more useful -% and stable in the spring of 2006. To be frank, \thuthesis\ is not going to -% fight with MS WORD, because in my opinion, ``the best tool depends on -% you''. It is hard to persuade all students to give up MS WORD and turn to -% \TeX, but I'd like to encourage them through my efforts. Actually, -% \thuthesis\ is in its initial step now, as an infant, \thuthesis\ needs your -% help very much, and it is very kind of you to contribute and promote -% it. \textsf{Xue Ruini}} -% \vfill +% 鎰熻阿鎵鏈夊湪璁烘枃鑷磋阿涓彁鍙 \thuthesis{} 鎴栬呮湰浜虹殑鍚屽锛氭瘡褰撹繖涓椂鍊欐垜閮芥湁璇翠笉鍑 +% 鐨勬鎱般傚ぇ瀹剁殑璁ゅ彲鎵嶆槸 \thuthesis{} 鏈澶х殑鍔ㄥ姏銆備笌姝ゅ悓鏃舵垜涔熸劅瑙夊埌鏇村ぇ鐨勫帇鍔涳紝 +% 鍥犱负妯℃澘鐨勭淮鎶ら渶瑕佽姳璐圭浉褰撶殑绮惧姏銆傚悓鏃舵垜瀵规ā鏉胯繕涓嶅お婊℃剰锛屼唬鐮佽川閲忎笉楂橈紝缁撴瀯缁 +% 缁囦笉濂斤紝鏂囨。鍐呭涓嶈冻銆傛垜鍛煎敜鎰熷叴瓒g殑鍚屽鑳藉嚭鎵嬬浉鍔╋紝缁欐ā鏉跨殑寮鍙戝拰缁存姢娉ㄥ叆鏂扮殑 +% 娲诲姏锛岃鎴戜滑涓璧锋妸 \thuthesis{} 鍋氬緱鏇村ソ锛 % % \StopEventually{\PrintChanges\PrintIndex} % \clearpage % -% \section{实现细节} +% \section{瀹炵幇缁嗚妭} % -% \subsection{基本信息} +% \subsection{鍩烘湰淇℃伅} % \begin{macrocode} %\NeedsTeXFormat{LaTeX2e}[1999/12/01] %\ProvidesClass{thuthesis} %\ProvidesFile{thuthesis.cfg} -%[2007/11/08 4.0 Tsinghua University Thesis Template] +%[2008/02/28 4.5.1 Tsinghua University Thesis Template] % \end{macrocode} % -% \subsection{定义选项} +% \subsection{瀹氫箟閫夐」} % \label{sec:defoption} +% TODO: 鎵鏈夌殑閫夐」鐢 \pkg{xkeyval} 鏉ラ噸鏋勶紝鐜板湪鐨勫お缃楀攩浜嗐 % -% 定义论文类型以及是否涉密 -% \changes{v2.4}{2006/04/14}{添加模板名称命令。} -% \changes{v2.5}{2006/05/19}{增加本科论文的提交选项~submit。} -% \changes{v2.5.1}{2006/05/24}{如果没有设置格式选项,报错。} -% \changes{v2.5.1}{2006/05/26}{submit 只能由本科用。} -% \changes{v2.5.3}{2006/06/03}{submit 选项的一个笔误。} -% \changes{v3.0}{2007/05/12}{删除~submit 选项。} +% 瀹氫箟鏂囨。鎵浣跨敤缂栫爜 % \begin{macrocode} %<*cls> +\newif\ifthu@UTF +\newif\ifthu@GBK +\DeclareOption{utf}{\thu@UTFtrue\thu@GBKfalse} +\DeclareOption{gbk}{\thu@GBKtrue\thu@UTFfalse} +% \end{macrocode} +% +% 瀹氫箟璁烘枃绫诲瀷浠ュ強鏄惁娑夊瘑 +% \changes{v2.4}{2006/04/14}{娣诲姞妯℃澘鍚嶇О鍛戒护銆倉 +% \changes{v2.5}{2006/05/19}{澧炲姞鏈璁烘枃鐨勬彁浜ら夐」 submit銆倉 +% \changes{v2.5.1}{2006/05/24}{濡傛灉娌℃湁璁剧疆鏍煎紡閫夐」锛屾姤閿欍倉 +% \changes{v2.5.1}{2006/05/26}{submit 鍙兘鐢辨湰绉戠敤銆倉 +% \changes{v2.5.3}{2006/06/03}{submit 閫夐」鐨勪竴涓瑪璇倉 +% \changes{v3.0}{2007/05/12}{鍒犻櫎 submit 閫夐」銆倉 +% \begin{macrocode} \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 @@ -1203,186 +1030,231 @@ \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} % \end{macrocode} % -% 使用~dvips,dvipdfm 还是~pdflatex -% \changes{v2.5.1}{2006/05/24}{如果选项设置了~dvips,但是用~pdflatex 编译,报错。} -% \changes{v2.6}{2006/06/09}{增加~dvipdfm 选项。} +% 浣跨敤 dvips锛宒vipdfm, pdflatex 杩樻槸 xelatex +% \changes{v2.5.1}{2006/05/24}{濡傛灉閫夐」璁剧疆浜 dvips锛屼絾鏄敤 pdflatex 缂栬瘧锛屾姤閿欍倉 +% \changes{v2.6}{2006/06/09}{澧炲姞 dvipdfm 閫夐」銆倉 +% \changes{v4.5}{2009/01/03}{澧炲姞 xetex, pdftex 閫夐」銆倉 % \begin{macrocode} \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} % \end{macrocode} % -% 如果需要使用~arial 字体,请打开~[arial] 选项 +% 濡傛灉闇瑕佷娇鐢 arial 瀛椾綋锛岃鎵撳紑 [arial] 閫夐」 % \begin{macrocode} \newif\ifthu@arial \DeclareOption{arial}{\thu@arialtrue} % \end{macrocode} % -% 目录中英文是否用~arial +% 鐩綍涓嫳鏂囨槸鍚︾敤 arial % \begin{macrocode} \newif\ifthu@arialtoc \DeclareOption{arialtoc}{\thu@arialtoctrue} % \end{macrocode} -% 章节标题中的英文是否用~arial +% 绔犺妭鏍囬涓殑鑻辨枃鏄惁鐢 arial % \begin{macrocode} \newif\ifthu@arialtitle \DeclareOption{arialtitle}{\thu@arialtitletrue} -% \end{macrocode}% -% +% \end{macrocode} % -% 将选项传递给~book 类 +% 灏嗛夐」浼犻掔粰 book 绫 % \begin{macrocode} \DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}} % \end{macrocode} % -% 本科默认打开~arialtoc。\textbf{ExecuteOptions} 的参数之间用逗号分割,必须不能有空 -% 格。开始不知道,折腾了老半天。 -% \changes{v2.5.1}{2006/05/24}{ft,研究生院目录要~times,而教务处要~arial。} -% \changes{v2.5.1}{2006/05/26}{本科~openright,研究生~openany。} -% \changes{v3.1}{2007/10/09}{本科的目录又不要~arial 字体了。} +% \cs{ExecuteOptions} 鐨勫弬鏁颁箣闂寸敤閫楀彿鍒嗗壊锛屼笉鑳芥湁绌烘牸銆傚紑濮嬩笉鐭ラ亾锛屾姌鑵句簡鑰佸崐 +% 澶┿ +% \changes{v2.5.1}{2006/05/24}{ft锛岀爺绌剁敓闄㈢洰褰曡 times锛岃屾暀鍔″瑕 arial銆倉 +% \changes{v2.5.1}{2006/05/26}{鏈 openright锛岀爺绌剁敓 openany銆倉 +% \changes{v3.1}{2007/10/09}{鏈鐨勭洰褰曞張涓嶈 arial 瀛椾綋浜嗐倉 % \begin{macrocode} -\ExecuteOptions{arialtitle} -\ProcessOptions -\ifthu@bachelor - %\thu@arialtoctrue % hard code - \LoadClass[12pt, a4paper, openright]{book} -\else - \LoadClass[12pt, a4paper, openany]{book} -\fi +\ExecuteOptions{utf,arialtitle} +\ProcessOptions\relax +\LoadClass[12pt,a4paper,openany]{book} % \end{macrocode} % +% 鐢ㄦ埛鑷冲皯瑕佹彁渚涗竴涓夐」锛氭寚瀹氳鏂囩被鍨嬨 +% \begin{macrocode} +\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 +% \end{macrocode} % -% \subsection{装载宏包} -% \label{sec:loadpackage} +% 妫鏌ョ敤鎴锋寚瀹氱殑閫夐」鍜屽疄闄呯紪璇戝懡浠ゆ槸鍚﹀啿绐併 +% \begin{macrocode} +\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 +% \end{macrocode} % % -% 引用的宏包和相应的定义。 +% \subsection{瑁呰浇瀹忓寘} +% \label{sec:loadpackage} +% +% 寮曠敤鐨勫畯鍖呭拰鐩稿簲鐨勫畾涔夈 % \begin{macrocode} -\RequirePackage{ifthen} -\RequirePackage{calc} -\RequirePackage{ifpdf} +\RequirePackage{ifthen,calc} % \end{macrocode} % -% \AmSTeX{} 宏包,用来排出更加漂亮的公式。 +% \AmSTeX{} 瀹忓寘锛岀敤鏉ユ帓鍑烘洿鍔犳紓浜殑鍏紡銆 % \begin{macrocode} -\RequirePackage{amsmath, amssymb} +\RequirePackage{amsmath,amssymb} % \end{macrocode} % -% 用很爽的~\pkg{txfonts} 替换~\pkg{mathptmx} 宏包,同时用它自带的~typewriter 字 -% 体替换~courier。必须出现在~\AmSTeX{} 之后。 +% 鐢ㄥ緢鐖界殑 \pkg{txfonts} 鏇挎崲 \pkg{mathptmx} 瀹忓寘锛屽悓鏃剁敤瀹冭嚜甯︾殑 typewriter 瀛 +% 浣撴浛鎹 courier銆傚繀椤诲嚭鐜板湪 \AmSTeX{} 涔嬪悗銆 % \changes{v3.1}{2007/06/16}{replace mathptmx with txfonts.} % \begin{macrocode} \RequirePackage{txfonts} % \end{macrocode} % -% arial 字体需要单独安装,如果不使用~arial 字体,可以用~helvet 字体~|\textsf| -% 模拟,二者基本没有差别。 -% \begin{macrocode} -\ifthu@arial - \IfFileExists{arial.sty}{\RequirePackage{arial}}% - {\ClassWarning{thuthesis}{no arial.sty availiable!}} -\fi -% \end{macrocode} -% -% -% 图形支持宏包。 +% 鍥惧舰鏀寔瀹忓寘銆 % \begin{macrocode} \RequirePackage{graphicx} % \end{macrocode} % -% 并排图形。\pkg{subfigure} 已经不再推荐,用新的~\pkg{subfig}。加入~|config| 选项以便兼容 -% ~\pkg{subfigure} 的命令。 -% 浮动图形和表格标题样式。\pkg{caption2} 已经不推荐使用,采用新的~\pkg{caption}。它会自动被 -% ~\pkg{subfig} 装载进来。所以可以在后面看到~\cs{captionsetup} 的命令。 +% 骞舵帓鍥惧舰銆俓pkg{subfigure} 宸茬粡涓嶅啀鎺ㄨ崘锛岀敤鏂扮殑 \pkg{subfig}銆傚姞鍏 |config| 閫夐」 +% 浠ヤ究鍏煎 \pkg{subfigure} 鐨勫懡浠ゃ傛诞鍔ㄥ浘褰㈠拰琛ㄦ牸鏍囬鏍峰紡銆俓pkg{caption2} 宸茬粡涓 +% 鎺ㄨ崘浣跨敤锛岄噰鐢ㄦ柊鐨 \pkg{caption}銆傚畠浼氳嚜鍔ㄨ \pkg{subfig} 瑁呰浇杩涙潵銆傛墍浠ュ彲浠ュ湪 +% 鍚庨潰鐪嬪埌 \cs{captionsetup} 鐨勫懡浠ゃ % \begin{macrocode} \RequirePackage[config]{subfig} % \end{macrocode} % -% 首行缩进宏包 +% 棣栬缂╄繘瀹忓寘 % \begin{macrocode} \RequirePackage{indentfirst} % \end{macrocode} % -% 更好的列表环境。 -% \changes{v2.6.2}{2006/06/18}{去掉~\pkg{paralist} 的~newitem 和~newenum 选项,因为默 -% 认是打开的。} -% \changes{v2.6.4}{2006/10/23}{增加~\texttt{neverdecrease} 选项。} +% 鏇村ソ鐨勫垪琛ㄧ幆澧冦 +% \changes{v2.6.2}{2006/06/18}{鍘绘帀 \pkg{paralist} 鐨 newitem 鍜 newenum 閫夐」锛屽洜涓洪粯 +% 璁ゆ槸鎵撳紑鐨勩倉 +% \changes{v2.6.4}{2006/10/23}{澧炲姞 \texttt{neverdecrease} 閫夐」銆倉 % \begin{macrocode} \RequirePackage[neverdecrease]{paralist} % \end{macrocode} % -% 中文支持宏包 +% 涓枃鏀寔瀹忓寘銆俋eTeX 妯″紡涓嬬洿鎺ヨ皟鐢 \pkg{xeCJK}锛屼竴鍒囬棶棰橀兘鎼炲畾浜嗐 +% \changes{v4.5}{2008/01/03}{鍔犲叆 XeTeX 鏀寔锛岄渶瑕 \pkg{xeCJK}銆倉 +% \begin{macrocode} +\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 +% \end{macrocode} +% 榛樿閲囩敤 Adobe 鐨勫洓娆 (瀹嬶紝榛戯紝妤凤紝浠垮畫) 鍏嶈垂瀛椾綋銆傝繖鏍风殑璇濓紝缂哄皯闅朵功鍜屽辜鍦嗐傛湰 +% 绉戠殑灏侀潰澶у瓧浼氬彈褰卞搷銆傝鎵嬪姩鏇挎崲銆 +% \begin{macrocode} + \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} +% \end{macrocode} +% 瀵逛簬 \LaTeX\ 鍜 PDF\LaTeX锛岃皟鐢 \pkg{CJK} 浠ュ強鐩稿叧鐨勫寘銆傛敞鎰忥細\pkg{CJKpunct} 蹇 +% 椤绘斁鍦 \pkg{CJKspace} 涔嬪墠銆 % \begin{macrocode} -\RequirePackage{CJK, CJKnumb} +\else + \RequirePackage{CJKutf8} + \RequirePackage{CJKnumb} + \ifthu@GBK % CJKpunct 鍦 UTF 涓嬪伐浣滅殑涓嶅ソ銆 + \IfFileExists{CJKpunct.sty}% + {\RequirePackage{CJKpunct}}% + {\ClassWarning{thuthesis}{no CJKpunct.sty availiable!}} + \fi + \RequirePackage{CJKspace} % \end{macrocode} -% -% 中文标点优化处理 +% arial 瀛椾綋闇瑕佸崟鐙畨瑁咃紝濡傛灉涓嶄娇鐢 arial 瀛椾綋锛屽彲浠ョ敤 helvet 瀛椾綋 |\textsf| +% 妯℃嫙锛屼簩鑰呭熀鏈病鏈夊樊鍒 % \begin{macrocode} -\RequirePackage{CJKpunct} + \ifthu@arial + \IfFileExists{arial.sty}% + {\RequirePackage{arial}}% + {\ClassWarning{thuthesis}{no arial.sty availiable!}} + \fi +\fi % \end{macrocode} % -% 可拷贝的~pdf (需要进一步测试) +% 鍙嫹璐濈殑 PDF (\pkg{ccmap} 缁撳悎 \texttt{pdflatex} 鍜 \texttt{dvipdfmx} 浣跨敤) % \begin{macrocode} -\ifpdf % We're not running pdftex - \RequirePackage{ccmap} % 用 pdflatex 编译 -\else - % \RequirePackage{cmap} +\ifthu@dvips\else + \ifthu@xetex\else + \RequirePackage{ccmap} + \fi \fi % \end{macrocode} % -% 定理类环境宏包,其中~\pkg{amsmath} 选项用来兼容~AMS \LaTeX 的宏包 +% 瀹氱悊绫荤幆澧冨畯鍖咃紝鍏朵腑 \pkg{amsmath} 閫夐」鐢ㄦ潵鍏煎 \AmSTeX{} 鐨勫畯鍖 % \begin{macrocode} \RequirePackage[amsmath,thmmarks,hyperref]{ntheorem} % \end{macrocode} % -% 表格控制 -% \changes{v2.6}{2006/06/09}{增加~\pkg{longtable}。} +% 琛ㄦ牸鎺у埗 +% \changes{v2.6}{2006/06/09}{澧炲姞 \pkg{longtable}銆倉 % \begin{macrocode} \RequirePackage{array} \RequirePackage{longtable} % \end{macrocode} % -% 使用三线表: \cs{toprule}, \cs{midrule}, \cs{bottomrule}。当然简单的可以用~\cs{hwline}\marg{wd}。 +% 浣跨敤涓夌嚎琛細\cs{toprule}锛孿cs{midrule}锛孿cs{bottomrule}銆 % \begin{macrocode} \RequirePackage{booktabs} % \end{macrocode} % -% -% 参考文献引用宏包。 +% 鍙傝冩枃鐚紩鐢ㄥ畯鍖呫 % \begin{macrocode} \RequirePackage[numbers,super,sort&compress]{natbib} % \end{macrocode} % -% 生成有书签的~pdf 及其开关,请结合~gbk2uni 避免书签乱码。 -% \changes{v2.6}{2006/06/09}{去除~hyperref 选项,等待全局传递。} +% 鐢熸垚鏈変功绛剧殑 pdf 鍙婂叾寮鍏筹紝璇风粨鍚 gbk2uni 閬垮厤涔︾涔辩爜銆 +% \changes{v2.6}{2006/06/09}{鍘婚櫎 hyperref 閫夐」锛岀瓑寰呭叏灞浼犻掋倉 % \begin{macrocode} \RequirePackage{hyperref} +\ifxetex + \hypersetup{% + CJKbookmarks=true} +\else + \hypersetup{% + unicode=true, + CJKbookmarks=false} +\fi \hypersetup{% - unicode=true, - CJKbookmarks=true, bookmarksnumbered=true, bookmarksopen=true, bookmarksopenlevel=1, @@ -1392,26 +1264,39 @@ pdfpagelabels, pdfborder=0 0 0} % \end{macrocode} -% 设置~url 样式,与上下文一致 +% +% dvips 妯″紡涓嬬綉鍧鏂瓧鏈夐棶棰橈紝鍔犲叆杩欎釜鍖呰В鍐充箣銆 +% \changes{v4.4}{2008/05/12}{淇缃戝潃鏂瓧銆倉 +% \begin{macrocode} +\ifthu@dvips + \RequirePackage{breakurl} +\fi +% \end{macrocode} +% +% 璁剧疆 url 鏍峰紡锛屼笌涓婁笅鏂囦竴鑷 % \begin{macrocode} \urlstyle{same} % \end{macrocode} % -% \pkg{hypernat} 让~\pkg{hyperref} 和~\pkg{natbib} 协调的工作。应该在~\pkg{natbib} 和~\pkg{hyperref} 之后加载,参看其文档。 +% \pkg{hypernat} 璁 \pkg{hyperref} 鍜 \pkg{natbib} 鍗忚皟鐨勫伐浣溿傚簲璇 +% 鍦 \pkg{natbib} 鍜 \pkg{hyperref} 涔嬪悗鍔犺浇锛屽弬鐪嬪叾鏂囨。銆 % \begin{macrocode} \RequirePackage{hypernat} % % \end{macrocode} % % -% -% \subsection{主文档格式} +% \subsection{涓绘枃妗f牸寮弣 % \label{sec:mainbody} % % \subsubsection{Three matters} -% 我们的单面和双面模式与常规的不太一样。 -% \changes{v2.5.1}{2006/05/23}{本科正文之后页码即用罗马数字,研究生不变。} -% \changes{v2.5.3}{2006/06/03}{第一章永远右开。} +% 鎴戜滑鐨勫崟闈㈠拰鍙岄潰妯″紡涓庡父瑙勭殑涓嶅お涓鏍枫 +% \changes{v2.5.1}{2006/05/23}{鏈姝f枃涔嬪悗椤电爜鍗崇敤缃楅┈鏁板瓧锛岀爺绌剁敓涓嶅彉銆倉 +% \changes{v2.5.3}{2006/06/03}{绗竴绔犳案杩滃彸寮銆倉 +% \changes{v4.4}{2008/05/30}{鏈姝f枃鍚庣殑椤电爜寤剁画鍓嶉潰鐨勯樋鎷変集鏁板瓧锛屼笉鍐嶇敤缃楅┈鏁 +% 瀛椼倉 +% \changes{v4.4}{2008/05/30}{鏈鍙栨秷浜嗘墍鏈夐〉鐪夛紝姣棤鐤戦棶锛屽湪浠ュ悗鐨勪慨璁腑杩樹細鍔 +% 涓婄殑锛屾垜浠瓑鐫鐪嬨倉 % \begin{macrocode} %<*cls> \renewcommand\frontmatter{% @@ -1423,16 +1308,15 @@ \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} + \@mainmattertrue} % % \end{macrocode} % % -% \subsubsection{字体} +% \subsubsection{瀛椾綋} % \label{sec:font} % % \begin{macro}{\song} @@ -1447,20 +1331,20 @@ % \begin{macro}{\lishu} % \begin{macro}{\you} % \begin{macro}{\youyuan} -% 重定义字体命令 +% 閲嶅畾涔夊瓧浣撳懡浠 % \begin{macrocode} %<*cls> -\newcommand{\song}{\CJKfamily{song}} % 宋体 +\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} % \end{macrocode} % \end{macro} @@ -1476,56 +1360,56 @@ % \end{macro} % \end{macro} % -% 重定义字号命令 +% 閲嶅畾涔夊瓧鍙峰懡浠 % % Ref 1: % \begin{verbatim} -% 参考科学出版社编写的《著译编辑手册》(1994年) -% 七号 5.25pt 1.845mm -% 六号 7.875pt 2.768mm -% 小五 9pt 3.163mm -% 五号 10.5pt 3.69mm -% 小四 12pt 4.2175mm -% 四号 13.75pt 4.83mm -% 三号 15.75pt 5.53mm -% 二号 21pt 7.38mm -% 一号 27.5pt 9.48mm -% 小初 36pt 12.65mm -% 初号 42pt 14.76mm -% -% 这里的 pt 对应的是 1/72.27 inch,也就是 TeX 中的标准 pt +% 鍙傝冪瀛﹀嚭鐗堢ぞ缂栧啓鐨勩婅憲璇戠紪杈戞墜鍐屻(1994骞) +% 涓冨彿 5.25pt 1.845mm +% 鍏彿 7.875pt 2.768mm +% 灏忎簲 9pt 3.163mm +% 浜斿彿 10.5pt 3.69mm +% 灏忓洓 12pt 4.2175mm +% 鍥涘彿 13.75pt 4.83mm +% 涓夊彿 15.75pt 5.53mm +% 浜屽彿 21pt 7.38mm +% 涓鍙 27.5pt 9.48mm +% 灏忓垵 36pt 12.65mm +% 鍒濆彿 42pt 14.76mm +% +% 杩欓噷鐨 pt 瀵瑰簲鐨勬槸 1/72.27 inch锛屼篃灏辨槸 TeX 涓殑鏍囧噯 pt % \end{verbatim} % % Ref 2: -% WORD 中的字号对应该关系如下: +% WORD 涓殑瀛楀彿瀵瑰簲璇ュ叧绯诲涓: % \begin{verbatim} -% 初号 = 42bp = 14.82mm = 42.1575pt -% 小初 = 36bp = 12.70mm = 36.135 pt -% 一号 = 26bp = 9.17mm = 26.0975pt -% 小一 = 24bp = 8.47mm = 24.09pt -% 二号 = 22bp = 7.76mm = 22.0825pt -% 小二 = 18bp = 6.35mm = 18.0675pt -% 三号 = 16bp = 5.64mm = 16.06pt -% 小三 = 15bp = 5.29mm = 15.05625pt -% 四号 = 14bp = 4.94mm = 14.0525pt -% 小四 = 12bp = 4.23mm = 12.045pt -% 五号 = 10.5bp = 3.70mm = 10.59375pt -% 小五 = 9bp = 3.18mm = 9.03375pt -% 六号 = 7.5bp = 2.56mm -% 小六 = 6.5bp = 2.29mm -% 七号 = 5.5bp = 1.94mm -% 八号 = 5bp = 1.76mm +% 鍒濆彿 = 42bp = 14.82mm = 42.1575pt +% 灏忓垵 = 36bp = 12.70mm = 36.135 pt +% 涓鍙 = 26bp = 9.17mm = 26.0975pt +% 灏忎竴 = 24bp = 8.47mm = 24.09pt +% 浜屽彿 = 22bp = 7.76mm = 22.0825pt +% 灏忎簩 = 18bp = 6.35mm = 18.0675pt +% 涓夊彿 = 16bp = 5.64mm = 16.06pt +% 灏忎笁 = 15bp = 5.29mm = 15.05625pt +% 鍥涘彿 = 14bp = 4.94mm = 14.0525pt +% 灏忓洓 = 12bp = 4.23mm = 12.045pt +% 浜斿彿 = 10.5bp = 3.70mm = 10.59375pt +% 灏忎簲 = 9bp = 3.18mm = 9.03375pt +% 鍏彿 = 7.5bp = 2.56mm +% 灏忓叚 = 6.5bp = 2.29mm +% 涓冨彿 = 5.5bp = 1.94mm +% 鍏彿 = 5bp = 1.76mm % % 1bp = 72.27/72 pt % \end{verbatim} % % \begin{macro}{\thu@define@fontsize} -% \changes{v2.6.2}{2006/06/18}{引入此命令重新定义字号。} -% 根据习惯定义字号。用法: +% \changes{v2.6.2}{2006/06/18}{寮曞叆姝ゅ懡浠ら噸鏂板畾涔夊瓧鍙枫倉 +% 鏍规嵁涔犳儻瀹氫箟瀛楀彿銆傜敤娉曪細 % -% \cs{thu@define@fontsize}\marg{字号名称}\marg{磅数} +% \cs{thu@define@fontsize}\marg{瀛楀彿鍚嶇О}\marg{纾呮暟} % -% 避免了字号选择和行距的紧耦合。所有字号定义时为单倍行距,并提供选项指定行距倍数。 +% 閬垮厤浜嗗瓧鍙烽夋嫨鍜岃璺濈殑绱ц﹀悎銆傛墍鏈夊瓧鍙峰畾涔夋椂涓哄崟鍊嶈璺濓紝骞舵彁渚涢夐」鎸囧畾琛岃窛鍊嶆暟銆 % \begin{macrocode} \newlength\thu@linespace \newcommand{\thu@choosefont}[2]{% @@ -1593,7 +1477,7 @@ % \end{macro} % \end{macro} % -% 正文小四号~(12pt) 字,行距为固定值~20 磅。 +% 姝f枃灏忓洓鍙 (12pt) 瀛楋紝琛岃窛涓哄浐瀹氬 20 纾呫 % \begin{macrocode} \renewcommand\normalsize{% \@setfontsize\normalsize{12bp}{20bp} @@ -1605,13 +1489,12 @@ % \end{macrocode} % % -%\subsubsection{页面设置} -%\label{sec:layout} -% -% 本来这部分应该是最容易设置的,但根据格式规定出来的结果跟学校的~WORD 样例相差很 -% 大,所以只能微调。 -% \changes{v2.4}{2006/04/14}{把页面尺寸写入~dvi,避免有的用户通 -% 过~dvips 不指定页面类型而得到古怪的结果。} +% \subsubsection{椤甸潰璁剧疆} +% \label{sec:layout} +% 鏈潵杩欓儴鍒嗗簲璇ユ槸鏈瀹规槗璁剧疆鐨勶紝浣嗘牴鎹牸寮忚瀹氬嚭鏉ョ殑缁撴灉璺熷鏍$殑 WORD 鏍蜂緥鐩稿樊寰 +% 澶э紝鎵浠ュ彧鑳藉井璋冦 +% \changes{v2.4}{2006/04/14}{鎶婇〉闈㈠昂瀵稿啓鍏 dvi锛岄伩鍏嶆湁鐨勭敤鎴烽 +% 杩 dvips 涓嶆寚瀹氶〉闈㈢被鍨嬭屽緱鍒板彜鎬殑缁撴灉銆倉 % \begin{macrocode} %<*cls> \AtBeginDvi{\special{papersize=\the\paperwidth,\the\paperheight}} @@ -1641,11 +1524,10 @@ % % \end{macrocode} % -% \subsubsection{页眉页脚} +% \subsubsection{椤电湁椤佃剼} % \label{sec:headerfooter} -% -% 新的一章最好从奇数页开始~(openright),所以必须保证它前面那页如果没有内容也必须 -% 没有页眉页脚。(code stolen from \pkg{fancyhdr}) +% 鏂扮殑涓绔犳渶濂戒粠濂囨暟椤靛紑濮 (openright)锛屾墍浠ュ繀椤讳繚璇佸畠鍓嶉潰閭i〉濡傛灉娌℃湁鍐呭涔熷繀椤 +% 娌℃湁椤电湁椤佃剼銆(code stolen from \pkg{fancyhdr}) % \begin{macrocode} %<*cls> \let\thu@cleardoublepage\cleardoublepage @@ -1654,19 +1536,19 @@ \let\cleardoublepage\thu@clearemptydoublepage % \end{macrocode} % -% 定义页眉和页脚。chapter 自动调用~thispagestyle{thu@plain},所以要重新定义~thu@plain。 -% \changes{v2.0}{2005/12/18}{以前的太乱了,重新整理过清晰多了。} -% \changes{v2.1}{2006/03/01}{彻底放弃~fancyhdr,定义自己的样式。} -% \changes{v2.5}{2006/05/13}{本科的奇偶页眉不同。} -% \changes{v2.5}{2006/05/20}{增加~empty 页面样式。} +% 瀹氫箟椤电湁鍜岄〉鑴氥俢hapter 鑷姩璋冪敤 thispagestyle{thu@plain}锛屾墍浠ヨ閲嶆柊瀹氫箟 thu@plain銆 +% \changes{v2.0}{2005/12/18}{浠ュ墠鐨勫お涔变簡锛岄噸鏂版暣鐞嗚繃娓呮櫚澶氫簡銆倉 +% \changes{v2.1}{2006/03/01}{褰诲簳鏀惧純 fancyhdr锛屽畾涔夎嚜宸辩殑鏍峰紡銆倉 +% \changes{v2.5}{2006/05/13}{鏈鐨勫鍋堕〉鐪変笉鍚屻倉 +% \changes{v2.5}{2006/05/20}{澧炲姞 empty 椤甸潰鏍峰紡銆倉 % \begin{macro}{\ps@thu@empty} % \begin{macro}{\ps@thu@plain} % \begin{macro}{\ps@thu@headings} -% 定义三种页眉页脚格式: +% 瀹氫箟涓夌椤电湁椤佃剼鏍煎紡锛 % \begin{itemize} -% \item \texttt{thu@empty}:页眉页脚都没有 -% \item \texttt{thu@plain}:只显示页脚的页码 -% \item \texttt{thu@headings}:页眉页脚同时显示 +% \item \texttt{thu@empty}锛氶〉鐪夐〉鑴氶兘娌℃湁 +% \item \texttt{thu@plain}锛氬彧鏄剧ず椤佃剼鐨勯〉鐮 +% \item \texttt{thu@headings}锛氶〉鐪夐〉鑴氬悓鏃舵樉绀 % \end{itemize} % \begin{macrocode} \def\ps@thu@empty{% @@ -1695,32 +1577,41 @@ % \end{macro} % \end{macro} % -% 其实可以直接写到~\cs{chapter} 的定义里面。 +% 鍏跺疄鍙互鐩存帴鍐欏埌 \cs{chapter} 鐨勫畾涔夐噷闈€ % \begin{macrocode} -\renewcommand{\chaptermark}[1]{\@mkboth{\@chapapp\ ~~#1}{}} +\renewcommand{\chaptermark}[1]{\@mkboth{\@chapapp\ ~~#1}{}} % % \end{macrocode} % % -% \subsubsection{段落} +% \subsubsection{娈佃惤} % \label{sec:paragraph} -% -% 用于中文段落缩进和正文版式 +% 鐢ㄤ簬涓枃娈佃惤缂╄繘鍜屾鏂囩増寮 % \begin{macrocode} %<*cls> -\newlength\CJKtwospaces +\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} % \end{macrocode} % -% 段落之间的竖直距离 +% 娈佃惤涔嬮棿鐨勭珫鐩磋窛绂 % \begin{macrocode} \setlength{\parskip}{0pt \@plus2pt \@minus0pt} % \end{macrocode} % -% 调整默认列表环境间的距离,以符合中文习惯。 -% \changes{v2.5.2}{2006/06/01}{更改默认列表距离。} +% 璋冩暣榛樿鍒楄〃鐜闂寸殑璺濈锛屼互绗﹀悎涓枃涔犳儻銆 +% \changes{v2.5.2}{2006/06/01}{鏇存敼榛樿鍒楄〃璺濈銆倉 % \begin{macro}{thu@item@space} % \begin{macrocode} \def\thu@item@space{% @@ -1735,11 +1626,10 @@ % \end{macro} % % -% \subsubsection{脚注} +% \subsubsection{鑴氭敞} % \label{sec:footnote} -% % \begin{macro}{\MakePerPage} -% 从~perpage.sty 中抽取的代码,使~footnote 按页编号。不再用臃肿的~footmisc。 +% 浠 perpage.sty 涓娊鍙栫殑浠g爜锛屼娇 footnote 鎸夐〉缂栧彿銆備笉鍐嶇敤鑷冭偪鐨 footmisc銆 % \begin{macrocode} %<*cls> \newcommand*\MakePerPage[2][\@ne]{% @@ -1761,15 +1651,15 @@ % \end{macrocode} % \end{macro} % -% 脚注字体:宋体小五,单倍行距。 悬挂缩进1.5字符。标号在正文中是上标,在脚注中为 -% 正体。默认情况下~|\@makefnmark| 显示为上标,同时为脚标和正文所用,所以如果要区 -% 分,必须分别定义脚注的标号和正文的标号。 -% \changes{v2.1}{2006/03/01}{让脚注它悬挂起来,而且中文中用上标,脚注中用正体。} -% \changes{v2.5}{2006/05/13}{修正~minipage~中的脚注。} -% \changes{v2.5.1}{2006/05/21}{脚注编号使用~textcircled 命令,每页允许至多~99 个 -% 脚注条目。} +% 鑴氭敞瀛椾綋锛氬畫浣撳皬浜旓紝鍗曞嶈璺濄傛偓鎸傜缉杩 1.5 瀛楃銆傛爣鍙峰湪姝f枃涓槸涓婃爣锛屽湪鑴氭敞涓负 +% 姝d綋銆傞粯璁ゆ儏鍐典笅 \cs{@makefnmark} 鏄剧ず涓轰笂鏍囷紝鍚屾椂涓鸿剼鏍囧拰姝f枃鎵鐢紝鎵浠ュ鏋滆鍖 +% 鍒嗭紝蹇呴』鍒嗗埆瀹氫箟鑴氭敞鐨勬爣鍙峰拰姝f枃鐨勬爣鍙枫 +% \changes{v2.1}{2006/03/01}{璁╄剼娉ㄥ畠鎮寕璧锋潵锛岃屼笖涓枃涓敤涓婃爣锛岃剼娉ㄤ腑鐢ㄦ浣撱倉 +% \changes{v2.5}{2006/05/13}{淇 minipage 涓殑鑴氭敞銆倉 +% \changes{v2.5.1}{2006/05/21}{鑴氭敞缂栧彿浣跨敤 \cs{textcircled} 鍛戒护锛屾瘡椤靛厑璁歌嚦澶 99 涓 +% 鑴氭敞鏉$洰銆倉 % \begin{macro}{\thu@textcircled} -% 生成带圈的脚注数字。最多处理到~99,当然这个很容易扩展了。 +% 鐢熸垚甯﹀湀鐨勮剼娉ㄦ暟瀛椼傛渶澶氬鐞嗗埌 99锛屽綋鐒惰繖涓緢瀹规槗鎵╁睍浜嗐 % \begin{macrocode} \def\thu@textcircled#1{% \ifnum \value{#1} <10 \textcircled{\xiaoliu\arabic{#1}} @@ -1777,11 +1667,11 @@ \fi} % \end{macrocode} % \end{macro} -% \changes{v2.6}{2006/06/09}{脚注改成~1.5 倍行距,漂亮。} +% \changes{v2.6}{2006/06/09}{鑴氭敞鏀规垚 1.5 鍊嶈璺濓紝婕備寒銆倉 % \begin{macrocode} \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@} +\def\footnoterule{\vskip-3\p@\hrule\@width0.3\textwidth\@height0.4\p@\vskip2.6\p@} \let\thu@footnotesize\footnotesize \renewcommand\footnotesize{\thu@footnotesize\xiaowu[1.5]} \def\@makefnmark{\textsuperscript{\hbox{\normalfont\@thefnmark}}} @@ -1804,64 +1694,64 @@ % \end{macrocode} % % -%\subsubsection{数学相关} -%\label{sec:equation} -% -% 允许太长的公式断行、分页等。 +% \subsubsection{鏁板鐩稿叧} +% \label{sec:equation} +% 鍏佽澶暱鐨勫叕寮忔柇琛屻佸垎椤电瓑銆 % \begin{macrocode} %<*cls> \allowdisplaybreaks[4] +\renewcommand\theequation{\ifnum \c@chapter>\z@ \thechapter-\fi\@arabic\c@equation} % \end{macrocode} % -% 公式距前后文的距离由~4 个参数控制,参见~\cs{normalsize} 的定义。 -% -% 公式改成~(1-1) 的形式,本科还要在前面加上公式二字,我不知道他们是怎么想的,这 -% 忒不好看了。 -% \changes{v2.5.1}{2006/05/24}{本科公式编号前添加“公式”二字。ft,这个需要修改 -% ~\pkg{amsmath} 极其深入的一个命令。} -% \changes{v2.5.1}{2006/05/24}{教务处居然要本科论文公式全文编号!} -% \changes{v2.5.2}{2006/05/29}{上一个版本忘了把研究生的公式编号排除。} -% \changes{v3.0}{2007/05/12}{本科公式又要取消全文统一编号了,这帮家伙,早就告诉 -% 过他们,就是不听。} -% 本科的公式编号太变态了,我不得不修改~\pkg{amsmath} 中很深的一个命令~\cs{tagform@}。 -%\changes{v2.6.2}{2006/06/19}{根据不同论文格式显示不同公式编号,并自动加入索引。} -% 同时为了让~\pkg{amsmath} 的~\cs{tag*} 命令得到正确的格式,我们必须修改这些代 -% 码。\cs{make@df@tag} 是定义~\cs{tag*} 和~\cs{tag} 内部命令的。 -% \cs{make@df@tag@@} 处理~\cs{tag*},我们就改它! +% 鍏紡璺濆墠鍚庢枃鐨勮窛绂荤敱 4 涓弬鏁版帶鍒讹紝鍙傝 \cs{normalsize} 鐨勫畾涔夈 +% +% 鍏紡鏀规垚 (1-1) 鐨勫舰寮忥紝鏈杩樿鍦ㄥ墠闈㈠姞涓奬textbf{鍏紡}浜屽瓧锛屾垜涓嶇煡閬撲粬浠槸鎬庝箞鎯崇殑锛岃繖 +% 蹇掍笉濂界湅浜嗐 +% \changes{v2.5.1}{2006/05/24}{鏈鍏紡缂栧彿鍓嶆坊鍔燶textbf{鍏紡}浜屽瓧銆俧t锛岃繖涓渶瑕佷慨 \pkg{amsmath} 鏋佸叾娣卞叆鐨勪竴涓懡浠ゃ倉 +% \changes{v2.5.1}{2006/05/24}{鏁欏姟澶勫眳鐒惰鏈璁烘枃鍏紡鍏ㄦ枃缂栧彿锛亇 +% \changes{v2.5.2}{2006/05/29}{涓婁竴涓増鏈繕浜嗘妸鐮旂┒鐢熺殑鍏紡缂栧彿鎺掗櫎銆倉 +% \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} 鍔犳嫭鍙枫倉 +% 鍚屾椂涓轰簡璁 \pkg{amsmath} 鐨 \cs{tag*} 鍛戒护寰楀埌姝g‘鐨勬牸寮忥紝鎴戜滑蹇呴』淇敼杩欎簺浠 +% 鐮併俓cs{make@df@tag} 鏄畾涔 \cs{tag*} 鍜 \cs{tag} 鍐呴儴鍛戒护鐨勩 +% \cs{make@df@tag@@} 澶勭悊 \cs{tag*}锛屾垜浠氨鏀瑰畠锛 % \begin{verbatim} % \def\make@df@tag{\@ifstar\make@df@tag@@\make@df@tag@@@} % \def\make@df@tag@@#1{% % \gdef\df@tag{\maketag@@@{#1}\def\@currentlabel{#1}}} % \end{verbatim} +% \changes{v4.4}{2008/05/30}{鍙樻佺殑鏈璁烘枃缁堜簬鍘绘帀浜哱textbf{鍏紡}浜屽瓧銆倉 +% \changes{v4.4.4}{2008/06/12}{淇浜嗕竴涓粠 v4.3 鍗囩骇鍒 v4.4 杩囩▼涓殑涓㈠け鍏紡绱㈠紩鐨 bug锛屽師淇敼浠g爜淇濈暀澶囧繕銆倉 % \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! -\renewcommand{\eqref}[1]{\textup{\ref{#1}}} +\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})}} \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 -% \end{macrocode} -% ^^A 使公式编号随着每开始新的一节而重新开始。 +%\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 +% \end{macrocode} +% ^^A 浣垮叕寮忕紪鍙烽殢鐫姣忓紑濮嬫柊鐨勪竴鑺傝岄噸鏂板紑濮嬨 % ^^A \@addtoreset{eqation}{section} % -% 解决证明环境中方块乱跑的问题。 +% 瑙e喅璇佹槑鐜涓柟鍧椾贡璺戠殑闂銆 % \begin{macrocode} \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@ @@ -1873,44 +1763,40 @@ \fi #1} % \end{macrocode} % -% “定理”字样使用黑体,正文使用宋体,冒号隔开 -% \changes{v2.6.2}{2006/06/17}{增加问题和猜想两个数学环境。} +% 瀹氱悊瀛楁牱浣跨敤榛戜綋锛屾鏂囦娇鐢ㄥ畫浣擄紝鍐掑彿闅斿紑 +% \changes{v2.6.2}{2006/06/17}{澧炲姞闂鍜岀寽鎯充袱涓暟瀛︾幆澧冦倉 +% \changes{v4.2}{2008/03/07}{璋冩暣璇佹槑鐜鐨勭紪鍙峰拰缁撳熬鐨勬柟鍧椼倉 % \begin{macrocode} \theorembodyfont{\song\rmfamily} \theoremheaderfont{\hei\rmfamily} - % \theoremsymbol{\ensuremath{\blacksquare}} -\theoremsymbol{\ensuremath{\square}} -\theoremstyle{nonumberplain} % %<*cfg> -\newtheorem{proof}{证明} -% -%<*cls> +% \theoremsymbol{\ensuremath{\blacksquare}} +\theoremsymbol{\ensuremath{\square}} +%\theoremstyle{nonumberplain} +\newtheorem*{proof}{璇佹槑} \theoremstyle{plain} \theoremsymbol{} -% -%<*cfg> -\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] +\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] % % \end{macrocode} % -% \subsubsection{浮动对象以及表格} +% \subsubsection{娴姩瀵硅薄浠ュ強琛ㄦ牸} % \label{sec:float} -% -% 设置浮动对象和文字之间的距离 -% \changes{v2.6}{2006/06/09}{增加~\cs{floatsep},\cs{@fptop},\cs{@fpsep} 和~\cs{@fpbot}。} +% 璁剧疆娴姩瀵硅薄鍜屾枃瀛椾箣闂寸殑璺濈 +% \changes{v2.6}{2006/06/09}{澧炲姞 \cs{floatsep}锛孿cs{@fptop}锛孿cs{@fpsep} 鍜 \cs{@fpbot}銆倉 % \begin{macrocode} %<*cls> \setlength{\floatsep}{12bp \@plus4pt \@minus1pt} @@ -1921,9 +1807,8 @@ \setlength{\@fpbot}{0bp \@plus1.0fil} % \end{macrocode} % -% 下面这组命令使浮动对象的缺省值稍微宽松一点,从而防止幅度 -% 对象占据过多的文本页面,也可以防止在很大空白的浮动页上放置 -% 很小的图形。 +% 涓嬮潰杩欑粍鍛戒护浣挎诞鍔ㄥ璞$殑缂虹渷鍊肩◢寰鏉句竴鐐癸紝浠庤岄槻姝㈠箙搴﹀璞″崰鎹繃澶氱殑鏂囨湰椤甸潰锛 +% 涔熷彲浠ラ槻姝㈠湪寰堝ぇ绌虹櫧鐨勬诞鍔ㄩ〉涓婃斁缃緢灏忕殑鍥惧舰銆 % \begin{macrocode} \renewcommand{\textfraction}{0.15} \renewcommand{\topfraction}{0.85} @@ -1931,19 +1816,20 @@ \renewcommand{\floatpagefraction}{0.60} % \end{macrocode} % -% 定制浮动图形和表格标题样式 +% 瀹氬埗娴姩鍥惧舰鍜岃〃鏍兼爣棰樻牱寮 % \begin{itemize} -% \item 图表标题字体为~11pt, 这里写作大五号 -% \item 去掉图表号后面的冒号。图序与图名文字之间空一个汉字符宽度。 -% \item 图:caption 在下,段前空~6 磅,段后空~12 磅 -% \item 表:caption 在上,段前空~12 磅,段后空~6 磅 +% \item 鍥捐〃鏍囬瀛椾綋涓 11pt锛 杩欓噷鍐欎綔澶т簲鍙 +% \item 鍘绘帀鍥捐〃鍙峰悗闈㈢殑鍐掑彿銆傚浘搴忎笌鍥惧悕鏂囧瓧涔嬮棿绌轰竴涓眽瀛楃瀹藉害銆 +% \item 鍥撅細caption 鍦ㄤ笅锛屾鍓嶇┖ 6 纾咃紝娈靛悗绌 12 纾 +% \item 琛細caption 鍦ㄤ笂锛屾鍓嶇┖ 12 纾咃紝娈靛悗绌 6 纾 % \end{itemize} -% \changes{v2.4}{2006/04/14}{表格内容为~11~磅。} -% \changes{v2.4}{2006/04/14}{图表标题左对齐,取消原先漂亮的~hang~模式。} -% \changes{v2.5}{2006/05/13}{标题上下间距重调,以前没有考虑~\cs{intextsep} 的影响。} -% \changes{v2.5.1}{2006/05/23}{增加~\pkg{subfigure} 和~\pkg{subtable} 的~caption 配置。} -% \changes{v2.5.1}{2006/05/24}{重新定义表格默认字体。} -% \changes{v2.5.3}{2006/06/07}{不管~caption 出现在什么位置,\cs{aboveskip} 总是出现在标题和浮动体之间的距离。} +% \changes{v2.4}{2006/04/14}{琛ㄦ牸鍐呭涓 11 纾呫倉 +% \changes{v2.4}{2006/04/14}{鍥捐〃鏍囬宸﹀榻愶紝鍙栨秷鍘熷厛婕備寒鐨 hang 妯″紡銆倉 +% \changes{v2.5}{2006/05/13}{鏍囬涓婁笅闂磋窛閲嶈皟锛屼互鍓嶆病鏈夎冭檻 \cs{intextsep} 鐨勫奖鍝嶃倉 +% \changes{v2.5.1}{2006/05/23}{澧炲姞 \pkg{subfigure} 鍜 \pkg{subtable} 鐨 caption 閰嶇疆銆倉 +% \changes{v2.5.1}{2006/05/24}{閲嶆柊瀹氫箟琛ㄦ牸榛樿瀛椾綋銆倉 +% \changes{v2.5.3}{2006/06/07}{涓嶇 caption 鍑虹幇鍦ㄤ粈涔堜綅缃紝\cs{aboveskip} 鎬绘槸鍑虹幇鍦ㄦ爣棰樺拰娴姩浣撲箣闂寸殑璺濈銆倉 +% \changes{v4.3}{2008/03/11}{瀛愬浘寮曠敤鏃跺姞鎷彿銆倉 % \begin{macrocode} \let\old@tabular\@tabular \def\thu@tabular{\dawu[1.5]\old@tabular} @@ -1951,31 +1837,25 @@ \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}{:} -% \end{macrocode} -% 我们采用~\pkg{longtable} 来处理跨页的表格。默认有个不足:插图索引部分缺少图 -% 名。同样我们需要设置其默认字体为五号。 -% \changes{v2.5.3}{2006/06/08}{增加对~\pkg{longtable} 的处理。} -% \begin{macrocode} -\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})} +% \renewcommand{\p@subfigure}{:} +% \end{macrocode} +% 鎴戜滑閲囩敤 \pkg{longtable} 鏉ュ鐞嗚法椤电殑琛ㄦ牸銆傚悓鏍锋垜浠渶瑕佽缃叾榛樿瀛椾綋涓轰簲鍙枫 +% \changes{v2.5.3}{2006/06/08}{澧炲姞瀵 \pkg{longtable} 鐨勫鐞嗐倉 +% \changes{v4.5.1}{2009/01/06}{澶ソ浜嗭紝涓嶇敤澶勭悊 \pkg{longtable} 鐨 \cs{caption} +% 浜嗐倉 +% \begin{macrocode} \let\thu@LT@array\LT@array \def\LT@array{\dawu[1.5]\thu@LT@array} % set default font size % \end{macrocode} % % \begin{macro}{\hlinewd} -% 简单的表格使用三线表推荐用~\cs{hlinewd}。如果表格比较复杂还是用~\pkg{booktabs} 的命 -% 令好一些。 +% 绠鍗曠殑琛ㄦ牸浣跨敤涓夌嚎琛ㄦ帹鑽愮敤 \cs{hlinewd}銆傚鏋滆〃鏍兼瘮杈冨鏉傝繕鏄敤 \pkg{booktabs} 鐨勫懡 +% 浠ゅソ涓浜涖 % \begin{macrocode} \def\hlinewd#1{% \noalign{\ifnum0=`}\fi\hrule \@height #1 \futurelet @@ -1985,54 +1865,55 @@ % \end{macro} % % -% \subsubsection{中文标题定义} +% \subsubsection{涓枃鏍囬瀹氫箟} % \label{sec:theor} -% -% \changes{v2.5}{2006/05/19}{增加索引名称定义。} +% \changes{v2.5}{2006/05/19}{澧炲姞绱㈠紩鍚嶇О瀹氫箟銆倉 % \begin{macrocode} %<*cfg> -\renewcommand\contentsname{目\hspace{1em}录} -\renewcommand\listfigurename{插图索引} -\renewcommand\listtablename{表格索引} -\newcommand\listequationname{公式索引} -\newcommand\equationname{公式} -\renewcommand\bibname{参考文献} -\renewcommand\indexname{索引} -\renewcommand\figurename{图} -\renewcommand\tablename{表} -\newcommand\CJKprepartname{第} -\newcommand\CJKpartname{部分} +\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} +%\newcommand\CJKthechapter{\CJKnumber{\@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} % % \end{macrocode} % % -% \subsubsection{章节标题} +% \subsubsection{绔犺妭鏍囬} % \label{sec:titleandtoc} -% -% 如果章节题目中的英文要使用~arial,那么就加上~sffamily +% 濡傛灉绔犺妭棰樼洰涓殑鑻辨枃瑕佷娇鐢 arial锛岄偅涔堝氨鍔犱笂 \cs{sffamily} % \begin{macrocode} %<*cls> \ifthu@arialtitle @@ -2041,11 +1922,11 @@ % \end{macrocode} % % \begin{macro}{\chapter} -% 章序号与章名之间空一个汉字符 黑体三号字,居中书写,单倍行距,段前空~24 磅,段 -% 后空~18 磅。 -% \changes{v2.5}{2006/05/13}{取消~\pkg{titlesec} 宏包,用基本~\LaTeX{} 命令格式化标题。} -% \changes{v2.5.1}{2006/05/23}{让~\cs{chapter*} 自动~\cs{markboth}。} -% \changes{v3.1}{2006/06/16}{英文摘要标题要搞特殊化,ft!} +% 绔犲簭鍙蜂笌绔犲悕涔嬮棿绌轰竴涓眽瀛楃 榛戜綋涓夊彿瀛楋紝灞呬腑涔﹀啓锛屽崟鍊嶈璺濓紝娈靛墠绌 24 纾咃紝娈 +% 鍚庣┖ 18 纾呫 +% \changes{v2.5}{2006/05/13}{鍙栨秷 \pkg{titlesec} 瀹忓寘锛岀敤鍩烘湰 \LaTeX{} 鍛戒护鏍煎紡鍖栨爣棰樸倉 +% \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}% @@ -2094,18 +1975,19 @@ % \end{macro} % % \begin{macro}{\thu@chapter*} -% \changes{v2.5.2}{2006/05/29}{定义自己的~\cs{thu@chapter*}。} -% 默认的~\cs{chapter*} 很难同时满足研究生院和本科生的论文要求。本科论文要求所有 -% 的章都出现在目录里,比如摘要、Abstract、主要符号表等,所以可以简单的扩展默认 -% ~\cs{chapter*} 实现这个目的。但是研究生又不要这些出现在目录中,而且致谢和声明 -% 部分的章名、页眉和目录都不同,所以我想定义一个功能强悍的~\cs{thu@chapter*} 专 -% 门处理他们的变态要求。 -% -% \cs{thu@chapter*}\oarg{tocline}\marg{title}\oarg{header}: tocline 是出现在目录 -% 中的条目,如果为空则此~chapter 不出现在目录中,如果省略表示目录出现~title; -% title 是章标题;header 是页眉出现的标题,如果忽略则取~title。通过这个宏我才真 -% 正体会到~\TeX{} macro 的力量! -% \begin{macrocode} +% \changes{v2.5.2}{2006/05/29}{瀹氫箟鑷繁鐨 \cs{thu@chapter*}銆倉 +% 榛樿鐨 \cs{chapter*} 寰堥毦鍚屾椂婊¤冻鐮旂┒鐢熼櫌鍜屾湰绉戠敓鐨勮鏂囪姹傘傛湰绉戣鏂囪姹傛墍鏈 +% 鐨勭珷閮藉嚭鐜板湪鐩綍閲岋紝姣斿鎽樿銆丄bstract銆佷富瑕佺鍙疯〃绛夛紝鎵浠ュ彲浠ョ畝鍗曠殑鎵╁睍榛樿 +% \cs{chapter*} 瀹炵幇杩欎釜鐩殑銆備絾鏄爺绌剁敓鍙堜笉瑕佽繖浜涘嚭鐜板湪鐩綍涓紝鑰屼笖鑷磋阿鍜屽0鏄 +% 閮ㄥ垎鐨勭珷鍚嶃侀〉鐪夊拰鐩綍閮戒笉鍚岋紝鎵浠ユ垜鎯冲畾涔変竴涓姛鑳藉己鎮嶇殑 \cs{thu@chapter*} 涓 +% 闂ㄥ鐞嗕粬浠殑鍙樻佽姹傘 +% +% \cs{thu@chapter*}\oarg{tocline}\marg{title}\oarg{header}: tocline 鏄嚭鐜板湪鐩綍 +% 涓殑鏉$洰锛屽鏋滀负绌哄垯姝 chapter 涓嶅嚭鐜板湪鐩綍涓紝濡傛灉鐪佺暐琛ㄧず鐩綍鍑虹幇 title锛 +% title 鏄珷鏍囬锛沨eader 鏄〉鐪夊嚭鐜扮殑鏍囬锛屽鏋滃拷鐣ュ垯鍙 title銆傞氳繃杩欎釜瀹忔垜鎵嶇湡 +% 姝d綋浼氬埌 \TeX{} macro 鐨勫姏閲忥紒 +% \begin{macrocode} +\newcounter{thu@bookmark} \def\thu@chapter*{% \@ifnextchar [ % ] {\thu@@chapter} @@ -2121,7 +2003,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 @@ -2134,34 +2017,39 @@ % \end{macrocode} % \end{macro} % \begin{macro}{\section} -% 一级节标题,例如:2.1 实验装置与实验方法 -% 节标题序号与标题名之间空一个汉字符(下同)。 -% 采用黑体四号(14pt)字居左书写,行距为固定值~20 磅,段前空~24 磅,段后空~6 磅。 +% 涓绾ц妭鏍囬锛屼緥濡傦細2.1 瀹為獙瑁呯疆涓庡疄楠屾柟娉 +% 鑺傛爣棰樺簭鍙蜂笌鏍囬鍚嶄箣闂寸┖涓涓眽瀛楃锛堜笅鍚岋級銆 +% 閲囩敤榛戜綋鍥涘彿锛14pt锛夊瓧灞呭乏涔﹀啓锛岃璺濅负鍥哄畾鍊 20 纾咃紝娈靛墠绌 24 纾咃紝娈靛悗绌 6 纾呫 +% \changes{v4.4}{2008/06/04}{璋冩暣娈靛墠璺濅负 -20bp 鑰屼笉鏄師鏉ョ殑 -24bp銆傛湰绉戠殑娣峰笎渚 +% 瀛愶紒} % \begin{macrocode} \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]}} % \end{macrocode} % \end{macro} % % \begin{macro}{\subsection} -% 二级节标题,例如:2.1.1 实验装置 -% 采用黑体~13pt 字居左书写,行距为固定值~20 磅,段前空~12 磅,段后空~6 磅。 +% 浜岀骇鑺傛爣棰橈紝渚嬪锛2.1.1 瀹為獙瑁呯疆 +% 閲囩敤榛戜綋 13pt (鏈鐢熸槸 14pt) 瀛楀眳宸︿功鍐欙紝琛岃窛涓哄浐瀹氬 20 纾咃紝娈靛墠绌 12 纾咃紝娈靛悗绌 6 纾呫 +% \changes{v4.4}{2008/06/04}{淇敼鏈鐢熸ā鏉跨殑浜岀骇鑺傛爣棰樹负灏忓洓鑰屼笉鏄崐灏忓洓銆倉 +% \changes{v4.4}{2008/06/04}{璋冩暣娈靛墠璺濅负 -12bp 鑰屼笉鏄師鏉ョ殑 -16bp銆倉 % \begin{macrocode} \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}} % \end{macrocode} % \end{macro} % % \begin{macro}{\subsubsection} -% 三级节标题,例如:2.1.2.1 归纳法 -% 采用黑体小四号(12pt)字居左书写,行距为固定值~20 磅,段前空~12 磅,段后空~6 磅。 +% 涓夌骇鑺傛爣棰橈紝渚嬪锛2.1.2.1 褰掔撼娉 +% 閲囩敤榛戜綋灏忓洓鍙凤紙12pt锛夊瓧灞呭乏涔﹀啓锛岃璺濅负鍥哄畾鍊 20 纾咃紝娈靛墠绌 12 纾咃紝娈靛悗绌 6 纾呫 +% \changes{v4.4}{2008/06/04}{璋冩暣娈靛墠璺濅负 -12bp 鑰屼笉鏄師鏉ョ殑 -16bp銆倉 % \begin{macrocode} \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]}} % @@ -2169,12 +2057,11 @@ % \end{macro} % % -% \subsubsection{目录格式} +% \subsubsection{鐩綍鏍煎紡} % \label{sec:toc} -% -% 最多涉及~4 层,即: x.x.x.x。\par +% 鏈澶氭秹鍙 4 灞傦紝鍗: x.x.x.x銆俓par % chapter(0), section(1), subsection(2), subsubsection(3) -% \changes{v3.1}{2007/10/09}{博士论文目录只出现到第~3 级标题即可。} +% \changes{v3.1}{2007/10/09}{鍗氬+璁烘枃鐩綍鍙嚭鐜板埌绗 3 绾ф爣棰樺嵆鍙倉 % \begin{macrocode} %<*cls> \setcounter{secnumdepth}{3} @@ -2185,28 +2072,29 @@ \fi % \end{macrocode} % -% -% 每章标题行前空~6 磅,后空~0 磅。如果使用目录项中英文要使用~Arial,那么就加上 -% ~\cs{sffamily}。章节名中英文用~Arial 字体,页码仍用~Times。 -% \changes{v2.0}{2005/12/18}{附录的目录项需要调整一下。以及公式编号方式等等。} -% \changes{v2.5}{2006/05/13}{取消~\pkg{titletoc}~宏包,用~\cs{dottedtocline} 调整 -% 目录。} -% \changes{v2.5.1}{2006/05/23}{减小目录项中的导引小点跟页码之间的留白。} -% \changes{v2.5.2}{2006/05/29}{用~\cs{thu@chapter*} 改写目录命令。} -% \changes{v3.0}{2007/05/12}{缩小目录中标题与页码之间“点”之间的距离。} -% \changes{v4.0}{2007/11/08}{本科研究生目录字号行距都不同。} +% 姣忕珷鏍囬琛屽墠绌 6 纾咃紝鍚庣┖ 0 纾呫傚鏋滀娇鐢ㄧ洰褰曢」涓嫳鏂囪浣跨敤 Arial锛岄偅涔堝氨鍔犱笂 \cs{sffamily}銆傜珷鑺傚悕涓嫳鏂囩敤 Arial 瀛椾綋锛岄〉鐮佷粛鐢 Times銆 +% \changes{v2.0}{2005/12/18}{闄勫綍鐨勭洰褰曢」闇瑕佽皟鏁翠竴涓嬨備互鍙婂叕寮忕紪鍙锋柟寮忕瓑绛夈倉 +% \changes{v2.5}{2006/05/13}{鍙栨秷 \pkg{titletoc} 瀹忓寘锛岀敤 \cs{dottedtocline} 璋冩暣 +% 鐩綍銆倉 +% \changes{v2.5.1}{2006/05/23}{鍑忓皬鐩綍椤逛腑鐨勫寮曞皬鐐硅窡椤电爜涔嬮棿鐨勭暀鐧姐倉 +% \changes{v2.5.2}{2006/05/29}{鐢 \cs{thu@chapter*} 鏀瑰啓鐩綍鍛戒护銆倉 +% \changes{v3.0}{2007/05/12}{缂╁皬鐩綍涓爣棰樹笌椤电爜涔嬮棿\textbf{鐐箎涔嬮棿鐨勮窛绂汇倉 +% \changes{v4.0}{2007/11/08}{鏈鐮旂┒鐢熺洰褰曞瓧鍙疯璺濋兘涓嶅悓銆倉 +% \changes{v4.4}{2008/06/04}{鏈鐢熺洰褰曞瓧鍙锋敼鍥瀄cs{xiaosi}\oarg{1.8}銆倉 +% \changes{v4.4}{2008/06/04}{鏈鐢熺洰褰曠缉杩涜姹備笉鍚屻倉 +% \changes{v4.4}{2008/06/18}{鏈绔犵洰褰曢」涓鐩寸敤榛戜綋 (Arial)銆倉 % \begin{macro}{\tableofcontents} -% 目录生成命令。 +% 鐩綍鐢熸垚鍛戒护銆 % \begin{macrocode} \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@ @@ -2232,26 +2120,26 @@ \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}} % % \end{macrocode} % \end{macro} % % -% \subsubsection{封面和封底} +% \subsubsection{灏侀潰鍜屽皝搴晑 % \label{sec:cover} % \begin{macro}{\thu@define@term} -% 方便的定义封面的一些替换命令。 -% \changes{v2.6.2}{2006/06/18}{引入~\cs{thu@define@term} 定义封面命令。} -% \changes{v3.1}{2006/06/16}{重新定义摘要为环境,long 选项不需要了。} +% 鏂逛究鐨勫畾涔夊皝闈㈢殑涓浜涙浛鎹㈠懡浠ゃ +% \changes{v2.6.2}{2006/06/18}{寮曞叆 \cs{thu@define@term} 瀹氫箟灏侀潰鍛戒护銆倉 +% \changes{v3.1}{2006/06/16}{閲嶆柊瀹氫箟鎽樿涓虹幆澧冿紝long 閫夐」涓嶉渶瑕佷簡銆倉 % \begin{macrocode} %<*cls> \def\thu@define@term#1{ @@ -2260,8 +2148,8 @@ \csname #1\endcsname{}} % \end{macrocode} % \end{macro} -% 封面、摘要、版权、致谢格式定义 -% \changes{v2.0}{2005/12/18}{增加了封面密级,增加博士封面支持} +% 灏侀潰銆佹憳瑕併佺増鏉冦佽嚧璋㈡牸寮忓畾涔 +% \changes{v2.0}{2005/12/18}{澧炲姞浜嗗皝闈㈠瘑绾э紝澧炲姞鍗氬+灏侀潰鏀寔} % \begin{macro}{\secretlevel} % \begin{macro}{\secretyear} % \begin{macro}{\ctitle} @@ -2286,20 +2174,20 @@ % \begin{macro}{\eassosupervisor} % \begin{macro}{\ecosupervisor} % \begin{macro}{\edate} -% \changes{v2.5}{2006/05/20}{院系和专业分别改名用~department 和~major,代替原来 -% 的~affil 和~subject。} \changes{v2.6.2}{2006/06/18}{改正~groupmembers 的拼 -% 写错误。} +% \changes{v2.5}{2006/05/20}{闄㈢郴鍜屼笓涓氬垎鍒敼鍚嶇敤 department 鍜 major锛屼唬鏇垮師鏉 +% 鐨 affil 鍜 subject銆倉 \changes{v2.6.2}{2006/06/18}{鏀规 groupmembers 鐨勬嫾 +% 鍐欓敊璇倉 % \begin{macrocode} \thu@define@term{secretlevel} \thu@define@term{secretyear} \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} @@ -2344,23 +2232,23 @@ % % \begin{environment}{cabstract} % \begin{environment}{eabstract} -% 摘要最好以环境的形式出现(否则命令的形式会导致开始结束的括号举例太远,我不喜 -% 欢),这就必须让环境能够自己保存内容留待以后使用。ctt 上找到两种方法:1)使用 -% ~\pkg{amsmath} 中的~\cs{collect@body},但是此宏没有定义为~long,不能直接用。 -% 2)利用~\LaTeX{} 中环境和对应命令间的命名关系以及参数分隔符的特点非常巧妙地实 -% 现了这个功能,其不足是不能嵌套环境。由于摘要部分经常会用到诸如~itemize 类似 -% 的环境,所以我们不得不选择第一种负责的方法。以下是修改~\pkg{amsmath} 代码部分: -% \changes{v3.1}{2006/06/17}{重新定义摘要成为环境,Great!} +% 鎽樿鏈濂戒互鐜鐨勫舰寮忓嚭鐜帮紙鍚﹀垯鍛戒护鐨勫舰寮忎細瀵艰嚧寮濮嬬粨鏉熺殑鎷彿涓句緥澶繙锛屾垜涓嶅枩 +% 娆級锛岃繖灏卞繀椤昏鐜鑳藉鑷繁淇濆瓨鍐呭鐣欏緟浠ュ悗浣跨敤銆俢tt 涓婃壘鍒颁袱绉嶆柟娉曪細1锛変娇鐢 +% \pkg{amsmath} 涓殑 \cs{collect@body}锛屼絾鏄瀹忔病鏈夊畾涔変负 long锛屼笉鑳界洿鎺ョ敤銆 +% 2锛夊埄鐢 \LaTeX{} 涓幆澧冨拰瀵瑰簲鍛戒护闂寸殑鍛藉悕鍏崇郴浠ュ強鍙傛暟鍒嗛殧绗︾殑鐗圭偣闈炲父宸у鍦板疄 +% 鐜颁簡杩欎釜鍔熻兘锛屽叾涓嶈冻鏄笉鑳藉祵濂楃幆澧冦傜敱浜庢憳瑕侀儴鍒嗙粡甯镐細鐢ㄥ埌璇稿 itemize 绫讳技 +% 鐨勭幆澧冿紝鎵浠ユ垜浠笉寰椾笉閫夋嫨绗竴绉嶈礋璐g殑鏂规硶銆備互涓嬫槸淇敼 \pkg{amsmath} 浠g爜閮ㄥ垎锛 +% \changes{v3.1}{2006/06/17}{閲嶆柊瀹氫箟鎽樿鎴愪负鐜锛孏reat!} % \begin{macrocode} \long\@xp\def\@xp\collect@@body\@xp#\@xp1\@xp\end\@xp#\@xp2\@xp{% \collect@@body{#1}\end{#2}} \long\@xp\def\@xp\push@begins\@xp#\@xp1\@xp\begin\@xp#\@xp2\@xp{% \push@begins{#1}\begin{#2}} \long\@xp\def\@xp\addto@envbody\@xp#\@xp1\@xp{% - \addto@envbody{#1}} + \addto@envbody{#1}} % \end{macrocode} % -% 使用~\cs{collect@body} 来构建摘要环境。 +% 浣跨敤 \cs{collect@body} 鏉ユ瀯寤烘憳瑕佺幆澧冦 % \begin{macrocode} \newcommand{\thu@@cabstract}[1]{\long\gdef\thu@cabstract{#1}} \newenvironment{cabstract}{\collect@body\thu@@cabstract}{} @@ -2371,9 +2259,9 @@ % \end{environment} % % \begin{macro}{\thu@parse@keywords} -% 不同论文格式关键词之间的分割不太相同,我们用~\cs{ckeywords} 和 -% ~\cs{ekeywords} 来收集关键词列表,然后用本命令来生成符合要求的格式。 -% \cs{expandafter} 都快把我整晕了。 +% 涓嶅悓璁烘枃鏍煎紡鍏抽敭璇嶄箣闂寸殑鍒嗗壊涓嶅お鐩稿悓锛屾垜浠敤 \cs{ckeywords} 鍜 +% \cs{ekeywords} 鏉ユ敹闆嗗叧閿瘝鍒楄〃锛岀劧鍚庣敤鏈懡浠ゆ潵鐢熸垚绗﹀悎瑕佹眰鐨勬牸寮忋 +% \cs{expandafter} 閮藉揩鎶婃垜鏁存檿浜嗐 % \begin{macrocode} \def\thu@parse@keywords#1{ \expandafter\gdef\csname thu@#1\endcsname{} % todo: need or not? @@ -2388,8 +2276,8 @@ % \end{macro} % \begin{macro}{\ckeywords} % \begin{macro}{\ekeywords} -% 利用~\cs{thu@parse@keywords} 来定义,内部通过~\cs{thu@ckeywords} 来引用。 -% \changes{v3.1}{2007/06/16}{增强的关键词命令。} +% 鍒╃敤 \cs{thu@parse@keywords} 鏉ュ畾涔夛紝鍐呴儴閫氳繃 \cs{thu@ckeywords} 鏉ュ紩鐢ㄣ +% \changes{v3.1}{2007/06/16}{澧炲己鐨勫叧閿瘝鍛戒护銆倉 % \begin{macrocode} \thu@parse@keywords{ckeywords} \thu@parse@keywords{ekeywords} @@ -2400,91 +2288,92 @@ % % \changes{v1.4rc1}{2005/12/14}{I have to put all chinese chars into cfg, % otherwise they would not appear.} -% \changes{v2.5.1}{2006/05/25}{硕士封面的冒号前居然有点小距离!} -% \changes{v3.1}{2007/10/09}{去掉配置文件中的~\cs{hfill}。} -% \changes{v3.1}{2007/10/09}{“内部”密级前面要五角星了。} -% \changes{v4.0}{2007/11/08}{“内部”密级前面终究还是不要五角星了。} +% \changes{v2.5.1}{2006/05/25}{纭曞+灏侀潰鐨勫啋鍙峰墠灞呯劧鏈夌偣灏忚窛绂伙紒} +% \changes{v3.1}{2007/10/09}{鍘绘帀閰嶇疆鏂囦欢涓殑 \cs{hfill}銆倉 +% \changes{v3.1}{2007/10/09}{\textbf{鍐呴儴}瀵嗙骇鍓嶉潰瑕佷簲瑙掓槦浜嗐倉 +% \changes{v4.0}{2007/11/08}{\textbf{鍐呴儴}瀵嗙骇鍓嶉潰缁堢┒杩樻槸涓嶈浜旇鏄熶簡銆倉 +% \changes{v4.4.2}{2008/06/05}{鏈鐢熸牸寮忕粓浜庝篃寮濮嬬敤绌烘牸浣滀负鍏抽敭瀛楀垎闅旂浜嗐倉 +% \changes{v4.4.2}{2008/06/07}{鏈鐢熺鍚嶄箣闂磋窛绂绘敼涓 \cs{hskip1em}銆倉 % \begin{macrocode} %<*cfg> \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}{关键词:} + \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}{鍏抽敭璇嶏細} % % \end{macrocode} % % % \begin{macro}{\thu@first@titlepage} -% 论文封面第一页! +% 璁烘枃灏侀潰绗竴椤碉紒 % -% 题名使用一号黑体字,一行写不下时可分两行写,并采用~1.25 倍行距。 -% 申请学位的学科门类: 小二号宋体字。 -% 中文封面页边距: -% 上-~6.0 厘米,下-~5.5 厘米,左-~4.0 厘米,右-~4.0 厘米,装订线~0 厘米; -% \changes{v2.5.1}{2006/05/21}{本科封面标题调整微小的空隙。} -% \changes{v2.5.1}{2006/05/21}{本科封面标题第二行的横线上移一点。} -% \changes{v2.5.2}{2006/05/29}{研究生论文标题中英文用~arial 字体。} -% \changes{v2.6}{2006/06/09}{本科生题目加长,最多~24 个字。} +% 棰樺悕浣跨敤涓鍙烽粦浣撳瓧锛屼竴琛屽啓涓嶄笅鏃跺彲鍒嗕袱琛屽啓锛屽苟閲囩敤 1.25 鍊嶈璺濄 +% 鐢宠瀛︿綅鐨勫绉戦棬绫: 灏忎簩鍙峰畫浣撳瓧銆 +% 涓枃灏侀潰椤佃竟璺濓細 +% 涓- 6.0 鍘樼背锛屼笅- 5.5 鍘樼背锛屽乏- 4.0 鍘樼背锛屽彸- 4.0 鍘樼背锛岃璁㈢嚎 0 鍘樼背锛 +% \changes{v2.5.1}{2006/05/21}{鏈灏侀潰鏍囬璋冩暣寰皬鐨勭┖闅欍倉 +% \changes{v2.5.1}{2006/05/21}{鏈灏侀潰鏍囬绗簩琛岀殑妯嚎涓婄Щ涓鐐广倉 +% \changes{v2.5.2}{2006/05/29}{鐮旂┒鐢熻鏂囨爣棰樹腑鑻辨枃鐢 arial 瀛椾綋銆倉 +% \changes{v2.6}{2006/06/09}{鏈鐢熼鐩姞闀匡紝鏈澶 24 涓瓧銆倉 % \begin{macrocode} %<*cls> \newlength{\thu@title@width} @@ -2500,15 +2389,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 - \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 + \noindent\hei\xiaoer\thu@bachelor@title@pre\thu@title@sep + \parbox[t]{12cm}{% + \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}{ @@ -2525,56 +2417,71 @@ \fi % \end{macrocode} % -% 作者及导师信息部分使用三号仿宋字 -% \changes{v2.0}{2005/12/20}{封面的培养单位,学科等内容字距自动调整。} -% \changes{v2.1}{2006/02/29}{增加本科部分。} -% \changes{v2.6.2}{2006/06/17}{如果本科生没有辅导教师则不显示。} -% \changes{v3.1}{2007/10/09}{重新放置封面表格的提示元素。} +% 浣滆呭強瀵煎笀淇℃伅閮ㄥ垎浣跨敤涓夊彿浠垮畫瀛 +% \changes{v2.0}{2005/12/20}{灏侀潰鐨勫煿鍏诲崟浣嶏紝瀛︾绛夊唴瀹瑰瓧璺濊嚜鍔ㄨ皟鏁淬倉 +% \changes{v2.1}{2006/02/29}{澧炲姞鏈閮ㄥ垎銆倉 +% \changes{v2.6.2}{2006/06/17}{濡傛灉鏈鐢熸病鏈夎緟瀵兼暀甯堝垯涓嶆樉绀恒倉 +% \changes{v3.1}{2007/10/09}{閲嶆柊鏀剧疆灏侀潰琛ㄦ牸鐨勬彁绀哄厓绱犮倉 +% \changes{v4.4.3}{2008/06/09}{淇敼鏈鐢熻鏂囧皝闈㈡牸寮忎互绗﹀悎鏂版牱渚嬨倉 % \begin{macrocode} - \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}}} -% \end{macrocode} -% -% 论文成文打印的日期,用三号宋体汉字,不用阿拉伯数字 + \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 +% \end{macrocode} +% +% 璁烘枃鎴愭枃鎵撳嵃鐨勬棩鏈燂紝鐢ㄤ笁鍙峰畫浣撴眽瀛楋紝涓嶇敤闃挎媺浼暟瀛 +% \changes{v4.4.3}{2008/06/09}{淇敼鏈鐢熻鏂囧皝闈㈡棩鏈熸牸寮忎互绗﹀悎鏂版牱渚嬨倉 % \begin{macrocode} \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 % \end{macrocode} % \end{macro} % % \begin{macro}{\thu@doctor@engcover} -% 博士论文英文封面部分。 +% 鍗氬+璁烘枃鑻辨枃灏侀潰閮ㄥ垎銆 +% \changes{v4.2}{2008/01/23}{鍗氬+鑻辨枃灏侀潰琛ュ厖鑱斿悎瀵煎笀銆倉 % \begin{macrocode} \newcommand{\thu@doctor@engcover}{% \begin{center} @@ -2606,6 +2513,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} @@ -2614,10 +2523,11 @@ \end{center}} % \end{macrocode} % \end{macro} -% \changes{4.0}{2007/11/08}{研究生的授权部分调整了一下,不知道老师为什么总爱修改 -% 那些无关紧要的格式,郁闷。感谢~PMHT@newsmth 的认真比对。} +% \changes{4.0}{2007/11/08}{鐮旂┒鐢熺殑鎺堟潈閮ㄥ垎璋冩暣浜嗕竴涓嬶紝涓嶇煡閬撹佸笀涓轰粈涔堟荤埍淇敼 +% 閭d簺鏃犲叧绱ц鐨勬牸寮忥紝閮侀椃銆傛劅璋 PMHT@newsmth 鐨勮鐪熸瘮瀵广倉 +% \changes{4.4.2}{2008/06/07}{淇敼鏈鐢熺殑鎺堟潈閮ㄥ垎锛屾寜鐓 2008 骞寸殑鏂版牱渚嬨倉 % \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}{% @@ -2626,9 +2536,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 @@ -2644,7 +2554,7 @@ % % % \begin{macro}{\makecover} -% \changes{v2.1}{2006/02/29}{分成几个小模块来搞,不然这个~macro 太大了,看不过来。} +% \changes{v2.1}{2006/02/29}{鍒嗘垚鍑犱釜灏忔ā鍧楁潵鎼烇紝涓嶇劧杩欎釜 macro 澶ぇ浜嗭紝鐪嬩笉杩囨潵銆倉 % \begin{macrocode} \newcommand{\makecover}{ \phantomsection @@ -2653,51 +2563,50 @@ \begin{titlepage} % \end{macrocode} % -% 论文封面第一页! +% 璁烘枃灏侀潰绗竴椤碉紒 % \begin{macrocode} -\thu@first@titlepage + \thu@first@titlepage % \end{macrocode} % -% \changes{v2.5}{2006/05/19}{本科论文评语位置调整。} -% \changes{v3.0}{2007/05/12}{本科论文评语取消。} +% \changes{v2.5}{2006/05/19}{鏈璁烘枃璇勮浣嶇疆璋冩暣銆倉 +% \changes{v3.0}{2007/05/12}{鏈璁烘枃璇勮鍙栨秷銆倉 % -% 博士论文需要增加英文封面 +% 鍗氬+璁烘枃闇瑕佸鍔犺嫳鏂囧皝闈 % \begin{macrocode} -\ifthu@doctor - \cleardoublepage\thu@doctor@engcover -\fi + \ifthu@doctor + \cleardoublepage\thu@doctor@engcover + \fi % \end{macrocode} % -% 授权说明 -% \changes{v3.0}{2007/05/12}{本科论文授权图片扫描取消。} +% 鎺堟潈璇存槑 +% \changes{v3.0}{2007/05/12}{鏈璁烘枃鎺堟潈鍥剧墖鎵弿鍙栨秷銆倉 % \begin{macrocode} -\cleardoublepage\thu@authorization@mk - \end{titlepage} + \cleardoublepage\thu@authorization@mk + \end{titlepage} % \end{macrocode} % -% \changes{v2.5}{2006/05/16}{综合论文训练在授权说明之后。} -% \changes{v3.0}{2007/05/12}{本科综合论文训练在电子版中取消。} +% \changes{v2.5}{2006/05/16}{缁煎悎璁烘枃璁粌鍦ㄦ巿鏉冭鏄庝箣鍚庛倉 +% \changes{v3.0}{2007/05/12}{鏈缁煎悎璁烘枃璁粌鍦ㄧ數瀛愮増涓彇娑堛倉 % -% 中英文摘要 +% 涓嫳鏂囨憳瑕 % \begin{macrocode} -\normalsize -\thu@makeabstract -\let\@tabular\thu@tabular} + \normalsize + \thu@makeabstract + \let\@tabular\thu@tabular} % % \end{macrocode} % \end{macro} % -% \subsubsection{摘要格式} +% \subsubsection{鎽樿鏍煎紡} % \label{sec:abstractformat} % % \begin{macro}{\thu@makeabstract} -% 中文摘要部分的标题为"摘要",用黑体三号字。 -% \changes{v2.5.1}{2006/05/24}{我靠,教务处又不要正文前的页眉了,ft!} -% \changes{v2.5.1}{2006/05/24}{不管是哪种论文格式,摘要都要右开。} -% \changes{v2.5.2}{2006/05/29}{在研究生论文中,摘要不出现在目录中,但是要在书签 -% 中出现。} -% \changes{v2.5.3}{2006/06/03}{\cs{pagenumber} 会自动设置页码为~1。} -% \changes{v2.6.3}{2006/06/30}{为本科正确设置目录及以后的页码。} +% 涓枃鎽樿閮ㄥ垎鐨勬爣棰樹负\textbf{鎽樿}锛岀敤榛戜綋涓夊彿瀛椼 +% \changes{v2.5.1}{2006/05/24}{鎴戦潬锛屾暀鍔″鍙堜笉瑕佹鏂囧墠鐨勯〉鐪変簡锛宖t锛亇 +% \changes{v2.5.1}{2006/05/24}{涓嶇鏄摢绉嶈鏂囨牸寮忥紝鎽樿閮借鍙冲紑銆倉 +% \changes{v2.5.2}{2006/05/29}{鍦ㄧ爺绌剁敓璁烘枃涓紝鎽樿涓嶅嚭鐜板湪鐩綍涓紝浣嗘槸瑕佸湪涔︾涓嚭鐜般倉 +% \changes{v2.5.3}{2006/06/03}{\cs{pagenumber} 浼氳嚜鍔ㄨ缃〉鐮佷负 1銆倉 +% \changes{v2.6.3}{2006/06/30}{涓烘湰绉戞纭缃洰褰曞強浠ュ悗鐨勯〉鐮併倉 % \begin{macrocode} %<*cls> \newcommand{\thu@makeabstract}{% @@ -2711,57 +2620,62 @@ \pagenumbering{Roman} % \end{macrocode} % -% 摘要内容用小四号字书写,两端对齐,汉字用宋体,外文字用~Times New Roman 体, -% 标点符号一律用中文输入状态下的标点符号。 -% \changes{v3.1}{2007/06/16}{研究生关键词不再沉底。} +% 鎽樿鍐呭鐢ㄥ皬鍥涘彿瀛椾功鍐欙紝涓ょ瀵归綈锛屾眽瀛楃敤瀹嬩綋锛屽鏂囧瓧鐢 Times New Roman 浣擄紝 +% 鏍囩偣绗﹀彿涓寰嬬敤涓枃杈撳叆鐘舵佷笅鐨勬爣鐐圭鍙枫 +% \changes{v3.1}{2007/06/16}{鐮旂┒鐢熷叧閿瘝涓嶅啀娌夊簳銆倉 % \begin{macrocode} \thu@cabstract % \end{macrocode} -% 每个关键词之间空两个汉字符宽度, 且为悬挂缩进 -% \changes{v2.6.2}{2006/06/17}{取消最后一列的空白。} -% \changes{v2.6.2}{2006/06/20}{取消~tabular 环境,用~\cs{hangindent} 实现关键词 -% 悬挂缩进,英文摘要同。} +% 姣忎釜鍏抽敭璇嶄箣闂寸┖涓や釜姹夊瓧绗﹀搴︼紝 涓斾负鎮寕缂╄繘 +% \changes{v2.6.2}{2006/06/17}{鍙栨秷鏈鍚庝竴鍒楃殑绌虹櫧銆倉 +% \changes{v2.6.2}{2006/06/20}{鍙栨秷 tabular 鐜锛岀敤 \cs{hangindent} 瀹炵幇鍏抽敭璇 +% 鎮寕缂╄繘锛岃嫳鏂囨憳瑕佸悓銆倉 +% \changes{v4.4.2}{2008/06/05}{鏈鐢熸牸寮忎腑鏂囧叧閿瘝閲囩敤棣栬缂╄繘涓旀棤鎮寕缂╄繘銆倉 % \begin{macrocode} \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 % \end{macrocode} % -% 英文摘要部分的标题为“Abstract”,用~Arial 体三号字。研究生的英文摘要要求非常怪 -% 异:虽然正文前的封面部分为右开,但是英文摘要要跟中文摘要连续。 -% \changes{v.2.5.1}{2006/05/28}{研究生封面英文摘要连续。} +% 鑻辨枃鎽樿閮ㄥ垎鐨勬爣棰樹负 \textbf{Abstract}锛岀敤 Arial 浣撲笁鍙峰瓧銆傜爺绌剁敓鐨勮嫳鏂囨憳瑕佽姹 +% 闈炲父鎬紓锛氳櫧鐒舵鏂囧墠鐨勫皝闈㈤儴鍒嗕负鍙冲紑锛屼絾鏄嫳鏂囨憳瑕佽璺熶腑鏂囨憳瑕佽繛 +% 缁俓changes{v.2.5.1}{2006/05/28}{鐮旂┒鐢熷皝闈㈣嫳鏂囨憳瑕佽繛缁倉 % \begin{macrocode} \thu@chapter*[]{\eabstractname} % no tocline % \end{macrocode} % -% 摘要内容用小四号~Times New Roman。 +% 鎽樿鍐呭鐢ㄥ皬鍥涘彿 Times New Roman銆 % \begin{macrocode} \thu@eabstract % \end{macrocode} % -% 每个关键词之间空四个英文字符宽度 +% 姣忎釜鍏抽敭璇嶄箣闂寸┖鍥涗釜鑻辨枃瀛楃瀹藉害 % \changes{v2.4}{2006/04/14}{It is \textbf{Key words}, but not \textbf{Key % Words}.} -% \changes{v2.6.2}{2006/06/17}{取消最后一列的空白。} +% \changes{v2.6.2}{2006/06/17}{鍙栨秷鏈鍚庝竴鍒楃殑绌虹櫧銆倉 % \changes{v2.6.4}{2006/10/23}{\textbf{Keywords} but not \textbf{Key words}.} % \changes{v3.0}{2007/05/13}{\textbf{Key words} but not % \textbf{Keywords}. What are you doing?} +% \changes{v4.4.2}{2008/06/05}{Bachelor English abstract format requires +% indent and no hang-indent.} % \begin{macrocode} \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} % % \end{macrocode} % \end{macro} % -% \subsubsection{主要符号表} +% \subsubsection{涓昏绗﹀彿琛▆ % \label{sec:denotationfmt} % \begin{environment}{denotation} -% 主要符号对照表\changes{v2.0e}{2005/12/18}{主要符号表定义为一个~list,用起来方便。} -% \changes{v2.4}{2006/04/14}{为主要符号表环境增加一个可选参数,调节符号列的宽度。} +% 涓昏绗﹀彿瀵圭収琛╘changes{v2.0e}{2005/12/18}{涓昏绗﹀彿琛ㄥ畾涔変负涓涓 list锛岀敤璧锋潵鏂逛究銆倉 +% \changes{v2.4}{2006/04/14}{涓轰富瑕佺鍙疯〃鐜澧炲姞涓涓彲閫夊弬鏁帮紝璋冭妭绗﹀彿鍒楃殑瀹藉害銆倉 % \begin{macrocode} %<*cfg> -\newcommand{\thu@denotation@name}{主要符号对照表} +\newcommand{\thu@denotation@name}{涓昏绗﹀彿瀵圭収琛▆ % %<*cls> \newenvironment{denotation}[1][2.5cm]{ @@ -2769,52 +2683,52 @@ \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}} % % \end{macrocode} % \end{environment} % % -% \subsubsection{致谢以及声明} +% \subsubsection{鑷磋阿浠ュ強澹版槑} % \label{sec:ackanddeclare} % % \begin{environment}{ack} -% \changes{v2.4}{2006/04/14}{调整“致谢”等中间的距离。} +% \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}{本人郑重声明:所呈交的学位论文,是本人在导师指导下 - ,独立进行研究工作所取得的成果。尽我所知,除文中已经注明引用的内容外,本学位论 - 文的研究成果不包含任何他人享有著作权的内容。对本论文所涉及的研究工作做出贡献的 - 其他个人和集体,均已在文中以明确方式标明。} -\newcommand{\thu@signature}{签\hspace{1em}名:} -\newcommand{\thu@backdate}{日\hspace{1em}期:} +\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}鏈燂細} % % \end{macrocode} % -% \changes{v2.0}{2005/12/19}{将致谢定义为一个环境更合适,里面也不用像以前段首需 -% 要自己缩进。} -% \changes{v1.5}{2005/12/16}{在那些不显示编号的章节前面先执行一次 -% ~\cs{cleardoublepage},使新开章节的页码到达正确的状态。否则会因为~\cs{addcontentsline} -% 在~chapter 之前而导致目录页码错误。} -% 定义致谢与声明环境。 -% \changes{v2.5}{2006/05/16}{ft,本科论文要求致谢声明分页,但是研究生的不分!} -% \changes{v2.5.2}{2006/05/29}{研究生致谢右开。} -% \changes{v2.5.2}{2006/05/30}{研究生致谢题目是致谢,目录是致谢与声明。} -% \changes{v2.6.3}{2006/07/01}{重画双虚线,自适应页面宽度。} +% \changes{v2.0}{2005/12/19}{灏嗚嚧璋㈠畾涔変负涓涓幆澧冩洿鍚堥傦紝閲岄潰涔熶笉鐢ㄥ儚浠ュ墠娈甸闇 +% 瑕佽嚜宸辩缉杩涖倉 +% \changes{v1.5}{2005/12/16}{鍦ㄩ偅浜涗笉鏄剧ず缂栧彿鐨勭珷鑺傚墠闈㈠厛鎵ц涓娆 +% \cs{cleardoublepage}锛屼娇鏂板紑绔犺妭鐨勯〉鐮佸埌杈炬纭殑鐘舵併傚惁鍒欎細鍥犱负 \cs{addcontentsline} +% 鍦 chapter 涔嬪墠鑰屽鑷寸洰褰曢〉鐮侀敊璇倉 +% 瀹氫箟鑷磋阿涓庡0鏄庣幆澧冦 +% \changes{v2.5}{2006/05/16}{ft锛屾湰绉戣鏂囪姹傝嚧璋㈠0鏄庡垎椤碉紝浣嗘槸鐮旂┒鐢熺殑涓嶅垎锛亇 +% \changes{v2.5.2}{2006/05/29}{鐮旂┒鐢熻嚧璋㈠彸寮銆倉 +% \changes{v2.5.2}{2006/05/30}{鐮旂┒鐢熻嚧璋㈤鐩槸鑷磋阿锛岀洰褰曟槸鑷磋阿涓庡0鏄庛倉 +% \changes{v2.6.3}{2006/07/01}{閲嶇敾鍙岃櫄绾匡紝鑷傚簲椤甸潰瀹藉害銆倉 % \begin{macrocode} %<*cls> \newenvironment{ack}{% @@ -2835,8 +2749,8 @@ \end{picture}} \fi % END TAG 1 % \end{macrocode} -% 声明部分 -% \changes{v3.0}{2007/05/12}{本科论文声明部分图片扫描取消。} +% 澹版槑閮ㄥ垎 +% \changes{v3.0}{2007/05/12}{鏈璁烘枃澹版槑閮ㄥ垎鍥剧墖鎵弿鍙栨秷銆倉 % \begin{macrocode} \ifthu@bachelor \thu@chapter*{\thu@declarename} @@ -2851,38 +2765,32 @@ % \end{macrocode} % \end{environment} % -% \subsubsection{索引部分} +% \subsubsection{绱㈠紩閮ㄥ垎} % \label{sec:threeindex} -% \changes{v2.5}{2006/05/18}{增加插图、表格和公式索引。} -% \changes{v2.5}{2006/05/19}{为了让索引中能出现“图 xxx”,我不得不修改~\LaTeX -% 内部命令~\cs{@caption}。} -% \changes{v2.6.4}{2006/10/23}{增加~\cs{listoffigures*},\cs{listoftables*}。} +% \changes{v2.5}{2006/05/18}{澧炲姞鎻掑浘銆佽〃鏍煎拰鍏紡绱㈠紩銆倉 +% \changes{v2.5}{2006/05/19}{涓轰簡璁╃储寮曚腑鑳藉嚭鐜癨textbf{鍥 xxx}锛屼笉寰椾笉淇敼 \LaTeX +% 鍐呴儴鍛戒护 \cs{@caption}銆倉 +% \changes{v2.6.4}{2006/10/23}{澧炲姞 \cs{listoffigures*}锛孿cs{listoftables*}銆倉 +% \changes{v4.5.1}{2009/01/06}{鏇翠紭闆呯殑鎻掑浘/琛ㄦ牸绱㈠紩锛岄伩鍏嶈窡 \pkg{caption} 鍖呭啿 +% 绐併俓cs{thu@listof} 鐩稿簲淇敼銆倉 % \begin{macro}{\listoffigures} % \begin{macro}{\listoffigures*} % \begin{macro}{\listoftables} % \begin{macro}{\listoftables*} % \begin{macrocode} %<*cls> -\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 % \end{macrocode} % \end{macro} @@ -2891,80 +2799,76 @@ % \end{macro} % % \begin{macro}{\equcaption} -% \changes{v2.6.2}{2006/06/19}{此命令配合~\pkg{amsmath} 命令基本可以满足所有 -% 公式需要。} -% 本命令只是为了生成公式列表,所以这个~caption~是假的。如果要编号最好用 -% ~equation 环境,如果是其它编号环境,请手动添加添加~\cs{equcaption}。 -% 用法如下: +% \changes{v2.6.2}{2006/06/19}{姝ゅ懡浠ら厤鍚 \pkg{amsmath} 鍛戒护鍩烘湰鍙互婊¤冻鎵鏈 +% 鍏紡闇瑕併倉 +% 鏈懡浠ゅ彧鏄负浜嗙敓鎴愬叕寮忓垪琛紝鎵浠ヨ繖涓 caption 鏄亣鐨勩傚鏋滆缂栧彿鏈濂界敤 +% equation 鐜锛屽鏋滄槸鍏跺畠缂栧彿鐜锛岃鎵嬪姩娣诲姞娣诲姞 \cs{equcaption}銆 +% 鐢ㄦ硶濡備笅锛 % % \cs{equcaption}\marg{counter} % -% \marg{counter} 指定出现在索引中的编号,一般取~\cs{theequation},如果你是用 -% ~\pkg{amsmath} 的~\cs{tag},那么默认是~\cs{tag} 的参数;除此之外可能需要你 -% 手工指定。 +% \marg{counter} 鎸囧畾鍑虹幇鍦ㄧ储寮曚腑鐨勭紪鍙凤紝涓鑸彇 \cs{theequation}锛屽鏋滀綘鏄敤 +% \pkg{amsmath} 鐨 \cs{tag}锛岄偅涔堥粯璁ゆ槸 \cs{tag} 鐨勫弬鏁帮紱闄ゆ涔嬪鍙兘闇瑕佷綘 +% 鎵嬪伐鎸囧畾銆 % -% \changes{v2.5}{2006/05/19}{将公式编号写入临时文件以便生成公式列表。} -% \changes{v2.5.3}{2006/06/03}{取消~\cs{equcaption} 的参数} +% \changes{v2.5}{2006/05/19}{灏嗗叕寮忕紪鍙峰啓鍏ヤ复鏃舵枃浠朵互渚跨敓鎴愬叕寮忓垪琛ㄣ倉 +% \changes{v2.5.3}{2006/06/03}{鍙栨秷 \cs{equcaption} 鐨勫弬鏁皚 % \begin{macrocode} \def\ext@equation{loe} \def\equcaption#1{% \addcontentsline{\ext@equation}{equation}% - {\protect\numberline{\equationname\hskip0.5em #1}}} + {\protect\numberline{#1}}} % \end{macrocode} % \end{macro} % % \begin{macro}{\listofequations} % \begin{macro}{\listofequations*} -% \LaTeX{}默认没有公式索引,此处定义自己的~\cs{listofequations}。 -% \changes{v2.5}{2006/05/19}{增加公式索引命令。} -% \changes{v2.5.1}{2006/05/26}{公式索引项~numwidth 增加。} -% \changes{v2.6.4}{2006/10/23}{增加~\cs{listofequations*}。} +% \LaTeX{}榛樿娌℃湁鍏紡绱㈠紩锛屾澶勫畾涔夎嚜宸辩殑 \cs{listofequations}銆 +% \changes{v2.5}{2006/05/19}{澧炲姞鍏紡绱㈠紩鍛戒护銆倉 +% \changes{v2.5.1}{2006/05/26}{鍏紡绱㈠紩椤 numwidth 澧炲姞銆倉 +% \changes{v2.6.4}{2006/10/23}{澧炲姞 \cs{listofequations*}銆倉 % \begin{macrocode} -\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 +\newcommand\listofequations{\thu@listof{equation}} +\let\l@equation\l@figure % % \end{macrocode} % \end{macro} % \end{macro} % % -% \subsubsection{参考文献} +% \subsubsection{鍙傝冩枃鐚畗 % \label{sec:ref} % % \begin{macro}{\onlinecite} -% 正文引用模式。依赖于~\pkg{natbib}~宏包,修改其中的命令。 +% 姝f枃寮曠敤妯″紡銆備緷璧栦簬 \pkg{natbib} 瀹忓寘锛屼慨鏀瑰叾涓殑鍛戒护銆 % \begin{macrocode} %<*cls> \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} % \end{macrocode} % \end{macro} % -% 参考文献的正文部分用五号字。 -% 行距采用固定值~16 磅,段前空~3 磅,段后空~0 磅。 +% 鍙傝冩枃鐚殑姝f枃閮ㄥ垎鐢ㄤ簲鍙峰瓧銆 +% 琛岃窛閲囩敤鍥哄畾鍊 16 纾咃紝娈靛墠绌 3 纾咃紝娈靛悗绌 0 纾呫 % % \begin{macro}{\thudot} -% 研究生参考文献条目最后加点,而本科有不要。只好定义一个东西来拙劣地处理了, -% 本来这个命令通过~\texttt{@preamble} 命令放到~bib 文件中是最省事的,但是那 -% 样的话很多人肯定不知道该怎么做了。 -% \changes{v3.1}{2007/06/19}{引入~cs{thudot} 来自动完成参考文献最后的点。} +% 鐮旂┒鐢熷弬鑰冩枃鐚潯鐩渶鍚庡姞鐐癸紝鑰屾湰绉戞湁涓嶈銆傚彧濂藉畾涔変竴涓笢瑗挎潵鎷欏姡鍦板鐞嗕簡锛 +% 鏈潵杩欎釜鍛戒护閫氳繃 \texttt{@preamble} 鍛戒护鏀惧埌 bib 鏂囦欢涓槸鏈鐪佷簨鐨勶紝浣嗘槸閭 +% 鏍风殑璇濆緢澶氫汉鑲畾涓嶇煡閬撹鎬庝箞鍋氫簡銆 +% \changes{v3.1}{2007/06/19}{寮曞叆 cs{thudot} 鏉ヨ嚜鍔ㄥ畬鎴愬弬鑰冩枃鐚渶鍚庣殑鐐广倉 % \begin{macrocode} \def\thudot{\ifthu@bachelor\else\unskip.\fi} % \end{macrocode} % \end{macro} % \begin{macro}{thumasterbib} % \begin{macro}{thuphdbib} -% 本科生和研究生模板要求外文硕士论文参考文献显示“[Master Thesis]”,而博士模板 -% 则于~2007 年冬要求显示为“[M]”。对应的外文博士论文参考文献分别显示为“[Phd -% Thesis]”和“[D]”。所以不得不出次下策。 +% 鏈鐢熷拰鐮旂┒鐢熸ā鏉胯姹傚鏂囩澹鏂囧弬鑰冩枃鐚樉绀篳`[Master Thesis]''锛岃屽崥澹ā鏉 +% 鍒欎簬 2007 骞村啲瑕佹眰鏄剧ず涓篳`[M]''銆傚搴旂殑澶栨枃鍗氬+璁烘枃鍙傝冩枃鐚垎鍒樉绀轰负``[Phd +% Thesis]''鍜宍`[D]''銆傛墍浠ヤ笉寰椾笉鍑烘涓嬬瓥銆 % \begin{macrocode} \def\thumasterbib{\ifthu@doctor [M]\else [Master Thesis]\fi} \def\thuphdbib{\ifthu@doctor [D]\else [Doctor Thesis]\fi} @@ -2972,11 +2876,11 @@ % \end{macro} % \end{macro} % \begin{environment}{thebibliography} -% 修改默认的~thebibliography 环境,增加一些调整代码。 -% \changes{v2.4}{2006/04/15}{参考文献间距调小一点,label~长度增加一点,以便让超过 -% ~100~的参考文献更好地对齐。} -% \changes{v2.5}{2006/05/13}{参考文献序号靠左,而不是靠右。} -% \changes{v2.6.4}{2006/10/23}{调整参考文献标签宽度,使得条目增多时仍能对齐。} +% 淇敼榛樿鐨 thebibliography 鐜锛屽鍔犱竴浜涜皟鏁翠唬鐮併 +% \changes{v2.4}{2006/04/15}{鍙傝冩枃鐚棿璺濊皟灏忎竴鐐癸紝label 闀垮害澧炲姞涓鐐癸紝浠ヤ究璁╄秴杩 +% 100 鐨勫弬鑰冩枃鐚洿濂藉湴瀵归綈銆倉 +% \changes{v2.5}{2006/05/13}{鍙傝冩枃鐚簭鍙烽潬宸︼紝鑰屼笉鏄潬鍙炽倉 +% \changes{v2.6.4}{2006/10/23}{璋冩暣鍙傝冩枃鐚爣绛惧搴︼紝浣垮緱鏉$洰澧炲鏃朵粛鑳藉榻愩倉 % \begin{macrocode} \renewenvironment{thebibliography}[1]{% \thu@chapter*{\bibname}% @@ -2984,14 +2888,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% @@ -2999,13 +2903,13 @@ \sfcode`\.\@m} {\def\@noitemerr {\@latex@warning{Empty `thebibliography' environment}}% - \endlist} + \endlist\frenchspacing} % % \end{macrocode} % \end{environment} % % -% \subsubsection{附录} +% \subsubsection{闄勫綍} % \label{sec:appendix} % % \begin{environment}{appendix} @@ -3019,19 +2923,18 @@ }{} % % \end{macrocode} -%\end{environment} -% -% \subsubsection{个人简历} +% \end{environment} % -% \changes{v1.5}{2005/12/16}{增加个人简历章节的命令,去掉主文件中需要重新 -% 定义~\cs{cleardoublepage} 和自己写~\cs{markboth},\cs{addcontentsline} 的部分。} -% 定义个人简历章节标题 +% \subsubsection{涓汉绠鍘唥 +% \changes{v1.5}{2005/12/16}{澧炲姞涓汉绠鍘嗙珷鑺傜殑鍛戒护锛屽幓鎺変富鏂囦欢涓渶瑕侀噸鏂 +% 瀹氫箟 \cs{cleardoublepage} 鍜岃嚜宸卞啓 \cs{markboth}锛孿cs{addcontentsline} 鐨勯儴鍒嗐倉 % +% 瀹氫箟涓汉绠鍘嗙珷鑺傛爣棰 % \begin{environment}{resume} -% 个人简历发表文章等。 -% \changes{v2.0}{2005/12/18}{最后决定将~resume 定义为环境。这样与前面的主要符号 -% 表、致谢等对应。} -% \changes{v2.5.2}{2006/05/29}{研究生的个人介绍要右开。} +% 涓汉绠鍘嗗彂琛ㄦ枃绔犵瓑銆 +% \changes{v2.0}{2005/12/18}{鏈鍚庡喅瀹氬皢 resume 瀹氫箟涓虹幆澧冦傝繖鏍蜂笌鍓嶉潰鐨勪富瑕佺鍙 +% 琛ㄣ佽嚧璋㈢瓑瀵瑰簲銆倉 +% \changes{v2.5.2}{2006/05/29}{鐮旂┒鐢熺殑涓汉浠嬬粛瑕佸彸寮銆倉 % \begin{macrocode} %<*cls> \newenvironment{resume}{% @@ -3042,95 +2945,71 @@ % \end{environment} % % \begin{macro}{\resumeitem} -% 个人简历里面会出现的以发表文章,在投文章等。 -% \changes{v2.5.1}{2006/05/23}{ft,教务处和研究生院非要搞的不一样!} +% 涓汉绠鍘嗛噷闈細鍑虹幇鐨勪互鍙戣〃鏂囩珷锛屽湪鎶曟枃绔犵瓑銆 +% \changes{v2.5.1}{2006/05/23}{ft锛屾暀鍔″鍜岀爺绌剁敓闄㈤潪瑕佹悶鐨勪笉涓鏍凤紒} % \begin{macrocode} %<*cfg> \ifthu@bachelor - \newcommand{\thu@resume@title}{在学期间参加课题的研究成果} + \newcommand{\thu@resume@title}{鍦ㄥ鏈熼棿鍙傚姞璇鹃鐨勭爺绌舵垚鏋渳 \else - \newcommand{\thu@resume@title}{个人简历、在学期间发表的学术论文与研究成果} + \newcommand{\thu@resume@title}{涓汉绠鍘嗐佸湪瀛︽湡闂村彂琛ㄧ殑瀛︽湳璁烘枃涓庣爺绌舵垚鏋渳 \fi % %<*cls> -\newcommand{\resumeitem}[1]{\vspace{2.5em}{\sihao \hei \centerline{#1}}\par} +\newcommand{\resumeitem}[1]{\vspace{2.5em}{\sihao\hei\centerline{#1}}\par} % % \end{macrocode} % \end{macro} % -% \subsubsection{书脊} +% \subsubsection{涔﹁剨} % \label{sec:shuji} -% -% 为了生成书脊使用竖排 -% \begin{macrocode} -%<*cls> -\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}}} -% \end{macrocode} -% % \begin{macro}{\shuji} -% 单独使用书脊命令会在新的一页产生竖排书脊 +% 鍗曠嫭浣跨敤涔﹁剨鍛戒护浼氬湪鏂扮殑涓椤典骇鐢熺珫鎺掍功鑴娿 +% \changes{v4.5}{2009/01/04}{绠鍖栦唬鐮侊紝鍚屾椂鏀寔 xelatex銆倉 % \begin{macrocode} +%<*cls> \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}}} % % \end{macrocode} % \end{macro} % -% \subsubsection{索引} +% \subsubsection{绱㈠紩} % -% 生成索引的一些命令,虽然我们暂时还用不到。 +% 鐢熸垚绱㈠紩鐨勪竴浜涘懡浠わ紝铏界劧鎴戜滑鏆傛椂杩樼敤涓嶅埌銆 % \begin{macrocode} %<*cls> \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{\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 +% 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}} +% Index entry for an environment \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}} +% Indexentry for a word (Word inserted into the text) \newcommand{\wi}[1]{\index{#1}#1} \fi % % \end{macrocode} % -% \subsubsection{自定义命令和环境} +% \subsubsection{鑷畾涔夊懡浠ゅ拰鐜} % \label{sec:userdefine} % % \begin{macro}{\ziju} -% 改变字距。参数为距离 -% \changes{v2.0}{2005/12/20}{字距改变,重定义~\cs{CJKglue} 即可。} +% 鏀瑰彉瀛楄窛銆傚弬鏁颁负璺濈 +% \changes{v2.0}{2005/12/20}{瀛楄窛鏀瑰彉锛岄噸瀹氫箟 \cs{CJKglue} 鍗冲彲銆倉 % \begin{macrocode} %<*cls> \newcommand*{\ziju}[1]{\renewcommand{\CJKglue}{\hskip #1}} @@ -3138,9 +3017,9 @@ % \end{macro} % % \begin{macro}{\pozhehao} -% 定义破则号。两个字宽,ex 差不多是当前字体的一半高度,所以通过~\cs{rule} 可以简单 -% 的完成破则号绘制。 -% \changes{v2.1}{2006/01/12}{稍微加宽一点。同时把名字改为“破折号”:pozhehao} +% 瀹氫箟鐮存姌鍙枫備袱涓瓧瀹斤紝ex 宸笉澶氭槸褰撳墠瀛椾綋鐨勪竴鍗婇珮搴︼紝鎵浠ラ氳繃 \cs{rule} 鍙互绠鍗 +% 鐨勫畬鎴愮牬鎶樺彿缁樺埗銆 +% \changes{v2.1}{2006/01/12}{绋嶅井鍔犲涓鐐广傚悓鏃舵妸鍚嶅瓧鏀逛负\textbf{鐮存姌鍙穧锛歕cs{pozhehao}} % \begin{macrocode} \newcommand{\pozhehao}{\kern0.3ex\rule[0.8ex]{2em}{0.1ex}\kern0.3ex} % @@ -3148,17 +3027,16 @@ % \end{macro} % % -% \subsubsection{其它} +% \subsubsection{鍏跺畠} % \label{sec:other} -% % \begin{macro}{\thu@active@cjk} -% 在导言区支持中文。 +% 鍦ㄥ瑷鍖烘敮鎸佷腑鏂囥 % \begin{macrocode} %<*cls> \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 @@ -3166,43 +3044,46 @@ % \end{macrocode} % \end{macro} % -% 在模板文档结束时即装入配置文件,这样用户就能在导言区进行相应的修改,否则 -% 必须在~document~开始后才能,感觉不好。 -% \changes{v2.5}{2006/05/13}{不用~\cs{CJKcaption},在导言区直接引入配置文件。} +% 鍦ㄦā鏉挎枃妗g粨鏉熸椂鍗宠鍏ラ厤缃枃浠讹紝杩欐牱鐢ㄦ埛灏辫兘鍦ㄥ瑷鍖鸿繘琛岀浉搴旂殑淇敼锛屽惁鍒 +% 蹇呴』鍦 document 寮濮嬪悗鎵嶈兘锛屾劅瑙変笉濂姐 +% \changes{v2.5}{2006/05/13}{涓嶇敤 \cs{CJKcaption}锛屽湪瀵艰█鍖虹洿鎺ュ紩鍏ラ厤缃枃浠躲倉 % \begin{macrocode} -\AtEndOfClass{\thu@active@cjk\input{thuthesis.cfg}}% +\AtEndOfClass{\ifxetex\else\thu@active@cjk\fi\input{thuthesis.cfg}} % \end{macrocode} % % \begin{macro}{\thu@fixselectfont} -% \pkg{caption} 宏包会调用~\pkg{ragged2e},\pkg{ragged2e} 又调用~\pkg{everysel}。而~\pkg{everysel} 宏包和~\pkg{CJK} -% 宏包都要修改~\cs{selectfont},一个是给~\cs{selectfont} 加~hook,一个是让 -% ~\cs{selectfont} 支持~\cs{CJKbold}。幸好两者本质上并不冲突,把他们源文件中对 -% ~\cs{selectfont} 重定义的部分合并一下就可以了。 +% \pkg{caption} 瀹忓寘浼氳皟鐢 \pkg{ragged2e}锛孿pkg{ragged2e} 鍙堣皟鐢 \pkg{everysel}銆傝 \pkg{everysel} 瀹忓寘鍜 \pkg{CJK} +% 瀹忓寘閮借淇敼 \cs{selectfont}锛屼竴涓槸缁 \cs{selectfont} 鍔 hook锛屼竴涓槸璁 +% \cs{selectfont} 鏀寔 \cs{CJKbold}銆傚垢濂戒袱鑰呮湰璐ㄤ笂骞朵笉鍐茬獊锛屾妸浠栦滑婧愭枃浠朵腑瀵 +% \cs{selectfont} 閲嶅畾涔夌殑閮ㄥ垎鍚堝苟涓涓嬪氨鍙互浜嗐 +% \changes{4.3}{2008/03/09}{\pkg{caption} 璋冩暣浜嗗 \pkg{ragged2e} 鍖呯殑璋冪敤锛屾墍浠 +% 鎴戜滑杩欓噷瑕佸垽鏂 \pkg{everysel} 鏄笉鏄杞戒簡銆倉 % \begin{macrocode} \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} % \end{macrocode} % \end{macro} % -% % \begin{macro}{\thu@setup@pdfinfo} -% 设置一些~pdf~文档信息,依赖于~\pkg{hyperref}~宏包。 +% 璁剧疆涓浜 pdf 鏂囨。淇℃伅锛屼緷璧栦簬 \pkg{hyperref} 瀹忓寘銆 % \begin{macrocode} \def\thu@setup@pdfinfo{% \hypersetup{% @@ -3215,25 +3096,152 @@ % \end{macrocode} % \end{macro} % -% -% 把~CJK 环境放到合适的位置,以免导致其它宏包的命令位于~CJK 环境中而出现问题(比 -% 如~natbib 的“Multiple-defined labels”,同时自动开启~CJK。 -% \changes{v2.6.2}{2006/06/18}{合理放置~CJK,避免~natbib 的警告。} +% 鎶 CJK 鐜鏀惧埌鍚堥傜殑浣嶇疆锛屼互鍏嶅鑷村叾瀹冨畯鍖呯殑鍛戒护浣嶄簬 CJK 鐜涓屽嚭鐜伴棶棰橈紙姣 +% 濡 natbib 鐨刞`Multiple-defined labels''锛屽悓鏃惰嚜鍔ㄥ紑 +% 鍚 CJK銆俓changes{v2.6.2}{2006/06/18}{鍚堢悊鏀剧疆 CJK锛岄伩鍏 natbib 鐨勮鍛娿倉 +% \changes{v4.5}{2009/01/03}{XeTeX 妯″紡涓嬩笉闇瑕併倉 % \begin{macrocode} -\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} % % \end{macrocode} % % \Finale +% +% \iffalse +% \begin{macrocode} +%<*dtx-style> +\ProvidesPackage{dtx-style} + +\RequirePackage{calc} +\RequirePackage{array,longtable} +\RequirePackage{fancybox,fancyvrb} +\RequirePackage{xcolor} + +\RequirePackage{txfonts} +\RequirePackage{CJKutf8} +\newif\ifdtx@UTF\dtx@UTFtrue % todo: review this piece of code, why it needs an + % \iffalse in the comment? where is the real mis-match? +\ifdtx@UTF\else + \IfFileExists{CJKpunct.sty}% + {\RequirePackage{CJKpunct}}% + {\ClassWarning{thuthesis}{no CJKpunct.sty availiable!}} +\fi +\RequirePackage{CJKspace} + +\RequirePackage{hyperref} +\hypersetup{% + unicode=true, + CJKbookmarks=false, + bookmarksnumbered=true, + bookmarksopen=true, + bookmarksopenlevel=1, + breaklinks=true, + linkcolor=blue, + plainpages=false, + pdfpagelabels, + pdfborder=0 0 0} +\RequirePackage{url} +\RequirePackage{indentfirst} + +\setlength{\parskip}{4pt plus1pt minus0pt} +\setlength{\topsep}{0pt} +\setlength{\partopsep}{0pt} +\setlength{\parindent}{20pt} +\addtolength{\oddsidemargin}{-1cm} +\advance\textwidth 1.5cm +\addtolength{\topmargin}{-1cm} +\addtolength{\headsep}{0.3cm} +\addtolength{\textheight}{2.3cm} + +\newcommand\hei{\CJKfamily{hei}} +\newcommand\fs{\CJKfamily{fs}} + +\renewcommand{\baselinestretch}{1.3} +\setlength{\shadowsize}{3pt} +\def\DescribeOption#1{\SpecialOptionIndex{#1}} +\def\SpecialOptionIndex#1{\index{#1\actualchar\textbf{#1}}} +\renewenvironment{description} + {\list{}{\setlength\labelwidth{2cm}% + \setlength\labelsep{3pt}% + \setlength\leftmargin{\labelwidth+\labelsep}% + \addtolength{\itemsep}{3pt}% + \renewcommand\makelabel[1]{% + \shadowbox{\color{blue!90}\texttt##1}\DescribeOption{##1}}} + }{\endlist} +\DefineVerbatimEnvironment{example}{Verbatim}% + {frame=single,framerule=0.3mm,rulecolor=\color{red!75!green!50!blue},% + fillcolor=\color{red!75!green!50!blue!15},framesep=2mm,baselinestretch=1.2,% + fontsize=\small,gobble=1} +\DefineVerbatimEnvironment{shell}{Verbatim}% + {frame=single,framerule=0.3mm,rulecolor=\color{red!85!green!60},% + fillcolor=\color{red!85!green!10},framesep=2mm,fontsize=\small,gobble=1} +\long\def\myentry#1{\vskip5pt\par\noindent\llap{{\color{blue}\fs #1}}\marginpar{\strut}\hskip\parindent} +\def\tableofcontents{\renewcommand{\baselinestretch}{1.0}\@starttoc{toc}} +\def\DescribeMacro{\Describe@Macro} +\def\Describe@Macro#1{\PrintDescribeMacro{#1}\SpecialUsageIndex{#1}} +\def\PrintDescribeMacro#1{{\color{-red!75!green!50!blue!55}\MacroFont \string #1\hskip1em}} +\def\ps@headings{% + \let\@oddfoot\@empty + \def\@oddhead{\vbox{% + \hb@xt@ \textwidth{\llap{\fbox{\rightmark\rule[-2pt]{0pt}{13pt}}}\hfil\thepage}% + \vskip-0.7pt% + \hb@xt@ \textwidth{\hrulefill}}} + \let\@evenfoot\@oddfoot + \let\@evenhead\@oddhead + \let\@mkboth\markboth + \def\sectionmark##1{% + \markright{\ifnum \c@secnumdepth >\m@ne + \thesection\quad + \fi + ##1}} + \def\subsectionmark##1{% + \markright{\ifnum \c@secnumdepth >\m@ne + \thesubsection\quad + \fi + ##1}} + \def\subsubsectionmark##1{% + \markright{\ifnum \c@secnumdepth >\m@ne + \thesubsubsection\quad + \fi + ##1}}} +\renewcommand\section{\@startsection{section}{1}{\z@}% + {-3.5ex \@plus -1ex \@minus -.2ex}% + {2.3ex \@plus.2ex}% + {\normalfont\Large\bfseries\hei}} + +\renewcommand\subsection{\@startsection{subsection}{2}{\z@}% + {-3.25ex\@plus -1ex \@minus -.2ex}% + {1.5ex \@plus .2ex}% + {\normalfont\large\bfseries\hei}} +\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}% + {-3.25ex\@plus -1ex \@minus -.2ex}% + {1.5ex \@plus .2ex}% + {\normalfont\normalsize\bfseries\hei}} +\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}% + {3.25ex \@plus1ex \@minus.2ex}% + {-1em}% + {\normalfont\normalsize\bfseries}} +\renewcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}% + {3.25ex \@plus1ex \@minus .2ex}% + {-1em}% + {\normalfont\normalsize\bfseries}} +\pagestyle{empty} +% +% \end{macrocode} +% \fi +% \endinput diff --git a/Master/texmf-dist/source/latex/thuthesis/thuthesis.ins b/Master/texmf-dist/source/latex/thuthesis/thuthesis.ins index 6b0f7db3c57..56f49ff6396 100644 --- a/Master/texmf-dist/source/latex/thuthesis/thuthesis.ins +++ b/Master/texmf-dist/source/latex/thuthesis/thuthesis.ins @@ -1,7 +1,7 @@ %% -%% Copyright (C) 2005-2007 by Xue Ruini +%% Copyright (C) 2005-2008 by Ruini Xue %% -%% This file is part of the Thu-Thesis package project. +%% This file is part of the ThuThesis package project. %% --------------------------------------------------- %% %% This file may be distributed and/or modified under the @@ -14,12 +14,13 @@ %% and version 1.3a or later is part of all distributions of LaTeX %% version 2004/10/01 or later. %% +%% $Id: thuthesis.ins 191 2009-01-05 16:38:56Z littleleo $ \input docstrip \askforoverwritefalse %\askonceonly -%\showprogress +\showprogress \keepsilent \usedir{tex/latex/thuthesis} @@ -28,7 +29,7 @@ This is a generated file. -Copyright (C) 2005-\the\year by Xue Ruini +Copyright (C) 2005-\the\year by Ruini Xue This file may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3a @@ -66,10 +67,11 @@ This is the configuration file of the thuthesis package with LaTeX2e. \endpreamble -\generate{\file{thuthesis.cls}{\from{thuthesis.dtx}{cls}} +\generate{\file{\jobname.cls}{\from{\jobname.dtx}{cls}} \usepreamble\cfgpreamble - \file{thuthesis.cfg}{\from{thuthesis.dtx}{cfg}} - } + \file{\jobname.cfg}{\from{\jobname.dtx}{cfg}} + \nopreamble\nopostamble + \file{dtx-style.sty}{\from{\jobname.dtx}{dtx-style}}} \ifToplevel{ \Msg{***********************************************************} -- cgit v1.2.3