首页 > 代码库 > 清华论文模板

清华论文模板

thuthesis.cls
  1 %%  2 %% This is file `thuthesis.cls‘,  3 %% generated with the docstrip utility.  4 %%  5 %% The original source files were:  6 %%  7 %% thuthesis.dtx  (with options: `cls‘)  8 %%   9 %% This is a generated file. 10 %%  11 %% Copyright (C) 2005-2009 by Ruini Xue <xueruini@gmail.com> 12 %%  13 %% This file may be distributed and/or modified under the 14 %% conditions of the LaTeX Project Public License, either version 1.3a 15 %% of this license or (at your option) any later version. 16 %% The latest version of this license is in: 17 %%  18 %% http://www.latex-project.org/lppl.txt 19 %%  20 %% and version 1.3a or later is part of all distributions of LaTeX 21 %% version 2004/10/01 or later. 22 %%  23 %% To produce the documentation run the original source files ending with `.dtx‘ 24 %% through LaTeX. 25 %%  26  27 \NeedsTeXFormat{LaTeX2e}[1999/12/01] 28 \ProvidesClass{thuthesis} 29 [2008/02/28 4.5.1 Tsinghua University Thesis Template] 30 \newif\ifthu@UTF 31 \newif\ifthu@GBK 32 \DeclareOption{utf}{\thu@UTFtrue\thu@GBKfalse} 33 \DeclareOption{gbk}{\thu@GBKtrue\thu@UTFfalse} 34 \hyphenation{Thu-Thesis} 35 \def\thuthesis{\textsc{ThuThesis}} 36 \def\version{4.5} 37 \newif\ifthu@bachelor\thu@bachelorfalse 38 \newif\ifthu@master\thu@masterfalse 39 \newif\ifthu@doctor\thu@doctorfalse 40 \newif\ifthu@secret\thu@secretfalse 41 \DeclareOption{bachelor}{\thu@bachelortrue} 42 \DeclareOption{master}{\thu@mastertrue} 43 \DeclareOption{doctor}{\thu@doctortrue} 44 \DeclareOption{secret}{\thu@secrettrue} 45 \newif\ifthu@dvips 46 \newif\ifthu@dvipdfm 47 \newif\ifthu@xetex 48 \newif\ifthu@pdftex 49 \DeclareOption{dvips}{\thu@dvipstrue} 50 \DeclareOption{dvipdfm}{\thu@dvipdfmtrue} 51 \DeclareOption{pdftex}{\thu@pdftextrue} 52 \DeclareOption{xetex}{\thu@xetextrue} 53 \newif\ifthu@arial 54 \DeclareOption{arial}{\thu@arialtrue} 55 \newif\ifthu@arialtoc 56 \DeclareOption{arialtoc}{\thu@arialtoctrue} 57 \newif\ifthu@arialtitle 58 \DeclareOption{arialtitle}{\thu@arialtitletrue} 59 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}} 60 \ExecuteOptions{gbk,arialtitle} 61 \ProcessOptions\relax 62 \LoadClass[12pt,a4paper,openany]{book} 63 \ifthu@bachelor\relax\else 64   \ifthu@master\relax\else 65     \ifthu@doctor\relax\else 66       \ClassError{thuthesis}% 67                  {You have to specify one of thesis options: bachelor, master or doctor.}{} 68     \fi 69   \fi 70 \fi 71 \RequirePackage{ifpdf,ifxetex} 72 \ifthu@xetex\RequireXeTeX\fi 73 \def\RequirePDFTeX{% 74   \ifpdf\else 75     \ClassError{thuthesis}% 76                {pdflatex is required to compile this document!}{} 77   \fi} 78 \ifthu@pdftex\RequirePDFTeX\fi 79 \def\thu@checkoption#1#2{% 80   \@for\reserved@a:=#2\do{% 81     \csname ifthu@\reserved@a\endcsname 82       \ClassError{thuthesis}% 83                  {Please remove `\reserved@a‘ option when you run #1.}{} 84     \fi}} 85 \ifpdf\thu@checkoption{pdflatex}{dvips,dvipdfm,xetex}\thu@pdftextrue\fi % force the option to be true 86 \ifxetex\thu@checkoption{xelatex}{dvips,dvipdfm,pdftex}\thu@xetextrue\fi 87 \RequirePackage{ifthen,calc} 88 \RequirePackage{amsmath,amssymb} 89 \RequirePackage{txfonts} 90 \RequirePackage{graphicx} 91 \RequirePackage[config]{subfig} 92 \RequirePackage{indentfirst} 93 \RequirePackage[neverdecrease]{paralist} 94 \ifthu@xetex 95   \RequirePackage{xunicode,xltxtra} 96   \RequirePackage[CJKnumber,CJKtextspaces,CJKmathspaces]{xeCJK} 97   \punctstyle{kaiming} 98   % todo: minor fix of CJKnumb 99   \def\CJK@null{\kern\CJKnullspace\Unicode{48}{7}\kern\CJKnullspace}100   \defaultfontfeatures{Mapping=tex-text} % after fontspec101   \setCJKmainfont[BoldFont={Adobe Heiti Std}, ItalicFont={Adobe Kaiti Std}]{Adobe Song Std}102   \setCJKsansfont{Adobe Heiti Std}103   \setCJKmonofont{Adobe Kaiti Std}104   \setCJKfamilyfont{song}{Adobe Song Std}105   \setCJKfamilyfont{hei}{Adobe Heiti Std}106   \setCJKfamilyfont{fs}{Adobe Fangsong Std}107   \setCJKfamilyfont{kai}{Adobe Kaiti Std}108   \setCJKfamilyfont{li}{Adobe Kaiti Std} % todo: 用隶书字体代替109   \setCJKfamilyfont{you}{Adobe Kaiti Std} % todo: 用幼圆字体代替110 111   \setmainfont{Times New Roman}112   \setsansfont{Arial}113   \setmonofont{Courier New}114 \else115   \RequirePackage{CJK}116   \RequirePackage{CJKnumb}117   \ifthu@GBK % CJKpunct 在 UTF 下工作的不好。118     \IfFileExists{CJKpunct.sty}%119                  {\RequirePackage{CJKpunct}}%120                  {\ClassWarning{thuthesis}{no CJKpunct.sty availiable!}}121   \fi122   \RequirePackage{CJKspace}123   \ifthu@arial124     \IfFileExists{arial.sty}%125                  {\RequirePackage{arial}}%126                  {\ClassWarning{thuthesis}{no arial.sty availiable!}}127   \fi128 \fi129 \ifthu@dvips\else130   \ifthu@xetex\else131     \RequirePackage{ccmap}132   \fi133 \fi134 \RequirePackage[amsmath,thmmarks,hyperref]{ntheorem}135 \RequirePackage{array}136 \RequirePackage{longtable}137 \RequirePackage{booktabs}138 \RequirePackage[numbers,super,sort&compress]{natbib}139 \RequirePackage{hyperref}140 \ifxetex141   \hypersetup{%142     CJKbookmarks=true}143 \else144   \hypersetup{%145     unicode=true,146     CJKbookmarks=true}147 \fi148 \hypersetup{%149   bookmarksnumbered=true,150   bookmarksopen=true,151   bookmarksopenlevel=1,152   breaklinks=true,153   colorlinks=false,154   plainpages=false,155   pdfpagelabels,156   pdfborder=0 0 0}157 \ifthu@dvips158   \RequirePackage{breakurl}159 \fi160 \urlstyle{same}161 \RequirePackage{hypernat}162 \renewcommand\frontmatter{%163   \if@openright\cleardoublepage\else\clearpage\fi164   \@mainmatterfalse165   \pagenumbering{Roman}166   \pagestyle{thu@empty}}167 \renewcommand\mainmatter{%168   \if@openright\cleardoublepage\else\clearpage\fi169   \@mainmattertrue170   \pagenumbering{arabic}171   \ifthu@bachelor\pagestyle{thu@plain}\else\pagestyle{thu@headings}\fi}172 \renewcommand\backmatter{%173   \if@openright\cleardoublepage\else\clearpage\fi174   \@mainmattertrue}175 \newcommand{\song}{\CJKfamily{song}}    % 宋体176 \def\songti{\song}177 \newcommand{\fs}{\CJKfamily{fs}}        % 仿宋体178 \def\fangsong{\fs}179 \newcommand{\kai}{\CJKfamily{kai}}      % 楷体180 \def\kaishu{\kai}181 \newcommand{\hei}{\CJKfamily{hei}}      % 黑体182 \def\heiti{\hei}183 \newcommand{\li}{\CJKfamily{li}}        % 隶书184 \def\lishu{\li}185 \newcommand{\you}{\CJKfamily{you}}      % 幼圆186 \def\youyuan{\you}187 \newlength\thu@linespace188 \newcommand{\thu@choosefont}[2]{%189    \setlength{\thu@linespace}{#2*\real{#1}}%190    \fontsize{#2}{\thu@linespace}\selectfont}191 \def\thu@define@fontsize#1#2{%192   \expandafter\newcommand\csname #1\endcsname[1][\baselinestretch]{%193     \thu@choosefont{##1}{#2}}}194 \thu@define@fontsize{chuhao}{42bp}195 \thu@define@fontsize{xiaochu}{36bp}196 \thu@define@fontsize{yihao}{26bp}197 \thu@define@fontsize{xiaoyi}{24bp}198 \thu@define@fontsize{erhao}{22bp}199 \thu@define@fontsize{xiaoer}{18bp}200 \thu@define@fontsize{sanhao}{16bp}201 \thu@define@fontsize{xiaosan}{15bp}202 \thu@define@fontsize{sihao}{14bp}203 \thu@define@fontsize{banxiaosi}{13bp}204 \thu@define@fontsize{xiaosi}{12bp}205 \thu@define@fontsize{dawu}{11bp}206 \thu@define@fontsize{wuhao}{10.5bp}207 \thu@define@fontsize{xiaowu}{9bp}208 \thu@define@fontsize{liuhao}{7.5bp}209 \thu@define@fontsize{xiaoliu}{6.5bp}210 \thu@define@fontsize{qihao}{5.5bp}211 \thu@define@fontsize{bahao}{5bp}212 \renewcommand\normalsize{%213   \@setfontsize\normalsize{12bp}{20bp}214   \abovedisplayskip=10bp \@plus 2bp \@minus 2bp215   \abovedisplayshortskip=10bp \@plus 2bp \@minus 2bp216   \belowdisplayskip=\abovedisplayskip217   \belowdisplayshortskip=\abovedisplayshortskip}218 \AtBeginDvi{\special{papersize=\the\paperwidth,\the\paperheight}}219 \AtBeginDvi{\special{!%220       \@percentchar\@percentchar BeginPaperSize: a4221       ^^Ja4^^J\@percentchar\@percentchar EndPaperSize}}222 \setlength{\textwidth}{\paperwidth}223 \setlength{\textheight}{\paperheight}224 \setlength\marginparwidth{0cm}225 \setlength\marginparsep{0cm}226 \addtolength{\textwidth}{-6.4cm}227 \setlength{\oddsidemargin}{3.2cm-1in}228 \setlength{\evensidemargin}{\oddsidemargin}229 \setlength{\headheight}{20pt}230 \setlength{\topskip}{0pt}231 \setlength{\skip\footins}{15pt}232 \setlength{\topmargin}{2.8cm-1in}233 \ifthu@bachelor234   \setlength{\footskip}{1.3cm}235   \setlength{\headsep}{0.6cm}236   \addtolength{\textheight}{-7.8cm}237 \else238   \setlength{\footskip}{1.5cm}239   \setlength{\headsep}{0.5cm}240   \addtolength{\textheight}{-8.6cm}241 \fi242 \let\thu@cleardoublepage\cleardoublepage243 \newcommand{\thu@clearemptydoublepage}{%244   \clearpage{\pagestyle{empty}\thu@cleardoublepage}}245 \let\cleardoublepage\thu@clearemptydoublepage246 \def\ps@thu@empty{%247   \let\@oddhead\@empty%248   \let\@evenhead\@empty%249   \let\@oddfoot\@empty%250   \let\@evenfoot\@empty}251 \def\ps@thu@plain{%252   \let\@oddhead\@empty%253   \let\@evenhead\@empty%254   \def\@oddfoot{\hfil\wuhao\thepage\hfil}%255   \let\@evenfoot=\@oddfoot}256 \def\ps@thu@headings{%257   \def\@oddhead{\vbox to\headheight{%258       \hb@xt@\textwidth{\hfill\wuhao\song\leftmark\ifthu@bachelor\relax\else\hfill\fi}%259       \vskip2pt\hbox{\vrule width\textwidth height0.4pt depth0pt}}}260   \def\@evenhead{\vbox to\headheight{%261       \hb@xt@\textwidth{\wuhao\song%262       \ifthu@bachelor\thu@schoolename\thu@bachelor@subtitle%263        \else\hfill\leftmark\fi\hfill}%264       \vskip2pt\hbox{\vrule width\textwidth height0.4pt depth0pt}}}265   \def\@oddfoot{\hfil\wuhao\thepage\hfil}266   \let\@evenfoot=\@oddfoot}267 \renewcommand{\chaptermark}[1]{\@mkboth{\@chapapp\  ~~#1}{}}268 \newlength\CJK@twochars269 \ifxetex270   \def\CJK@spaceChar{\Unicode{48}{7}}271 \else272   \ifthu@UTF273     \def\CJK@spaceChar{\CJKchar{"080}{"080}}274   \fi275   \ifthu@GBK276     \def\CJK@spaceChar{\CJKchar{"0A1}{"0A1}}277   \fi278 \fi279 \def\CJKindent{%280   \settowidth\CJK@twochars{\CJK@spaceChar\CJK@spaceChar}%281   \parindent\CJK@twochars}282 \setlength{\parskip}{0pt \@plus2pt \@minus0pt}283 \def\thu@item@space{%284   \let\itemize\compactitem285   \let\enditemize\endcompactitem286   \let\enumerate\compactenum287   \let\endenumerate\endcompactenum288   \let\description\compactdesc289   \let\enddescription\endcompactdesc}290 \newcommand*\MakePerPage[2][\@ne]{%291   \expandafter\def\csname c@pchk@#2\endcsname{\c@pchk@{#2}{#1}}%292   \newcounter{pcabs@#2}%293   \@addtoreset{pchk@#2}{#2}}294 \def\new@pagectr#1{\@newl@bel{pchk@#1}}295 \def\c@pchk@#1#2{\z@=\z@296   \begingroup297   \expandafter\let\expandafter\next\csname pchk@#1@\arabic{pcabs@#1}\endcsname298   \addtocounter{pcabs@#1}\@ne299   \expandafter\ifx\csname pchk@#1@\arabic{pcabs@#1}\endcsname\next300   \else \setcounter{#1}{#2}\fi301   \protected@edef\next{%302     \string\new@pagectr{#1}{\arabic{pcabs@#1}}{\noexpand\thepage}}%303   \protected@write\@auxout{}{\next}%304   \endgroup\global\z@}305 \MakePerPage{footnote}306 \def\thu@textcircled#1{%307   \ifnum \value{#1} <10 \textcircled{\xiaoliu\arabic{#1}}308   \else\ifnum \value{#1} <100 \textcircled{\qihao\arabic{#1}}\fi309   \fi}310 \renewcommand{\thefootnote}{\thu@textcircled{footnote}}311 \renewcommand{\thempfootnote}{\thu@textcircled{mpfootnote}}312 \def\footnoterule{\vskip-3\p@\hrule\@width0.3\textwidth\@height0.4\p@\vskip2.6\p@}313 \let\thu@footnotesize\footnotesize314 \renewcommand\footnotesize{\thu@footnotesize\xiaowu[1.5]}315 \def\@makefnmark{\textsuperscript{\hbox{\normalfont\@thefnmark}}}316 \long\def\@makefntext#1{317     \bgroup318       \setbox\@tempboxa\hbox{%319         \hb@xt@ 2em{\@thefnmark\hss}}320       \leftmargin\wd\@tempboxa321       \rightmargin\z@322       \linewidth \columnwidth323       \advance \linewidth -\leftmargin324       \parshape \@ne \leftmargin \linewidth325       \footnotesize326       \@setpar{{\@@par}}%327       \leavevmode328       \llap{\box\@tempboxa}%329       #1330     \par\egroup}331 \allowdisplaybreaks[4]332 \renewcommand\theequation{\ifnum \c@chapter>\z@ \thechapter-\fi\@arabic\c@equation}333 \def\make@df@tag{\@ifstar\thu@make@df@tag@@\make@df@tag@@@}334 \def\thu@make@df@tag@@#1{\gdef\df@tag{\thu@maketag{#1}\def\@currentlabel{#1}}}335 \renewcommand{\eqref}[1]{\textup{(\ref{#1})}}336 \renewcommand\theequation{\ifnum \c@chapter>\z@ \thechapter-\fi\@arabic\c@equation}337 \def\thu@maketag#1{\maketag@@@{(\ignorespaces #1\unskip\@@italiccorr)}}338 \def\tagform@#1{\maketag@@@{(\ignorespaces #1\unskip\@@italiccorr)\equcaption{#1}}}339 \gdef\@endtrivlist#1{%  % from \endtrivlist340   \if@inlabel \indent\fi341   \if@newlist \@noitemerr\fi342   \ifhmode343     \ifdim\lastskip >\z@ #1\unskip \par  %<<<<<<<<<<<<<<<<<<<<<<344       \else #1\unskip \par \fi345   \fi346   \if@noparlist \else347     \ifdim\lastskip >\z@348        \@tempskipa\lastskip \vskip -\lastskip349       \advance\@tempskipa\parskip \advance\@tempskipa -\@outerparskip350       \vskip\@tempskipa351     \fi352     \@endparenv353   \fi #1}354 \theorembodyfont{\song\rmfamily}355 \theoremheaderfont{\hei\rmfamily}356 \setlength{\floatsep}{12bp \@plus4pt \@minus1pt}357 \setlength{\intextsep}{12bp \@plus4pt \@minus2pt}358 \setlength{\textfloatsep}{12bp \@plus4pt \@minus2pt}359 \setlength{\@fptop}{0bp \@plus1.0fil}360 \setlength{\@fpsep}{12bp \@plus2.0fil}361 \setlength{\@fpbot}{0bp \@plus1.0fil}362 \renewcommand{\textfraction}{0.15}363 \renewcommand{\topfraction}{0.85}364 \renewcommand{\bottomfraction}{0.65}365 \renewcommand{\floatpagefraction}{0.60}366 \let\old@tabular\@tabular367 \def\thu@tabular{\dawu[1.5]\old@tabular}368 \DeclareCaptionLabelFormat{thu}{{\dawu[1.5]\song #1~\rmfamily #2}}369 \DeclareCaptionLabelSeparator{thu}{\hspace{1em}}370 \DeclareCaptionFont{thu}{\dawu[1.5]}371 \captionsetup{labelformat=thu,labelsep=thu,font=thu}372 \captionsetup[table]{position=top,belowskip={12bp-\intextsep},aboveskip=6bp}373 \captionsetup[figure]{position=bottom,belowskip={12bp-\intextsep},aboveskip=6bp}374 \captionsetup[subfloat]{labelformat=simple,font=thu,captionskip=6bp,nearskip=6bp,farskip=0bp,topadjust=0bp}375 \renewcommand{\thesubfigure}{(\alph{subfigure})}376 \renewcommand{\thesubtable}{(\alph{subtable})}377 \let\thu@LT@array\LT@array378 \def\LT@array{\dawu[1.5]\thu@LT@array} % set default font size379 \def\hlinewd#1{%380   \noalign{\ifnum0=`}\fi\hrule \@height #1 \futurelet381     \reserved@a\@xhline}382 \ifthu@arialtitle383   \def\thu@title@font{\sffamily}384 \fi385 \renewcommand\chapter{\if@openright\cleardoublepage\else\clearpage\fi\phantomsection%386                     \ifthu@bachelor\thispagestyle{thu@plain}%387                     \else\thispagestyle{thu@headings}\fi%388                     \global\@topnum\z@%389                     \@afterindenttrue%390                     \secdef\@chapter\@schapter}391 \def\@chapter[#1]#2{%392   \ifnum \c@secnumdepth >\m@ne393    \if@mainmatter394      \refstepcounter{chapter}%395      \addcontentsline{toc}{chapter}{\protect\numberline{\@chapapp}#1}%TODO: shit396    \else397      \addcontentsline{toc}{chapter}{#1}%398    \fi399   \else400     \addcontentsline{toc}{chapter}{#1}%401   \fi402   \chaptermark{#1}%403   \@makechapterhead{#2}}404 \def\@makechapterhead#1{%405   \vspace*{20bp}%406   {\parindent \z@ \centering407     \hei\csname thu@title@font\endcsname\ifthu@bachelor\xiaosan\else\sanhao[1]\fi408     \ifnum \c@secnumdepth >\m@ne409       \@chapapp\hskip1em410     \fi411     #1\par\nobreak412     \vskip 24bp}}413 \def\@schapter#1{%414   \@makeschapterhead{#1}415   \@afterheading}416 \def\@makeschapterhead#1{%417   \vspace*{20bp}%418   {\parindent \z@ \centering419    \hei\csname thu@title@font\endcsname\sanhao[1]420    \ifthu@bachelor\xiaosan\else421      \def\@tempa{#1}422      \def\@tempb{\eabstractname}423      \ifx\@tempa\@tempb\bfseries\fi424    \fi425    \interlinepenalty\@M426    #1\par\nobreak427    \vskip 24bp}}428 \newcounter{thu@bookmark}429 \def\thu@chapter*{%430   \@ifnextchar [ % ]431     {\thu@@chapter}432     {\thu@@chapter@}}433 \def\thu@@chapter@#1{\thu@@chapter[#1]{#1}}434 \def\thu@@chapter[#1]#2{%435   \@ifnextchar [ % ]436     {\thu@@@chapter[#1]{#2}}437     {\thu@@@chapter[#1]{#2}[]}}438 \def\thu@@@chapter[#1]#2[#3]{%439   \if@openright\cleardoublepage\else\clearpage\fi440   \phantomsection441   \def\@tmpa{#1}442   \def\@tmpb{#3}443   \ifx\@tmpa\@empty444     \addtocounter{thu@bookmark}\@ne445     \pdfbookmark[0]{#2}{thuchapter.\thethu@bookmark}446   \else447     \addcontentsline{toc}{chapter}{#1}448   \fi449   \chapter*{#2}450   \ifx\@tmpb\@empty451     \@mkboth{#2}{#2}452   \else453     \@mkboth{#3}{#3}454   \fi}455 \renewcommand\section{\@startsection {section}{1}{\z@}%456                      {\ifthu@bachelor -20bp\else -24bp\fi\@plus -1ex \@minus -.2ex}%457                      {6bp \@plus .2ex}%458                      {\hei\csname thu@title@font\endcsname\sihao[1.429]}}459 \renewcommand\subsection{\@startsection{subsection}{2}{\z@}%460                         {\ifthu@bachelor -12bp\else -16bp\fi\@plus -1ex \@minus -.2ex}%461                         {6bp \@plus .2ex}%462                         {\hei\csname thu@title@font\endcsname\ifthu@bachelor\xiaosi[1.667]\else\banxiaosi[1.538]\fi}}463 \renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%464                            {\ifthu@bachelor -12bp\else -16bp\fi\@plus -1ex \@minus -.2ex}%465                            {6bp \@plus .2ex}%466                            {\hei\csname thu@title@font\endcsname\xiaosi[1.667]}}467 \setcounter{secnumdepth}{3}468 \ifthu@doctor469   \setcounter{tocdepth}{2}470 \else471   \setcounter{tocdepth}{3}472 \fi473 \renewcommand\tableofcontents{%474   \thu@chapter*[]{\contentsname}475   \ifthu@bachelor\xiaosi[1.8]\else\xiaosi[1.5]\fi\@starttoc{toc}\normalsize}476 \ifthu@arialtoc477   \def\thu@toc@font{\sffamily}478 \fi479 \def\@pnumwidth{2em} % 这个参数没用了480 \def\@tocrmarg{2em}481 \def\@dotsep{1} % 目录点间的距离482 \def\@dottedtocline#1#2#3#4#5{%483   \ifnum #1>\c@tocdepth \else484     \vskip \z@ \@plus.2\p@485     {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip486     \parindent #2\relax\@afterindenttrue487     \interlinepenalty\@M488     \leavevmode489     \@tempdima #3\relax490     \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip491     {\csname thu@toc@font\endcsname #4}\nobreak492     \leaders\hbox{$\m@th\mkern \@dotsep mu\hbox{.}\mkern \@dotsep mu$}\hfill493     \nobreak{\normalfont \normalcolor #5}%494     \par}%495   \fi}496 \renewcommand*\l@chapter[2]{%497   \ifnum \c@tocdepth >\m@ne498     \addpenalty{-\@highpenalty}%499     \vskip 4bp \@plus\p@500     \setlength\@tempdima{4em}%501     \begingroup502       \parindent \z@ \rightskip \@pnumwidth503       \parfillskip -\@pnumwidth504       \leavevmode505       \advance\leftskip\@tempdima506       \hskip -\leftskip507       {\hei\ifthu@bachelor\sffamily\else\csname thu@toc@font\endcsname\fi #1} % numberline is called here, and it uses \@tempdima508       \leaders\hbox{$\m@th\mkern \@dotsep mu\hbox{.}\mkern \@dotsep mu$}\hfill509       \nobreak{\normalfont\normalcolor #2}\par510       \penalty\@highpenalty511     \endgroup512   \fi}513 \renewcommand*\l@section{\@dottedtocline{1}{\ifthu@bachelor 1.0em\else 1.2em\fi}{2.1em}}514 \renewcommand*\l@subsection{\@dottedtocline{2}{\ifthu@bachelor 1.6em\else 2em\fi}{3em}}515 \renewcommand*\l@subsubsection{\@dottedtocline{3}{\ifthu@bachelor 2.4em\else 3.5em\fi}{3.8em}}516 \def\thu@define@term#1{517   \expandafter\gdef\csname #1\endcsname##1{%518     \expandafter\gdef\csname thu@#1\endcsname{##1}}519   \csname #1\endcsname{}}520 \thu@define@term{secretlevel}521 \thu@define@term{secretyear}522 \thu@define@term{ctitle}523 \thu@define@term{cdegree}524 \newcommand\cdepartment[2][]{\def\thu@cdepartment@short{#1}\def\thu@cdepartment{#2}}525 \def\caffil{\cdepartment} % todo: for compatibility526 \def\thu@cdepartment@short{}527 \def\thu@cdepartment{}528 \thu@define@term{cmajor}529 \def\csubject{\cmajor} % todo: for compatibility530 \thu@define@term{cauthor}531 \thu@define@term{csupervisor}532 \thu@define@term{cassosupervisor}533 \thu@define@term{ccosupervisor}534 \thu@define@term{cdate}535 \thu@define@term{etitle}536 \thu@define@term{edegree}537 \thu@define@term{edepartment}538 \def\eaffil{\edepartment} % todo: for compability539 \thu@define@term{emajor}540 \def\esubject{\emajor} % todo: for compability541 \thu@define@term{eauthor}542 \thu@define@term{esupervisor}543 \thu@define@term{eassosupervisor}544 \thu@define@term{ecosupervisor}545 \thu@define@term{edate}546 \long\@xp\def\@xp\collect@@body\@xp#\@xp1\@xp\end\@xp#\@xp2\@xp{%547   \collect@@body{#1}\end{#2}}548 \long\@xp\def\@xp\push@begins\@xp#\@xp1\@xp\begin\@xp#\@xp2\@xp{%549   \push@begins{#1}\begin{#2}}550 \long\@xp\def\@xp\addto@envbody\@xp#\@xp1\@xp{%551   \addto@envbody{#1}}552 \newcommand{\thu@@cabstract}[1]{\long\gdef\thu@cabstract{#1}}553 \newenvironment{cabstract}{\collect@body\thu@@cabstract}{}554 \newcommand{\thu@@eabstract}[1]{\long\gdef\thu@eabstract{#1}}555 \newenvironment{eabstract}{\collect@body\thu@@eabstract}{}556 \def\thu@parse@keywords#1{557   \expandafter\gdef\csname thu@#1\endcsname{} % todo: need or not?558   \expandafter\gdef\csname #1\endcsname##1{559     \@for\reserved@a:=##1\do{560       \expandafter\ifx\csname thu@#1\endcsname\@empty\else561         \expandafter\g@addto@macro\csname thu@#1\endcsname{\ignorespaces\csname thu@#1@separator\endcsname}562       \fi563       \expandafter\expandafter\expandafter\g@addto@macro%564         \expandafter\csname thu@#1\expandafter\endcsname\expandafter{\reserved@a}}}}565 \thu@parse@keywords{ckeywords}566 \thu@parse@keywords{ekeywords}567 \newlength{\thu@title@width}568 \def\thu@put@title#1{\makebox{\hb@xt@ \thu@title@width{#1}}}569 \newcommand{\thu@first@titlepage}{570   \begin{center}571     \vspace*{-1.3cm}572     \parbox[b][2.4cm][t]{\textwidth}{%573       \ifthu@secret\hfill{\sihao\thu@secret@title}\else\rule{1cm}{0cm}\fi}574     \ifthu@bachelor575       \vskip0.2cm576       {\ziju{10bp}\yihao\li\thu@schoolename}577       \par\vskip1.2cm578       {\ziju{18bp}\xiaochu\hei\thu@bachelor@subtitle}579       \vskip2.5cm580       \noindent\hei\xiaoer\thu@bachelor@title@pre\thu@title@sep581       \parbox[t]{12cm}{%582         \setbox0=\hbox{{\yihao[1.55]\thu@ctitle}}583         \begin{picture}(0,0)(0,0)584           \setlength\unitlength{1cm}585           \linethickness{1.3pt}586           \put(0,-0.25){\line(1,0){12}}587           \ifdim\wd0>12cm588             \put(0,-1.68){\line(1,0){12}}589           \fi590         \end{picture}%591         \ignorespaces\yihao[1.55]\thu@ctitle} %TODO: CJKulem.sty592       \vskip1.55cm593     \else594       \parbox[t][9cm][t]{\paperwidth-8cm}{595       \renewcommand{\baselinestretch}{1.5}596       \begin{center}597       \yihao[1.2]{\hei\sffamily\thu@ctitle}\par598       \ifthu@master599         \erhao[1.1] \textbf{\sffamily\thu@etitle}\par\vskip 5bp600       \else % for doctor601         \par\vskip 20bp602       \fi603       \xiaoer[1] \textrm{{\ziju{2bp}\thu@apply}}604       \end{center}}605     \fi606     \ifthu@bachelor607       \vskip1cm608       \parbox[t][7.0cm][t]{\textwidth}{{\sanhao[1.8]609         \hspace*{1.65cm}\fs610           \setlength{\thu@title@width}{4em}611           \setlength{\extrarowheight}{6pt}612           \ifxetex % todo: ugly codes613             \begin{tabular}{p{\thu@title@width}@{}l@{\extracolsep{8pt}}l}614           \else615             \begin{tabular}{p{\thu@title@width}l@{}l}616           \fi617               \thu@put@title{\thu@bachelor@departmenttitle} & \thu@title@sep & \thu@cdepartment\618               \thu@put@title{\thu@bachelor@majortitle}      & \thu@title@sep & \thu@cmajor\619               \thu@put@title{\thu@bachelor@authortitle}     & \thu@title@sep & \thu@cauthor \620               \thu@put@title{\thu@csupervisortitle}         & \thu@title@sep & \thu@csupervisor\621               \ifx\thu@cassosupervisor\@empty\else622                 \thu@put@title{\thu@cassosupertitle}        & \thu@title@sep & \thu@cassosupervisor\623               \fi624             \end{tabular}625         }}626     \else627       \parbox[t][7.8cm][t]{\textwidth}{{\sanhao[1.5]628         \begin{center}\fs629           \setlength{\thu@title@width}{6em}630           \setlength{\extrarowheight}{4pt}631           \ifxetex % todo: ugly codes632             \begin{tabular}{p{\thu@title@width}@{}c@{\extracolsep{8pt}}l}633           \else634             \begin{tabular}{p{\thu@title@width}c@{\extracolsep{4pt}}l}635           \fi636               \thu@put@title{\thu@cdepartmenttitle}  & \thu@title@sep & {\ziju{3bp}\thu@cdepartment}\637               \thu@put@title{\thu@cmajortitle}       & \thu@title@sep & {\ziju{3bp}\thu@cmajor}\638               \thu@put@title{\thu@cauthortitle}      & \thu@title@sep & {\ziju{11bp}\thu@cauthor}\639               \thu@put@title{\thu@csupervisortitle}  & \thu@title@sep & {\ziju{11bp}\thu@csupervisor}\640               \ifx\thu@cassosupervisor\@empty\else641                 \thu@put@title{\thu@cassosupertitle} & \thu@title@sep & {\ziju{11bp}\thu@cassosupervisor}\642               \fi643               \ifx\thu@ccosupervisor\@empty\else644                 \thu@put@title{\thu@ccosupertitle}   & \thu@title@sep & {\ziju{11bp}\thu@ccosupervisor}\645               \fi646             \end{tabular}647         \end{center}}}648       \fi649      \begin{center}650        {\ifthu@bachelor\hskip-0.9cm\xiaosi\else\sanhao\fi \song \thu@cdate}651      \end{center}652     \end{center}} % end of titlepage653 \newcommand{\thu@doctor@engcover}{%654   \begin{center}655     \vspace*{0.2cm}656     \parbox[t][5.2cm][t]{\paperwidth-7.2cm}{657       \renewcommand{\baselinestretch}{1.5}658       \begin{center}659         \erhao[1.1]\bfseries\sffamily\thu@etitle660       \end{center}}661     \parbox[t][5.8cm][t]{\paperwidth-7.2cm}{662       \renewcommand{\baselinestretch}{1.3}663       \begin{center}664         \sanhao Dissertation Submitted to\665         {\bfseries Tsinghua University}\666         in partial fulfillment of the requirement\667         for the degree of\668         {\bfseries\sffamily\thu@edegree}669       \end{center}}670     \parbox[t][3.6cm][b]{\paperwidth-7.2cm}{671       \renewcommand{\baselinestretch}{1.3}672       \begin{center}673         \sanhao\sffamily by\\[3bp]674         \bfseries\thu@eauthor\\(~\thu@emajor~)675       \end{center}}676     \par\vspace{0.9cm}677     \parbox[t][2.1cm][t]{\paperwidth-7.2cm}{678       \renewcommand{\baselinestretch}{1.2}\xiaosan\centering679       \begin{tabular}{rl}680         Dissertation Supervisor : & \thu@esupervisor\681         \ifx\thu@eassosupervisor\@empty682           \else Associate Supervisor : & \thu@eassosupervisor\\\fi683         \ifx\thu@ecosupervisor\@empty684           \else Cooperate Supervisor : & \thu@ecosupervisor\\\fi685       \end{tabular}}686     \parbox[t][2cm][b]{\paperwidth-7.2cm}{687     \begin{center}688       \sanhao\bfseries\sffamily\thu@edate689     \end{center}}690   \end{center}}691 \newcommand\thu@underline[2][6em]{\hskip1pt\underline{\hb@xt@ #1{\hss#2\hss}}\hskip3pt}692 \newcommand{\thu@authorization@mk}{%693   \ifthu@bachelor\vspace*{-0.6cm}\else\vspace*{-0.1cm}\fi % shit code!694   \begin{center}\erhao\hei\thu@authtitle\end{center}695   \ifthu@bachelor\vskip\baselineskip\else\vskip18pt\sihao[2.03]\fi\par696   \thu@authorization\par697   \textbf{\thu@authorizationaddon}\par698   \ifthu@bachelor\vskip1.0cm\else\vskip1.9cm\fi699   \ifthu@bachelor700     \ifthu@bachelor\indent\else\noindent\fi\thu@authorsig\thu@underline\relax%701     \thu@teachersig\thu@underline\relax\thu@frontdate\thu@underline\relax702   \else703     \begingroup704       \parindent0pt\xiaosi705       \hspace*{1.5cm}\thu@authorsig\thu@underline[7em]\relax\hfill%706                      \thu@teachersig\thu@underline[7em]\relax\hspace*{1cm}\\[3pt]707       \hspace*{1.5cm}\thu@frontdate\thu@underline[7em]\relax\hfill%708                      \thu@frontdate\thu@underline[7em]\relax\hspace*{1cm}709     \endgroup710   \fi}711 \newcommand{\makecover}{712   \phantomsection713   \pdfbookmark[-1]{\thu@ctitle}{ctitle}714   \normalsize%715   \begin{titlepage}716     \thu@first@titlepage717     \ifthu@doctor718       \cleardoublepage\thu@doctor@engcover719     \fi720     \cleardoublepage\thu@authorization@mk721   \end{titlepage}722   \normalsize723   \thu@makeabstract724   \let\@tabular\thu@tabular}725 \newcommand{\thu@makeabstract}{%726   \cleardoublepage % always openright for Abstract727   \thu@chapter*[]{\cabstractname} % no tocline728   \ifthu@bachelor729     \pagestyle{thu@plain}730   \else731     \pagestyle{thu@headings}732   \fi733   \pagenumbering{Roman}734   \thu@cabstract735   \vskip12bp736   \setbox0=\hbox{{\hei\thu@ckeywords@title}}737   \ifthu@bachelor\indent\else\noindent\hangindent\wd0\hangafter1\fi738     \box0\thu@ckeywords739   \thu@chapter*[]{\eabstractname} % no tocline740   \thu@eabstract741   \vskip12bp742   \setbox0=\hbox{\textbf{Key words:\enskip}}743   \ifthu@bachelor\indent\else\noindent\hangindent\wd0\hangafter1\fi744     \box0\thu@ekeywords}745 \newenvironment{denotation}[1][2.5cm]{746   \thu@chapter*[]{\thu@denotation@name} % no tocline747   \noindent\begin{list}{}%748     {\vskip-30bp\xiaosi[1.6]749      \renewcommand\makelabel[1]{##1\hfil}750      \setlength{\labelwidth}{#1} % 标签盒子宽度751      \setlength{\labelsep}{0.5cm} % 标签与列表文本距离752      \setlength{\itemindent}{0cm} % 标签缩进量753      \setlength{\leftmargin}{\labelwidth+\labelsep} % 左边界754      \setlength{\rightmargin}{0cm}755      \setlength{\parsep}{0cm} % 段落间距756      \setlength{\itemsep}{0cm} % 标签间距757     \setlength{\listparindent}{0cm} % 段落缩进量758     \setlength{\topsep}{0pt} % 标签与上文的间距759    }}{\end{list}}760 \newenvironment{ack}{%761   \ifthu@bachelor762     \thu@chapter*{\thu@ackname}763   \else764     % \cleardoublepage765     \thu@chapter*[\thu@acklongname]{\thu@ackname}[\thu@acklongname]766   \fi}767   {%768    \ifthu@bachelor\relax\else %TAG 1769      \par\vfill%770      \noindent771      {\setlength{\unitlength}{0.1\textwidth}772       \begin{picture}(10, 0.1)773         \multiput(0,0)(1, 0){10}{\rule{0.8\unitlength}{1.2pt}}774         \multiput(0,0.08)(1, 0){10}{\rule{0.8\unitlength}{1.2pt}}775       \end{picture}}776    \fi % END TAG 1777    \ifthu@bachelor778      \thu@chapter*{\thu@declarename}779    \else780      \parbox[t][4cm][c]{\textwidth}{{\sanhao\hei\centerline{\thu@declarename}}}781    \fi782    \par{\xiaosi\parindent2em\thu@declaretext}\vskip2cm783      {\xiaosi\hfill\thu@signature\thu@underline[2.5cm]\relax%784       \thu@backdate\thu@underline[2.5cm]\relax}%785   }786 \def\thu@starttoc#1{% #1: float type, prepend type name in \listof*** entry.787   \let\oldnumberline\numberline788   \def\numberline##1{\oldnumberline{\csname #1name\endcsname\hskip.4em ##1}}789   \@starttoc{\csname ext@#1\endcsname}790   \let\numberline\oldnumberline}791 \def\thu@listof#1{% #1: float type792   \@ifstar793     {\thu@chapter*[]{\csname list#1name\endcsname}\thu@starttoc{#1}}794     {\thu@chapter*{\csname list#1name\endcsname}\thu@starttoc{#1}}}795 \renewcommand\listoffigures{\thu@listof{figure}}796 \renewcommand*\l@figure{\@dottedtocline{1}{0em}{4em}}797 \renewcommand\listoftables{\thu@listof{table}}798 \let\l@table\l@figure799 \def\ext@equation{loe}800 \def\equcaption#1{%801   \addcontentsline{\ext@equation}{equation}%802                   {\protect\numberline{#1}}}803 \newcommand\listofequations{\thu@listof{equation}}804 \let\l@equation\l@figure805 \bibpunct{[}{]}{,}{s}{}{,}806 \renewcommand\NAT@citesuper[3]{\ifNAT@swa%807   \unskip\kern\p@\textsuperscript{\NAT@@open #1\NAT@@close}%808   \if*#3*\else\ (#3)\fi\else #1\fi\endgroup}809 \DeclareRobustCommand\onlinecite{\@onlinecite}810 \def\@onlinecite#1{\begingroup\let\@cite\NAT@citenum\citep{#1}\endgroup}811 \def\thudot{\ifthu@bachelor\else\unskip.\fi}812 \def\thumasterbib{\ifthu@doctor [M]\else [Master Thesis]\fi}813 \def\thuphdbib{\ifthu@doctor [D]\else [Doctor Thesis]\fi}814 \renewenvironment{thebibliography}[1]{%815    \thu@chapter*{\bibname}%816    \wuhao[1.5]817    \list{\@biblabel{\@arabic\c@enumiv}}%818         {\renewcommand{\makelabel}[1]{##1\hfill}819          \settowidth\labelwidth{1.1cm}820          \setlength{\labelsep}{0.4em}821          \setlength{\itemindent}{0pt}822          \setlength{\leftmargin}{\labelwidth+\labelsep}823          \addtolength{\itemsep}{-0.7em}824          \usecounter{enumiv}%825          \let\p@enumiv\@empty826          \renewcommand\theenumiv{\@arabic\c@enumiv}}%827     \sloppy\frenchspacing828     \clubpenalty4000829     \@clubpenalty \clubpenalty830     \widowpenalty4000%831     \interlinepenalty4000%832     \sfcode`\.\@m}833    {\def\@noitemerr834      {\@latex@warning{Empty `thebibliography‘ environment}}%835     \endlist\frenchspacing}836 \let\thu@appendix\appendix837 \renewenvironment{appendix}{%838   \thu@appendix839   \gdef\@chapapp{\appendixname~\thechapter}840   %\renewcommand\theequation{\ifnum \c@chapter>\z@ \thechapter-\fi\@arabic\c@equation}841   }{}842 \newenvironment{resume}{%843   % \cleardoublepage844   \thu@chapter*{\thu@resume@title}}{}845 \newcommand{\resumeitem}[1]{\vspace{2.5em}{\sihao\hei\centerline{#1}}\par}846 \newcommand{\shuji}[1][\thu@ctitle]{847   \newpage\thispagestyle{empty}\ziju{0.4em}\fs\xiaosan848   \hfill\rotatebox{-90}{\hb@xt@ \textheight{#1\hfill\thu@cauthor}}}849 \iffalse850 \newcommand{\bs}{\symbol{‘134}}%Print backslash851 \newcommand{\cih}[1]{%852   \index{commands!#1@\texttt{\bs#1}}%853   \index{#1@\texttt{\hspace*{-1.2ex}\bs #1}}}854 \newcommand{\ci}[1]{\cih{#1}\texttt{\bs#1}}855 \newcommand{\pai}[1]{%856   \index{packages!#1@\textsf{#1}}%857   \index{#1@\textsf{#1}}%858   \textsf{#1}}859 \newcommand{\ei}[1]{%860   \index{environments!\texttt{#1}}%861   \index{#1@\texttt{#1}}%862   \texttt{#1}}863 \newcommand{\wi}[1]{\index{#1}#1}864 \fi865 \newcommand*{\ziju}[1]{\renewcommand{\CJKglue}{\hskip #1}}866 \newcommand{\pozhehao}{\kern0.3ex\rule[0.8ex]{2em}{0.1ex}\kern0.3ex}867 \def\thu@active@cjk{868   % Activate all >128 characters.869   \count@=127870   \@whilenum\count@<255 \do{%871     \advance\count@ by 1872     \lccode`\~=\count@873     \catcode\count@=\active874     \lowercase{\def~{\kern1ex}}}}875 \AtEndOfClass{\ifxetex\else\thu@active@cjk\fi\input{thuthesis.cfg}}876 \def\thu@fixselectfont{%877   \ifx\@EverySelectfont@EveryHook\@undefined\else% everysel package is loaded878     \DeclareRobustCommand{\selectfont}{%879        \ifx\f@linespread\baselinestretch \else880           \set@fontsize\baselinestretch\f@size\f@baselineskip \fi881        \xdef\font@name{%882           \csname\curr@fontshape/\f@size\endcsname}%883        \pickup@font884        \font@name885        % CJK addition:886        \CJK@bold@false887        \csname \curr@fontshape\endcsname888        % everysel addition:889        \@EverySelectfont@EveryHook890        \@EverySelectfont@AtNextHook891        \gdef\@EverySelectfont@AtNextHook{}%892        % end additions893        \size@update894        \enc@update}895   \fi}896 \def\thu@setup@pdfinfo{%897   \hypersetup{%898     pdftitle={\thu@ctitle},899     pdfauthor={\thu@cauthor},900     pdfsubject={\thu@cdegree},901     pdfkeywords={\thu@ckeywords},902     pdfcreator={\thu@cauthor},903     pdfproducer={\thuthesis}}}904 \ifxetex905   \AtBeginDocument{\CJKindent}906 \else907   \def\thu@beginCJK{%908     \thu@fixselectfont%909     \begin{CJK*}{GBK}{song}\CJKindent}910   \def\thu@endCJK{\clearpage\end{CJK*}}911   \let\thu@begindocumenthook\@begindocumenthook912   \let\thu@enddocumenthook\@enddocumenthook913   \def\AtBeginDocument{\g@addto@macro\thu@begindocumenthook}914   \def\AtEndDocument{\g@addto@macro\thu@enddocumenthook}915   \def\@begindocumenthook{\thu@begindocumenthook\thu@beginCJK}916   \def\@enddocumenthook{\thu@endCJK\thu@enddocumenthook}917 \fi918 \AtEndOfClass{\sloppy\thu@item@space}919 \endinput920 %%921 %% End of file `thuthesis.cls‘.

 

 

thutils.sty

 

 

\ProvidesPackage{thutils}[2007/11/30 4.1 put any packages you would like to use here]% 处理数学公式中的黑斜体的宏包%\RequirePackage{bm}% 不同于~|\mathcal| or |\mathfrak| 之类的英文花体字体%\RequirePackage{mathrsfs}% 表格中支持跨行\RequirePackage{multirow}% 跨页表格%\RequirePackage{longtable}% 固定宽度的表格\RequirePackage{tabularx}% 表格中的反斜线\RequirePackage{slashbox}% 确定浮动对象的位置,可以使用~H,强制将浮动对象放到这里(可能效果很差)\RequirePackage{float}% 浮动图形控制宏包。% 允许上一个~section 的浮动图形出现在下一个~section 的开始部分% 该宏包提供处理浮动对象的~|\FloatBarrier| 命令,使所有未处% 理的浮动图形立即被处理。这三个宏包仅供参考,未必使用: % \RequirePackage[below]{placeins} % \RequirePackage{floatflt} % 图文混排用宏包 % \RequirePackage{rotating} % 图形和表格的控制旋转% 给自定义的宏后面自动加空白% \RequirePackage{xspace}% 定义自己常用的东西\newcommand{\china}{中华人民共和国}\endinput

 

thubib.bst
   1 % BibTeX standard bibliography style `thubib.bst‘ derived from `unsrt‘   2 % This file is part of `thuthesis‘ package.   3 %   4 % $Id: thubib.bst 178 2009-01-04 13:37:39Z littleleo $   5    6 ENTRY   7   { address   8     author   9     booktitle  10     chapter  11     edition  12     editor  13     howpublished  14     institution  15     journal  16     key  17     lang  18     month  19     note  20     number  21     organization  22     pages  23     publisher  24     school  25     series  26     title  27     type  28     volume  29     year  30     url  31   }  32   {}  33   { label }  34   35 INTEGERS { output.state before.all mid.sentence after.sentence after.block }  36   37 FUNCTION {not}  38 {   { #0 }  39     { #1 }  40   if$  41 }  42   43 FUNCTION {and}  44 {   ‘skip$  45     { pop$ #0 }  46   if$  47 }  48   49 FUNCTION {or}  50 {   { pop$ #1 }  51     ‘skip$  52   if$  53 }  54   55 FUNCTION {init.state.consts}  56 { #0 ‘before.all :=  57   #1 ‘mid.sentence :=  58   #2 ‘after.sentence :=  59   #3 ‘after.block :=  60 }  61   62 STRINGS { s t }  63   64 FUNCTION {output.nonnull}  65 { ‘s :=  66   output.state mid.sentence =  67     { ", " * write$ }  68     { output.state after.block =  69     { add.period$ write$  70       newline$  71       "\newblock " write$  72     }  73     { output.state before.all =  74         ‘write$  75         { add.period$ " " * write$ }  76       if$  77     }  78       if$  79       mid.sentence ‘output.state :=  80     }  81   if$  82   s  83 }  84   85 FUNCTION {output.year}  86 { ‘t :=  87   number empty$  88   volume empty$  89   and  90     { add.period$ write$ }  91     { ", " * write$ }  92   if$  93   t  94 }  95   96 STRINGS {z}  97 FUNCTION {remove.dots}  98 { ‘z :=  99   "" 100   { z empty$ not} 101   { z #1 #1 substring$ 102     z #2 global.max$ substring$ ‘z := 103     duplicate$ "." = ‘pop$ 104       { * } 105     if$ 106   } 107   while$ 108   %z 109 } 110  111 FUNCTION {bibinfo.check} 112 { swap$ 113   duplicate$ missing$ 114     { 115       pop$ pop$ 116       "" 117     } 118     { duplicate$ empty$ 119         { 120           swap$ pop$ 121         } 122         { swap$ 123           pop$ 124         } 125       if$ 126     } 127   if$ 128 } 129  130 FUNCTION {format.note} 131 { 132  note empty$ 133     { "" } 134     { note #1 #1 substring$ 135       duplicate$ "{" = 136         ‘skip$ 137         { output.state mid.sentence = 138           { "l" } 139           { "u" } 140         if$ 141         change.case$ 142         } 143       if$ 144       note #2 global.max$ substring$ * "note" bibinfo.check 145     } 146   if$ 147 } 148  149 FUNCTION {output} 150 { duplicate$ empty$ 151     ‘pop$ 152     ‘output.nonnull 153   if$ 154 } 155  156 FUNCTION {output.check} 157 { ‘t := 158   duplicate$ empty$ 159     { pop$ "empty " t * " in " * cite$ * warning$ } 160     ‘output.nonnull 161   if$ 162 } 163  164 FUNCTION {output.bibitem} 165 { newline$ 166   "\bibitem{" write$ 167   cite$ write$ 168   "}" write$ 169   newline$ 170   "" 171   before.all ‘output.state := 172 } 173  174 FUNCTION {fin.entry} 175 { duplicate$ empty$ 176     ‘pop$ 177     ‘write$ 178   if$ 179   newline$ 180   "\thudot" write$ 181   newline$ 182 } 183  184 % FUNCTION {fin.entry} 185 % { add.period$    186 %   write$ 187 %   %remove.dots 188 %   newline$ 189 % } 190  191 % FUNCTION {fin.entry} 192 % { duplicate$ empty$ 193 %     ‘pop$ 194 %     ‘write$ 195 %   if$ 196 %   newline$ 197 % } 198  199 FUNCTION {new.block} 200 { output.state before.all = 201     ‘skip$ 202     { after.block ‘output.state := } 203   if$ 204 } 205  206 FUNCTION {new.sentence} 207 { output.state after.block = 208     ‘skip$ 209     { output.state before.all = 210     ‘skip$ 211     { after.sentence ‘output.state := } 212       if$ 213     } 214   if$ 215 } 216  217  218 FUNCTION {new.block.checka} 219 { empty$ 220     ‘skip$ 221     ‘new.block 222   if$ 223 } 224  225 FUNCTION {new.block.checkb} 226 { empty$ 227   swap$ empty$ 228   and 229     ‘skip$ 230     ‘new.block 231   if$ 232 } 233  234 FUNCTION {new.sentence.checka} 235 { empty$ 236     ‘skip$ 237     ‘new.sentence 238   if$ 239 } 240  241 FUNCTION {new.sentence.checkb} 242 { empty$ 243   swap$ empty$ 244   and 245     ‘skip$ 246     ‘new.sentence 247   if$ 248 } 249  250 FUNCTION {field.or.null} 251 { duplicate$ empty$ 252     { pop$ "" } 253     ‘skip$ 254   if$ 255 } 256  257 FUNCTION {emphasize} 258 { duplicate$ empty$ 259     { pop$ "" } 260     { "{\em " swap$ * "}" * } 261   if$ 262 } 263  264 INTEGERS { nameptr namesleft numnames } 265  266 FUNCTION {bbl.etal} 267 { "et~al." } 268  269 FUNCTION {bbl.cn.etal} 270 { "等." } 271  272 FUNCTION {format.lang} 273 { lang empty$ 274     ‘skip$ 275     ‘skip$ 276   if$ 277  } 278  279 FUNCTION {format.names} 280 { ‘s := 281   #1 ‘nameptr := 282   s num.names$ ‘numnames := 283   numnames ‘namesleft := 284     { namesleft #0 > } 285     { s nameptr 286       %"{ff }{ll}" 287       "{ll }{f{~}}"     288       format.name$ 289       remove.dots 290       %bibinfo bibinfo.check 291       ‘t := 292       nameptr #1 > 293         { 294           nameptr #3 295           #1 + = 296           numnames #3 297           > and 298             { "others" ‘t := 299               #1 ‘namesleft := } 300             ‘skip$ 301           if$ 302           namesleft #1 > 303             { ", " * t * } 304             { numnames #2 > 305               { "" * } 306               ‘skip$ 307               if$ 308               s nameptr "{ll}" format.name$ duplicate$ "others" = 309                 { ‘t := } 310                 { pop$ } 311               if$ 312               t "others" = 313                 { 314                   lang empty$ 315                     { ", " * bbl.etal * } 316                     { lang "zh" = 317                        { ", " * bbl.cn.etal * } 318                        ‘skip$ 319                       if$ 320                     } 321                   if$ 322                 } 323                 { 324                   lang empty$ 325                     { ", " * t * } 326                     { lang "zh" = 327                        { ", " * t * } 328                        ‘skip$                    329                      if$ 330                     } 331                   if$ 332                 }  333               if$ 334             } 335           if$ 336         } 337         ‘t 338       if$ 339       nameptr #1 + ‘nameptr := 340       namesleft #1 - ‘namesleft := 341     } 342   while$ 343 } 344  345 FUNCTION {format.authors} 346 { author empty$ 347     { "" } 348     { author format.names } 349   if$ 350 } 351  352 FUNCTION {editors.names} 353 { lang empty$ 354     { ", (eds.)" } 355     { ", 编" } 356   if$ 357 } 358  359  360 FUNCTION {format.editors} 361 { editor empty$ 362     { "" } 363     { editor format.names 364     %  editor num.names$ #1 > 365     %{ ", editors" * } 366     %{ ", editor" * } 367     %  if$ 368      editors.names * 369     } 370   if$ 371 } 372  373 FUNCTION {format.title} 374 { title empty$ 375     { "" } 376     { title } 377   if$ 378 } 379  380 FUNCTION {n.dashify} 381 { ‘t := 382   "" 383     { t empty$ not } 384     { t #1 #1 substring$ "-" = 385     { t #1 #2 substring$ "--" = not 386         { "--" * 387           t #2 global.max$ substring$ ‘t := 388         } 389         {   { t #1 #1 substring$ "-" = } 390         { "-" * 391           t #2 global.max$ substring$ ‘t := 392         } 393           while$ 394         } 395       if$ 396     } 397     { t #1 #1 substring$ * 398       t #2 global.max$ substring$ ‘t := 399     } 400       if$ 401     } 402   while$ 403 } 404  405 FUNCTION {format.date} 406 { year empty$ 407     { month empty$ 408     { "" } 409     { "there‘s a month but no year in " cite$ * warning$ 410       month 411     } 412       if$ 413     } 414     { month empty$ 415     ‘year 416     { month ", " * year * } 417       if$ 418     } 419   if$ 420 } 421  422 FUNCTION {format.btitle} 423 { title %emphasize 424 } 425  426 FUNCTION {tie.or.space.connect} 427 { duplicate$ text.length$ #3 < 428     { "~" } 429     { " " } 430   if$ 431   swap$ * * 432 } 433  434 FUNCTION {either.or.check} 435 { empty$ 436     ‘pop$ 437     { "can‘t use both " swap$ * " fields in " * cite$ * warning$ } 438   if$ 439 } 440  441 FUNCTION {format.bvolume} 442 { volume empty$ 443     { "" } 444     { "volume" volume tie.or.space.connect 445       series empty$ 446     ‘skip$ 447     { " of " * series emphasize * } 448       if$ 449       "volume and number" number either.or.check 450     } 451   if$ 452 } 453  454 FUNCTION {format.number.series} 455 { volume empty$ 456     { number empty$ 457     { series field.or.null } 458     { output.state mid.sentence = 459         { "number" } 460         { "Number" } 461       if$ 462       number tie.or.space.connect 463       series empty$ 464         { "there‘s a number but no series in " cite$ * warning$ } 465         { " in " * series * } 466       if$ 467     } 468       if$ 469     } 470     { "" } 471   if$ 472 } 473  474 FUNCTION {format.edition} 475 { edition empty$ 476     { "" } 477     { output.state mid.sentence = 478     { edition "l" change.case$ " ed." * } 479     { edition "t" change.case$ " ed." * } 480       if$ 481     } 482   if$ 483 } 484  485  486 FUNCTION {format.url} 487 { url empty$ 488     { "" } 489     { new.block " {\url{" url * "}}" * } 490   if$ 491 } 492  493  494 INTEGERS { multiresult } 495  496 FUNCTION {multi.page.check} 497 { ‘t := 498   #0 ‘multiresult := 499     { multiresult not 500       t empty$ not 501       and 502     } 503     { t #1 #1 substring$ 504       duplicate$ "-" = 505       swap$ duplicate$ "," = 506       swap$ "+" = 507       or or 508     { #1 ‘multiresult := } 509     { t #2 global.max$ substring$ ‘t := } 510       if$ 511     } 512   while$ 513   multiresult 514 } 515  516 FUNCTION {format.pages} 517 { pages empty$ 518     { "" } 519     { pages multi.page.check 520     { "" pages n.dashify tie.or.space.connect } 521     { "" pages tie.or.space.connect } 522       if$ 523     } 524   if$ 525 } 526  527 FUNCTION {format.vol.num.pages} 528 { volume field.or.null 529   number empty$ 530     ‘skip$ 531     { "(" number * ")" * * 532       volume empty$ 533     { "there‘s a number but no volume in " cite$ * warning$ } 534     ‘skip$ 535       if$ 536     } 537   if$ 538   pages empty$ 539     ‘skip$ 540     { duplicate$ empty$ 541     { pop$ format.pages } 542     { ":" * pages n.dashify * } 543       if$ 544     } 545   if$ 546 } 547  548 FUNCTION {format.chapter.pages} 549 { chapter empty$ 550     { "" } 551     { type empty$ 552       { "chapter" } 553       { type "l" change.case$ } 554     if$ 555     chapter tie.or.space.connect 556     pages empty$ 557       ‘skip$ 558       { ", " * format.pages * } 559     if$ 560     } 561   if$ 562 } 563  564 FUNCTION {collection.in} 565 { lang empty$ 566     { "In: " } 567     { "见: " } 568   if$ 569 } 570  571 FUNCTION {format.in.ed.booktitle} 572 { booktitle empty$ 573     { "" } 574     { editor empty$ 575     { lang empty$ 576         { "Proceedings of " booktitle * } 577         { " " booktitle * } 578       if$ 579     } 580     { lang empty$ 581         { collection.in format.editors * ". Proceedings of " * booktitle * } 582         { collection.in format.editors * ". " * booktitle * } 583       if$ 584     } 585       if$ 586     } 587   if$ 588 } 589  590 FUNCTION {empty.misc.check} 591 { author empty$ title empty$ howpublished empty$ 592   month empty$ year empty$ note empty$ 593   and and and and and 594     { "all relevant fields are empty in " cite$ * warning$ } 595     ‘skip$ 596   if$ 597 } 598  599 FUNCTION {format.thesis.type} 600 { type empty$ 601     ‘skip$ 602     { pop$ 603       type "t" change.case$ 604     } 605   if$ 606 } 607  608 FUNCTION {format.tr.number} 609 { type empty$ 610     { "Technical Report" } 611     ‘type 612   if$ 613   number empty$ 614     { "t" change.case$ } 615     { number tie.or.space.connect } 616   if$ 617 } 618  619 FUNCTION {format.article.crossref} 620 { key empty$ 621     { journal empty$ 622     { "need key or journal for " cite$ * " to crossref " * crossref * 623       warning$ 624       "" 625     } 626     { "In {\em " journal * "\/}" * } 627       if$ 628     } 629     { "In " key * } 630   if$ 631   " \cite{" * crossref * "}" * 632 } 633  634 FUNCTION {format.crossref.editor} 635 { editor #1 "{ll }{f{~}}" format.name$ 636   editor num.names$ duplicate$ 637   #2 > 638     { pop$ " et~al." * } 639     { #2 < 640     ‘skip$ 641     { editor #2 "{ll }{f{~}}" format.name$ "others" = 642         { " et~al." * } 643         { " and " * editor #2 "{ll }{f{~}}" format.name$ * } 644       if$ 645     } 646       if$ 647     } 648   if$ 649 } 650  651 FUNCTION {format.book.crossref} 652 { volume empty$ 653     { "empty volume in " cite$ * "‘s crossref of " * crossref * warning$ 654       "In " 655     } 656     { "Volume" volume tie.or.space.connect 657       " of " * 658     } 659   if$ 660   editor empty$ 661   editor field.or.null author field.or.null = 662   or 663     { key empty$ 664     { series empty$ 665         { "need editor, key, or series for " cite$ * " to crossref " * 666           crossref * warning$ 667           "" * 668         } 669         { "{\em " * series * "\/}" * } 670       if$ 671     } 672     { key * } 673       if$ 674     } 675     { format.crossref.editor * } 676   if$ 677   " \cite{" * crossref * "}" * 678 } 679  680 FUNCTION {format.incoll.inproc.crossref} 681 { editor empty$ 682   editor field.or.null author field.or.null = 683   or 684     { key empty$ 685     { booktitle empty$ 686         { "need editor, key, or booktitle for " cite$ * " to crossref " * 687           crossref * warning$ 688           "" 689         } 690         { "In {\em " booktitle * "\/}" * } 691       if$ 692     } 693     { "In " key * } 694       if$ 695     } 696     { "In " format.crossref.editor * } 697   if$ 698   " \cite{" * crossref * "}" * 699 } 700  701 FUNCTION {format.address.publisher} 702 { address empty$ 703     { publisher empty$ 704     { "" } 705     { "there‘s a publisher but no address in " cite$ * warning$ 706       publisher 707     } 708       if$ 709     } 710     { publisher empty$ 711     ‘address 712     { address ": " * publisher * } 713       if$ 714     } 715   if$ 716 } 717  718 FUNCTION {format.address.school} 719 { address empty$ 720     { school empty$ 721     { "" } 722     { "there‘s a school but no address in " cite$ * warning$ 723       school 724     } 725       if$ 726     } 727     { school empty$ 728     ‘address 729     { address ": " * school * } 730       if$ 731     } 732   if$ 733 } 734  735  736 FUNCTION {format.title.type} 737 { title empty$ 738     { type empty$ 739         { "" } 740         { "there‘s a type but no title in " cite$ * warning$ 741           type 742         } 743       if$ 744     } 745     { type empty$ 746         ‘title 747         { title ": " * type * } 748       if$ 749     } 750   if$ 751 } 752  753 FUNCTION {book}  754 { output.bibitem 755   author empty$ 756     { format.editors "author and editor" output.check } 757     { format.authors output.nonnull 758       crossref missing$ 759     { "author and editor" editor either.or.check } 760     ‘skip$ 761       if$ 762     } 763   if$ 764   new.block 765   format.btitle "title" output.check 766   crossref missing$ 767     { format.bvolume output 768       new.block 769       format.number.series output 770       %new.sentence 771       %format.address.publisher output 772     } 773     { new.block 774       format.book.crossref output.nonnull 775     } 776   if$ 777   format.edition output 778   format.address.publisher output 779   pages empty$ 780     { format.date "year" output.check  781       % new.sentence 782       % format.pages output 783     } 784     { format.date ":" * format.pages * output } 785   if$   786   fin.entry 787 } 788  789 FUNCTION {article} 790 { output.bibitem 791   format.authors "author" output.check 792   new.block 793   format.title "title" output.check 794   new.block 795   crossref missing$ 796     { %journal emphasize "journal" output.check 797       journal "journal" output.check 798       %format.date "year" output.check 799       %new.block 800       year output 801       format.vol.num.pages output.year 802     } 803     { format.article.crossref output.nonnull 804       format.pages output 805     } 806   if$ 807   new.block 808   format.note output   809   fin.entry 810 } 811  812 FUNCTION {booklet} 813 { output.bibitem 814   format.authors output 815   new.block 816   format.title "title" output.check 817   howpublished address new.block.checkb 818   howpublished output 819   address output 820   format.date output 821   new.block 822   note output 823   fin.entry 824 } 825  826 FUNCTION {inbook} 827 { output.bibitem 828   author empty$ 829     { format.editors "author and editor" output.check } 830     { format.authors output.nonnull 831       crossref missing$ 832     { "author and editor" editor either.or.check } 833     ‘skip$ 834       if$ 835     } 836   if$ 837   new.block 838   format.btitle "title" output.check 839   crossref missing$ 840     { format.bvolume output 841       %format.chapter.pages "chapter and pages" output.check 842       new.block 843       format.number.series output 844       new.sentence 845       publisher "publisher" output.check 846       address output 847     } 848     { format.chapter.pages "chapter and pages" output.check 849       new.block 850       format.book.crossref output.nonnull 851     } 852   if$ 853   format.edition output 854   pages empty$ 855     { format.date output } 856     { format.date ":" * format.pages * output } 857   if$ 858   % format.date "." * format.pages * output 859   fin.entry 860 } 861  862 FUNCTION {incollection} 863 { output.bibitem 864   format.authors "author" output.check 865   new.block 866   format.title "title" output.check 867   new.block 868   crossref missing$ 869     { format.in.ed.booktitle "booktitle" output.check 870       %format.bvolume output 871       format.number.series output 872       format.chapter.pages output 873       new.sentence 874       format.address.publisher output 875       %address output 876       %publisher "publisher" output.check 877       %format.edition output 878       % format.date "year" output.check 879       % format.date ". " * format.pages * output 880       format.date ":" * format.pages * output 881     } 882     { format.incoll.inproc.crossref output.nonnull 883       format.chapter.pages output 884     } 885   if$ 886   % new.block 887   % note output 888   fin.entry 889 } 890  891 FUNCTION {inproceedings} 892 { output.bibitem 893   format.authors "author" output.check 894   new.block 895   format.title "title" output.check 896   new.block 897   crossref missing$ 898     { format.in.ed.booktitle "booktitle" output.check 899       format.bvolume output 900       %format.number.series output 901       %format.pages output 902       address empty$ 903     { organization publisher new.sentence.checkb 904       organization output 905       publisher output 906       %format.date "year" output.check 907       year output 908     } 909     { %address output.nonnull 910       format.address.publisher output   911       %format.date "year" output.check 912       year output 913       new.sentence 914       organization output 915       %publisher output 916     } 917       if$ 918       new.block 919       format.pages output 920       %remove.dots 921     } 922     { format.incoll.inproc.crossref output.nonnull 923       format.pages output 924     } 925   if$ 926   new.block 927   note output   928   fin.entry 929 } 930  931 FUNCTION {conference} { inproceedings } 932  933 FUNCTION {manual} 934 { output.bibitem 935   author empty$ 936     { organization empty$ 937     ‘skip$ 938     { organization output.nonnull 939       address output 940     } 941       if$ 942     } 943     { format.authors output.nonnull } 944   if$ 945   new.block 946   format.btitle "title" output.check 947   author empty$ 948     { organization empty$ 949     { address new.block.checka 950       address output 951     } 952     ‘skip$ 953       if$ 954     } 955     { organization address new.block.checkb 956       organization output 957       address output 958     } 959   if$ 960   format.edition output 961   format.date output 962   new.block 963   note output 964   fin.entry 965 } 966  967 FUNCTION {masterthesis.type} 968 { lang empty$ 969     { "\thumasterbib" } 970     { "[硕士学位论文]" } 971   if$ 972 } 973  974 FUNCTION {mastersthesis} 975 { output.bibitem 976   format.authors "author" add.period$ output.check 977   new.block 978   % format.title remove.dots ": " * masterthesis.type * output 979   format.title remove.dots masterthesis.type * output 980   new.block 981   format.address.school output 982   %format.madd "address" output.check 983   %school "school" output.check   984   format.date "year" output.check 985   new.block 986   note output 987   fin.entry 988 } 989  990 FUNCTION {misc} 991 { output.bibitem 992   format.authors output 993   title howpublished new.block.checkb 994   format.title output 995   howpublished new.block.checka 996   howpublished output 997   format.date output 998   format.url output 999   new.block1000   note output1001   fin.entry1002   empty.misc.check1003 }1004 1005 FUNCTION {phdthesis.type}1006 { lang empty$1007     { "\thuphdbib" }1008     { "[博士学位论文]" }1009   if$ 1010 }1011 1012 FUNCTION {phdthesis}1013 { output.bibitem1014   format.authors "author" add.period$ output.check1015   new.block1016   % format.title remove.dots ": " * phdthesis.type * output1017   format.title remove.dots phdthesis.type * output1018   new.block1019   format.address.school output1020   %address output1021   %school "school" output.check  1022   format.date "year" output.check1023   new.block1024   note output1025   fin.entry1026 }1027 1028 FUNCTION {proceedings}1029 { output.bibitem1030   editor empty$1031     { organization output }1032     { format.editors output.nonnull }1033   if$1034   new.block1035   format.btitle "title" output.check1036   format.bvolume output1037   format.number.series output1038   address empty$1039     { editor empty$1040     { publisher new.sentence.checka }1041     { organization publisher new.sentence.checkb1042       organization output1043     }1044       if$1045       publisher output1046       format.date "year" output.check1047     }1048     { address output.nonnull1049       format.date "year" output.check1050       new.sentence1051       editor empty$1052     ‘skip$1053     { organization output }1054       if$1055       publisher output1056     }1057   if$1058   new.block1059   note output1060   fin.entry1061 }1062 1063 FUNCTION {techreport}1064 { output.bibitem1065   format.authors "author" output.check1066   new.block1067   format.title "title" output.check1068   new.block1069   format.tr.number output.nonnull1070   institution "institution" output.check1071   address output1072   format.date "year" output.check1073   format.url output1074   new.block1075   note output1076   fin.entry1077 }1078 1079 FUNCTION {unpublished}1080 { output.bibitem1081   format.authors "author" output.check1082   new.block1083   format.title "title" output.check1084   new.block1085   note "note" output.check1086   format.date output1087   fin.entry1088 }1089 1090 FUNCTION {default.type} { misc }1091 1092 MACRO {jan} {"January"}1093 1094 MACRO {feb} {"February"}1095 1096 MACRO {mar} {"March"}1097 1098 MACRO {apr} {"April"}1099 1100 MACRO {may} {"May"}1101 1102 MACRO {jun} {"June"}1103 1104 MACRO {jul} {"July"}1105 1106 MACRO {aug} {"August"}1107 1108 MACRO {sep} {"September"}1109 1110 MACRO {oct} {"October"}1111 1112 MACRO {nov} {"November"}1113 1114 MACRO {dec} {"December"}1115 1116 MACRO {acmcs} {"ACM Computing Surveys"}1117 1118 MACRO {acta} {"Acta Informatica"}1119 1120 MACRO {cacm} {"Communications of the ACM"}1121 1122 MACRO {ibmjrd} {"IBM Journal of Research and Development"}1123 1124 MACRO {ibmsj} {"IBM Systems Journal"}1125 1126 MACRO {ieeese} {"IEEE Transactions on Software Engineering"}1127 1128 MACRO {ieeetc} {"IEEE Transactions on Computers"}1129 1130 MACRO {ieeetcad}1131  {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"}1132 1133 MACRO {ipl} {"Information Processing Letters"}1134 1135 MACRO {jacm} {"Journal of the ACM"}1136 1137 MACRO {jcss} {"Journal of Computer and System Sciences"}1138 1139 MACRO {scp} {"Science of Computer Programming"}1140 1141 MACRO {sicomp} {"SIAM Journal on Computing"}1142 1143 MACRO {tocs} {"ACM Transactions on Computer Systems"}1144 1145 MACRO {tods} {"ACM Transactions on Database Systems"}1146 1147 MACRO {tog} {"ACM Transactions on Graphics"}1148 1149 MACRO {toms} {"ACM Transactions on Mathematical Software"}1150 1151 MACRO {toois} {"ACM Transactions on Office Information Systems"}1152 1153 MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"}1154 1155 MACRO {tcs} {"Theoretical Computer Science"}1156 1157 READ1158 1159 STRINGS { longest.label }1160 1161 INTEGERS { number.label longest.label.width }1162 1163 FUNCTION {initialize.longest.label}1164 { "" ‘longest.label :=1165   #1 ‘number.label :=1166   #0 ‘longest.label.width :=1167 }1168 1169 FUNCTION {longest.label.pass}1170 { number.label int.to.str$ ‘label :=1171   number.label #1 + ‘number.label :=1172   label width$ longest.label.width >1173     { label ‘longest.label :=1174       label width$ ‘longest.label.width :=1175     }1176     ‘skip$1177   if$1178 }1179 1180 EXECUTE {initialize.longest.label}1181 1182 ITERATE {longest.label.pass}1183 1184 FUNCTION {begin.bib}1185 { preamble$ empty$1186     ‘skip$1187     { preamble$ write$ newline$ }1188   if$1189   "\begin{thebibliography}{"  longest.label  * "}" * write$ newline$1190 }1191 1192 EXECUTE {begin.bib}1193 1194 EXECUTE {init.state.consts}1195 1196 ITERATE {call.type$}1197 1198 FUNCTION {end.bib}1199 { newline$1200   "\end{thebibliography}" write$ newline$1201 }1202 1203 EXECUTE {end.bib}

 

thuthesis.cfg
  1 %%  2 %% This is file `thuthesis.cfg‘,  3 %% generated with the docstrip utility.  4 %%  5 %% The original source files were:  6 %%  7 %% thuthesis.dtx  (with options: `cfg‘)  8 %%   9 %% This is a generated file. 10 %%  11 %% Copyright (C) 2005-2009 by Xue Ruini <xueruini@gmail.com> 12 %%  13 %% This file may be distributed and/or modified under the 14 %% conditions of the LaTeX Project Public License, either version 1.3a 15 %% of this license or (at your option) any later version. 16 %% The latest version of this license is in: 17 %%  18 %% http://www.latex-project.org/lppl.txt 19 %%  20 %% and version 1.3a or later is part of all distributions of LaTeX 21 %% version 2004/10/01 or later. 22 %%  23 %%  24 %% This is the configuration file of the thuthesis package with LaTeX2e. 25 %%  26  27 \ProvidesFile{thuthesis.cfg} 28 [2008/02/28 4.5.1 Tsinghua University Thesis Template] 29 \theoremsymbol{\ensuremath{\square}} 30 \newtheorem*{proof}{证明} 31 \theoremstyle{plain} 32 \theoremsymbol{} 33 \theoremseparator{:} 34 \newtheorem{assumption}{假设}[chapter] 35 \newtheorem{definition}{定义}[chapter] 36 \newtheorem{proposition}{命题}[chapter] 37 \newtheorem{lemma}{引理}[chapter] 38 \newtheorem{theorem}{定理}[chapter] 39 \newtheorem{axiom}{公理}[chapter] 40 \newtheorem{corollary}{推论}[chapter] 41 \newtheorem{exercise}{练习}[chapter] 42 \newtheorem{example}{例}[chapter] 43 \newtheorem{remark}{注释}[chapter] 44 \newtheorem{problem}{问题}[chapter] 45 \newtheorem{conjecture}{猜想}[chapter] 46 \renewcommand\contentsname{目\hspace{1em}录} 47 \renewcommand\listfigurename{插图索引} 48 \renewcommand\listtablename{表格索引} 49 \newcommand\listequationname{公式索引} 50 \newcommand\equationname{公式} 51 \renewcommand\bibname{参考文献} 52 \renewcommand\indexname{索引} 53 \renewcommand\figurename{图} 54 \renewcommand\tablename{表} 55 \newcommand\CJKprepartname{第} 56 \newcommand\CJKpartname{部分} 57 \newcommand\CJKthepart{\CJKnumber{\@arabic\c@part}} 58 \newcommand\CJKprechaptername{第} 59 \newcommand\CJKchaptername{章} 60 \newcommand\CJKthechapter{\@arabic\c@chapter} 61 \renewcommand\chaptername{\CJKprechaptername~\CJKthechapter~\CJKchaptername} 62 \renewcommand\appendixname{附录} 63 \ifthu@bachelor 64   \newcommand{\cabstractname}{中文摘要} 65   \newcommand{\eabstractname}{ABSTRACT} 66 \else 67   \newcommand{\cabstractname}{摘\hspace{1em}要} 68   \newcommand{\eabstractname}{Abstract} 69 \fi 70 \let\CJK@todaysave=\today 71 \def\CJK@todaysmall@short{\the\year 年 \the\month 月} 72 \def\CJK@todaysmall{\CJK@todaysmall \the\day 日} 73 \def\CJK@todaybig@short{\CJKdigits{\the\year} 年 \CJKnumber{\the\month} 月} 74 \def\CJK@todaybig{\CJK@todaybig@short \CJKnumber{\the\day} 日} 75 \def\CJK@today{\CJK@todaysmall} 76 \renewcommand\today{\CJK@today} 77 \newcommand\CJKtoday[1][1]{% 78   \ifcase#1\def\CJK@today{\CJK@todaysave} 79     \or\def\CJK@today{\CJK@todaysmall} 80     \or\def\CJK@today{\CJK@todaybig} 81   \fi} 82 \def\thu@ckeywords@separator{ 83   \ifthu@bachelor\hspace{1em} 84   \else 85     \ifthu@master\hspace{2em}\else;\fi 86   \fi} 87 \def\thu@ekeywords@separator{ 88   \ifthu@bachelor\hspace{1em} 89   \else 90     \ifthu@master\hspace{2em}\else;\fi 91   \fi} 92 \def\thu@title@sep{:} 93 \def\thu@secretlevel{秘密} 94 \def\thu@secretyear{\the\year} 95 \def\thu@schoolename{清华大学} 96 \def\thu@bachelor@subtitle{综合论文训练} 97 \def\thu@bachelor@title@pre{题目} 98 \def\thu@bachelor@departmenttitle{系别} 99 \def\thu@bachelor@majortitle{专业}100 \def\thu@bachelor@authortitle{姓名}101 \def\thu@secretlevel@inner{内部}102 \def\thu@secret@title{%103   \thu@secretlevel\ifx\thu@secretlevel\thu@secretlevel@inner\else ★\fi%104   \hspace{2em}\thu@secretyear\hspace{1em}年}105 \def\thu@apply{(申请清华大学\thu@cdegree 学位论文)}106 \def\thu@cdepartmenttitle{培养单位}107 \def\thu@cmajortitle{学科}108 \def\thu@cauthortitle{研究生}109 \def\thu@csupervisortitle{指导教师}110 \ifthu@bachelor111   \def\thu@cassosupertitle{辅导教师}112 \else113   \def\thu@cassosupertitle{副指导教师}114 \fi115 \def\thu@ccosupertitle{%116   \ifthu@doctor 联合导师\else \ifthu@master 联合指导教师\fi\fi}117 \cdate{\ifthu@bachelor\CJK@todaysmall@short\else\CJK@todaybig@short\fi}118 \edate{\ifcase \month \or January\or February\or March\or April\or May%119        \or June\or July \or August\or September\or October\or November120        \or December\fi\unskip,\ \ \the\year}121 \newcommand{\thu@authtitle}{关于学位论文使用授权的说明}122 \newcommand{\thu@authorization}{%123 \ifthu@bachelor124 本人完全了解清华大学有关保留、使用学位论文的规定,即:学校有权保留学位125 论文的复印件,允许该论文被查阅和借阅;学校可以公布该论文的全部或部分内126 容,可以采用影印、缩印或其他复制手段保存该论文。127 \else128 本人完全了解清华大学有关保留、使用学位论文的规定,即:129 130 清华大学拥有在著作权法规定范围内学位论文的使用权,其中包括:(1)已获学位的研究生131 必须按学校规定提交学位论文,学校可以采用影印、缩印或其他复制手段保存研究生上交的132 学位论文;(2)为教学和科研目的,学校可以将公开的学位论文作为资料在图书馆、资料133 室等场所供校内师生阅读,或在校园网上供校内师生浏览部分内容\ifthu@master 。\else ;134 (3)根据《中华人民共和国学位条例暂行实施办法》,向国家图书馆报送可以公开的学位135 论文。\fi136 137 本人保证遵守上述规定。138 \fi}139 \newcommand{\thu@authorizationaddon}{%140   \ifthu@bachelor(涉密的学位论文在解密后应遵守此规定)\else (保密的论文在解密后应遵守此规定)\fi}141 \newcommand{\thu@authorsig}{\ifthu@bachelor 签\hskip1em名:\else 作者签名:\fi}142 \newcommand{\thu@teachersig}{导师签名:}143 \newcommand{\thu@frontdate}{日\hspace{2em}期:}144 \newcommand{\thu@ckeywords@title}{关键词:}145 \newcommand{\thu@denotation@name}{主要符号对照表}146 \newcommand{\thu@ackshortname}{致谢}147 \newcommand{\thu@ackname}{致\hspace{1em}谢}148 \newcommand{\thu@acklongname}{致谢与声明}149 \newcommand{\thu@declareshortname}{声明}150 \newcommand{\thu@declarename}{声\hspace{1em}明}151 \newcommand{\thu@declaretext}{本人郑重声明:所呈交的学位论文,是本人在导师指导下152   ,独立进行研究工作所取得的成果。尽我所知,除文中已经注明引用的内容外,本学位论153   文的研究成果不包含任何他人享有著作权的内容。对本论文所涉及的研究工作做出贡献的154   其他个人和集体,均已在文中以明确方式标明。}155 \newcommand{\thu@signature}{签\hspace{1em}名:}156 \newcommand{\thu@backdate}{日\hspace{1em}期:}157 \ifthu@bachelor158   \newcommand{\thu@resume@title}{在学期间参加课题的研究成果}159 \else160   \newcommand{\thu@resume@title}{个人简历、在学期间发表的学术论文与研究成果}161 \fi162 \endinput163 %%164 %% End of file `thuthesis.cfg‘.

 

 

main.tex

%%% Local Variables:%%% mode: latex%%% TeX-master: t%%% End:\documentclass[doctor]{thuthesis}% \documentclass[%%   bachelor|master|doctor, % mandatory option%   xetex|pdftex|dvips|dvipdfm, % optional%   secret,%   openany|openright,%   arialtoc,arialtitle]{thuthesis}% 所有其它可能用到的包都统一放到这里了,可以根据自己的实际添加或者删除。\usepackage{thutils}% 你可以在这里修改配置文件中的定义,导言区可以使用中文。% \def\myname{薛瑞尼}\begin{document}% 定义所有的eps文件在 figures 子目录下\graphicspath{{figures/}}%%% 封面部分\frontmatter\input{data/cover}\makecover% 目录\tableofcontents% 符号对照表\input{data/denotation}%%% 正文部分\mainmatter\include{data/chap01}\include{data/chap02}%%% 其它部分\backmatter% 本科生要这几个索引,研究生不要。选择性留下。\makeatletter\ifthu@bachelor  % 插图索引  \listoffigures  % 表格索引  \listoftables  % 公式索引  \listofequations\fi\makeatother% 参考文献\bibliographystyle{thubib}\bibliography{ref/refs}% 致谢\include{data/ack}% 附录\begin{appendix}\input{data/appendix01}\end{appendix}% 个人简历\include{data/resume}\end{document}

 

ack.tex

 1 %%% Local Variables: 2 %%% mode: latex 3 %%% TeX-master: "../main" 4 %%% End: 5  6 \begin{ack} 7   衷心感谢导师 xxx 教授和物理系 xxx 副教授对本人的精心指导。他们的言传身教将使 8   我终生受益。 9 10   在美国麻省理工学院化学系进行九个月的合作研究期间,承蒙 xxx 教授热心指导与帮助,不11   胜感激。感谢 xx 实验室主任 xx 教授,以及实验室全体老师和同学们的热情帮助和支12   持!本课题承蒙国家自然科学基金资助,特此致谢。13 14   感谢 \thuthesis,它的存在让我的论文写作轻松自在了许多,让我的论文格式规整漂亮了15   许多。16 17   本科学位论文的致谢和声明分页,硕士、博士学位论文不分页。所以本科可以多写一些,18   研究生少写一些。19 \end{ack}

 

appendix01.tex

  1 %%% Local Variables:   2 %%% mode: latex  3 %%% TeX-master: "../main"  4 %%% End:   5   6 \chapter{外文资料原文}  7 \label{cha:engorg}  8 As one of the most widely used techniques in operations research, {\em  9   mathematical programming} is defined as a means of maximizing a quantity known 10 as {\em objective function}, subject to a set of constraints represented by 11 equations and inequalities. Some known subtopics of mathematical programming are 12 linear programming, nonlinear programming, multiobjective programming, goal 13 programming, dynamic programming, and multilevel programming$^{[1]}$. 14  15 It is impossible to cover in a single chapter every concept of mathematical 16 programming. This chapter introduces only the basic concepts and techniques of 17 mathematical programming such that readers gain an understanding of them 18 throughout the book$^{[2,3]}$. 19  20  21 \section{Single-Objective Programming} 22 The general form of single-objective programming (SOP) is written 23 as follows, 24 \begin{equation}\tag*{(123)} % 如果附录中的公式不想让它出现在公式索引中,那就请 25                              % 用 \tag*{xxxx} 26 \left\{\begin{array}{l} 27 \max \,\,f(x)\\[0.1 cm] 28 \mbox{subject to:} \\ [0.1 cm] 29 \qquad g_j(x)\le 0,\quad j=1,2,\cdots,p 30 \end{array}\right. 31 \end{equation} 32 which maximizes a real-valued function $f$ of 33 $x=(x_1,x_2,\cdots,x_n)$ subject to a set of constraints. 34  35 \newtheorem{mpdef}{Definition}[chapter] 36 \begin{mpdef} 37 In SOP, we call $x$ a decision vector, and 38 $x_1,x_2,\cdots,x_n$ decision variables. The function 39 $f$ is called the objective function. The set 40 \begin{equation}\tag*{(456)} % 这里同理,其它不再一一指定。 41 S=\left\{x\in\Re^n\bigm|g_j(x)\le 0,\,j=1,2,\cdots,p\right\} 42 \end{equation} 43 is called the feasible set. An element $x$ in $S$ is called a 44 feasible solution. 45 \end{mpdef} 46  47 \newtheorem{mpdefop}[mpdef]{Definition} 48 \begin{mpdefop} 49 A feasible solution $x^*$ is called the optimal 50 solution of SOP if and only if 51 \begin{equation} 52 f(x^*)\ge f(x) 53 \end{equation} 54 for any feasible solution $x$. 55 \end{mpdefop} 56  57 One of the outstanding contributions to mathematical programming was known as 58 the Kuhn-Tucker conditions\ref{eq:ktc}. In order to introduce them, let us give 59 some definitions. An inequality constraint $g_j(x)\le 0$ is said to be active at 60 a point $x^*$ if $g_j(x^*)=0$. A point $x^*$ satisfying $g_j(x^*)\le 0$ is said 61 to be regular if the gradient vectors $\nabla g_j(x)$ of all active constraints 62 are linearly independent. 63  64 Let $x^*$ be a regular point of the constraints of SOP and assume that all the 65 functions $f(x)$ and $g_j(x),j=1,2,\cdots,p$ are differentiable. If $x^*$ is a 66 local optimal solution, then there exist Lagrange multipliers 67 $\lambda_j,j=1,2,\cdots,p$ such that the following Kuhn-Tucker conditions hold, 68 \begin{equation} 69 \label{eq:ktc} 70 \left\{\begin{array}{l} 71     \nabla f(x^*)-\sum\limits_{j=1}^p\lambda_j\nabla g_j(x^*)=0\\[0.3cm] 72     \lambda_jg_j(x^*)=0,\quad j=1,2,\cdots,p\\[0.2cm] 73     \lambda_j\ge 0,\quad j=1,2,\cdots,p. 74 \end{array}\right. 75 \end{equation} 76 If all the functions $f(x)$ and $g_j(x),j=1,2,\cdots,p$ are convex and 77 differentiable, and the point $x^*$ satisfies the Kuhn-Tucker conditions 78 (\ref{eq:ktc}), then it has been proved that the point $x^*$ is a global optimal 79 solution of SOP. 80  81 \subsection{Linear Programming}  82 \label{sec:lp} 83  84 If the functions $f(x),g_j(x),j=1,2,\cdots,p$ are all linear, then SOP is called 85 a {\em linear programming}. 86  87 The feasible set of linear is always convex. A point $x$ is called an extreme 88 point of convex set $S$ if $x\in S$ and $x$ cannot be expressed as a convex 89 combination of two points in $S$. It has been shown that the optimal solution to 90 linear programming corresponds to an extreme point of its feasible set provided 91 that the feasible set $S$ is bounded. This fact is the basis of the {\em simplex 92   algorithm} which was developed by Dantzig as a very efficient method for 93 solving linear programming. 94 \begin{table}[ht] 95 \centering 96   \centering 97   \caption*{Table~1\hskip1em This is an example for manually numbered table, which 98     would not appear in the list of tables} 99   \label{tab:badtabular2}100   \begin{tabular}[c]{|c|m{0.8in}|c|c|c|c|c|}\hline101     \multicolumn{2}{|c|}{Network Topology} & \# of nodes & 102     \multicolumn{3}{c|}{\# of clients} & Server \\\hline103     GT-ITM & Waxman Transit-Stub & 600 &104     \multirow{2}{2em}{2\%}& 105     \multirow{2}{2em}{10\%}& 106     \multirow{2}{2em}{50\%}& 107     \multirow{2}{1.2in}{Max. Connectivity}\\\cline{1-3}108     \multicolumn{2}{|c|}{Inet-2.1} & 6000 & & & &\\\hline109     \multirow{2}{1in}{Xue} & Rui  & Ni &\multicolumn{4}{c|}{\multirow{2}*{\thuthesis}}\\\cline{2-3}110     & \multicolumn{2}{c|}{ABCDEF} &\multicolumn{4}{c|}{} \\\hline111 \end{tabular}  112 \end{table}113 114 Roughly speaking, the simplex algorithm examines only the extreme points of the115 feasible set, rather than all feasible points. At first, the simplex algorithm116 selects an extreme point as the initial point. The successive extreme point is117 selected so as to improve the objective function value. The procedure is118 repeated until no improvement in objective function value can be made. The last119 extreme point is the optimal solution.120 121 \subsection{Nonlinear Programming}122 123 If at least one of the functions $f(x),g_j(x),j=1,2,\cdots,p$ is nonlinear, then124 SOP is called a {\em nonlinear programming}.125 126 A large number of classical optimization methods have been developed to treat127 special-structural nonlinear programming based on the mathematical theory128 concerned with analyzing the structure of problems.129 \begin{figure}[h]130   \centering131   \includegraphics[clip]{thu-lib-logo}132   \caption*{Figure~1\hskip1em This is an example for manually numbered figure,133     which would not appear in the list of figures}134   \label{tab:badfigure2}    135 \end{figure}136 137 Now we consider a nonlinear programming which is confronted solely with138 maximizing a real-valued function with domain $\Re^n$.  Whether derivatives are139 available or not, the usual strategy is first to select a point in $\Re^n$ which140 is thought to be the most likely place where the maximum exists. If there is no141 information available on which to base such a selection, a point is chosen at142 random. From this first point an attempt is made to construct a sequence of143 points, each of which yields an improved objective function value over its144 predecessor. The next point to be added to the sequence is chosen by analyzing145 the behavior of the function at the previous points. This construction continues146 until some termination criterion is met. Methods based upon this strategy are147 called {\em ascent methods}, which can be classified as {\em direct methods},148 {\em gradient methods}, and {\em Hessian methods} according to the information149 about the behavior of objective function $f$. Direct methods require only that150 the function can be evaluated at each point. Gradient methods require the151 evaluation of first derivatives of $f$. Hessian methods require the evaluation152 of second derivatives. In fact, there is no superior method for all153 problems. The efficiency of a method is very much dependent upon the objective154 function.155 156 \subsection{Integer Programming}157 158 {\em Integer programming} is a special mathematical programming in which all of159 the variables are assumed to be only integer values. When there are not only160 integer variables but also conventional continuous variables, we call it {\em161   mixed integer programming}. If all the variables are assumed either 0 or 1,162 then the problem is termed a {\em zero-one programming}. Although integer163 programming can be solved by an {\em exhaustive enumeration} theoretically, it164 is impractical to solve realistically sized integer programming problems. The165 most successful algorithm so far found to solve integer programming is called166 the {\em branch-and-bound enumeration} developed by Balas (1965) and Dakin167 (1965). The other technique to integer programming is the {\em cutting plane168   method} developed by Gomory (1959).169 170 \hfill\textit{Uncertain Programming\/}\quad(\textsl{BaoDing Liu, 2006.2})171 172 \section*{References}173 \noindent{\itshape NOTE: these references are only for demonstration, they are174   not real citations in the original text.}175 176 \begin{enumerate}[{$[$}1{$]$}]177 \item Donald E. Knuth. The \TeX book. Addison-Wesley, 1984. ISBN: 0-201-13448-9178 \item Paul W. Abrahams, Karl Berry and Kathryn A. Hargreaves. \TeX\ for the179   Impatient. Addison-Wesley, 1990. ISBN: 0-201-51375-7180 \item David Salomon. The advanced \TeX book.  New York : Springer, 1995. ISBN:0-387-94556-3181 \end{enumerate}182 183 \chapter{外文资料的调研阅读报告或书面翻译}184 \section{单目标规划}185 北冥有鱼,其名为鲲。鲲之大,不知其几千里也。化而为鸟,其名为鹏。鹏之背,不知其几186 千里也。怒而飞,其翼若垂天之云。是鸟也,海运则将徙于南冥。南冥者,天池也。 187 \begin{equation}\tag*{(123)}188  p(y|\mathbf{x}) = \frac{p(\mathbf{x},y)}{p(\mathbf{x})}=189 \frac{p(\mathbf{x}|y)p(y)}{p(\mathbf{x})}190 \end{equation}191 192 吾生也有涯,而知也无涯。以有涯随无涯,殆已!已而为知者,殆而已矣!为善无近名,为193 恶无近刑,缘督以为经,可以保身,可以全生,可以养亲,可以尽年。194 195 \subsection{线性规划}196 庖丁为文惠君解牛,手之所触,肩之所倚,足之所履,膝之所倚,砉然响然,奏刀騞然,莫197 不中音,合于桑林之舞,乃中经首之会。198 \begin{table}[ht]199 \centering200   \centering201   \caption*{表~1\hskip1em 这是手动编号但不出现在索引中的一个表格例子}202   \label{tab:badtabular3}203   \begin{tabular}[c]{|c|m{0.8in}|c|c|c|c|c|}\hline204     \multicolumn{2}{|c|}{Network Topology} & \# of nodes & 205     \multicolumn{3}{c|}{\# of clients} & Server \\\hline206     GT-ITM & Waxman Transit-Stub & 600 &207     \multirow{2}{2em}{2\%}& 208     \multirow{2}{2em}{10\%}& 209     \multirow{2}{2em}{50\%}& 210     \multirow{2}{1.2in}{Max. Connectivity}\\\cline{1-3}211     \multicolumn{2}{|c|}{Inet-2.1} & 6000 & & & &\\\hline212     \multirow{2}{1in}{Xue} & Rui  & Ni &\multicolumn{4}{c|}{\multirow{2}*{\thuthesis}}\\\cline{2-3}213     & \multicolumn{2}{c|}{ABCDEF} &\multicolumn{4}{c|}{} \\\hline214 \end{tabular}  215 \end{table}216 217 文惠君曰:“嘻,善哉!技盖至此乎?”庖丁释刀对曰:“臣之所好者道也,进乎技矣。始臣之218 解牛之时,所见无非全牛者;三年之后,未尝见全牛也;方今之时,臣以神遇而不以目视,219 官知止而神欲行。依乎天理,批大郤,导大窾,因其固然。技经肯綮之未尝,而况大坬乎!220 良庖岁更刀,割也;族庖月更刀,折也;今臣之刀十九年矣,所解数千牛矣,而刀刃若新发221 于硎。彼节者有间而刀刃者无厚,以无厚入有间,恢恢乎其于游刃必有余地矣。是以十九年222 而刀刃若新发于硎。虽然,每至于族,吾见其难为,怵然为戒,视为止,行为迟,动刀甚微,223 謋然已解,如土委地。提刀而立,为之而四顾,为之踌躇满志,善刀而藏之。”224 225 文惠君曰:“善哉!吾闻庖丁之言,得养生焉。”226 227 228 \subsection{非线性规划}229 孔子与柳下季为友,柳下季之弟名曰盗跖。盗跖从卒九千人,横行天下,侵暴诸侯。穴室枢230 户,驱人牛马,取人妇女。贪得忘亲,不顾父母兄弟,不祭先祖。所过之邑,大国守城,小231 国入保,万民苦之。孔子谓柳下季曰:“夫为人父者,必能诏其子;为人兄者,必能教其弟。232 若父不能诏其子,兄不能教其弟,则无贵父子兄弟之亲矣。今先生,世之才士也,弟为盗233 跖,为天下害,而弗能教也,丘窃为先生羞之。丘请为先生往说之。”234 \begin{figure}[h]235   \centering236   \includegraphics{hello}237   \caption*{图~1\hskip1em 这是手动编号但不出现索引中的图片的例子}238   \label{tab:badfigure3}    239 \end{figure}240 241 柳下季曰:“先生言为人父者必能诏其子,为人兄者必能教其弟,若子不听父之诏,弟不受242 兄之教,虽今先生之辩,将奈之何哉?且跖之为人也,心如涌泉,意如飘风,强足以距敌,243 辩足以饰非。顺其心则喜,逆其心则怒,易辱人以言。先生必无往。”244 245 孔子不听,颜回为驭,子贡为右,往见盗跖。246 247 \subsection{整数规划}248 盗跖乃方休卒徒大山之阳,脍人肝而餔之。孔子下车而前,见谒者曰:“鲁人孔丘,闻将军249 高义,敬再拜谒者。”谒者入通。盗跖闻之大怒,目如明星,发上指冠,曰:“此夫鲁国之250 巧伪人孔丘非邪?为我告之:尔作言造语,妄称文、武,冠枝木之冠,带死牛之胁,多辞缪251 说,不耕而食,不织而衣,摇唇鼓舌,擅生是非,以迷天下之主,使天下学士不反其本,妄252 作孝弟,而侥幸于封侯富贵者也。子之罪大极重,疾走归!不然,我将以子肝益昼餔之膳。”253 254 255 \chapter{其它附录}256 前面两个附录主要是给本科生做例子。其它附录的内容可以放到这里,当然如果你愿意,可257 以把这部分也放到独立的文件中,然后将其 \verb|\input| 到主文件中。

 

 

chap01.tex

  1 %%% Local Variables:  2 %%% mode: latex  3 %%% TeX-master: t  4 %%% End:  5   6 \chapter{带 English 的标题}  7 \label{cha:intro}  8   9 这是 \thuthesis{} 的示例文档,基本上覆盖了模板中所有格式的设置。建议大家在使用模 10 板之前,除了阅读《\thuthesis{}用户手册》,这个示例文档也最好能看一看。 11  12 小老鼠偷吃热凉粉;短长虫环绕矮高粱。\footnote{韩愈(768-824),字退之,河南河阳( 13   今河南孟县)人,自称郡望昌黎,世称韩昌黎。幼孤贫刻苦好学,德宗贞元八年进士。曾 14   任监察御史,因上疏请免关中赋役,贬为阳山县令。后随宰相裴度平定淮西迁刑部侍郎, 15   又因上表谏迎佛骨,贬潮州刺史。做过吏部侍郎,死谥文公,故世称韩吏部、韩文公。是 16   唐代古文运动领袖,与柳宗元合称韩柳。诗力求险怪新奇,雄浑重气势。} 17  18  19 \section{封面相关} 20 封面的例子请参看 cover.tex。主要符号表参看 denation.tex,附录和个人简历分别参看 appendix01.tex 21 和 resume.tex。里面的命令都非常简单,一看即会。\footnote{你说还是看不懂?怎么会呢?} 22  23 \section{字体命令} 24 \label{sec:first} 25  26 苏轼(1037-1101),北宋文学家、书画家。字子瞻,号东坡居士,眉州眉山(今属四川)人 27 。苏洵子。嘉佑进士。神宗时曾任祠部员外郎,因反对王安石新法而求外职,任杭州通判, 28 知密州、徐州、湖州。后以作诗“谤讪朝廷”罪贬黄州。哲宗时任翰林学士,曾出知杭州、 29 颖州等,官至礼部尚书。后又贬谪惠州、儋州。北还后第二年病死常州。南宋时追谥文忠。 30 与父洵弟辙,合称“三苏”。在政治上属于旧党,但也有改革弊政的要求。其文汪洋恣肆, 31 明白畅达,为“唐宋八大家”之一。  其诗清新豪健,善用夸张比喻,在艺术表现方面独具 32 风格。少数诗篇也能反映民间疾苦,指责统治者的奢侈骄纵。词开豪放一派,对后代很有影 33 响。《念奴娇·赤壁怀古》、《水调歌头·丙辰中秋》传诵甚广。 34  35 {\kai 坡仙擅长行书、楷书,取法李邕、徐浩、颜真卿、杨凝式,而能自创新意。用笔丰腴 36   跌宕,有天真烂漫之趣。与蔡襄、黄庭坚、米芾并称“宋四家”。能画竹,学文同,也喜 37   作枯木怪石。论画主张“神似”,认为“论画以形似,见与儿童邻”;高度评价“诗中有 38   画,画中有诗”的艺术造诣。诗文有《东坡七集》等。存世书迹有《答谢民师论文帖》、 39   《祭黄几道文》、《前赤壁赋》、《黄州寒食诗帖》等。  画迹有《枯木怪石图》、《 40   竹石图》等。} 41  42 {\fs 易与天地准,故能弥纶天地之道。仰以观於天文,俯以察於地理,是故知幽明之故。原 43   始反终,故知死生之说。精气为物,游魂为变,是故知鬼神之情状。与天地相似,故不违。 44   知周乎万物,而道济天下,故不过。旁行而不流,乐天知命,故不忧。安土敦乎仁,故 45   能爱。范围天地之化而不过,曲成万物而不遗,通乎昼夜之道而知,故神无方而易无体。} 46  47 {\you 有天地,然后万物生焉。盈天地之间者,唯万物,故受之以屯;屯者盈也,屯者物之 48   始生也。物生必蒙,故受之以蒙;蒙者蒙也,物之穉也。物穉不可不养也,故受之以需; 49   需者饮食之道也。饮食必有讼,故受之以讼。讼必有众起,故受之以师;师者众也。众必 50   有所比,故受之以比;比者比也。比必有所畜也,故受之以小畜。物畜然后有礼,故受之 51   以履。} 52  53 {\hei 履而泰,然后安,故受之以泰;泰者通也。物不可以终通,故受之以否。物不可以终 54   否,故受之以同人。与人同者,物必归焉,故受之以大有。有大者不可以盈,故受之以谦。 55   有大而能谦,必豫,故受之以豫。豫必有随,故受之以随。以喜随人者,必有事,故受 56   之以蛊;蛊者事也。} 57  58 {\li 有事而后可大,故受之以临;临者大也。物大然后可观,故受之以观。可观而后有所合 59   ,故受之以噬嗑;嗑者合也。物不可以苟合而已,故受之以贲;贲者饰也。致饰然后亨 60   ,则尽矣,故受之以剥;剥者剥也。物不可以终尽,剥穷上反下,故受之以复。复则不 61   妄矣,故受之以无妄。} 62  63 {\song 有无妄然后可畜,故受之以大畜。物畜然后可养,故受之以颐;颐者养也。不养则不 64   可动,故受之以大过。物不可以终过,故受之以坎;坎者陷也。陷必有所丽,故受之以 65   离;离者丽也。} 66  67 \section{表格样本} 68 \label{chap1:sample:table}  69  70 \subsection{基本表格} 71 \label{sec:basictable} 72  73 模板中关于表格的宏包有三个: \textsf{booktabs}、\textsf{array} 和 74 \textsf{longtabular},命令有一个 \verb|\hlinewd|。三线表可以用 \textsf{booktabs} 75 提供的 \verb|\toprule|、\verb|\midrule| 和 \verb|\bottomrule|。它们与 76 \textsf{longtable} 能很好的配合使用。如果表格比较简单的话可以直接用命令 77 \verb|hlinewd{xpt}| 控制。 78 \begin{table}[htb] 79   \centering 80   \begin{minipage}[t]{0.8\linewidth} % 如果想在表格中使用脚注,minipage是个不错的办法 81   \caption[模板文件]{模板文件。如果表格的标题很长,那么在表格索引中就会很不美 82     观,所以要像 chapter 那样在前面用中括号写一个简短的标题。这个标题会出现在索 83     引中。} 84   \label{tab:template-files} 85     \begin{tabular*}{\linewidth}{lp{10cm}} 86       \toprule[1.5pt] 87       {\hei 文件名} & {\hei 描述} \\\midrule[1pt] 88       thuthesis.ins & \LaTeX{} 安装文件,docstrip\footnote{表格中的脚注} \ 89       thuthesis.dtx & 所有的一切都在这里面\footnote{再来一个}。\ 90       thuthesis.cls & 模板类文件。\ 91       thuthesis.cfg & 模板配置文。cls 和 cfg 由前两个文件生成。\ 92       thubib.bst    & 参考文献 Bibtex 样式文件。\ 93       thutils.sty   & 常用的包和命令写在这里,减轻主文件的负担。\ 94       \bottomrule[1.5pt] 95     \end{tabular*} 96   \end{minipage} 97 \end{table} 98  99 首先来看一个最简单的表格。表 \ref{tab:template-files} 列举了本模板主要文件及其功100 能。请大家注意三线表中各条线对应的命令。这个例子还展示了如何在表格中正确使用脚注。101 由于 \LaTeX{} 本身不支持在表格中使用 \verb|\footnote|,所以我们不得不将表格放在102 小页中,而且最好将表格的宽度设置为小页的宽度,这样脚注看起来才更美观。103 104 \subsection{复杂表格}105 \label{sec:complicatedtable}106 107 我们经常会在表格下方标注数据来源,或者对表格里面的条目进行解释。前面的脚注是一种108 不错的方法,如果你不喜欢脚注。那么完全可以在表格后面自己写注释,比如表~\ref{tab:tabexamp1}。109 \begin{table}[h]110   \centering111   \caption{复杂表格示例 1}112   \label{tab:tabexamp1}113   \begin{minipage}[t]{0.8\textwidth} 114     \begin{tabularx}{\linewidth}{|l|X|X|X|X|}115       \hline116  \multirow{2}*{\backslashbox{x}{y}}  & \multicolumn{2}{c|}{First Half} & \multicolumn{2}{c|}{Second Half}\\\cline{2-5}117       & 1st Qtr &2nd Qtr&3rd Qtr&4th Qtr \\ \hline118       East$^{*}$ &   20.4&   27.4&   90&     20.4 \119       West$^{**}$ &   30.6 &   38.6 &   34.6 &  31.6 \\ \hline120     \end{tabularx}\\[2pt]121     \footnotesize 注:数据来源《\thuthesis{} 使用手册》。\122     *:东部\123     **:西部124   \end{minipage}125 \end{table}126 127 此外,表~\ref{tab:tabexamp1} 同时还演示了另外两个功能:1)通过 \textsf{tabularx} 的128  \texttt{|X|} 扩展实现表格自动放大;2)通过命令 \verb|\backslashbox| 在表头部分129 插入反斜线。130 131 为了使我们的例子更接近实际情况,我会在必要的时候插入一些“无关”文字,以免太多图132 表同时出现,导致排版效果不太理想。第一个出场的当然是我的最爱:风流潇洒、骏马绝尘、133 健笔凌云的{\hei 李太白}了。134 135 李白,字太白,陇西成纪人。凉武昭王暠九世孙。或曰山东人,或曰蜀人。白少有逸才,志136 气宏放,飘然有超世之心。初隐岷山,益州长史苏颋见而异之,曰:“是子天才英特,可比137 相如。”天宝初,至长安,往见贺知章。知章见其文,叹曰:“子谪仙人也。”言于明皇,138 召见金銮殿,奏颂一篇。帝赐食,亲为调羹,有诏供奉翰林。白犹与酒徒饮于市,帝坐沉香139 亭子,意有所感,欲得白为乐章,召入,而白已醉。左右以水颒面,稍解,援笔成文,婉丽140 精切。帝爱其才,数宴见。白常侍帝,醉,使高力士脱靴。力士素贵,耻之,摘其诗以激杨141 贵妃。帝欲官白,妃辄沮止。白自知不为亲近所容,恳求还山。帝赐金放还。乃浪迹江湖,142 终日沉饮。永王璘都督江陵,辟为僚佐。璘谋乱,兵败,白坐长流夜郎,会赦得还。族人阳143 冰为当涂令,白往依之。代宗立,以左拾遗召,而白已卒。文宗时,诏以白歌诗、裴旻剑舞、144 张旭草书为三绝云。集三十卷。今编诗二十五卷。\hfill\pozhehao《全唐诗》诗人小传145 146 浮动体的并排放置一般有两种情况:1)二者没有关系,为两个独立的浮动体;2)二者隶属147 于同一个浮动体。对表格来说并排表格既可以像图~\ref{tab:parallel1}、图~\ref{tab:parallel2} 148 使用小页环境,也可以如图~\ref{tab:subtable} 使用子表格来做。图的例子参见第~\ref{sec:multifig} 节。149 \begin{table}[h]150 \noindent\begin{minipage}{0.5\textwidth}151 \centering152 \caption{第一个并排子表格}153 \label{tab:parallel1}154 \begin{tabular}{p{2cm}p{2cm}}155 \toprule[1.5pt]156 111 & 222 \\\midrule[1pt]157 222 & 333 \\\bottomrule[1.5pt]158 \end{tabular}159 \end{minipage}160 \begin{minipage}{0.5\textwidth}161 \centering162 \caption{第二个并排子表格}163 \label{tab:parallel2}164 \begin{tabular}{p{2cm}p{2cm}}165 \toprule[1.5pt]166 111 & 222 \\\midrule[1pt]167 222 & 333 \\\bottomrule[1.5pt]168 \end{tabular}169 \end{minipage}170 \end{table}171 172 然后就是忧国忧民,诗家楷模杜工部了。杜甫,字子美,其先襄阳人,曾祖依艺为巩令,因173 居巩。甫天宝初应进士,不第。后献《三大礼赋》,明皇奇之,召试文章,授京兆府兵曹参174 军。安禄山陷京师,肃宗即位灵武,甫自贼中遁赴行在,拜左拾遗。以论救房琯,出为华州175 司功参军。关辅饥乱,寓居同州同谷县,身自负薪采梠,餔糒不给。久之,召补京兆府功曹,176 道阻不赴。严武镇成都,奏为参谋、检校工部员外郎,赐绯。武与甫世旧,待遇甚厚。乃于177 成都浣花里种竹植树,枕江结庐,纵酒啸歌其中。武卒,甫无所依,乃之东蜀就高適。既至178 而適卒。是岁,蜀帅相攻杀,蜀大扰。甫携家避乱荆楚,扁舟下峡,未维舟而江陵亦乱。乃179 溯沿湘流,游衡山,寓居耒阳。卒年五十九。元和中,归葬偃师首阳山,元稹志其墓。天宝180 间,甫与李白齐名,时称李杜。然元稹之言曰:“李白壮浪纵恣,摆去拘束,诚亦差肩子美181 矣。至若铺陈终始,排比声韵,大或千言,次犹数百,词气豪迈,而风调清深,属对律切,182 而脱弃凡近,则李尚不能历其藩翰,况堂奥乎。”白居易亦云:“杜诗贯穿古今,  尽工尽183 善,殆过于李。”元、白之论如此。盖其出处劳佚,喜乐悲愤,好贤恶恶,一见之于诗。而184 又以忠君忧国、伤时念乱为本旨。读其诗可以知其世,故当时谓之“诗史”。旧集诗文共六185 十卷,今编诗十九卷。186 187 \begin{table}188 \centering189 \caption{并排子表格}190 \label{tab:subtable}191 \subfloat[第一个子表格]{192 \begin{tabular}{p{2cm}p{2cm}}193 \toprule[1.5pt]194 111 & 222 \\\midrule[1pt]195 222 & 333 \\\bottomrule[1.5pt]196 \end{tabular}}\hskip2cm197 \subfloat[第二个子表格]{198 \begin{tabular}{p{2cm}p{2cm}}199 \toprule[1.5pt]200 111 & 222 \\\midrule[1pt]201 222 & 333 \\\bottomrule[1.5pt]202 \end{tabular}}203 \end{table}204 205 不可否认 \LaTeX{} 的表格功能没有想象中的那么强大,不过只要你足够认真,足够细致,那么206 同样可以排出来非常复杂非常漂亮的表格。请参看表~\ref{tab:tabexamp2}。207 \begin{table}[hb]208   \centering\dawu[1.3]209   \caption{复杂表格示例 2}210   \label{tab:tabexamp2}211   \begin{tabular}[c]{|c|m{0.8in}|c|c|c|c|c|}\hline212     \multicolumn{2}{|c|}{Network Topology} & \# of nodes & 213     \multicolumn{3}{c|}{\# of clients} & Server \\\hline214     GT-ITM & Waxman Transit-Stub & 600 &215     \multirow{2}{2em}{2\%}& 216     \multirow{2}{2em}{10\%}& 217     \multirow{2}{2em}{50\%}& 218     \multirow{2}{1.2in}{Max. Connectivity}\\\cline{1-3}219     \multicolumn{2}{|c|}{Inet-2.1} & 6000 & & & &\\\hline220     \multirow{2}{1in}{Xue} & Rui  & Ni &\multicolumn{4}{c|}{\multirow{2}*{\thuthesis}}\\\cline{2-3}221     & \multicolumn{2}{c|}{ABCDEF} &\multicolumn{4}{c|}{} \\\hline222 \end{tabular}223 \end{table}224 225 最后就是清新飘逸、文约意赅、空谷绝响的王大侠了。王维,字摩诘,河东人。工书画,与226 弟缙俱有俊才。开元九年,进士擢第,调太乐丞。坐累为济州司仓参军,历右拾遗、监察御227 史、左补阙、库部郎中,拜吏部郎中。天宝末,为给事中。安禄山陷两都,维为贼所得,服228 药阳喑,拘于菩提寺。禄山宴凝碧池,维潜赋诗悲悼,闻于行在。贼平,陷贼官三等定罪,229 特原之,责授太子中允,迁中庶子、中书舍人。复拜给事中,转尚书右丞。维以诗名盛于开230 元、天宝间,宁薛诸王驸马豪贵之门,无不拂席迎之。得宋之问辋川别墅,山水绝胜,与道231 友裴迪,浮舟往来,弹琴赋诗,啸咏终日。笃于奉佛,晚年长斋禅诵。一日,忽索笔作书232 数纸,别弟缙及平生亲故,舍笔而卒。赠秘书监。宝应中,代宗问缙:“朕常于诸王坐闻维233 乐章,今存几何?”缙集诗六卷,文四卷,表上之。敕答云,卿伯氏位列先朝,名高希代。234 抗行周雅,长揖楚辞。诗家者流,时论归美。克成编录,叹息良深。殷璠谓维诗词秀调雅,235 意新理惬。在泉成珠,著壁成绘。苏轼亦云:“维诗中有画,画中有诗也。”今编诗四卷。236 237 要想用好论文模板还是得提前学习一些 \TeX/\LaTeX{}的相关知识,具备一些基本能力,掌238 握一些常见技巧,否则一旦遇到问题还真是比较麻烦。我们见过很多这样的同学,一直以来239 都是使用 Word 等字处理工具,以为 \LaTeX{}模板的用法也应该类似,所以就沿袭同样的思240 路来对待这种所见非所得的排版工具,结果被折腾的焦头烂额,疲惫不堪。241 242 如果您要排版的表格长度超过一页,那么推荐使用 \textsf{longtable} 或者 \textsf{supertabular} 243 宏包,模板对 \textsf{longtable} 进行了相应的设置,所以用起来可能简单一些。244 表~\ref{tab:performance} 就是 \textsf{longtable} 的简单示例。245 \begin{longtable}[c]{c*{6}{r}}246 \caption{实验数据}\label{tab:performance}\247 \toprule[1.5pt]248  测试程序 & \multicolumn{1}{c}{正常运行} & \multicolumn{1}{c}{同步} & \multicolumn{1}{c}{检查点} & \multicolumn{1}{c}{卷回恢复}249 & \multicolumn{1}{c}{进程迁移} & \multicolumn{1}{c}{检查点} \250 & \multicolumn{1}{c}{时间 (s)}& \multicolumn{1}{c}{时间 (s)}&251 \multicolumn{1}{c}{时间 (s)}& \multicolumn{1}{c}{时间 (s)}& \multicolumn{1}{c}{252   时间 (s)}&  文件(KB)\\\midrule[1pt]253 \endfirsthead254 \multicolumn{7}{c}{续表~\thetable\hskip1em 实验数据}\255 \toprule[1.5pt]256  测试程序 & \multicolumn{1}{c}{正常运行} & \multicolumn{1}{c}{同步} & \multicolumn{1}{c}{检查点} & \multicolumn{1}{c}{卷回恢复}257 & \multicolumn{1}{c}{进程迁移} & \multicolumn{1}{c}{检查点} \258 & \multicolumn{1}{c}{时间 (s)}& \multicolumn{1}{c}{时间 (s)}&259 \multicolumn{1}{c}{时间 (s)}& \multicolumn{1}{c}{时间 (s)}& \multicolumn{1}{c}{260   时间 (s)}&  文件(KB)\\\midrule[1pt]261 \endhead262 \hline263 \multicolumn{7}{r}{续下页}264 \endfoot265 \endlastfoot266 CG.A.2 & 23.05 & 0.002 & 0.116 & 0.035 & 0.589 & 32491 \267 CG.A.4 & 15.06 & 0.003 & 0.067 & 0.021 & 0.351 & 18211 \268 CG.A.8 & 13.38 & 0.004 & 0.072 & 0.023 & 0.210 & 9890 \269 CG.B.2 & 867.45 & 0.002 & 0.864 & 0.232 & 3.256 & 228562 \270 CG.B.4 & 501.61 & 0.003 & 0.438 & 0.136 & 2.075 & 123862 \271 CG.B.8 & 384.65 & 0.004 & 0.457 & 0.108 & 1.235 & 63777 \272 MG.A.2 & 112.27 & 0.002 & 0.846 & 0.237 & 3.930 & 236473 \273 MG.A.4 & 59.84 & 0.003 & 0.442 & 0.128 & 2.070 & 123875 \274 MG.A.8 & 31.38 & 0.003 & 0.476 & 0.114 & 1.041 & 60627 \275 MG.B.2 & 526.28 & 0.002 & 0.821 & 0.238 & 4.176 & 236635 \276 MG.B.4 & 280.11 & 0.003 & 0.432 & 0.130 & 1.706 & 123793 \277 MG.B.8 & 148.29 & 0.003 & 0.442 & 0.116 & 0.893 & 60600 \278 LU.A.2 & 2116.54 & 0.002 & 0.110 & 0.030 & 0.532 & 28754 \279 LU.A.4 & 1102.50 & 0.002 & 0.069 & 0.017 & 0.255 & 14915 \280 LU.A.8 & 574.47 & 0.003 & 0.067 & 0.016 & 0.192 & 8655 \281 LU.B.2 & 9712.87 & 0.002 & 0.357 & 0.104 & 1.734 & 101975 \282 LU.B.4 & 4757.80 & 0.003 & 0.190 & 0.056 & 0.808 & 53522 \283 LU.B.8 & 2444.05 & 0.004 & 0.222 & 0.057 & 0.548 & 30134 \284 EP.A.2 & 123.81 & 0.002 & 0.010 & 0.003 & 0.074 & 1834 \285 EP.A.4 & 61.92 & 0.003 & 0.011 & 0.004 & 0.073 & 1743 \286 EP.A.8 & 31.06 & 0.004 & 0.017 & 0.005 & 0.073 & 1661 \287 EP.B.2 & 495.49 & 0.001 & 0.009 & 0.003 & 0.196 & 2011 \288 EP.B.4 & 247.69 & 0.002 & 0.012 & 0.004 & 0.122 & 1663 \289 EP.B.8 & 126.74 & 0.003 & 0.017 & 0.005 & 0.083 & 1656 \290 \bottomrule[1.5pt]291 \end{longtable}292 293 \subsection{其它}294 \label{sec:tableother}295 有的同学不想让某个表格或者图片出现在索引里面,那么请使用命令 \verb|\caption*{}|,296 这个命令不会给表格编号,也就是出来的只有标题文字而没有“表~XX”,“图~XX”,否则297 索引里面序号不连续就显得不伦不类,这也是 \LaTeX{} 里星号命令默认的规则。298 299 有这种需求的多是本科同学的英文资料翻译部分,如果你觉得附录中英文原文中的表格和图300 片显示成“  表”和“图”很不协调的话,一个很好的办法就是用 \verb|\caption*|,参数301 随便自己写,比如不守规矩的表~1.111 和图~1.111 能满足这种特殊需要(可以参看附录部302 分)。303 \begin{table}[ht]304 \centering305   \begin{minipage}{0.45\linewidth}306   \centering307   \caption*{表~1.111\hskip1em 这是一个手动编号,不出现在索引中的表格。}308   \label{tab:badtabular}309   \begin{picture}(150,50)310     \framebox(150,50)[c]{\thuthesis}311   \end{picture}    312   \end{minipage}\hfill313   \begin{minipage}{0.45\linewidth}314   \centering315   \begin{picture}(150,50)316     \framebox(150,50)[c]{薛瑞尼}317   \end{picture}318   \caption*{Figure~1.111\hskip1em 这是一个手动编号,不出现在索引中的图。}319   \label{tab:badfigure}320   \end{minipage}321 \end{table}322 323 如果你的确想让它编号,但又不想让它出现在索引中的话,那就自己看看代码改一改吧,我324 目前不打算给模板增加这种另类命令。325 326 最后,虽然大家不一定会独立使用小页,但是关于小页中的脚注还是有必要提一下。请看下327 面的例子。328 329 \begin{minipage}[t]{\linewidth-2\parindent}330   柳宗元,字子厚(773-819),河东(今永济县)人\footnote{山西永济水饺。},是唐代331   杰出的文学家,哲学家,同时也是一位政治改革家。与韩愈共同倡导唐代古文运动,并称332   韩柳\footnote{唐宋八大家之首二位。}。333 \end{minipage}\\[-5pt]334 335 唐朝安史之乱后,宦官专权,藩镇割据,土地兼并日渐严重,社会生产破坏严重,民不聊生。柳宗336 元对这种社会现实极为不满,他积极参加了王叔文领导的“永济革新”,并成为这一337 运动的中坚人物。他们革除弊政,打击权奸,触犯了宦官和官僚贵族利益,在他们的联合反338 扑下,改革失败了,柳宗元被贬为永州司马。339 340 \section{定理环境}341 \label{sec:theorem}342 343 给大家演示一下各种和证明有关的环境:344 345 \begin{assumption}346 待月西厢下,迎风户半开;隔墙花影动,疑是玉人来。347 \begin{eqnarray}348   \label{eq:eqnxmp}349   c & = & a^2 - b^2\350     & = & (a+b)(a-b)351 \end{eqnarray}352 \end{assumption}353 354 千辛万苦,历尽艰难,得有今日。然相从数千里,未曾哀戚。今将渡江,方图百年欢笑,如355 何反起悲伤?(引自《杜十娘怒沉百宝箱》)356 357 \begin{definition}358 子曰:「道千乘之国,敬事而信,节用而爱人,使民以时。」359 \end{definition}360 361 千古第一定义!问世间、情为何物,只教生死相许?天南地北双飞客,老翅几回寒暑。欢乐趣,离别苦,就中更有痴儿女。362 君应有语,渺万里层云,千山暮雪,只影向谁去?363 364 横汾路,寂寞当年箫鼓,荒烟依旧平楚。招魂楚些何嗟及,山鬼暗谛风雨。天也妒,未信与,莺儿燕子俱黄土。365 千秋万古,为留待骚人,狂歌痛饮,来访雁丘处。366 367 \begin{proposition}368  曾子曰:「吾日三省吾身 \pozhehao 为人谋而不忠乎?与朋友交而不信乎?传不习乎?」369 \end{proposition}370 371 多么凄美的命题啊!其日牛马嘶,新妇入青庐,奄奄黄昏后,寂寂人定初,我命绝今日,372 魂去尸长留,揽裙脱丝履,举身赴清池,府吏闻此事,心知长别离,徘徊庭树下,自挂东南373 枝。374 375 \begin{remark}376 天不言自高,水不言自流。377 \begin{gather*}378 \begin{split} 379 \varphi(x,z)380 &=z-\gamma_{10}x-\gamma_{mn}x^mz^n\381 &=z-Mr^{-1}x-Mr^{-(m+n)}x^mz^n382 \end{split}\\[6pt]383 \begin{align} \zeta^0&=(\xi^0)^2,\384 \zeta^1 &=\xi^0\xi^1,\385 \zeta^2 &=(\xi^1)^2,386 \end{align}387 \end{gather*}388 \end{remark}389 390 天尊地卑,乾坤定矣。卑高以陈,贵贱位矣。 动静有常,刚柔断矣。方以类聚,物以群分,391 吉凶生矣。在天成象,在地成形,变化见矣。鼓之以雷霆,润之以风雨,日月运行,一寒一392 暑,乾道成男,坤道成女。乾知大始,坤作成物。乾以易知,坤以简能。易则易知,简则易393 从。易知则有亲,易从则有功。有亲则可久,有功则可大。可久则贤人之德,可大则贤人之394 业。易简,而天下矣之理矣;天下之理得,而成位乎其中矣。395 396 \begin{axiom}397 两点间直线段距离最短。  398 \begin{align}399 x&\equiv y+1\pmod{m^2}\400 x&\equiv y+1\mod{m^2}\401 x&\equiv y+1\pod{m^2}402 \end{align}403 \end{axiom}404 405 《彖曰》:大哉乾元,万物资始,乃统天。云行雨施,品物流形。大明始终,六位时成,时406 乘六龙以御天。乾道变化,各正性命,保合大和,乃利贞。首出庶物,万国咸宁。407 408 《象曰》:天行健,君子以自强不息。潜龙勿用,阳在下也。见龙再田,德施普也。终日乾409 乾,反复道也。或跃在渊,进无咎也。飞龙在天,大人造也。亢龙有悔,盈不可久也。用九,410 天德不可为首也。   411 412 \begin{lemma}413 《猫和老鼠》是我最爱看的动画片。414 \begin{multline*}%\tag*{[a]} % 这个不出现在索引中415 \int_a^b\biggl\{\int_a^b[f(x)^2g(y)^2+f(y)^2g(x)^2]416  -2f(x)g(x)f(y)g(y)\,dx\biggr\}\,dy \417  =\int_a^b\biggl\{g(y)^2\int_a^bf^2+f(y)^2418   \int_a^b g^2-2f(y)g(y)\int_a^b fg\biggr\}\,dy419 \end{multline*}420 \end{lemma}421 422 行行重行行,与君生别离。相去万余里,各在天一涯。道路阻且长,会面安可知。胡马依北423 风,越鸟巢南枝。相去日已远,衣带日已缓。浮云蔽白日,游子不顾返。思君令人老,岁月424 忽已晚。  弃捐勿复道,努力加餐饭。425 426 \begin{theorem}\label{the:theorem1}427 犯我强汉者,虽远必诛\hfill \pozhehao 陈汤(汉)428 \end{theorem}429 \begin{subequations}430 \begin{align}431 y & = 1 \432 y & = 0433 \end{align}434 \end{subequations}435 道可道,非常道。名可名,非常名。无名天地之始;有名万物之母。故常无,欲以观其妙;436 常有,欲以观其徼。此两者,同出而异名,同谓之玄。玄之又玄,众妙之门。上善若水。水437 善利万物而不争,处众人之所恶,故几于道。曲则全,枉则直,洼则盈,敝则新,少则多,438 多则惑。人法地,地法天,天法道,道法自然。知人者智,自知者明。胜人者有力,自胜439 者强。知足者富。强行者有志。不失其所者久。死而不亡者寿。440 441 \begin{proof}442 燕赵古称多感慨悲歌之士。董生举进士,连不得志于有司,怀抱利器,郁郁适兹土,吾443 知其必有合也。董生勉乎哉?444 445 夫以子之不遇时,苟慕义强仁者,皆爱惜焉,矧燕、赵之士出乎其性者哉!然吾尝闻446 风俗与化移易,吾恶知其今不异于古所云邪?聊以吾子之行卜之也。董生勉乎哉?447 448 吾因子有所感矣。为我吊望诸君之墓,而观于其市,复有昔时屠狗者乎?为我谢449 曰:“明天子在上,可以出而仕矣!” \hfill\pozhehao 韩愈《送董邵南序》450 \end{proof}451 452 \begin{corollary}453   四川话配音的《猫和老鼠》是世界上最好看最好听最有趣的动画片。454 \begin{alignat}{3}455 V_i & =v_i - q_i v_j, & \qquad X_i & = x_i - q_i x_j,456  & \qquad U_i & = u_i,457  \qquad \text{for $i\ne j$;}\label{eq:B}\\458 V_j & = v_j, & \qquad X_j & = x_j,459   & \qquad U_j & u_j + \sum_{i\ne j} q_i u_i.460 \end{alignat}461 \end{corollary}462 463 迢迢牵牛星,皎皎河汉女。464 纤纤擢素手,札札弄机杼。465 终日不成章,泣涕零如雨。466 河汉清且浅,相去复几许。467 盈盈一水间,脉脉不得语。468 469 \begin{example}470   大家来看这个例子。471 \begin{equation}472 \label{ktc}473 \left\{\begin{array}{l}474 \nabla f({\mbox{\boldmath $x$}}^*)-\sum\limits_{j=1}^p\lambda_j\nabla g_j({\mbox{\boldmath $x$}}^*)=0\\[0.3cm]475 \lambda_jg_j({\mbox{\boldmath $x$}}^*)=0,\quad j=1,2,\cdots,p\\[0.2cm]476 \lambda_j\ge 0,\quad j=1,2,\cdots,p.477 \end{array}\right.478 \end{equation}479 \end{example}480 481 \begin{exercise}482   清列出 Andrew S. Tanenbaum 和 W. Richard Stevens 的所有著作。483 \end{exercise}484 485 \begin{conjecture} \textit{Poincare Conjecture} If in a closed three-dimensional486   space, any closed curves can shrink to a point continuously, this space can be487   deformed to a sphere.488 \end{conjecture}489 490 \begin{problem}491  回答还是不回答,是个问题。 492 \end{problem}493 494 如何引用定理~\ref{the:theorem1} 呢?加上 \verb|label| 使用 \verb|ref| 即可。妾发495 初覆额,折花门前剧。郎骑竹马来,绕床弄青梅。同居长干里,两小无嫌猜。 十四为君妇,496 羞颜未尝开。低头向暗壁,千唤不一回。十五始展眉,愿同尘与灰。常存抱柱信,岂上望夫497 台。 十六君远行,瞿塘滟滪堆。五月不可触,猿声天上哀。门前迟行迹,一一生绿苔。苔深498 不能扫,落叶秋风早。八月蝴蝶来,双飞西园草。感此伤妾心,坐愁红颜老。499 500 \section{参考文献}501 \label{sec:bib}502 当然参考文献可以直接写 bibitem,虽然费点功夫,但是好控制,各种格式可以自己随意改503 写。504 505 本模板推荐使用 BIB\TeX,样式文件为 thubib.bst,基本符合学校的参考文献格式(如专利506 等引用未加详细测试)。看看这个例子,关于书的\cite{tex, companion, ColdSources},507 还有这些\cite{Krasnogor2004e, clzs, zjsw},关于杂志的\cite{ELIDRISSI94,508   MELLINGER96, SHELL02},硕士论文\cite{zhubajie, metamori2004},博士论文509 \cite{shaheshang, FistSystem01},标准文件\cite{IEEE-1363},会议论文\cite{DPMG,kocher99},技术报告\cite{NPB2}。中文参510 考文献\cite{cnarticle}应增加 \texttt{lang=``zh‘‘} 字段,以便进行相应处理。另511 外,这个 bst 对中文文献\cite{cnproceed}的支持并不是十全十美,如果有不如意的地方,512 请手动修改 bbl 文件。513 514 有时候不想要上标,那么可以这样 \onlinecite{shaheshang},这个非常重要。515 516 \section{公式}517 \label{sec:equation}518 贝叶斯公式如式~(\ref{equ:chap1:bayes}),其中 $p(y|\mathbf{x})$ 为后验;519 $p(\mathbf{x})$ 为先验;分母 $p(\mathbf{x})$ 为归一化因子。520 \begin{equation}521 \label{equ:chap1:bayes}522 p(y|\mathbf{x}) = \frac{p(\mathbf{x},y)}{p(\mathbf{x})}=523 \frac{p(\mathbf{x}|y)p(y)}{p(\mathbf{x})} 524 \end{equation}525 526 论文里面公式越多,\TeX{} 就越 happy。再看一个 \textsf{amsmath} 的例子:527 \newcommand{\envert}[1]{\left\lvert#1\right\rvert} 528 \begin{equation}\label{detK2}529 \det\mathbf{K}(t=1,t_1,\dots,t_n)=\sum_{I\in\mathbf{n}}(-1)^{\envert{I}}530 \prod_{i\in I}t_i\prod_{j\in I}(D_j+\lambda_jt_j)\det\mathbf{A}531 ^{(\lambda)}(\overline{I}|\overline{I})=0.532 \end{equation} 533 534 前面定理示例部分列举了很多公式环境,可以说把常见的情况都覆盖了,大家在写公式的时535 候一定要好好看 \textsf{amsmath} 的文档,并参考模板中的用法:536 \begin{multline*}%\tag{[b]} % 这个出现在索引中的537 \int_a^b\biggl\{\int_a^b[f(x)^2g(y)^2+f(y)^2g(x)^2]538  -2f(x)g(x)f(y)g(y)\,dx\biggr\}\,dy \539  =\int_a^b\biggl\{g(y)^2\int_a^bf^2+f(y)^2540   \int_a^b g^2-2f(y)g(y)\int_a^b fg\biggr\}\,dy541 \end{multline*}542 543 其实还可以看看这个多级规划:544 \begin{equation}\label{bilevel}545 \left\{\begin{array}{l}546 \max\limits_{{\mbox{\footnotesize\boldmath $x$}}} F(x,y_1^*,y_2^*,\cdots,y_m^*)\\[0.2cm]547 \mbox{subject to:}\\[0.1cm]548 \qquad G(x)\le 0\\[0.1cm]549 \qquad(y_1^*,y_2^*,\cdots,y_m^*)\mbox{ solves problems }(i=1,2,\cdots,m)\\[0.1cm]550 \qquad\left\{\begin{array}{l}551     \max\limits_{{\mbox{\footnotesize\boldmath $y_i$}}}f_i(x,y_1,y_2,\cdots,y_m)\\[0.2cm]552     \mbox{subject to:}\\[0.1cm]553     \qquad g_i(x,y_1,y_2,\cdots,y_m)\le 0.554     \end{array}\right.555 \end{array}\right.556 \end{equation}557 这些跟规划相关的公式都来自于刘宝碇老师《不确定规划》的课件。558 559 \section{破折号}560 \label{sec:pozhehao}561 562 中文破折号为一个两个字宽垂直居中的直线,输入法直接得到的破折号是两个断开的小短线563 (——),这看起来不舒服。所以我定义了一个破折号的命令 \verb|\pozhehao|,请看几个564 例子:565 \begin{itemize}566 \item 这是一个 \pozhehao 破折号567   \begin{enumerate}[(1)]568   \item 同时也可以看看569   \item 不同列表环境的间距570   \end{enumerate}571 \item 看起来这个要好一些572 \item 破折号 \pozhehao 就说到这里。573 \end{itemize}574 575 默认的列表环境上下间距很大,模板将其重定义为 \textsf{paralist} 中的压缩环境,看起576 来要好一些。如果还是不满意,自己也可以调 \verb|\itemsep| 的。\textsf{paralist} 还577 可以方便的指定标签的样式。

 

 

chap02.tex

  1 %%% Local Variables:   2 %%% mode: latex  3 %%% TeX-master: t  4 %%% End:   5   6 \chapter{中华人民共和国}  7 \label{cha:china}  8   9 \section{其它例子} 10 \label{sec:other} 11  12 在第~\ref{cha:intro} 章中我们学习了贝叶斯公式~(\ref{equ:chap1:bayes}),这里我们复 13 习一下: 14 \begin{equation} 15 \label{equ:chap2:bayes} 16 p(y|\mathbf{x}) = \frac{p(\mathbf{x},y)}{p(\mathbf{x})}= 17 \frac{p(\mathbf{x}|y)p(y)}{p(\mathbf{x})}  18 \end{equation} 19  20 \subsection{绘图} 21 \label{sec:draw} 22  23 本模板不再预先装载任何绘图包(如 \textsf{pstricks,pgf} 等),完全由你自己来决定。 24 个人觉得 \textsf{pgf} 不错,不依赖于 Postscript。此外还有很多针对 \LaTeX{} 的 25  GUI 作图工具,如 XFig(jFig), WinFig, Tpx, Ipe, Dia, Inkscape, LaTeXPiX, 26 jPicEdt, jaxdraw 等等。 27  28 \subsection{插图} 29 \label{sec:graphs} 30  31 强烈推荐《\LaTeXe 插图指南》!关于子图形的使用细节请参看 \textsf{subfig} 的说明文档。 32  33 \subsubsection{一个图形} 34 \label{sec:onefig} 35 一般图形都是处在浮动环境中。之所以称为浮动是指最终排版效果图形的位置不一定与源文 36 件中的位置对应\footnote{This is not a bug, but a feature of \LaTeX!},这也是刚使 37 用 \LaTeX{} 同学可能遇到的问题。如果要强制固定浮动图形的位置,请使用 \textsf{float} 宏包, 38 它提供了 \texttt{[H]} 参数,比如图~\ref{fig:xfig1}。 39 \begin{figure}[H] % use float package if you want it here 40   \centering 41   \includegraphics{hello} 42   \caption{利用 Xfig 制图} 43   \label{fig:xfig1} 44 \end{figure} 45  46 大学之道,在明明德,在亲民,在止于至善。知止而后有定;定而后能静;静而后能安;安 47 而后能虑;虑而后能得。物有本末,事有终始。知所先后,则近道矣。古之欲明明德于天 48 下者,先治其国;欲治其国者,先齐其家;欲齐其家者,先修其身;欲修其身者,先正其心; 49 欲正其心者,先诚其意;欲诚其意者,先致其知;致知在格物。物格而后知至;知至而后 50 意诚;意诚而后心正;心正而后身 修;身修而后家齐;家齐而后国治;国治而后天下 51 平。自天子以至于庶人,壹是皆以修身为本。其本乱而未治者 否矣。其所厚者薄,而其所 52 薄者厚,未之有也! 53  54 \hfill \pozhehao《大学》 55  56  57 \subsubsection{多个图形} 58 \label{sec:multifig} 59  60 如果多个图形相互独立,并不共用一个图形计数器,那么用 \verb|minipage| 或者 61 \verb|parbox| 就可以。否则,请参看图~\ref{fig:big1},它包含两个小图,分别是图~\ref{fig:subfig1}  62 和图~\ref{fig:subfig2}。推荐使用 \verb|\subfloat|,不要再用 63 \verb|\subfigure| 和 \verb|\subtable|。 64 \begin{figure} %[h] 65   \centering% 66   \subfloat[第一个小图形]{% 67     \label{fig:subfig1} 68     \includegraphics[height=2cm]{thu-fig-logo}}\hspace{4em}% 69   \subfloat[第二个小图形。如果标题很长的话,它会自动换行,这个 caption 就是这样的例子]{% 70     \label{fig:subfig2} 71     \includegraphics[height=2cm]{thu-text-logo}} 72   \caption{包含子图形的大图形} 73   \label{fig:big1} 74 \end{figure} 75  76 古之学者必有师。师者,所以传道受业解惑也。人非生而知之者,孰能无惑?惑而不从师, 77 其为惑也,终不解矣。生乎吾前,其闻道也固先乎吾,吾从而师之;生乎吾後,其闻道也亦 78 先乎吾,吾从而师之。吾师道也,夫庸知其年之先後生於吾乎!是故无贵无贱无长无少,道 79 之所存,师之所存也。 80  81 嗟乎!师道之不传也久矣,欲人之无惑也难矣。古之圣人,其出人也远矣,犹且从师而问焉; 82 今之众人,其下圣人也亦远矣,而耻学於师。是故圣益圣,愚益愚。圣人之所以为圣,愚 83 人之所以为愚,其皆出於此乎?爱其子,择师而教之,於其身也,则耻师焉,惑焉。彼童子 84 之师,授之书而习其句读者,非吾所谓传其道、解其惑者也。句读之不知,惑之不解,或师 85 焉,或不焉,小学而大遗,吾未见其明也。巫医、乐师、百工之人不耻相师,  士大夫之族 86 曰“师”曰“弟子”之云者,则群聚而笑之。问之,则曰:彼与彼年相若也,道相似也,位 87 卑则足羞,官盛则近谀。呜呼!师道之不复,可知矣。巫医、乐师、百工之人。吾子不齿, 88 今其智乃反不能及,其可怪也欤!圣人无常师。孔子师郯子、苌子、师襄、老聃。郯子之徒, 89 其贤不及孔子。孔子曰:“三人行,必有我师。”是故弟子不必不如师,师不必贤於弟子。 90 闻道有先後,术业有专攻,如是而已。 91  92 如果要把编号的两个图形并排,那么小页就非常有用了: 93 \begin{figure} 94 \begin{minipage}{0.48\textwidth} 95   \centering 96   \includegraphics[height=2cm]{thu-whole-logo} 97   \caption{并排第一个图} 98   \label{fig:parallel1} 99 \end{minipage}\hfill100 \begin{minipage}{0.48\textwidth}101   \centering102   \includegraphics[height=2cm]{thu-whole-logo}103   \caption{并排第二个图}104   \label{fig:parallel2}105 \end{minipage}106 \end{figure}107 108 李氏子蟠,年十七,好古文、六艺,经传皆通习之,不拘於时,学於余。余嘉其能行古109 道,作师说以贻之。110 111 \hfill \pozhehao 韩愈(唐)

 

cover.tex

 1 %%% Local Variables: 2 %%% mode: latex 3 %%% TeX-master: t 4 %%% End: 5 \secretlevel{绝密} \secretyear{2100} 6  7 \ctitle{清华大学学位论文 \LaTeX\ 模板\\使用示例文档} 8 % 根据自己的情况选,不用这样复杂 9 \makeatletter10 \ifthu@bachelor\relax\else11   \ifthu@doctor12     \cdegree{工学博士}13   \else14     \ifthu@master15       \cdegree{工学硕士}16     \fi17   \fi18 \fi19 \makeatother20 21 22 \cdepartment[计算机]{计算机科学与技术系}23 \cmajor{计算机科学与技术}24 \cauthor{薛瑞尼} 25 \csupervisor{郑纬民教授}26 % 如果没有副指导老师或者联合指导老师,把下面两行相应的删除即可。27 \cassosupervisor{陈文光教授}28 \ccosupervisor{某某某教授}29 % 日期自动生成,如果你要自己写就改这个cdate30 %\cdate{\CJKdigits{\the\year}年\CJKnumber{\the\month}月}31 32 \etitle{An Introduction to \LaTeX{} Thesis Template of Tsinghua University} 33 % \edegree{Doctor of Science} 34 \edegree{Doctor of Engineering} 35 \emajor{Computer Science and Technology} 36 \eauthor{Xue Ruini} 37 \esupervisor{Professor Zheng Weimin} 38 \eassosupervisor{Chen Wenguang} 39 % 这个日期也会自动生成,你要改么?40 % \edate{December, 2005}41 42 % 定义中英文摘要和关键字43 \begin{cabstract}44   论文的摘要是对论文研究内容和成果的高度概括。摘要应对论文所研究的问题及其研究目45   的进行描述,对研究方法和过程进行简单介绍,对研究成果和所得结论进行概括。摘要应46   具有独立性和自明性,其内容应包含与论文全文同等量的主要信息。使读者即使不阅读全47   文,通过摘要就能了解论文的总体内容和主要成果。48 49   论文摘要的书写应力求精确、简明。切忌写成对论文书写内容进行提要的形式,尤其要避50   免“第 1 章……;第 2 章……;……”这种或类似的陈述方式。51 52   本文介绍清华大学论文模板 \thuthesis{} 的使用方法。本模板符合学校的本科、硕士、53   博士论文格式要求。54 55   本文的创新点主要有:56   \begin{itemize}57     \item 用例子来解释模板的使用方法;58     \item 用废话来填充无关紧要的部分;59     \item 一边学习摸索一边编写新代码。60   \end{itemize}61 62   关键词是为了文献标引工作、用以表示全文主要内容信息的单词或术语。关键词不超过 563   个,每个关键词中间用分号分隔。(模板作者注:关键词分隔符不用考虑,模板会自动处64   理。英文关键词同理。)65 \end{cabstract}66 67 \ckeywords{\TeX, \LaTeX, CJK, 模板, 论文}68 69 \begin{eabstract} 70    An abstract of a dissertation is a summary and extraction of research work71    and contributions. Included in an abstract should be description of research72    topic and research objective, brief introduction to methodology and research73    process, and summarization of conclusion and contributions of the74    research. An abstract should be characterized by independence and clarity and75    carry identical information with the dissertation. It should be such that the76    general idea and major contributions of the dissertation are conveyed without77    reading the dissertation. 78 79    An abstract should be concise and to the point. It is a misunderstanding to80    make an abstract an outline of the dissertation and words ``the first81    chapter‘‘, ``the second chapter‘‘ and the like should be avoided in the82    abstract.83 84    Key words are terms used in a dissertation for indexing, reflecting core85    information of the dissertation. An abstract may contain a maximum of 5 key86    words, with semi-colons used in between to separate one another.87 \end{eabstract}88 89 \ekeywords{\TeX, \LaTeX, CJK, template, thesis}

 

denotation.tex

 1 \begin{denotation} 2  3 \item[HPC] 高性能计算 (High Performance Computing) 4 \item[cluster] 集群 5 \item[Itanium] 安腾 6 \item[SMP] 对称多处理 7 \item[API] 应用程序编程接口 8 \item[PI]    聚酰亚胺 9 \item[MPI]    聚酰亚胺模型化合物,N-苯基邻苯酰亚胺10 \item[PBI]    聚苯并咪唑11 \item[MPBI]    聚苯并咪唑模型化合物,N-苯基苯并咪唑12 \item[PY]    聚吡咙13 \item[PMDA-BDA]    均苯四酸二酐与联苯四胺合成的聚吡咙薄膜14 \item[$\Delta G$]      活化自由能~(Activation Free Energy)15 \item [$\chi$] 传输系数~(Transmission Coefficient)16 \item[$E$] 能量17 \item[$m$] 质量18 \item[$c$] 光速19 \item[$P$] 概率20 \item[$T$] 时间21 \item[$v$] 速度22 \item[劝  学] 君子曰:学不可以已。青,取之于蓝,而青于蓝;冰,水为之,而寒于水。23   木直中绳。(车柔)以为轮,其曲中规。虽有槁暴,不复挺者,(车柔)使之然也。故木24   受绳则直, 金就砺则利,君子博学而日参省乎己,则知明而行无过矣。吾尝终日而思25   矣,  不如须臾之所学也;吾尝(足齐)而望矣,不如登高之博见也。登高而招,臂非加26   长也,  而见者远;  顺风而呼,  声非加疾也,而闻者彰。假舆马者,非利足也,而致27   千里;假舟楫者,非能水也,而绝江河,  君子生非异也,善假于物也。积土成山,风雨28   兴焉;积水成渊,蛟龙生焉;积善成德,而神明自得,圣心备焉。故不积跬步,无以至千29   里;不积小流,无以成江海。骐骥一跃,不能十步;驽马十驾,功在不舍。锲而舍之,朽30   木不折;  锲而不舍,金石可镂。蚓无爪牙之利,筋骨之强,上食埃土,下饮黄泉,用心31   一也。蟹六跪而二螯,非蛇鳝之穴无可寄托者,用心躁也。\pozhehao{} 荀况32 \end{denotation}

 

resume.tex

\begin{resume}  \resumeitem{个人简历}  xxxx 年 xx 月 xx 日出生于 xx 省 xx 县。    xxxx 年 9 月考入 xx 大学 xx 系 xx 专业,xxxx 年 7 月本科毕业并获得 xx 学士学位。    xxxx 年 9 月免试进入 xx 大学 xx 系攻读 xx 学位至今。  \resumeitem{发表的学术论文} % 发表的和录用的合在一起  \begin{enumerate}[{[}1{]}]  \item Yang Y, Ren T L, Zhang L T, et al. Miniature microphone with silicon-    based ferroelectric thin films. Integrated Ferroelectrics, 2003,    52:229-235. (SCI 收录, 检索号:758FZ.)  \item 杨轶, 张宁欣, 任天令, 等. 硅基铁电微声学器件中薄膜残余应力的研究. 中国机    械工程, 2005, 16(14):1289-1291. (EI 收录, 检索号:0534931 2907.)  \item 杨轶, 张宁欣, 任天令, 等. 集成铁电器件中的关键工艺研究. 仪器仪表学报,    2003, 24(S4):192-193. (EI 源刊.)  \item Yang Y, Ren T L, Zhu Y P, et al. PMUTs for handwriting recognition. In    press. (已被 Integrated Ferroelectrics 录用. SCI 源刊.)  \item Wu X M, Yang Y, Cai J, et al. Measurements of ferroelectric MEMS    microphones. Integrated Ferroelectrics, 2005, 69:417-429. (SCI 收录, 检索号    :896KM.)  \item 贾泽, 杨轶, 陈兢, 等. 用于压电和电容微麦克风的体硅腐蚀相关研究. 压电与声    光, 2006, 28(1):117-119. (EI 收录, 检索号:06129773469.)  \item 伍晓明, 杨轶, 张宁欣, 等. 基于MEMS技术的集成铁电硅微麦克风. 中国集成电路,     2003, 53:59-61.  \end{enumerate}  \resumeitem{研究成果} % 有就写,没有就删除  \begin{enumerate}[{[}1{]}]  \item 任天令, 杨轶, 朱一平, 等. 硅基铁电微声学传感器畴极化区域控制和电极连接的    方法: 中国, CN1602118A. (中国专利公开号.)  \item Ren T L, Yang Y, Zhu Y P, et al. Piezoelectric micro acoustic sensor    based on ferroelectric materials: USA, No.11/215, 102. (美国发明专利申请号.)  \end{enumerate}\end{resume}

 

清华论文模板