From bfbbe1994c80b945cfce367c1630a527cd3643fd Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 16 Mar 2014 21:08:40 +0000 Subject: uestcthesis (16mar14) git-svn-id: svn://tug.org/texlive/trunk@33194 c570f23f-e606-0410-a88d-b1316a301751 --- .../doc/latex/uestcthesis/source/rvdtx.sty | 349 ----- .../doc/latex/uestcthesis/source/uestcthesis.dtx | 1386 +++++++++++++++++--- .../doc/latex/uestcthesis/source/uestcthesis.ins | 141 +- 3 files changed, 1239 insertions(+), 637 deletions(-) delete mode 100644 Master/texmf-dist/doc/latex/uestcthesis/source/rvdtx.sty (limited to 'Master/texmf-dist/doc/latex/uestcthesis/source') diff --git a/Master/texmf-dist/doc/latex/uestcthesis/source/rvdtx.sty b/Master/texmf-dist/doc/latex/uestcthesis/source/rvdtx.sty deleted file mode 100644 index 3f6d0ac09a9..00000000000 --- a/Master/texmf-dist/doc/latex/uestcthesis/source/rvdtx.sty +++ /dev/null @@ -1,349 +0,0 @@ -% -% -% File: rvdtx.sty -% -% Auxiliary package to format *.dtx documents. -% -% Copyright (c) 2008, CV Radhakrishnan , -% -% This file may be distributed and/or modified under the conditions -% of the LaTeX Project Public License, either version 1.2 of this -% license or (at your option) any later version. The latest version -% of this license is in: -% -% http://www.latex-project.org/lppl.txt -% -% and version 1.2 or later is part of all distributions of LaTeX -% version 1999/12/01 or later. -% -% -\newcounter{colorscheme} - -\DeclareOption{green}{\setcounter{colorscheme}{1}} -\DeclareOption{orange}{\setcounter{colorscheme}{0}} -\ProcessOptions - -\RequirePackage[dvipsnames,svgnames]{xcolor} - -\ifcase\thecolorscheme -% -% Orange color spec (default) -% - \colorlet{itemcolor}{brown} - \colorlet{verbcolor}{Sepia} - \colorlet{botrulecolor}{orange!25} - \colorlet{botbgcolor}{orange!15} - \colorlet{botcolor}{orange!80} - \colorlet{pgrulecolor}{orange} - \colorlet{pgbgcolor}{white} - - \colorlet{quicklinkrulecolor}{orange!40} - \colorlet{quicklinkcolor}{brown} - \colorlet{topverticalrule}{brown} - \colorlet{titlecolor}{brown} - \colorlet{hlinkcolor}{brown} - \colorlet{hlinktricolor}{orange!70} - \colorlet{linkcolor}{brown} - \colorlet{urlcolor}{brown} - - \colorlet{arrayrulecolor}{olive!30} - \colorlet{seccolor}{brown} - - \colorlet{toprulecolor}{orange!30} - \colorlet{topbgcolor}{orange!10} - \colorlet{topcolor}{brown!80} -% -% -\or% Green color specs -% -% - \colorlet{itemcolor}{OliveGreen} - \colorlet{verbcolor}{OliveGreen} - \colorlet{botrulecolor}{GreenYellow!25} - \colorlet{botbgcolor}{GreenYellow!30} - \colorlet{botcolor}{Green!80} - \colorlet{pgrulecolor}{GreenYellow} - \colorlet{pgbgcolor}{white} - - \colorlet{quicklinkrulecolor}{Green!40} - \colorlet{quicklinkcolor}{Green} - \colorlet{topverticalrule}{Green} - \colorlet{titlecolor}{DarkOliveGreen} - \colorlet{hlinkcolor}{DarkOliveGreen} - \colorlet{hlinktricolor}{Green!70} - \colorlet{linkcolor}{OliveGreen} - \colorlet{urlcolor}{OliveGreen} - - \colorlet{arrayrulecolor}{olive!30} - \colorlet{seccolor}{OliveGreen} - - \colorlet{toprulecolor}{GreenYellow!50} - \colorlet{topbgcolor}{GreenYellow!20} - \colorlet{topcolor}{GreenYellow!80} -\fi - -\def\floatpagefraction{.99} -\usepackage{geometry} -\geometry{top=2in, - bottom=1in, - left=2in, - right=1in, - a4paper} - -\RequirePackage{comment,xspace} -\def\xml{\textsc{xml}\xspace} -\def\pdf{\textsc{pdf}\xspace} -\def\pdfa{\textsc{pdf/a-1}b\xspace} -\def\pdfx{\textsc{pdf/x-1}a\xspace} -\def\xmp{\textsc{xmp}\xspace} -\def\pdftex{\textsc{pdf\TeX}\xspace} -\def\defmacro#1{\texttt{\@bsl#1}} -\def\thanh{H\`an Th\^e Th\`anh\xspace} - -\let\@DRAFTout@Hook\@empty -\newcommand{\DRAFTout}{\g@addto@macro\@DRAFTout@Hook} -\newcommand{\@DRAFTout@Out}{% - \afterassignment\@DRAFTout@Test - \global\setbox\@cclv= % - } -\newcommand{\@DRAFTout@Test}{% - \ifvoid\@cclv\relax - \aftergroup\@DRAFTout@Output - \else - \@DRAFTout@Output - \fi% - } -\newcommand{\@DRAFTout@Output}{% - \@DRAFTout@Hook% - \@DRAFTout@Org@Out\box\@cclv% - } -\newcommand{\@DRAFTout@Org@Out}{} -\newcommand*{\@DRAFTout@Init}{% - \let\@DRAFTout@Org@Out\shipout - \let\shipout\@DRAFTout@Out - } -\newdimen\OHeight -\setlength\OHeight{\textheight} -\addtolength\OHeight{\headheight} -\addtolength\OHeight{\headsep} -\addtolength\OHeight{\footskip} - -\newif\ifoverlay\overlayfalse - -\AtBeginDocument{\@DRAFTout@Init} -\newcommand{\@DraftOverlay@Hook}{} -\newcommand{\AddToDraftOverlay}{\g@addto@macro\@DraftOverlay@Hook} -\newcommand{\ClearDraftOverlay}{\let\@DraftOverlay@Hook\@empty} -\newcommand{\@DraftOverlay}{% - \ifx\@DraftOverlay@Hook\@empty - \else - \bgroup - \@tempdima=1in - \@tempcnta=\@tempdima - \@tempcntb=-\@tempdima - \advance\@tempcntb\paperheight - \ifoverlay - \global\setbox\@cclv\vbox{% - \box\@cclv - \vbox{\let\protect\relax% - \unitlength=1pt% - \pictur@(0,0)(\strip@pt\@tempdima,\strip@pt\@tempdimb)% - \@DraftOverlay@Hook% - \endpicture}}% - \else - \global\setbox\@cclv\vbox{% - \vbox{\let\protect\relax% - \unitlength=1sp% - \pictur@(0,0)(\@tempcnta,\@tempcntb)% - \@DraftOverlay@Hook% - \endpicture}% - \box\@cclv}% - \fi - \egroup - \fi -} - -\definecolor{gray30}{gray}{.7} -\definecolor{gray20}{gray}{.8} -\definecolor{gray10}{gray}{.9} - -\DRAFTout{\@DraftOverlay} -\long\def\puttext(#1)#2{\AddToDraftOverlay{% - \setlength{\unitlength}{1pt}\thinlines% - \put(#1){#2}}} - -\MakeShortVerb{\|} - -\IfFileExists{charter.sty}{\RequirePackage{charter}}{} -\IfFileExists{lfr.sty}{\RequirePackage[scaled=.9]{lfr}}{} -\IfFileExists{prima.sty}{\RequirePackage[scaled=.8]{prima}}{} - -\def\theCodelineNo{\reset@font\tiny\arabic{CodelineNo}} - -\def\@seccntformat#1{\llap{\csname the#1\endcsname.\hspace*{6pt}}} -\def\section{\@startsection {section}{1}{\z@}% - {-3.5ex \@plus -1ex \@minus -.2ex}% - {2.3ex \@plus.2ex}% - {\normalfont\large\bfseries\color{seccolor}}} -\def\subsection{\@startsection{subsection}{2}{\z@}% - {-3.25ex\@plus -1ex \@minus -.2ex}% - {1.5ex \@plus .2ex}% - {\normalfont\normalsize\bfseries\color{seccolor}}} -\def\subsubsection{\@startsection{subsubsection}{3}{\z@}% - {-3.25ex\@plus -1ex \@minus -.2ex}% - {1.5ex \@plus .2ex}% - {\normalfont\normalsize\bfseries\color{seccolor}}} - -%\RequirePackage[draft]{pdfdraftcopy} -% \draftstring{} - \puttext(0,36){\botstring}% - \puttext(0,840){\copy\topbox} - -\RequirePackage{colortbl} -\arrayrulecolor{arrayrulecolor} -\let\shline\hline -\def\hline{\noalign{\vskip3pt}\shline\noalign{\vskip4pt}} - -\RequirePackage[pdftex,colorlinks]{hyperref} -\def\Hlink#1#2{\hyperlink{#2}{\color{hlinktricolor}% - $\blacktriangleright$~\color{hlinkcolor}#1}} - \def\@linkcolor{linkcolor} - \def\@urlcolor{urlcolor} - -\pagestyle{empty} -\def\version#1{\gdef\@version{#1}} -\def\@version{\fileversion} -\def\contact#1{\gdef\@contact{\texttt{#1}}} -\def\author#1{\gdef\@author{#1}} -\def\@author{River Valley Technologies} -\def\@contact{\texttt{shifujun@foxmail.com}} -\def\keywords#1{\gdef\@keywords{#1}} -\def\@keywords{\LaTeX, \xml} - -\long\def\Hrule{\\[-4pt]\hspace*{-3em}% - {\color{quicklinkrulecolor}\rule{\linewidth}{.1pt}}\\} - -\long\def\dtxmark[#1][#2]#3#4#5{\def\next{#1}% - \ifcase\next\or\Hlink{#4}{#3}\Hrule \fi} - -\newbox\topbox -\long\def\maketitle{\global\setbox\topbox=\vbox{\hsize=\paperwidth - \parindent=0pt - \fcolorbox{toprulecolor}{topbgcolor}% - {\parbox[t][1.5in][c]{\paperwidth}% - {\hspace*{15mm}% - \parbox[c]{.35\paperwidth}{\fontsize{18pt}{20pt}% - \raggedright\normalfont\sffamily \selectfont - \color{titlecolor} \@title\\[6pt] - {\normalsize\rmfamily\scshape\@author}}% -% {\footnotesize\textsc{keywords:} \@keywords}}% - \hfill - \parbox[c][1.5in][c]{1mm}{\color{topverticalrule}% - \rule{.1pt}{1.5in}}% - \hfill - \parbox[c][1.5in][c]{.35\paperwidth}% - {\normalfont\footnotesize\sffamily\color{quicklinkcolor}% - \vspace*{6pt} QUICK LINKS\Hrule - \IfFileExists{tmp.out}{\input tmp.out}{}% - }\hspace*{5mm}% - }% - }% - }% -} -\gdef\botstring{\fcolorbox{botrulecolor}{botbgcolor}% - {\parbox[t][.5in][t]{\paperwidth}% - {\normalfont\sffamily\footnotesize% - \color{botcolor}% - \hspace*{5mm}\parbox[c][.5in][c]{.45\paperwidth}% - {\raggedright项目主页: - \href{https://github.com/shifujun/UESTCthesis}{% - \texttt{https://github.com/shifujun/UESTCthesis}}\\ - 获得最新的模板、反馈问题均请访问项目主页! - }\hfill% - \parbox[c][.5in][c]{1cm} - {\centering\sffamily\mdseries - \fcolorbox{pgrulecolor}{pgbgcolor}{\thepage}% - }\hfill - \parbox[c][.5in][c]{.45\paperwidth} - {\raggedleft\begin{tabular}{rl}% - 版本:&\@version\\ - 日期:&\@date\\ - 联系方式:&\@contact - \end{tabular}\hspace*{5mm}% - }% - }% - }% - } - -\RequirePackage{enumitem,amsfonts,amssymb} - -\setitemize[1]{label={\small\color{itemcolor}$\blacktriangleright$},itemsep=0pt} -\setitemize[2]{label={\small\color{itemcolor}$\triangleright$},itemsep=0pt} -\setenumerate[1]{label={\small\color{itemcolor}\arabic*.},itemsep=0pt} - -\def\MacroFont{\fontencoding\encodingdefault - \fontfamily\ttdefault - \fontseries\mddefault - \fontshape\updefault - \color{verbcolor}\small}% - -\def\verbatim@font{\normalfont\color{verbcolor}\ttfamily} - -\def\verb{\relax\ifmmode\hbox\else\leavevmode\null\fi - \bgroup - \verb@eol@error \let\do\@makeother \dospecials - \verbatim@font\@noligs - \@ifstar\@sverb\@verb} - - -\def\@lbr{\expandafter\@gobble\string\{} -\def\@rbr{\expandafter\@gobble\string\}} -\def\@bsl{\expandafter\@gobble\string\\} -\def\@Bsl#1{\texttt{\@bsl#1}\xspace} -\def\trics#1{\protect\@Bsl{#1}} -\def\onecs#1{\protect\@Bsl{#1}} -%\let\trics\onecs - -\c@GlossaryColumns=1 -\c@IndexColumns=2 - -\def\index@prologue{\section{Index}% - \markboth{Index}{Index}% - Numbers written in italic refer to the page - where the corresponding entry is described; - numbers underlined refer to the - \ifcodeline@index - code line of the - \fi - definition; numbers in roman refer to the - \ifcodeline@index - code lines - \else - pages - \fi - where the entry is used. - } -\def\glossary@prologue{} -\renewenvironment{theglossary}{% - \glossary@prologue%][\GlossaryMin]% - \GlossaryParms \let\item\@idxitem \ignorespaces}% - {} - -\newenvironment{decl}[1][]% - {\par\small\addvspace{1.5ex plus 1ex}% - \vskip -\parskip - \ifx\relax#1\relax - \def\@decl@date{}% - \else - \def\@decl@date{\NEWfeature{#1}}% - \fi - \noindent%\hspace{-\leftmargini}% - \begin{tabular}{l}\hline\ignorespaces}% - {\\\hline\end{tabular}\nobreak\@decl@date\par\nobreak - \vspace{0.75ex}\vskip -\parskip\ignorespacesafterend\noindent} - -\endinput - -%% -%% End of file 'rvdtx.sty' -%% diff --git a/Master/texmf-dist/doc/latex/uestcthesis/source/uestcthesis.dtx b/Master/texmf-dist/doc/latex/uestcthesis/source/uestcthesis.dtx index 5fc03653a4c..da85630950f 100644 --- a/Master/texmf-dist/doc/latex/uestcthesis/source/uestcthesis.dtx +++ b/Master/texmf-dist/doc/latex/uestcthesis/source/uestcthesis.dtx @@ -30,7 +30,7 @@ %\NeedsTeXFormat{LaTeX2e}[2011/06/27] %\ProvidesClass{uestcthesis} %<*class> - [2013/06/07 v0.4.8 UESTC thesis class] + [2014/03/12 v1.0.0 UESTC thesis class] % %<*driver> \documentclass{ltxdoc} @@ -78,6 +78,11 @@ % \iffalse %<*class> % \fi +% \section{文类版本号说明} +% \changes{v1.0.0}{2014/03/12}{因学校正式推荐使用本模板,版本号改为1.0.0。} +% 本模板的版本号由3段组成。在v1.0.0之前,第一段是0,表示模板处于测试期。从2014年3月12日起, +% 学校正式推荐使用本模板,故将版本号第一段改为1,表示转为正式版。第二段每次增加1点,表示模板功能上有所增加。 +% 第三段每次增加1点,表示功能没有增加,只修复了Bug。 % \section{文类源代码} % \changes{v0.21}{2013/01/22}{将模板重构为DocStrip格式} % \subsection{中文支持} @@ -95,7 +100,20 @@ % \begin{macrocode} \LoadClass[cs4size,UTF8,fancyhdr,hyperref,fntef,openany]{ctexbook}[2011/03/11] % \end{macrocode} -% +%\changes{v0.6.1}{2014/01/20}{修正所有正文的英文为Times字体。抄录环境中的英文使用打印机字体,并不能用Times字体。} +% \begin{macrocode} +\RequirePackage{mathptmx} +% \end{macrocode} +%\changes{v0.6.8}{2014/03/06}{将公式中的字体改回v0.6.1之前的CM字体。} +% mathptmx宏包同时将公式中的字体也改为了Times字体。因为公式中还是用默认CM字体较多,所以这里还需要修改回来。 +% \begin{macrocode} +\DeclareSymbolFont{symbols} {OMS}{cmsy}{m}{n} +% \end{macrocode} +%\changes{v0.6}{2014/01/16}{修正ttfamily为宋体,而不是默认的仿宋。} +%修正ttfamily为宋体,而不是默认的仿宋。 +% \begin{macrocode} +\renewcommand{\ttfamily}{\CTEX@save@ttfamily \CJKfamily {\CTEX@rm@family }} +% \end{macrocode} %调用etoolbox宏包,为了使用其提供的|\ifblank|命令。 % \begin{macrocode} \RequirePackage{etoolbox}[2011/01/03] @@ -153,6 +171,12 @@ \newcommand{\chapternumberformat@uestcthesis}{\chinese{chapter}} %为了根据学位不同而设置不同的章标题序号方式而定义的命令。此处设置为本科论文章标题用汉字数字序号。 +\renewcommand{\firsttitlepage}{\firsttitlepage@master} +%中文封面使用硕士学位论文封面。 +\renewcommand{\secondtitlepage}{\secondtitlepage@Academic} +%中文扉页使用博士和学术型硕士中文扉页。 +\renewcommand{\thirdtitlepage}{\thirdtitlepage@Master} +%英文扉页使用硕士学位英文扉页。 } % \end{macrocode} % \end{macro} @@ -181,6 +205,12 @@ \newcommand{\chapternumberformat@uestcthesis}{\chinese{chapter}} %为了根据学位不同而设置不同的章标题序号方式而定义的命令。此处设置为本科论文章标题用汉字数字序号。 +\renewcommand{\firsttitlepage}{\firsttitlepage@doctor} +%中文封面使用博士学位论文封面。 +\renewcommand{\secondtitlepage}{\secondtitlepage@Academic} +%中文扉页使用博士和学术型硕士中文扉页。 +\renewcommand{\thirdtitlepage}{\thirdtitlepage@Doctor} +%英文扉页使用博士学位英文扉页。 } % \end{macrocode} % \end{macro} @@ -199,9 +229,15 @@ } \newcommand{\acknowledgementsname@uestcthesis}{致\enspace 谢} \newcommand{\glossaryname@uestcthesis}{主要符号表} -\newcommand{\entryname@uestcthesis}{符号或术语} +\newcommand{\acronymname@uestcthesis}{缩略词表} +\newcommand{\entryname@uestcthesis}{符号} \newcommand{\descriptionname@uestcthesis}{说明} -\newcommand{\glspageheader@uestcthesis}{页码} +\newcommand{\pagelistname@uestcthesis}{页码} +\newcommand{\acronymheader@uestcthesis}{缩略词} +\newcommand{\acronymfull@uestcthesis}{英文全称} +\newcommand{\acronymtranslation@uestcthesis}{中文全称} +\renewcommand{\listfigurename}{图目录} +\renewcommand{\listtablename}{表目录} % \end{macrocode} % \begin{macro}{\english@uestcthesis} %英文选项相关设置: @@ -223,19 +259,129 @@ \renewcommand{\CTEX@figurename}{Figure} \renewcommand{\CTEX@tablename}{Table} \renewcommand{\glossaryname@uestcthesis}{Glossary} +\renewcommand{\acronymname@uestcthesis}{Acronyms} \renewcommand{\entryname@uestcthesis}{Notation} \renewcommand{\descriptionname@uestcthesis}{Description} -\renewcommand{\glspageheader@uestcthesis}{Page} +\renewcommand{\pagelistname@uestcthesis}{Page List} +\renewcommand{\acronymheader@uestcthesis}{Acronym} +\renewcommand{\acronymfull@uestcthesis}{Full Name} +\renewcommand{\acronymtranslation@uestcthesis}{Chinese} \renewcommand{\CTEX@appendixname}{Appendix~} +\renewcommand{\listfigurename}{List of Figures} +\renewcommand{\listtablename}{List of Tables} } % \end{macrocode} % \end{macro} -% 声明三个选项分别代表三种学位论文。由于其中的定义包含中文,所以声明必须放在ctexbook文类后面。 +% \begin{macro}{\firsttitlepage} +% 设置一个通用的插入封面命令。然后在不同的选项设置中重新这个命令,插入正确的封面。 +% \begin{macrocode} +\newcommand{\firsttitlepage}{\newpage 错误:没有指定封面!} +% \end{macrocode} +% \end{macro} +% \begin{macro}{\secondtitlepage} +% 设置一个通用的插入中文扉页命令。然后在不同的选项设置中重新这个命令,插入正确的中文扉页。 +% \begin{macrocode} +\newcommand{\secondtitlepage}{\newpage 错误:没有指定中文扉页!} +% \end{macrocode} +% \end{macro} +% \begin{macro}{\thirdtitlepage} +% 设置一个通用的插入英文扉页命令。然后在不同的选项设置中重新这个命令,插入正确的英文扉页。 +% \begin{macrocode} +\newcommand{\thirdtitlepage}{\newpage 错误:没有指定英文扉页!} +% \end{macrocode} +% \end{macro} +% 声明7个选项分别代表7种论文类型,会有不同的封面或扉页。由于其中的定义包含中文,所以声明必须放在ctexbook文类后面。 +% \changes{v0.6.4}{2014/02/25}{新增3个选项。用以支持新增的3种中文扉页。} +% bachelor代表学士学位;master代表学术型硕士学位;doctor代表博士学位; +% engineeringmaster代表工程硕士学位;professionalmaster代表专业硕士学位;researchreport代表留学生研究报告; +% engineeringdoctor代表工程博士学位; +% english选项表示替换所有预定名为英文。 % \begin{macrocode} \DeclareOption{bachelor}{\bachelor@uestcthesis} \DeclareOption{master}{\master@uestcthesis} \DeclareOption{doctor}{\doctor@uestcthesis} \DeclareOption{english}{\english@uestcthesis} +\DeclareOption{engineeringmaster}{% +\master@uestcthesis +%复用学术型硕士选项的设置。 +\renewcommand{\secondtitlepage}{\secondtitlepage@Engineering} +%中文扉页使用工程博士/工程硕士中文扉页。 +} +\DeclareOption{engineeringdoctor}{% +\doctor@uestcthesis +%复用学术型博士选项的设置。 +\renewcommand{\firsttitlepage}{\firsttitlepage@engineeringdoctor} +%中文封面使用工程博士学位论文封面。 +\renewcommand{\secondtitlepage}{\secondtitlepage@Engineering} +%中文扉页使用工程博士/工程硕士中文扉页。 +} +\DeclareOption{professionalmaster}{% +\master@uestcthesis +%复用学术型硕士选项的设置。 +\renewcommand{\firsttitlepage}{\firsttitlepage@professionalmaster} +%中文封面使用专业学位硕士学位论文封面。 +\renewcommand{\secondtitlepage}{\secondtitlepage@Professional} +%中文扉页使用专业学位硕士中文扉页。 +} +\DeclareOption{researchreport}{% +\master@uestcthesis +%复用学术型硕士选项的设置。 +\renewcommand{\secondtitlepage}{\secondtitlepage@ResearchReport} +%中文扉页使用研究报告中文扉页。 +\renewcommand{\thirdtitlepage}{\thirdtitlepage@MasterResearchReport} +%英文扉页使用研究报告英文扉页。 +} +% \end{macrocode} +% \changes{v0.6.4}{2014/02/25}{新增2个选项withoutforepages和onlychapters。} +% 设置一个选项。启用后不编译摘要之前的部分(封面、中文扉页、英文扉页、独创性声明和论文使用授权)。 +% \begin{macrocode} +\DeclareOption{withoutforepages}{ +\newcommand{\withoutforepages@uestcthesis}{} +} +% \end{macrocode} +% 设置一个选项。启用后只编译正文部分。 +% \begin{macrocode} +\DeclareOption{onlychapters}{ +\newcommand{\withoutforepages@uestcthesis}{} +\newcommand{\onlychapters@uestcthesis}{} +} +% \end{macrocode} +% \changes{v0.6}{2014/01/11}{添加个人简历的选项:cv} +% 添加一个cv选项。启用后用contents目录中的cv.tex(人简历及攻读硕士学位期间取得的研究成果) +% 代替publications.bib(攻博/硕期间发表的论文)显示在论文的最后。 +% \begin{macrocode} +\DeclareOption{cv}{ +\newcommand{\usecv@uestcthesis}{\input{contents/cv.tex}} +} +% \end{macrocode} +% 声明选项用以决定是否添加图表目录。 +% \changes{v0.6}{2014/01/11}{添加图表目录的选项:listoffigures和listoftables} +% \begin{macrocode} +\newcommand{\insertlof}{} +\newcommand{\insertlot}{} +\DeclareOption{listoffigures}{\renewcommand{\insertlof}{% +\clearpage{\pagestyle{empty}\cleardoublepage} +\figureslistmatter +\def\l@figure##1##2{\ifnum 0>\c@tocdepth \else \vskip \z@ \@plus .2\p@ {\leftskip +0em\relax \rightskip \@tocrmarg \parfillskip -\rightskip \parindent 0em\relax +\@afterindenttrue \interlinepenalty \@M \leavevmode \@tempdima 1em\relax \advance +\leftskip \@tempdima \null \nobreak \hskip -\leftskip {\CTEX@figurename~##1}\nobreak \leaders +\hbox {$\m@th \mkern \@dotsep mu\hbox {.}\mkern \@dotsep mu$}\hfill \nobreak +\hb@xt@ \@pnumwidth {\hfil \normalfont \normalcolor ##2}\par }\fi} +\listoffigures +}} + +\DeclareOption{listoftables}{\renewcommand{\insertlot}{% +\clearpage{\pagestyle{empty}\cleardoublepage} +\tableslistmatter +\def\l@table##1##2{\ifnum 0>\c@tocdepth \else \vskip \z@ \@plus .2\p@ {\leftskip +0em\relax \rightskip \@tocrmarg \parfillskip -\rightskip \parindent 0em\relax +\@afterindenttrue \interlinepenalty \@M \leavevmode \@tempdima 1em\relax \advance +\leftskip \@tempdima \null \nobreak \hskip -\leftskip {\CTEX@tablename~##1}\nobreak \leaders +\hbox {$\m@th \mkern \@dotsep mu\hbox {.}\mkern \@dotsep mu$}\hfill \nobreak +\hb@xt@ \@pnumwidth {\hfil \normalfont \normalcolor ##2}\par }\fi} +\listoftables +}} \ProcessOptions\relax % \end{macrocode} % \subsection{版面设置} @@ -249,9 +395,15 @@ %top:页面顶边与版心之间的距离。\\ %left:双页排版的内侧边距。 % +% \changes{v0.5.2}{2013/08/07}{针对本科规范还没有修订,单独设置硕博的新规范要求的版面设置} % \begin{macrocode} +\ifdefstring{\degree@uestcthesis}{bachelor}{ \RequirePackage[a4paper,headheight=12.65pt,headsep=4mm,includeheadfoot,centering, top=2.75cm,left=3cm]{geometry} +}{ +\RequirePackage[a4paper,headheight=12.65pt,headsep=4mm,includeheadfoot,centering, + top=2.08cm,left=3cm]{geometry} +} % \end{macrocode} % %按照学校要求需要设置默认行距为20磅。参数是倍数值,没有单位。这个值是通过 @@ -287,20 +439,29 @@ \RequirePackage[format=hang,labelsep=space]{caption} % \end{macrocode} % -%设置浮动体在文本中间的前后间距为6磅。同时在caption宏包的belowskip选项中设置的-7mm+6bp。 +%设置浮动体在文本中间的前后间距为6磅,按照硕博标准标题前后其余的6磅另行设置。 % % \begin{macrocode} \intextsep=6bp % \end{macrocode} % -%分别设置表和图的标题与正文的距离。\\ -%aboveskip:标题与图表之间的距离。设置为0是为了将前文间距交给|\intextsep|设置。\\ -%belowskip:标题与下文之间的距离。其中-7mm是将后文间距先调为0,再加上需要的6磅。 -%这样设置是因为|\intextsep|命令设置出的效果中后文间距比6bp多出约7mm距离。 +%设置浮动体在页面顶端或底端时与文本之间的距离。 +% \begin{macrocode} +\textfloatsep=6bp +% \end{macrocode} +%设置浮动体在页面顶端或底端时多个之间的距离。 +% \begin{macrocode} +\floatsep=6bp +% \end{macrocode} % +%分别设置表和图的标题与正文的距离。\\ +%aboveskip:标题与图表之间的距离。\\ +%belowskip:标题与下文之间的距离。\\ +%图的前后距离都设置为0是因为有子图标题可能在图题之后,故而不在此设置。 +% \changes{v0.5.2}{2013/08/07}{根据新的硕博规范单独设置硕博论文的图表标题前后段距} % \begin{macrocode} -\captionsetup[figure]{aboveskip=0bp,belowskip=-7mm+6bp} -\captionsetup[table]{aboveskip=0bp,belowskip=0bp} +\captionsetup[figure]{aboveskip=0bp,belowskip=0bp} +\captionsetup[table]{aboveskip=0bp,belowskip=6bp} % \end{macrocode} % %调用宏包:\\ @@ -355,28 +516,128 @@ %|\pic|命令生成一个独占一行、居中的图片。标题前后间距符合科大毕设标准 % \begin{macrocode} \newcommand{\pic}[4][htbp]{ -\begin{figure}[##1] -\centering - \includegraphics[##3]{##4} - \caption{##2} - \label{##4} -\end{figure} +\begin{figure}[##1]% +\centering% + \includegraphics[##3]{##4}% + \caption{##2}% + \label{##4}% + \vspace{6bp}% +\end{figure}% } % \end{macrocode} % \end{macro} -% \begin{environment}{pics} +% \subsubsection{子图环境设置} +%\changes{v0.5.0}{2013/08/01}{改变子图的标题位置,使之符合学校标准} +%由于子图中包含了中文,所以使用|\edef|等嵌套定义方式不能使用。故而定义了20个子图 +%名宏。 +% \begin{macro}{\clearallsubfigcaptions} +% 既做初始化又做清空使用。 +% \begin{macrocode} +\newcommand{\clearallsubfigcaptions}{ +\gdef\subfigcaptionA{}\gdef\subfigcaptionB{}\gdef\subfigcaptionC{}% +\gdef\subfigcaptionD{}\gdef\subfigcaptionE{}\gdef\subfigcaptionF{}% +\gdef\subfigcaptionG{}\gdef\subfigcaptionH{}\gdef\subfigcaptionI{}% +\gdef\subfigcaptionJ{}\gdef\subfigcaptionK{}\gdef\subfigcaptionL{}% +\gdef\subfigcaptionM{}\gdef\subfigcaptionN{}\gdef\subfigcaptionO{}% +\gdef\subfigcaptionP{}\gdef\subfigcaptionQ{}\gdef\subfigcaptionR{}% +\gdef\subfigcaptionS{}\gdef\subfigcaptionT{}% +} +\clearallsubfigcaptions +% \end{macrocode} +% \end{macro} +%重定义|\@makesubfigurecaption|命令,将传入|\@makesubfigurecaption|命令中的子图 +%标题存入前面自定义的20个子图标题宏中,而不直接打印在原来的位置。 +%\changes{v0.6.5}{2014/03/01}{修复BUG:子图有不居中的情况。} +% \begin{macrocode} +\def\@makesubfigurecaption ##1##2{\setbox \@tempboxa \hbox {\subcapsize { +\subcaplabelfont ##1}{\subcapfont \ignorespaces }}\@tempdimb =-\subfigcapmargin +\multiply \@tempdimb \tw@ \advance \@tempdimb \@tempdima \hbox to\@tempdima +{\hss \ifdim \wd \@tempboxa >\@tempdimb \subfig@caption {##1}{}\else +\ifsubcapnooneline \subfig@caption {##1}{}\else \box \@tempboxa \fi \fi \hss } +\ifthenelse{\equal{\subfigcaptionA}{}}{\gdef\subfigcaptionA{{(a)}{\ignorespaces ##2}}} +{\ifthenelse{\equal{\subfigcaptionB}{}}{\gdef\subfigcaptionB{;{(b)}{\ignorespaces ##2}}} +{\ifthenelse{\equal{\subfigcaptionC}{}}{\gdef\subfigcaptionC{;{(c)}{\ignorespaces ##2}}} +{\ifthenelse{\equal{\subfigcaptionD}{}}{\gdef\subfigcaptionD{;{(d)}{\ignorespaces ##2}}} +{\ifthenelse{\equal{\subfigcaptionE}{}}{\gdef\subfigcaptionE{;{(e)}{\ignorespaces ##2}}} +{\ifthenelse{\equal{\subfigcaptionF}{}}{\gdef\subfigcaptionF{;{(f)}{\ignorespaces ##2}}} +{\ifthenelse{\equal{\subfigcaptionG}{}}{\gdef\subfigcaptionG{;{(g)}{\ignorespaces ##2}}} +{\ifthenelse{\equal{\subfigcaptionH}{}}{\gdef\subfigcaptionH{;{(h)}{\ignorespaces ##2}}} +{\ifthenelse{\equal{\subfigcaptionI}{}}{\gdef\subfigcaptionI{;{(i)}{\ignorespaces ##2}}} +{\ifthenelse{\equal{\subfigcaptionJ}{}}{\gdef\subfigcaptionJ{;{(j)}{\ignorespaces ##2}}} +{\ifthenelse{\equal{\subfigcaptionK}{}}{\gdef\subfigcaptionK{;{(k)}{\ignorespaces ##2}}} +{\ifthenelse{\equal{\subfigcaptionL}{}}{\gdef\subfigcaptionL{;{(l)}{\ignorespaces ##2}}} +{\ifthenelse{\equal{\subfigcaptionM}{}}{\gdef\subfigcaptionM{;{(m)}{\ignorespaces ##2}}} +{\ifthenelse{\equal{\subfigcaptionN}{}}{\gdef\subfigcaptionN{;{(n)}{\ignorespaces ##2}}} +{\ifthenelse{\equal{\subfigcaptionO}{}}{\gdef\subfigcaptionO{;{(o)}{\ignorespaces ##2}}} +{\ifthenelse{\equal{\subfigcaptionP}{}}{\gdef\subfigcaptionP{;{(p)}{\ignorespaces ##2}}} +{\ifthenelse{\equal{\subfigcaptionQ}{}}{\gdef\subfigcaptionQ{;{(q)}{\ignorespaces ##2}}} +{\ifthenelse{\equal{\subfigcaptionR}{}}{\gdef\subfigcaptionR{;{(r)}{\ignorespaces ##2}}} +{\ifthenelse{\equal{\subfigcaptionS}{}}{\gdef\subfigcaptionS{;{(s)}{\ignorespaces ##2}}} +{\ifthenelse{\equal{\subfigcaptionT}{}}{\gdef\subfigcaptionT{;{(t)}{\ignorespaces ##2}}} +{\gdef\subfigcaptionA{子图不能超过20个!!!}}}}}}}}}}}}}}}}}}}}}} +% \end{macrocode} +% \begin{macro}{\allsubpiccaptions} +% 该命令只是连续打印所有的子图名。 +% \begin{macrocode} +\newcommand{\allsubpiccaptions}{% +\subfigcaptionA\subfigcaptionB\subfigcaptionC\subfigcaptionD\subfigcaptionE% +\subfigcaptionF\subfigcaptionG\subfigcaptionH\subfigcaptionI\subfigcaptionJ% +\subfigcaptionK\subfigcaptionL\subfigcaptionM\subfigcaptionN\subfigcaptionO% +\subfigcaptionP\subfigcaptionQ\subfigcaptionR\subfigcaptionS\subfigcaptionT} +% \end{macrocode} +% \end{macro} +% 定义6个变量,分别是:多图环境整体的标签变量、多图环境整体的标题变量、 +% 临时存储子图标题的盒子(用于测量子图标题长度)、子图标题缩进量、子图标题序号 +% 缩进量(就是序号的宽度)、子图标题宽度。 +% \begin{macrocode} +\newcommand{\subpiclabel}{} +\newcommand{\subpiccaption}{} +\newsavebox{\tempsubpiccaptionbox} +\newlength{\tempsubpiccaptionindent} +\newlength{\tempsubpiccaptionheadindent} +\newlength{\tempsubpiccaptionwidth} +% \end{macrocode} +% \begin{environment}{pics}% %定义子图环境和插入子图命令 % \begin{macrocode} -\newcommand{\subpiclabel}{}%定义一个空的多图环境整体的标签变量 -\newcommand{\subpiccaption}{}%定义一个空的多图环境整体的标题变量 \newenvironment{pics}[3][htbp]{%定义多图环境 \renewcommand{\subpiclabel}{##3}%设置多图环境整体的标签 \renewcommand{\subpiccaption}{##2}%设置多图环境整体的标题。这里先定义两个空变量,又设置值,是因为在定义一个环境时,环境结尾中不能调用##2,##3等传入的值。所以要在环境结尾中插入标题和标签就只能这么做了。 -\begin{figure}[##1] -\centering} -{\caption{\subpiccaption} -\label{\subpiclabel} -\end{figure} +\begin{figure}[##1]% +\begin{center}% +}% +{% +\end{center}% +\raggedright% +\sbox{\tempsubpiccaptionbox}{\parbox{\textwidth}% +{\zihao{5}图~\thefigure~\subpiccaption}}% +\settowidth{\tempsubpiccaptionheadindent}{\zihao{5}图~\thefigure~}% +% \end{macrocode} +%这里用一个判断语句来根据主图题是否超过一行而分别处理。按照规范,不超过一行才居中, +%超过一行则左对齐。 +%\changes{v0.5.5}{2013/11/26}{修复BUG:无法引用子图的总标签问题。} +%\changes{v0.6.5}{2014/03/01}{修复BUG:当子图环境整体标题和子图标题都超过一行时,子图标题没有悬挂缩进的问题。} +%\changes{v0.6.9}{2014/03/08}{修复BUG:当子图环境整体标题中存在下标时错误判断为标题超出一行。} +% \begin{macrocode} +\ifthenelse{\lengthtest{\ht\tempsubpiccaptionbox > 16pt}}{%THEN +\noindent\caption{\subpiccaption}\label{\subpiclabel}\par% +\noindent\hspace*{\tempsubpiccaptionheadindent}% +\parbox{\textwidth-\tempsubpiccaptionheadindent}{\zihao{5}\allsubpiccaptions}% +}{%ELSE +{\centering\caption{\subpiccaption}\label{\subpiclabel}}\par +\sbox{\tempsubpiccaptionbox}{\zihao{5}图~\thefigure~\subpiccaption}% +\setlength{\tempsubpiccaptionindent}{\textwidth}% +\addtolength{\tempsubpiccaptionindent}{-\wd\tempsubpiccaptionbox}% +\setlength{\tempsubpiccaptionindent}{.5\tempsubpiccaptionindent}% +\setlength{\tempsubpiccaptionwidth}{\textwidth}% +\addtolength{\tempsubpiccaptionwidth}{-\tempsubpiccaptionindent}% +\addtolength{\tempsubpiccaptionwidth}{-\tempsubpiccaptionheadindent}% +\hspace*{\tempsubpiccaptionindent}\hspace*{\tempsubpiccaptionheadindent}% +\parbox{\tempsubpiccaptionwidth}{\zihao{5}\allsubpiccaptions}% +}% +\vspace{6bp}% +\end{figure}% +\clearallsubfigcaptions% } % \end{macrocode} % \end{environment} @@ -464,6 +725,7 @@ % \end{macro} % \subsection{页眉页脚设置} % \changes{v0.4.6}{2013/06/02}{修正bug:页脚字号改为小五} +% \changes{v0.6.7}{2014/03/04}{修正bug:缩略词表和主要符号表各自的第二页页眉不正确的问题。} % \begin{macro}{\mainmatterfancy} %定义正文版式设置 % \begin{macrocode} @@ -513,19 +775,19 @@ %定义主要符号表版式设置 % \begin{macrocode} \newcommand{\glossarymatterfancy}{%定义主要符号表版式设置 -\fancypagestyle{plain}{ \fancyhf{} \fancyhead[C]{\zihao{5}\glossaryname@uestcthesis}% \fancyfoot[C]{\zihao{-5}\thepage}% } % \end{macrocode} -%由于主要符号表在目录后面,而且是自动生成的。导致主要符号表的第一页页面还显示目录。 -%所以这里有一个BUG需要修正。glossary宏包提供的|\glossarypreamble|原本是空的宏, -%会自动插入在主要符号表的前面。 +% \end{macro} +% \begin{macro}{\acronymnamematterfancy} +%定义缩略词表版式设置 % \begin{macrocode} -\renewcommand{\glossarypreamble}{% -\fancyhead[C]{\zihao{5}\glossaryname@uestcthesis}%页眉居中打印“主要符号表” -} +\newcommand{\acronymnamematterfancy}{%定义缩略词表版式设置 +\fancyhf{} +\fancyhead[C]{\zihao{5}\acronymname@uestcthesis}% +\fancyfoot[C]{\zihao{-5}\thepage}% } % \end{macrocode} % \end{macro} @@ -578,6 +840,39 @@ %使章标题页使用plain版式,需要单独定义它。使它的页眉页脚与其他页一致。 } % \end{macrocode} +%定义图目录表目录版式 +% \begin{macrocode} +\newcommand{\figureslistmatterfancy}{ +\fancyhf{} +\fancyhead[C]{图目录}% +\fancyfoot[C]{\zihao{-5}\thepage}%页码位于页面底端,居中打印。 +} +\newcommand{\tableslistmatterfancy}{ +\fancyhf{} +\fancyhead[C]{表目录} +\fancyfoot[C]{\zihao{-5}\thepage}%页码位于页面底端,居中打印。 +} +\newcommand{\figureslistmatter}{ +\pagestyle{fancy} +\figureslistmatterfancy +\fancypagestyle{plain}{\figureslistmatterfancy} +} +\newcommand{\tableslistmatter}{ +\pagestyle{fancy} +\tableslistmatterfancy +\fancypagestyle{plain}{\tableslistmatterfancy} +} +\newcommand{\glossarymatter}{ +\pagestyle{fancy} +\glossarymatterfancy +\fancypagestyle{plain}{\glossarymatterfancy} +} +\newcommand{\acronymnamematter}{ +\pagestyle{fancy} +\acronymnamematterfancy +\fancypagestyle{plain}{\acronymnamematterfancy} +} +% \end{macrocode} % \end{macro} % \subsection{封面设置} %根据不同的学位,定义不同的封面设置。学校规定封面必须用文印中心提供的封面, @@ -593,7 +888,7 @@ % \end{macrocode} % \end{macro} % \begin{macro}{\major} -%设置专业命令 +%设置学科专业或工程领域命令 % \begin{macrocode} \newcommand{\major}[1]{ \newcommand{\@major}{#1} @@ -759,11 +1054,23 @@ \newcommand{\englishshcool}[1]{ \newcommand{\@englishshcool}{#1} } +\newcommand{\englishshcoolextraline}[1]{ +\newcommand{\@englishshcoolextraline}{#1} +} +% \end{macrocode} +% \end{macro} +% \begin{macro}{\majortype} +%设置工专业学位类别命令 +% \begin{macrocode} +\newcommand{\majortype}[1]{ +\newcommand{\@majortype}{#1} +} % \end{macrocode} % \end{macro} % \begin{macro}{\uestclogo} %插入学校LOGO的命令 %\changes{v0.4.1}{2013/05/04}{将学校的LOGO集成在cls文件里。} +%\changes{v0.5.6}{2013/12/25}{按照学校识别视觉系统修正了LOGO的颜色。} % \begin{macrocode} \begin{filecontents*}{logo.tex} % \end{macrocode} @@ -1203,7 +1510,7 @@ } } { -\newrgbcolor{curcolor}{0 0.33725491 0.62352943} +\newrgbcolor{curcolor}{0 0.36078431 0.63529412} \pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor] { \newpath @@ -1646,7 +1953,7 @@ } } { -\newrgbcolor{curcolor}{0 0.33725491 0.62352943} +\newrgbcolor{curcolor}{0 0.36078431 0.63529412} \pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor] { \newpath @@ -1665,7 +1972,7 @@ } } { -\newrgbcolor{curcolor}{0 0.33725491 0.62352943} +\newrgbcolor{curcolor}{0 0.36078431 0.63529412} \pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor] { \newpath @@ -1688,7 +1995,7 @@ } } { -\newrgbcolor{curcolor}{0 0.33725491 0.62352943} +\newrgbcolor{curcolor}{0 0.36078431 0.63529412} \pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor] { \newpath @@ -1705,7 +2012,7 @@ } } { -\newrgbcolor{curcolor}{0 0.33725491 0.62352943} +\newrgbcolor{curcolor}{0 0.36078431 0.63529412} \pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor] { \newpath @@ -1824,7 +2131,7 @@ } } { -\newrgbcolor{curcolor}{0 0.33725491 0.62352943} +\newrgbcolor{curcolor}{0 0.36078431 0.63529412} \pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor] { \newpath @@ -1853,7 +2160,7 @@ } } { -\newrgbcolor{curcolor}{0.9137255 0.32549021 0.15686275} +\newrgbcolor{curcolor}{0.9176471 0.46666667 0.11764706} \pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor] { \newpath @@ -1870,7 +2177,7 @@ } } { -\newrgbcolor{curcolor}{0.9137255 0.32549021 0.15686275} +\newrgbcolor{curcolor}{0.9176471 0.46666667 0.11764706} \pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor] { \newpath @@ -1884,7 +2191,7 @@ } } { -\newrgbcolor{curcolor}{0 0.33725491 0.62352943} +\newrgbcolor{curcolor}{0 0.36078431 0.63529412} \pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor] { \newpath @@ -1895,7 +2202,7 @@ } } { -\newrgbcolor{curcolor}{0.9137255 0.32549021 0.15686275} +\newrgbcolor{curcolor}{0.9176471 0.46666667 0.11764706} \pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor] { \newpath @@ -1935,7 +2242,7 @@ } } { -\newrgbcolor{curcolor}{0.9137255 0.32549021 0.15686275} +\newrgbcolor{curcolor}{0.9176471 0.46666667 0.11764706} \pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor] { \newpath @@ -3122,9 +3429,10 @@ \end{document} % \fi %\changes{v0.4.2}{2013/05/14}{针对默认编译器不能使用write18命令的情况,在不能正常显示logo时显示一段说明文字。} +% \changes{v0.6.4}{2014/02/25}{用withoutforepages选项控制是否编译LOGO} % \begin{macrocode} \end{filecontents*} - +\ifdef{\withoutforepages@uestcthesis}{}{%withoutforepages选项效果 \immediate\write18{latex logo}% \immediate\write18{dvips logo}% \IfFileExists{logo.dvi}{ @@ -3142,15 +3450,18 @@ 如果您是从MikTeX或CTAN.org处得到的此模板,请访问\url{https://github.com/shifujun/UESTCthesis}获取最新版本和相应的编译脚本。} } } +}%这个大括号是前面withoutforepages选项判断的ifdef命令的一部分。 % \end{macrocode} % \end{macro} % \subsubsection{学士学位封面} % \begin{macro}{\bachelortitlepage@uestcthesis} -%定义学士学位封面的格式 +% 定义学士学位封面的格式 % \begin{macrocode} \ifdefstring{\degree@uestcthesis}{bachelor}{ \renewcommand{\bachelortitlepage@uestcthesis}{ \renewcommand{\maketitle}{ +\setcounter{page}{1}%页码重置为1 +\pagenumbering{Alph}%页码使用大写罗马数字 \begin{titlepage} \begin{center} \zihao{3} @@ -3175,24 +3486,23 @@ {\zihao{3}指导单位~}\makebox[20em][c]{\uline{\hfill\@university\hfill}}\\[5mm] {\zihao{3}\@date} \end{center} +\clearpage{\pagestyle{empty}\cleardoublepage} \end{titlepage}}}}{} % \end{macrocode} % \end{macro} -% \subsubsection{硕士学位封面} -% \begin{macro}{\mastertitlepage@uestcthesis} -%定义硕士学位封面的格式 +% \subsubsection{硕博学位封面定义} +% \changes{v0.6.4}{2014/02/25}{将封面、中文扉页、英文扉页都独立出来。} +% \begin{macro}{\firsttitlepage@doctor} +% 博士学位论文封面。对应研究生院规范中的附1-1。 % \begin{macrocode} -\ifdefstring{\degree@uestcthesis}{master}{ -\renewcommand{\mastertitlepage@uestcthesis}{ -\renewcommand{\maketitle}{%定义封面的格式 -\begin{titlepage} +\newcommand{\firsttitlepage@doctor}{% \begin{center} {\zihao{2}电\enspace{}子\enspace{}科\enspace{}技\enspace{}大\enspace{}学}\\ {\zihao{-4}UNIVERSITY OF ELECTRONIC SCIENCE AND TECHNOLOGY OF CHINA}\\ ~\\ ~\\ -{\zihao{0}硕士学位论文}\\[12bp] -{\bf\zihao{3}MASTER THESIS}\\[2cm] +{\zihao{0}博士学位论文}\\[12bp] +{\bf\zihao{3}DOCTORAL DISSERTATION}\\[2cm] \uestclogobadge\\[2cm] \renewcommand{\ULthickness}{0.8pt} \renewcommand{\CJKunderlinecolor}{\color{black}} @@ -3209,95 +3519,52 @@ {\zihao{3}作者姓名~}\makebox[20em][c]{\zihao{3}\uline{\hfill\@author\hfill}}\\[5mm] {\zihao{3}指导教师~}\makebox[20em][c]{\zihao{3}\uline{\hfill\@advisername\hfill}}\\[5mm] \end{center} -\newpage -\thispagestyle{empty} -\noindent -{\zihao{-4}分类号}\makebox[15em][l]{\zihao{-4}\uline{~~~\@classnumber\hfill}} -{\zihao{-4}密级}\makebox[15em][l]{\zihao{-4}\uline{~~~\@securityclassification\hfill}}\\ -{\zihao{-4}UDC\textsuperscript{注1}\!}\makebox[15em][l]{\zihao{-4}\uline{~~~\@UDC\hfill}}\\ +\clearpage{\pagestyle{empty}\cleardoublepage} +} +% \end{macrocode} +% \end{macro} +% \begin{macro}{\firsttitlepage@engineeringdoctor} +% 工程博士学位论文封面。对应研究生院规范中的附1-2。 +% \begin{macrocode} +\newcommand{\firsttitlepage@engineeringdoctor}{% \begin{center} -{\zihao{-0}学\quad{}位\quad{}论\quad{}文}\\ +{\zihao{2}电\enspace{}子\enspace{}科\enspace{}技\enspace{}大\enspace{}学}\\ +{\zihao{-4}UNIVERSITY OF ELECTRONIC SCIENCE AND TECHNOLOGY OF CHINA}\\ +~\\ +~\\ +{\zihao{0}工程博士学位论文}\\[12bp] +{\bf\zihao{3}ENGINEERING DOCTORAL DISSERTATION}\\[2cm] +\uestclogobadge\\[2cm] +\renewcommand{\ULthickness}{0.8pt} +\renewcommand{\CJKunderlinecolor}{\color{black}} +\linespread{1.25} +\noindent +\parbox[t][14ex][t]{\linewidth}{\centering +{\zihao{-2} 论文题目~~}{\zihao{3}\uline{\@title}} +}\\[3mm] +\linespread{1.391} +\renewcommand{\ULthickness}{0.4pt} {\zihao{3}~}\\ -\makebox[\linewidth][c]{\zihao{3}\uline{\hfill\@title\hfill}}\\ -{\zihao{-4}(题名和副题名)}\\ -{\zihao{5}~}\\ -{\zihao{5}~}\\ -\makebox[10em][c]{\zihao{3}\uline{\hfill\@author\hfill}}\\ -{\zihao{-4}(作者姓名)}\\ -{\zihao{-4}~}\\ -{\zihao{5}~}\\ -{\zihao{-4}指导教师}\makebox[29em][c]{\zihao{-4}\uline{\hfill\@advisername 、\@advisertitle 、\@adviserinstitution \hfill}}\\[5bp] -{\zihao{-4}\qquad\qquad}\makebox[29em][c]{\zihao{-4}\uline{\hfill\ifthenelse{\isundefined{\@adviserBname}}{}{\@adviserBname 、\@adviserBtitle 、\@adviserBinstitution }\hfill}}\\[5bp] -{\zihao{-4}\qquad\qquad}\makebox[29em][c]{\zihao{-4}\uline{\hfill\ifthenelse{\isundefined{\@adviserCname}}{}{\@adviserBname 、\@adviserCtitle 、\@adviserCinstitution }\hfill}}\\[5bp] -{\zihao{-4}\qquad\qquad}\makebox[29em][c]{\zihao{-4}\uline{\hfill\ifthenelse{\isundefined{\@adviserDname}}{}{\@adviserBname 、\@adviserDtitle 、\@adviserDinstitution }\hfill}}\\[5bp] -{\zihao{-4}(姓名、职称、单位名称)}\\[8bp] -\end{center} -{\zihao{-4}申请学位级别}\makebox[10em][l]{\zihao{-4}\uline{\hfill\@degree\hfill}} -{\zihao{-4}学科专业}\makebox[15em][l]{\zihao{-4}\uline{\hfill\@major\hfill}}\\[13bp] -{\zihao{-4}提交论文日期}\makebox[10em][l]{\zihao{-4}\uline{\hfill\@date\hfill}} -{\zihao{-4}论文答辩日期}\makebox[13em][l]{\zihao{-4}\uline{\hfill\@oraldefensedate\hfill}}\\[13bp] -{\zihao{-4}学位授予单位和日期}\makebox[26em][l]{\zihao{3}\uline{\hfill 电子科技大学\hfill\@awarddate}}\\[13bp] -{\zihao{-4}答辩委员会主席}\makebox[16em][l]{\zihao{-4}\uline{\hfill\@chairman\hfill}}\\[13bp] -{\zihao{-4}评阅人}\makebox[32em][l]{\zihao{-4}\uline{\hfill\@appraiser\hfill}}\\ -\vfill -{\zihao{5}注1:注明《国际十进分类法UDC》的类号。} -\newpage -\thispagestyle{empty} -\begin{center} -{\zihao{-4}~}\\ -{\zihao{-4}~}\\ -{\zihao{-4}~}\\ -{\bf\zihao{-2}\@englishtitle}\\ -\vfill -{\zihao{-3}A Thesis Submitted to}\\[1ex] -{\zihao{-3}University of Electronic Science and Technology of China}\\ -\vspace{3cm} -\makebox[6em][r]{\zihao{4}Major:}\makebox[25em][l]{\zihao{4}\uline{\hfill\@englishmajor\hfill}}\\[1ex] -\makebox[6em][r]{\zihao{4}Author:}\makebox[25em][l]{\zihao{4}\uline{\hfill\@englishauthor\hfill}}\\[1ex] -\makebox[6em][r]{\zihao{4}Advisor:}\makebox[25em][l]{\zihao{4}\uline{\hfill\@englishadvisor\hfill}}\\[1ex] -\makebox[6em][r]{\zihao{4}School:}\makebox[25em][l]{\zihao{4}\uline{\hfill\@englishshcool\hfill}}\\[1ex] -\end{center} -\newpage -\thispagestyle{empty} -\linespread{1.5} -\begin{center} -{\bf\zihao{-2}独创性声明}\par -\end{center} -{\zihao{4}\qquad 本人声明所呈交的学位论文是本人在导师指导下进行的研究工作及取得的研究成果。据我所知,除了文中特别加以标注和致谢的地方外,论文中不包含其他人已经发表或撰写过的研究成果,也不包含为获得电子科技大学或其它教育机构的学位或证书而使用过的材料。与我一同工作的同志对本研究所做的任何贡献均已在论文中作了明确的说明并表示谢意。\par -~\par -作者签名:\makebox[5em][l]{\uline{\hfill}}\hfill -日期:\qquad{}年\qquad{}月\qquad{}日 \par -~\par -\begin{center} -{\bf\zihao{-2}论文使用授权}\par +{\zihao{3}工程领域~}\makebox[20em][c]{\zihao{3}\uline{\hfill\@major\hfill}}\\[5mm] +{\zihao{3}学\qquad 号~}\makebox[20em][c]{\zihao{3}\uline{\hfill\@stuid\hfill}}\\[5mm] +{\zihao{3}作者姓名~}\makebox[20em][c]{\zihao{3}\uline{\hfill\@author\hfill}}\\[5mm] +{\zihao{3}指导教师~}\makebox[20em][c]{\zihao{3}\uline{\hfill\@advisername\hfill}}\\[5mm] \end{center} -{\zihao{4}\qquad 本学位论文作者完全了解电子科技大学有关保留、使用学位论文的规定,有权保留并向国家有关部门或机构送交论文的复印件和磁盘,允许论文被查阅和借阅。本人授权电子科技大学可以将学位论文的全部或部分内容编入有关数据库进行检索,可以采用影印、缩印或扫描等复制手段保存、汇编学位论文。\par -(保密的学位论文在解密后应遵守此规定) \par -~\par -} -\qquad 作者签名:\makebox[5em][l]{\uline{\hfill}}\hfill -导师签名:\makebox[7em][l]{\uline{\hfill}}\par -\hfill 日期:\qquad{}年\qquad{}月\qquad{}日 \par +\clearpage{\pagestyle{empty}\cleardoublepage} } -\linespread{1.391} -\end{titlepage}}}}{} % \end{macrocode} % \end{macro} -% \subsubsection{博士学位封面} -% \begin{macro}{\doctortitlepage@uestcthesis} -%定义博士学位封面的格式 +% \begin{macro}{\firsttitlepage@master} +% 硕士学位论文封面。对应研究生院规范中的附1-3。 % \begin{macrocode} -\ifdefstring{\degree@uestcthesis}{doctor}{ -\renewcommand{\doctortitlepage@uestcthesis}{ -\renewcommand{\maketitle}{%定义封面的格式 -\begin{titlepage} +\newcommand{\firsttitlepage@master}{% \begin{center} {\zihao{2}电\enspace{}子\enspace{}科\enspace{}技\enspace{}大\enspace{}学}\\ {\zihao{-4}UNIVERSITY OF ELECTRONIC SCIENCE AND TECHNOLOGY OF CHINA}\\ ~\\ ~\\ -{\zihao{0}博士学位论文}\\[12bp] -{\bf\zihao{3}DOCTORAL DISSERTATION}\\[2cm] +{\zihao{0}硕士学位论文}\\[12bp] +{\bf\zihao{3}MASTER THESIS}\\[2cm] \uestclogobadge\\[2cm] \renewcommand{\ULthickness}{0.8pt} \renewcommand{\CJKunderlinecolor}{\color{black}} @@ -3314,38 +3581,249 @@ {\zihao{3}作者姓名~}\makebox[20em][c]{\zihao{3}\uline{\hfill\@author\hfill}}\\[5mm] {\zihao{3}指导教师~}\makebox[20em][c]{\zihao{3}\uline{\hfill\@advisername\hfill}}\\[5mm] \end{center} +\clearpage{\pagestyle{empty}\cleardoublepage} +} +% \end{macrocode} +% \end{macro} +% \begin{macro}{\firsttitlepage@professionalmaster} +% 专业学位硕士学位论文封面。对应研究生院规范中的附1-4。 +% \begin{macrocode} +\newcommand{\firsttitlepage@professionalmaster}{% +\begin{center} +{\zihao{2}电\enspace{}子\enspace{}科\enspace{}技\enspace{}大\enspace{}学}\\ +{\zihao{-4}UNIVERSITY OF ELECTRONIC SCIENCE AND TECHNOLOGY OF CHINA}\\ +~\\ +~\\ +{\zihao{0}专业学位硕士学位论文}\\[12bp] +{\bf\zihao{3}MASTER THESIS FOR PROFESSIONAL DEGREE}\\[2cm] +\uestclogobadge\\[2cm] +\renewcommand{\ULthickness}{0.8pt} +\renewcommand{\CJKunderlinecolor}{\color{black}} +\linespread{1.25} +\noindent +\parbox[t][14ex][t]{\linewidth}{\centering +{\zihao{-2} 论文题目~~}{\zihao{3}\uline{\@title}} +}\\[3mm] +\linespread{1.391} +\renewcommand{\ULthickness}{0.4pt} +{\zihao{3}~}\\ +\makebox[12em][s]{\zihao{3}专业学位类别}~\makebox[9.26cm][c]{\zihao{3}\uline{\hfill\@majortype\hfill}}\\[5mm] +\makebox[12em][s]{\zihao{3}学号}~\makebox[9.26cm][c]{\zihao{3}\uline{\hfill\@stuid\hfill}}\\[5mm] +\makebox[12em][s]{\zihao{3}作者姓名}~\makebox[9.26cm][c]{\zihao{3}\uline{\hfill\@author\hfill}}\\[5mm] +\makebox[12em][s]{\zihao{3}指导教师}~\makebox[9.26cm][c]{\zihao{3}\uline{\hfill\@advisername\hfill}}\\[5mm] +\end{center} +\clearpage{\pagestyle{empty}\cleardoublepage} +} +% \end{macrocode} +% \end{macro} +% \subsubsection{硕博学位中文扉页} +% \changes{v0.6.3}{2014/02/24}{修订硕博封面第2页,使之和学校范例尽量一样。} +% \begin{macro}{\secondtitlepage@Academic} +% 博士和学术型硕士中文扉页。对应研究生院规范中的附2-1。 +% \begin{macrocode} +\newcommand{\secondtitlepage@Academic}{% \newpage \thispagestyle{empty} +\vspace*{-4.1mm} \noindent -{\zihao{-4}分类号}\makebox[15em][l]{\zihao{-4}\uline{~~~\@classnumber\hfill}} -{\zihao{-4}密级}\makebox[15em][l]{\zihao{-4}\uline{~~~\@securityclassification\hfill}}\\ -{\zihao{-4}UDC\textsuperscript{注1}\!}\makebox[15em][l]{\zihao{-4}\uline{~~~\@UDC\hfill}}\\ +{\zihao{-4}分类号}\makebox[6.35cm][l]{\zihao{5}\uline{~~~\@classnumber\hfill}} +{\zihao{-4}密级}\makebox[5.24cm][l]{\zihao{4}\uline{~~~\@securityclassification\hfill}}\\[2.3mm] +{\zihao{-4}UDC\zihao{-5}\textsuperscript{~注1}\!}\makebox[6.48cm][l]{\zihao{5}\uline{~~~\@UDC\hfill}}\\[1.1mm] \begin{center} {\zihao{-0}学\quad{}位\quad{}论\quad{}文}\\ -{\zihao{3}~}\\ -\makebox[\linewidth][c]{\zihao{3}\uline{\hfill\@title\hfill}}\\ +{\zihao{3}~}\\[3.3mm] +\makebox[14.99cm][c]{\zihao{3}\uline{\hfill}}\\[0.82cm] +\makebox[14.99cm][c]{\zihao{3}\uline{\hfill}}\\ +\vspace{-2.47cm} +\noindent\parbox[t][2cm][t]{34em}{\centering\zihao{2}\baselineskip=39.13766pt\@title}\\[6.8mm] {\zihao{-4}(题名和副题名)}\\ {\zihao{5}~}\\ +\vspace{-3mm} +\makebox[4.13cm][c]{\zihao{3}\@author}\\\vspace{-0.58cm} +\makebox[4.13cm][c]{\zihao{3}\uline{\hfill}}\\[3mm] +{\zihao{-4}(作者姓名)}\\ +{\zihao{-4}~}\\ {\zihao{5}~}\\ -\makebox[10em][c]{\zihao{3}\uline{\hfill\@author\hfill}}\\ +\vspace{-5mm} +{\zihao{-4}指导教师}\makebox[11.35cm][c]{\zihao{3}\uline{\hfill% +\@advisername 、\@advisertitle 、\@adviserinstitution \hfill}}\\[5bp] +{\zihao{-4}\qquad\qquad}\makebox[11.35cm][c]{\zihao{3}\uline{\hfill\ifthenelse{% +\isundefined{\@adviserBname}}{}{\@adviserBname 、\@adviserBtitle 、\@adviserBinstitution }\hfill}}\\[5bp] +{\zihao{-4}\qquad\qquad}\makebox[11.35cm][c]{\zihao{3}\uline{\hfill\ifthenelse{% +\isundefined{\@adviserCname}}{}{\@adviserCname 、\@adviserCtitle 、\@adviserCinstitution }\hfill}}\\[5bp] +{\zihao{-4}\qquad\qquad}\makebox[11.35cm][c]{\zihao{3}\uline{\hfill\ifthenelse{% +\isundefined{\@adviserDname}}{}{\@adviserDname 、\@adviserDtitle 、\@adviserDinstitution }\hfill}}\\[6.5mm] +{\zihao{-4}(姓名、职称、单位名称)}\\ +\vspace{-3mm} +\end{center} +{\zihao{-4}申请学位级别}\makebox[10em][l]{\zihao{3}\uline{\hfill\@degree\hfill}} +{\zihao{-4}学科专业}\makebox[15em][l]{\zihao{3}\uline{\hfill\@major\hfill}}\\[13bp] +{\zihao{-4}提交论文日期}\makebox[10em][l]{\zihao{3}\uline{\hfill\@date\hfill}} +{\zihao{-4}论文答辩日期}\makebox[13em][l]{\zihao{3}\uline{\hfill\@oraldefensedate\hfill}}\\[13bp] +{\zihao{-4}学位授予单位和日期}\makebox[26em][l]{\zihao{3}\uline{\hfill 电子科技大学\hfill\@awarddate}}\\[13bp] +{\zihao{-4}答辩委员会主席}\makebox[16em][l]{\zihao{3}\uline{\hfill\@chairman\hfill}}\\[13bp] +{\zihao{-4}评阅人}\makebox[32em][l]{\zihao{3}\uline{\hfill\@appraiser\hfill}}\\[3mm] +{\zihao{5}注1:注明《国际十进分类法UDC》的类号。}% +\clearpage{\pagestyle{empty}\cleardoublepage} +}% +% \end{macrocode} +% \end{macro} +% \begin{macro}{\secondtitlepage@Engineering} +% 工程博士/工程硕士中文扉页。对应研究生院规范中的附2-2。 +% \begin{macrocode} +\newcommand{\secondtitlepage@Engineering}{% +\newpage +\thispagestyle{empty} +\vspace*{-4.1mm} +\noindent +{\zihao{-4}分类号}\makebox[6.35cm][l]{\zihao{5}\uline{~~~\@classnumber\hfill}} +{\zihao{-4}密级}\makebox[5.24cm][l]{\zihao{4}\uline{~~~\@securityclassification\hfill}}\\[2.3mm] +{\zihao{-4}UDC\zihao{-5}\textsuperscript{~注1}\!}\makebox[6.48cm][l]{\zihao{5}\uline{~~~\@UDC\hfill}}\\[1.1mm] +\begin{center} +{\zihao{-0}学\quad{}位\quad{}论\quad{}文}\\ +{\zihao{3}~}\\[3.3mm] +\makebox[14.99cm][c]{\zihao{3}\uline{\hfill}}\\[0.82cm] +\makebox[14.99cm][c]{\zihao{3}\uline{\hfill}}\\ +\vspace{-2.47cm} +\noindent\parbox[t][2cm][t]{34em}{\centering\zihao{2}\baselineskip=39.13766pt\@title}\\[6.8mm] +{\zihao{-4}(题名和副题名)}\\ +{\zihao{5}~}\\ +\vspace{-3mm} +\makebox[4.13cm][c]{\zihao{3}\@author}\\\vspace{-0.58cm} +\makebox[4.13cm][c]{\zihao{3}\uline{\hfill}}\\[3mm] {\zihao{-4}(作者姓名)}\\ {\zihao{-4}~}\\ {\zihao{5}~}\\ -{\zihao{-4}指导教师}\makebox[29em][c]{\zihao{-4}\uline{\hfill\@advisername 、\@advisertitle 、\@adviserinstitution \hfill}}\\[5bp] -{\zihao{-4}\qquad\qquad}\makebox[29em][c]{\zihao{-4}\uline{\hfill\ifthenelse{\isundefined{\@adviserBname}}{}{\@adviserBname 、\@adviserBtitle 、\@adviserBinstitution }\hfill}}\\[5bp] -{\zihao{-4}\qquad\qquad}\makebox[29em][c]{\zihao{-4}\uline{\hfill\ifthenelse{\isundefined{\@adviserCname}}{}{\@adviserBname 、\@adviserCtitle 、\@adviserCinstitution }\hfill}}\\[5bp] -{\zihao{-4}\qquad\qquad}\makebox[29em][c]{\zihao{-4}\uline{\hfill\ifthenelse{\isundefined{\@adviserDname}}{}{\@adviserBname 、\@adviserDtitle 、\@adviserDinstitution }\hfill}}\\[5bp] -{\zihao{-4}(姓名、职称、单位名称)}\\[8bp] +\vspace{-5mm} +{\zihao{-4}指导教师}\makebox[11.35cm][c]{\zihao{3}\uline{\hfill% +\@advisername 、\@advisertitle 、\@adviserinstitution \hfill}}\\[5bp] +{\zihao{-4}\qquad\qquad}\makebox[11.35cm][c]{\zihao{3}\uline{\hfill\ifthenelse{% +\isundefined{\@adviserBname}}{}{\@adviserBname 、\@adviserBtitle 、\@adviserBinstitution }\hfill}}\\[5bp] +{\zihao{-4}\qquad\qquad}\makebox[11.35cm][c]{\zihao{3}\uline{\hfill\ifthenelse{% +\isundefined{\@adviserCname}}{}{\@adviserCname 、\@adviserCtitle 、\@adviserCinstitution }\hfill}}\\[5bp] +{\zihao{-4}\qquad\qquad}\makebox[11.35cm][c]{\zihao{3}\uline{\hfill\ifthenelse{% +\isundefined{\@adviserDname}}{}{\@adviserDname 、\@adviserDtitle 、\@adviserDinstitution }\hfill}}\\[6.5mm] +{\zihao{-4}(姓名、职称、单位名称)}\\ +\vspace{-3mm} \end{center} -{\zihao{-4}申请学位级别}\makebox[10em][l]{\zihao{-4}\uline{\hfill\@degree\hfill}} -{\zihao{-4}学科专业}\makebox[15em][l]{\zihao{-4}\uline{\hfill\@major\hfill}}\\[13bp] -{\zihao{-4}提交论文日期}\makebox[10em][l]{\zihao{-4}\uline{\hfill\@date\hfill}} -{\zihao{-4}论文答辩日期}\makebox[13em][l]{\zihao{-4}\uline{\hfill\@oraldefensedate\hfill}}\\[13bp] +{\zihao{-4}申请学位级别}\makebox[10em][l]{\zihao{3}\uline{\hfill\@degree\hfill}} +{\zihao{-4}专业学位类别}\makebox[13em][l]{\zihao{3}\uline{\hfill\@majortype\hfill}}\\[13bp] +{\zihao{-4}工程领域名称}\makebox[29em][l]{\zihao{3}\uline{\hfill\@major\hfill}}\\[13bp] +{\zihao{-4}提交论文日期}\makebox[10em][l]{\zihao{3}\uline{\hfill\@date\hfill}} +{\zihao{-4}论文答辩日期}\makebox[13em][l]{\zihao{3}\uline{\hfill\@oraldefensedate\hfill}}\\[13bp] {\zihao{-4}学位授予单位和日期}\makebox[26em][l]{\zihao{3}\uline{\hfill 电子科技大学\hfill\@awarddate}}\\[13bp] -{\zihao{-4}答辩委员会主席}\makebox[16em][l]{\zihao{-4}\uline{\hfill\@chairman\hfill}}\\[13bp] -{\zihao{-4}评阅人}\makebox[32em][l]{\zihao{-4}\uline{\hfill\@appraiser\hfill}}\\ -\vfill -{\zihao{5}注1:注明《国际十进分类法UDC》的类号。} +{\zihao{-4}答辩委员会主席}\makebox[16em][l]{\zihao{3}\uline{\hfill\@chairman\hfill}}\\[13bp] +{\zihao{-4}评阅人}\makebox[32em][l]{\zihao{3}\uline{\hfill\@appraiser\hfill}}\\[3mm] +{\zihao{5}注1:注明《国际十进分类法UDC》的类号。}% +\clearpage{\pagestyle{empty}\cleardoublepage} +}% +% \end{macrocode} +% \end{macro} +% \begin{macro}{\secondtitlepage@Professional} +% 其他专业学位硕士中文扉页。对应研究生院规范中的附2-3。 +% \begin{macrocode} +\newcommand{\secondtitlepage@Professional}{% +\newpage +\thispagestyle{empty} +\vspace*{-4.1mm} +\noindent +{\zihao{-4}分类号}\makebox[6.35cm][l]{\zihao{5}\uline{~~~\@classnumber\hfill}} +{\zihao{-4}密级}\makebox[5.24cm][l]{\zihao{4}\uline{~~~\@securityclassification\hfill}}\\[2.3mm] +{\zihao{-4}UDC\zihao{-5}\textsuperscript{~注1}\!}\makebox[6.48cm][l]{\zihao{5}\uline{~~~\@UDC\hfill}}\\[1.1mm] +\begin{center} +{\zihao{-0}学\quad{}位\quad{}论\quad{}文}\\ +{\zihao{3}~}\\[3.3mm] +\makebox[14.99cm][c]{\zihao{3}\uline{\hfill}}\\[0.82cm] +\makebox[14.99cm][c]{\zihao{3}\uline{\hfill}}\\ +\vspace{-2.47cm} +\noindent\parbox[t][2cm][t]{34em}{\centering\zihao{2}\baselineskip=39.13766pt\@title}\\[6.8mm] +{\zihao{-4}(题名和副题名)}\\ +{\zihao{5}~}\\ +\vspace{-3mm} +\makebox[4.13cm][c]{\zihao{3}\@author}\\\vspace{-0.58cm} +\makebox[4.13cm][c]{\zihao{3}\uline{\hfill}}\\[3mm] +{\zihao{-4}(作者姓名)}\\ +{\zihao{-4}~}\\ +{\zihao{5}~}\\ +\vspace{-5mm} +{\zihao{-4}指导教师}\makebox[11.35cm][c]{\zihao{3}\uline{\hfill% +\@advisername 、\@advisertitle 、\@adviserinstitution \hfill}}\\[5bp] +{\zihao{-4}\qquad\qquad}\makebox[11.35cm][c]{\zihao{3}\uline{\hfill\ifthenelse{% +\isundefined{\@adviserBname}}{}{\@adviserBname 、\@adviserBtitle 、\@adviserBinstitution }\hfill}}\\[5bp] +{\zihao{-4}\qquad\qquad}\makebox[11.35cm][c]{\zihao{3}\uline{\hfill\ifthenelse{% +\isundefined{\@adviserCname}}{}{\@adviserCname 、\@adviserCtitle 、\@adviserCinstitution }\hfill}}\\[5bp] +{\zihao{-4}\qquad\qquad}\makebox[11.35cm][c]{\zihao{3}\uline{\hfill\ifthenelse{% +\isundefined{\@adviserDname}}{}{\@adviserDname 、\@adviserDtitle 、\@adviserDinstitution }\hfill}}\\[6.5mm] +{\zihao{-4}(姓名、职称、单位名称)}\\ +\vspace{-3mm} +\end{center} +{\zihao{-4}申请学位级别}\makebox[10em][l]{\zihao{3}\uline{\hfill\@degree\hfill}} +{\zihao{-4}专业学位类别}\makebox[13em][l]{\zihao{3}\uline{\hfill\@majortype\hfill}}\\[13bp] +{\zihao{-4}提交论文日期}\makebox[10em][l]{\zihao{3}\uline{\hfill\@date\hfill}} +{\zihao{-4}论文答辩日期}\makebox[13em][l]{\zihao{3}\uline{\hfill\@oraldefensedate\hfill}}\\[13bp] +{\zihao{-4}学位授予单位和日期}\makebox[26em][l]{\zihao{3}\uline{\hfill 电子科技大学\hfill\@awarddate}}\\[13bp] +{\zihao{-4}答辩委员会主席}\makebox[16em][l]{\zihao{3}\uline{\hfill\@chairman\hfill}}\\[13bp] +{\zihao{-4}评阅人}\makebox[32em][l]{\zihao{3}\uline{\hfill\@appraiser\hfill}}\\[3mm] +{\zihao{5}注1:注明《国际十进分类法UDC》的类号。}% +\clearpage{\pagestyle{empty}\cleardoublepage} +}% +% \end{macrocode} +% \end{macro} +% \begin{macro}{\secondtitlepage@ResearchReport} +% 硕士留学生研究报告类中文扉页。对应研究生院规范中的附2-4。 +% \begin{macrocode} +\newcommand{\secondtitlepage@ResearchReport}{% +\newpage +\thispagestyle{empty} +\vspace*{-4.1mm} +\noindent +{\zihao{-4}分类号}\makebox[6.35cm][l]{\zihao{5}\uline{~~~\@classnumber\hfill}} +{\zihao{-4}密级}\makebox[5.24cm][l]{\zihao{4}\uline{~~~\@securityclassification\hfill}}\\[2.3mm] +{\zihao{-4}UDC\zihao{-5}\textsuperscript{~注1}\!}\makebox[6.48cm][l]{\zihao{5}\uline{~~~\@UDC\hfill}}\\[1.1mm] +\begin{center} +{\zihao{-0}研\quad{}究\quad{}报\quad{}告}\\ +{\zihao{3}~}\\[3.3mm] +\makebox[14.99cm][c]{\zihao{3}\uline{\hfill}}\\[0.82cm] +\makebox[14.99cm][c]{\zihao{3}\uline{\hfill}}\\ +\vspace{-2.47cm} +\noindent\parbox[t][2cm][t]{34em}{\centering\zihao{2}\baselineskip=39.13766pt\@title}\\[6.8mm] +{\zihao{-4}(题名和副题名)}\\ +{\zihao{5}~}\\ +\vspace{-3mm} +\makebox[4.13cm][c]{\zihao{3}\@author}\\\vspace{-0.58cm} +\makebox[4.13cm][c]{\zihao{3}\uline{\hfill}}\\[3mm] +{\zihao{-4}(作者姓名)}\\ +{\zihao{-4}~}\\ +{\zihao{5}~}\\ +\vspace{-5mm} +{\zihao{-4}指导教师}\makebox[11.35cm][c]{\zihao{3}\uline{\hfill% +\@advisername 、\@advisertitle 、\@adviserinstitution \hfill}}\\[5bp] +{\zihao{-4}\qquad\qquad}\makebox[11.35cm][c]{\zihao{3}\uline{\hfill\ifthenelse{% +\isundefined{\@adviserBname}}{}{\@adviserBname 、\@adviserBtitle 、\@adviserBinstitution }\hfill}}\\[5bp] +{\zihao{-4}\qquad\qquad}\makebox[11.35cm][c]{\zihao{3}\uline{\hfill\ifthenelse{% +\isundefined{\@adviserCname}}{}{\@adviserCname 、\@adviserCtitle 、\@adviserCinstitution }\hfill}}\\[5bp] +{\zihao{-4}\qquad\qquad}\makebox[11.35cm][c]{\zihao{3}\uline{\hfill\ifthenelse{% +\isundefined{\@adviserDname}}{}{\@adviserDname 、\@adviserDtitle 、\@adviserDinstitution }\hfill}}\\[6.5mm] +{\zihao{-4}(姓名、职称、单位名称)}\\ +\vspace{-3mm} +\end{center} +{\zihao{-4}申请学位级别}\makebox[10em][l]{\zihao{3}\uline{\hfill\@degree\hfill}} +{\zihao{-4}学科专业}\makebox[15em][l]{\zihao{3}\uline{\hfill\@major\hfill}}\\[13bp] +{\zihao{-4}提交论文日期}\makebox[10em][l]{\zihao{3}\uline{\hfill\@date\hfill}} +{\zihao{-4}论文答辩日期}\makebox[13em][l]{\zihao{3}\uline{\hfill\@oraldefensedate\hfill}}\\[13bp] +{\zihao{-4}学位授予单位和日期}\makebox[26em][l]{\zihao{3}\uline{\hfill 电子科技大学\hfill\@awarddate}}\\[13bp] +{\zihao{-4}答辩委员会主席}\makebox[16em][l]{\zihao{3}\uline{\hfill\@chairman\hfill}}\\[13bp] +{\zihao{-4}评阅人}\makebox[32em][l]{\zihao{3}\uline{\hfill\@appraiser\hfill}}\\[3mm] +{\zihao{5}注1:注明《国际十进分类法UDC》的类号。}% +\clearpage{\pagestyle{empty}\cleardoublepage} +}% +% \end{macrocode} +% \end{macro} +% \subsubsection{硕博学位英文扉页} +% \begin{macro}{\thirdtitlepage@Doctor} +% 博士英文扉页。对应研究生院规范中的附3。 +% \begin{macrocode} +\newcommand{\thirdtitlepage@Doctor}{% \newpage \thispagestyle{empty} \begin{center} @@ -3361,7 +3839,73 @@ \makebox[6em][r]{\zihao{4}Author:}\makebox[25em][l]{\zihao{4}\uline{\hfill\@englishauthor\hfill}}\\[1ex] \makebox[6em][r]{\zihao{4}Advisor:}\makebox[25em][l]{\zihao{4}\uline{\hfill\@englishadvisor\hfill}}\\[1ex] \makebox[6em][r]{\zihao{4}School:}\makebox[25em][l]{\zihao{4}\uline{\hfill\@englishshcool\hfill}}\\[1ex] +\ifdef{\@englishshcoolextraline}{%可能有的额外一行学院英文名称。为一行显示不下的学院英文名称准备。 +\makebox[6em][r]{}\makebox[25em][l]{\zihao{4}\uline{\hfill\@englishshcoolextraline\hfill}}\\[1ex]% +}{} \end{center} +\clearpage{\pagestyle{empty}\cleardoublepage} +} +% \end{macrocode} +% \end{macro} +% \begin{macro}{\thirdtitlepage@Master} +% 硕士英文扉页。对应研究生院规范中的附3。 +% \begin{macrocode} +\newcommand{\thirdtitlepage@Master}{% +\newpage +\thispagestyle{empty} +\begin{center} +{\zihao{-4}~}\\ +{\zihao{-4}~}\\ +{\zihao{-4}~}\\ +{\bf\zihao{-2}\@englishtitle}\\ +\vfill +{\zihao{-3}A Master Thesis Submitted to}\\[1ex] +{\zihao{-3}University of Electronic Science and Technology of China}\\ +\vspace{3cm} +\makebox[6em][r]{\zihao{4}Major:}\makebox[25em][l]{\zihao{4}\uline{\hfill\@englishmajor\hfill}}\\[1ex] +\makebox[6em][r]{\zihao{4}Author:}\makebox[25em][l]{\zihao{4}\uline{\hfill\@englishauthor\hfill}}\\[1ex] +\makebox[6em][r]{\zihao{4}Advisor:}\makebox[25em][l]{\zihao{4}\uline{\hfill\@englishadvisor\hfill}}\\[1ex] +\makebox[6em][r]{\zihao{4}School:}\makebox[25em][l]{\zihao{4}\uline{\hfill\@englishshcool\hfill}}\\[1ex] +\ifdef{\@englishshcoolextraline}{%可能有的额外一行学院英文名称。为一行显示不下的学院英文名称准备。 +\makebox[6em][r]{}\makebox[25em][l]{\zihao{4}\uline{\hfill\@englishshcoolextraline\hfill}}\\[1ex]% +}{} +\end{center} +\clearpage{\pagestyle{empty}\cleardoublepage} +} +% \end{macrocode} +% \end{macro} +% \begin{macro}{\thirdtitlepage@MasterResearchReport} +% 硕士研究报告英文扉页。对应研究生院规范中的附3。 +% \begin{macrocode} +\newcommand{\thirdtitlepage@MasterResearchReport}{% +\newpage +\thispagestyle{empty} +\begin{center} +{\zihao{-4}~}\\ +{\zihao{-4}~}\\ +{\zihao{-4}~}\\ +{\bf\zihao{-2}\@englishtitle}\\ +\vfill +{\zihao{-3}A Master Research Report Submitted to}\\[1ex] +{\zihao{-3}University of Electronic Science and Technology of China}\\ +\vspace{3cm} +\makebox[6em][r]{\zihao{4}Major:}\makebox[25em][l]{\zihao{4}\uline{\hfill\@englishmajor\hfill}}\\[1ex] +\makebox[6em][r]{\zihao{4}Author:}\makebox[25em][l]{\zihao{4}\uline{\hfill\@englishauthor\hfill}}\\[1ex] +\makebox[6em][r]{\zihao{4}Advisor:}\makebox[25em][l]{\zihao{4}\uline{\hfill\@englishadvisor\hfill}}\\[1ex] +\makebox[6em][r]{\zihao{4}School:}\makebox[25em][l]{\zihao{4}\uline{\hfill\@englishshcool\hfill}}\\[1ex] +\ifdef{\@englishshcoolextraline}{%可能有的额外一行学院英文名称。为一行显示不下的学院英文名称准备。 +\makebox[6em][r]{}\makebox[25em][l]{\zihao{4}\uline{\hfill\@englishshcoolextraline\hfill}}\\[1ex]% +}{} +\end{center} +\clearpage{\pagestyle{empty}\cleardoublepage} +} +% \end{macrocode} +% \end{macro} +% \subsubsection{独创性声明和论文使用授权} +% \begin{macro}{\fourthtitlepage} +% 独创性声明和论文使用授权。对应研究生院规范中的附4。 +% \begin{macrocode} +\newcommand{\fourthtitlepage}{% \newpage \thispagestyle{empty} \linespread{1.5} @@ -3384,6 +3928,42 @@ 导师签名:\makebox[7em][l]{\uline{\hfill}}\par \hfill 日期:\qquad{}年\qquad{}月\qquad{}日 \par } +\clearpage{\pagestyle{empty}\cleardoublepage} +} +% \end{macrocode} +% \end{macro} +% \subsubsection{硕士学位封面} +% \begin{macro}{\mastertitlepage@uestcthesis} +%定义硕士学位封面的格式 +% \begin{macrocode} +\ifdefstring{\degree@uestcthesis}{master}{ +\renewcommand{\mastertitlepage@uestcthesis}{ +\renewcommand{\maketitle}{%定义封面的格式 +\setcounter{page}{1}%页码重置为1 +\pagenumbering{Alph}%页码使用大写罗马数字 +\begin{titlepage} +\firsttitlepage%插入封面 +\secondtitlepage%插入中文扉页 +\thirdtitlepage%插入英文扉页 +\fourthtitlepage%插入独创性声明和论文使用授权 +\linespread{1.391} +\end{titlepage}}}}{} +% \end{macrocode} +% \end{macro} +% \subsubsection{博士学位封面} +% \begin{macro}{\doctortitlepage@uestcthesis} +%定义博士学位封面的格式 +% \begin{macrocode} +\ifdefstring{\degree@uestcthesis}{doctor}{ +\renewcommand{\doctortitlepage@uestcthesis}{ +\renewcommand{\maketitle}{%定义封面的格式 +\setcounter{page}{1}%页码重置为1 +\pagenumbering{Alph}%页码使用大写罗马数字 +\begin{titlepage} +\firsttitlepage%插入封面 +\secondtitlepage%插入中文扉页 +\thirdtitlepage%插入英文扉页 +\fourthtitlepage%插入独创性声明和论文使用授权 \linespread{1.391} \end{titlepage}}}}{} % \end{macrocode} @@ -3398,10 +3978,11 @@ % \begin{macrocode} \setcounter{secnumdepth}{3} % \end{macrocode} -% +% \changes{v0.5.2}{2013/08/07}{由于本科论文规范还未修改,单独设置硕博标题前后段距。} %设置章标题格式。弹性长度的距离为行距的20\%。排版规则中说明可以适当调整各级标题段后间距。 % \begin{macrocode} \chaptername@uestcthesis +\ifdefstring{\degree@uestcthesis}{bachelor}{ \CTEXsetup[ nameformat={}, numberformat={}, titleformat={}, @@ -3410,30 +3991,61 @@ afterskip={30bp plus 6bp minus 6bp},%章标题段后30磅。 format={\heiti\zihao{-3}\centering}, ]{chapter} +}{ +\CTEXsetup[ nameformat={}, + numberformat={}, + titleformat={}, + aftername={~}, + beforeskip={1.8mm},%章标题段前30磅,这里2mm是由于实际效果与MS WORD有差异而微调出的。具体测量的是页眉线到章标题文字上边的距离。 + afterskip={18bp plus 3.6bp minus 3.6bp},%章标题段后30磅。 + format={\heiti\zihao{-3}\centering}, + ]{chapter} +} % \end{macrocode} % %设置1级节标题格式 % \begin{macrocode} +\ifdefstring{\degree@uestcthesis}{bachelor}{ \CTEXsetup[ aftername={~}, beforeskip={18bp}, afterskip={18bp plus 3.6bp minus 3.6bp}, format={\heiti\zihao{4}\flushleft}]{section} +}{ +\CTEXsetup[ aftername={~}, + beforeskip={18bp}, + afterskip={6bp plus 1.2bp minus 1.2bp}, + format={\heiti\zihao{4}\flushleft}]{section} +} % \end{macrocode} % %设置2级节标题格式 % \begin{macrocode} +\ifdefstring{\degree@uestcthesis}{bachelor}{ \CTEXsetup[ aftername={~}, beforeskip={12bp}, afterskip={12bp plus 2.4bp minus 2.4bp}, format={\heiti\zihao{4}\flushleft}]{subsection} +}{ +\CTEXsetup[ aftername={~}, + beforeskip={12bp}, + afterskip={6bp plus 1.2bp minus 1.2bp}, + format={\heiti\zihao{4}\flushleft}]{subsection} +} % \end{macrocode} % %设置3级节标题格式 % \begin{macrocode} +\ifdefstring{\degree@uestcthesis}{bachelor}{ \CTEXsetup[ aftername={~}, beforeskip={6bp}, afterskip={6bp plus 1.2bp minus 1.2bp}, format={\heiti\zihao{-4}\flushleft}]{subsubsection} +}{ +\CTEXsetup[ aftername={~}, + beforeskip={12bp}, + afterskip={6bp plus 1.2bp minus 1.2bp}, + format={\heiti\zihao{-4}\flushleft}]{subsubsection} +} % \end{macrocode} % \subsection{摘要设置} %调用ifthen宏包,可提供|\ifthenelse|判断命令。 @@ -3465,11 +4077,13 @@ pdfkeywords={\@pdfckeywords}%在pdf元信息中加入关键字 } % \end{macrocode} % \end{macro} +%\changes{v0.5.4}{2013/10/29}{修改中英文摘要标题和关键词的字体,改为加粗形式。并按照范例,在“摘要”二字中间加空格。} +%\changes{v0.6.1}{2014/01/20}{修改中英文关键词换行缩进。} % \begin{macrocode} -\chapter*{摘要}%插入不带章号的摘要 +\chapter*{摘\enspace 要}%插入不带章号的摘要 } {\\[3mm]%摘要后换行空出3mm -{\heiti 关键词:}\@ckeywords%插入关键词 +{\textbf{关键词:}}\parbox[t]{378.59134pt}{\@ckeywords}%插入关键词 } % \end{macrocode} % \end{environment} @@ -3492,10 +4106,10 @@ pdfkeywords={\@pdfckeywords}%在pdf元信息中加入关键字 % \end{macro} % \begin{macrocode} \Eabstractmatter%设置英文摘要版式 -\chapter*{ABSTRACT}%插入不带章号的ABSTRACT +\chapter*{\bf ABSTRACT}%插入不带章号的ABSTRACT } {\\[3mm]%摘要后换行空出3mm -{\heiti Keywords:}\@ekeywords%插入关键词 +{\bf Keywords:\nbs}\parbox[t]{367.97586pt}{\@ekeywords}%插入关键词 } % \end{macrocode} % \end{environment} @@ -3540,9 +4154,11 @@ pdfkeywords={\@pdfckeywords}%在pdf元信息中加入关键字 } % \end{macrocode} % \subsection{数学式设置} -%amsmath和kmath宏包提供更美观的数学字体。 +%amsmath数学宏包。 +% \changes{v0.5.2}{2013/08/07}{去除kmath宏包。} +% \changes{v0.6.7}{2014/03/04}{添加希腊字母等粗体的bm宏包} % \begin{macrocode} -\RequirePackage{amsmath,kmath} +\RequirePackage{amsmath,amsfonts,amssymb,bm} % \end{macrocode} % %使公式编号数字间加一个短横线。例如(1-1)。 @@ -3579,7 +4195,7 @@ pdfkeywords={\@pdfckeywords}%在pdf元信息中加入关键字 %定义一种不带标号的证明环境。 % \begin{macrocode} \theoremstyle{nonumberplain} -\theoremsymbol{} +\theoremsymbol{■} \newtheorem{zhengming}{证明} \def\endzhengming{\quad\@endtheorem} % \end{macrocode} @@ -3610,20 +4226,69 @@ pdfkeywords={\@pdfckeywords}%在pdf元信息中加入关键字 \@auxoutpublicationsname \bibliography {#1}} } % \end{macrocode} +%\subsection{注脚格式排版设置} +% \changes{v0.5.0}{2013/08/01}{添加注脚格式的排版设置} +% \changes{v0.6.5}{2014/03/01}{修复BUG:注脚在pdf中超级链接跳转失效的问题。} +% \changes{v0.6.6}{2014/03/03}{修复BUG:按照学校规范,注脚应该每页重新编号。} +%修正footmisc宏包的hang选项与CTeX宏包的冲突。修正来源:\\ +%\url{http://bbs.ctex.org/forum.php?mod=viewthread&tid=76571} +% \begin{macrocode} +\renewcommand*\CTEXsetfont{% + \begingroup + \settowidth\ccwd{\CTEX@spaceChar\CJKglue}% + \edef\x{\noexpand\ccwd\the\ccwd}% + \expandafter\endgroup\x + \ifdim\parindent=0pt\else\parindent2\ccwd\fi} +% \end{macrocode} +%加载注脚宏包footmisc,使用悬挂选项hang +% +% \begin{macrocode} +\RequirePackage[hang,perpage]{footmisc} +% \end{macrocode} +%设置注脚内容缩进,5.2mm是对比word中悬挂缩进1.5字符的结果测量得出的。 +% \begin{macrocode} +\setlength{\footnotemargin}{5.2mm} +% \end{macrocode} +%重绘注脚线,其中7.4mm、5.05cm和0.02cm都是对比范文在word中的效果测量出的。 +%其中|\vfill|用于将注脚置于页面底部。因为模板禁止了底部对齐,以保证不会出现过大的段距。 +% \changes{v0.6.6}{2014/03/03}{修正注脚线和内容的距离。} +% \begin{macrocode} +\renewcommand{\footnoterule}{\vfill\noindent +\vspace*{0.9mm}\hspace{7.4mm}\rule{5.05cm}{0.02cm}\vspace*{2.6pt}} +% \end{macrocode} +%定义注脚所用的带圆圈的序号样式 +% \begin{macrocode} +\RequirePackage{pifont} +\def\@circlednumber#1{\ifcase#1\or \ding{192}\or \ding{193}\or \ding{194}\or + \ding{195}\or \ding{196}\or \ding{197}\or \ding{198}\or \ding{199} + \or \ding{200} \or \ding{201} \else\@ctrerr\fi} +\def\circlednumber#1{\expandafter\@circlednumber\csname c@#1\endcsname} +\renewcommand{\thefootnote}{\circlednumber{footnote}} +% \end{macrocode} +%重定义注脚的格式,将序号的字体取消默认的上标样式。 +% \begin{macrocode} +\def\@makefntext #1{\ifFN@hangfoot \bgroup \setbox \@tempboxa \hbox {\ifdim +\footnotemargin >0pt \hb@xt@ \footnotemargin {\hbox { \normalfont \@thefnmark} +\hss }\else \hbox { \normalfont \@thefnmark} \fi }\leftmargin \wd \@tempboxa +\rightmargin \z@ \linewidth \columnwidth \advance \linewidth -\leftmargin +\parshape \@ne \leftmargin \linewidth \footnotesize \@setpar {{\@@par }} +\leavevmode \llap {\box \@tempboxa }\parskip \hangfootparskip \relax \parindent +\hangfootparindent \relax \else \parindent 1em \noindent \ifdim \footnotemargin + >\z@ \hb@xt@ \footnotemargin {\hss \hbox { \normalfont \@thefnmark} }\else + \ifdim \footnotemargin =\z@ \llap {\hbox { \normalfont \@thefnmark} }\else + \llap {\hb@xt@ -\footnotemargin {\hbox { \normalfont \@thefnmark} \hss }} + \fi \fi \fi \footnotelayout #1\ifFN@hangfoot \par \egroup \fi} +% \end{macrocode} % \subsection{PDF文件相关设置} % 设置pdf文件中的超链接和书签 +% \changes{v0.6}{2014/01/11}{去除pdf文件中显示的超级链接有色外框} % \begin{macrocode} \RequirePackage{cmap}%pdflatex编译时,可以生成可复制、粘贴的中文PDF文档 \RequirePackage{hyperxmp}%在pdf中加入XMP高级元信息 \RequirePackage[pdftex,unicode, bookmarksnumbered=true, bookmarksopen=true, - colorlinks=false, - pdfborder={0 0 1}, - citecolor=blue, - linkcolor=red, - anchorcolor=green, - urlcolor=blue, + hidelinks=true, breaklinks=true, pdfdisplaydoctitle=true ]{hyperref} @@ -3648,27 +4313,10 @@ pdfpagelayout={TwoPageRight} %枚举环境宏包,去除所有垂直附加距离。 % \changes{v0.31}{2013/02/21}{去除枚举环境的所有垂直附加距离。} % \changes{v0.4.3}{2013/05/20}{修复bug:枚举环境与前后文存在额外间距} +% \changes{v0.6}{2014/01/12}{用enumitem宏包代替enumerate宏包。使枚举环境的序号缩进和正文一致。} % \begin{macrocode} -\RequirePackage{enumerate} -%为了修正枚举环境与前后文存在额外间距的问题:重构枚举环境中的\@enum@命令,将其中的\list命令重构,再将\list命令中的\@trivlist命令重构。一切重构都是为了将\@trivlist命令中的第一个\@topsepadd重置为0。 -\newskip\@topsepadd@uestcthesis -\def\@trivlist@uestcthesis{\if@noskipsec \leavevmode \fi \@topsepadd@uestcthesis \topsep \ifvmode \advance \@topsepadd \partopsep \else \unskip \par \fi \if@inlabel \@noparitemtrue \@noparlisttrue \else \if@newlist \@noitemerr \fi \@noparlistfalse \@topsep \@topsepadd \fi \advance \@topsep \parskip \leftskip \z@skip \rightskip \@rightskip \parfillskip \@flushglue \par@deathcycles \z@ \@setpar {\if@newlist \advance \par@deathcycles \@ne \ifnum \par@deathcycles >\@m \@noitemerr {\@@par }\fi \else {\@@par }\fi }\global \@newlisttrue \@outerparskip \parskip } - -\def\list@uestcthesis#1#2{\ifnum \@listdepth >5\relax \@toodeep \else \global \advance \@listdepth \@ne \fi \rightmargin \z@ \listparindent \z@ \itemindent \z@ \csname @list\romannumeral \the \@listdepth \endcsname \def \@itemlabel {#1}\let \makelabel \@mklab \@nmbrlistfalse #2\relax \@trivlist@uestcthesis \parskip \parsep \parindent \listparindent \advance \linewidth -\rightmargin \advance \linewidth -\leftmargin \advance \@totalleftmargin \leftmargin \parshape \@ne \@totalleftmargin \linewidth \ignorespaces } - -\def\@enum@{\list@uestcthesis {\csname label\@enumctr \endcsname }{\usecounter {\@enumctr }\def \makelabel ##1{\hss \llap {##1}}}} - -\def\enumerate{% - \ifnum \@enumdepth >3 \@toodeep\else - \advance\@enumdepth \@ne - \edef\@enumctr{enum\romannumeral\the\@enumdepth}\fi - \@ifnextchar[{\@@enum@}{\@enum@} - \parsep=0pt - \itemsep=0pt - \parskip=0pt - \partopsep=0pt - \topsep=0pt - } +\RequirePackage{enumitem} +\setlist[1]{topsep=0pt,partopsep=0pt,parsep=0pt,itemsep=0pt,leftmargin=*,align=left,labelindent=\parindent} % \end{macrocode} % \subsection{排版源代码相关设置} %排版源代码所需宏包 @@ -3698,62 +4346,101 @@ pdfpagelayout={TwoPageRight} \definecolor{bgcolor}{rgb}{1,1,1} % \end{macrocode} % \subsection{主要符号表设置} +%\changes{v0.6}{2014/01/11}{将glossary宏包替换为新版的glossaries宏包。可同时提供缩略词表和主要符号表 。} %设置术语表宏包供主要符号表使用 % \begin{macrocode} -\RequirePackage[header,cols=3,hyper=true]{glossary} -\makeglossary +\RequirePackage[style=long3colheader,description,acronym]{glossaries} +\makeglossaries \renewcommand{\glossaryname}{\glossaryname@uestcthesis} \renewcommand{\entryname}{\entryname@uestcthesis} \renewcommand{\descriptionname}{\descriptionname@uestcthesis} -\renewcommand{\glspageheader}{\glspageheader@uestcthesis} +\renewcommand{\acronymname}{\acronymname@uestcthesis} +\renewcommand{\pagelistname}{\pagelistname@uestcthesis} % \end{macrocode} -% \begin{macro}{\ifusingglossary} -%设置一个变量用以判断是否使用主要符号表 -% \begin{macrocode} -\newcommand{\ifusingglossary}{} -% \end{macrocode} -% \end{macro} % \begin{macro}{\fuhao} %包装向主要符号表中插入条目的命令 % \begin{macrocode} -\newcommand{\fuhao}[3]{ -\glossary{name={#1},description={#2},sort=#3} -\renewcommand{\ifusingglossary}{true}%设置使用主要符号表 +\newcommand{\fuhao}[3]{% +\newglossaryentry{#3}{name={#1},description={#2},sort=#3}% } % \end{macrocode} % \end{macro} +% \begin{macrocode} +\newglossarystyle{acronymwithtranslation}{%缩略词表样式定义 + \setglossarystyle{long3colheader}%在long3colheader基础上修改 + \renewcommand*{\glossaryheader}{%重定义表头 + \bfseries\acronymheader@uestcthesis&\bfseries\acronymfull@uestcthesis& + \bfseries\acronymtranslation@uestcthesis\tabularnewline\endhead}% + \renewenvironment{theglossary}%重定义列宽 + {\begin{longtable}{lp{\glsdescwidth}p{7em}}}% + {\end{longtable}}% + \renewcommand{\glossentry}[2]{%重定义显示什么列:缩略词、英文全称、中文全称 + \glsentryitem{##1}\glstarget{##1}{\glossentryname{##1}} & + \csname glo@##1@first\endcsname & \glossentrydesc{##1}\tabularnewline + }% + \renewcommand{\subglossentry}[3]{% + & + \glssubentryitem{##2}% + \glstarget{##2}{\strut}\csname glo@##2@first\endcsname & + \glossentrydesc{##2}\tabularnewline + }% +} +% \end{macrocode} + % \subsection{自动添加论文的必选结构} %\changes{v0.4.3}{2013/05/20}{由于目前(2013年)本科和硕博关于参考文献与致谢顺序的规定不一样,所以在这里区分设置} %\changes{v0.4.2}{2013/05/14}{修复只有单页目录时页眉显示主要符号表的问题。} %\changes{v0.4.3}{2013/05/20}{修复bug:摘要应从右页开始。前置部分都需要章起右页。} %\changes{v0.4.4}{2013/05/23}{本科论文中将外文资料和翻译加入目录中。} +%\changes{v0.5.4}{2013/10/29}{修改封面到摘要之前的部分实际的页码,避免pdf阅读器中页码冲突。} +%\changes{v0.6.1}{2014/01/20}{添加摘要和目录到pdf书签中。} +%\changes{v0.6.4}{2014/02/25}{用withoutforepages选项和onlychapters选项控制忽略必选结构中的一部分。} % \begin{macrocode} % !Mode:: "TeX:UTF-8" \AtBeginDocument{%插入到论文内容的最前面。 \begin{CJK}{UTF8}{rm}%中文支持环境,此处内容不受ctexbook文类影响,所以必须手动加这个环境。 +\ifdef{\withoutforepages@uestcthesis}{}{%withoutforepages选项效果 \maketitle%生成并插入封面 -\clearpage{\pagestyle{empty}\cleardoublepage} +}% +\ifdef{\onlychapters@uestcthesis}{}{%onlychapters选项效果 \Cabstractmatter%设置中文摘要版式 +\pdfbookmark[1]{摘要}{Cabstract}%添加中文摘要的PDF书签 \include{contents/Cabstract}%插入中文摘要 \clearpage{\pagestyle{empty}\cleardoublepage} \Eabstractmatter%设置英文摘要版式 +\pdfbookmark[1]{Abstract}{Eabstract}%添加英文摘要的PDF书签 \include{contents/Eabstract}%插入英文摘要 \clearpage{\pagestyle{empty}\cleardoublepage} \tocmatter%目录版式 +\pdfbookmark[1]{目录}{tableofcontents}%添加目录的PDF书签 \tableofcontents%插入目录 +\insertlof%插入图目录 +\insertlot%插入表目录 \clearpage{\pagestyle{empty}\cleardoublepage}%目录之后另起一页,这样无论目录后有没有主要符号表,主要符号表的页眉设置命令都会应用到下一页。 %此处遇到问题:目录之后到正文之前如果加入章节,这些章节的版式不受传统版式设置控制。估计是BUG。此处耗时6小时20分钟,终于找到了修正方案。 -\glossarymatterfancy%设置主要符号表版式。 +\acronymnamematter%设置缩略词表版式 +\printacronyms[style=acronymwithtranslation] +\clearpage{\pagestyle{empty}\cleardoublepage} +\glossarymatter%设置主要符号表版式。 \printglossary%插入主要符号表 \clearpage{\pagestyle{empty}\cleardoublepage} \mainmatter%修正主要符号表版式,这里是受目录版式的影响,必须在此加入\mainmatter。 +}% \end{CJK} \mainmatter%正文区版式 \makeatletter \newcmds@uestcthesis%自定义图表命令,这些命令必须在document环境里声明才能在正文中使用,所以只能放在这里了。 +% \end{macrocode} +%设置公式与上下文之间的间距。 +% \begin{macrocode} +\abovedisplayskip=6bp +\abovedisplayshortskip=6bp +\belowdisplayskip=6bp +\belowdisplayshortskip=6bp \makeatother } +\ifdef{\onlychapters@uestcthesis}{}{%onlychapters选项效果 \newcommand{\insertacknowledgement}{ \chapter*{\acknowledgementsname@uestcthesis}%用带星号的章命令插入不带章号的致谢。 \markboth{\acknowledgementsname@uestcthesis}{}%页眉设置 @@ -3782,8 +4469,13 @@ pdfpagelayout={TwoPageRight} \newpage \insertreference } - +% \end{macrocode} +% \changes{v0.6.1}{2014/01/20}{修正附录中图表公式的标号格式。} +% \begin{macrocode} \appendix%附录版式 +\renewcommand{\thefigure}{\Alph{chapter}\textendash\arabic{figure}} +\renewcommand{\thetable}{\Alph{chapter}\textendash\arabic{table}} +\renewcommand{\theequation}{\Alph{chapter}\textendash\arabic{equation}} \renewcommand{\chaptermark}[1]{\markboth{\CTEX@appendixname\Alph{chapter}~ #1 }{}}%附录页眉设置 \input{contents/appendix.tex}%插入附录内容 \clearpage @@ -3858,14 +4550,22 @@ pdfpagelayout={TwoPageRight} % 下面的大括号实际上是上一节判断是否为本科论文的|\ifdefstring|命令的else部分。也就是只有硕博论文才执行的命令。 % \begin{macrocode} { -\IfFileExists{contents/publications.bib}{%如果删除了publications.bib,则不显示这一章 -\CTEXoptions[ bibname={\publicationsname@degree}]%设置攻博/硕期间发表的论文章题目 -\phantomsection%手动添加目录项之前需要这个命令,用以更新目录超链接的跳转页码。 -\addcontentsline{toc}{chapter}{\publicationsname@degree}%将攻博/硕期间发表的论文编入目录 -{\zihao{5} -\bibliographypublications{contents/publications}%插入攻博/硕期间发表的论文 -}}{}} +\ifdef{\usecv@uestcthesis}{\usecv@uestcthesis}{ + \IfFileExists{contents/publications.bib}{%如果删除了publications.bib,则不显示这一章 + \CTEXoptions[ bibname={\publicationsname@degree}]%设置攻博/硕期间发表的论文章题目 + \phantomsection%手动添加目录项之前需要这个命令,用以更新目录超链接的跳转页码。 + \addcontentsline{toc}{chapter}{\publicationsname@degree}%将攻博/硕期间发表的论文编入目录 + {\zihao{5}% +% \end{macrocode} +% footmisc宏包的perpage选项会向每个aux文件中写入一个命令。由于publications没有tex文件,只有aux文件。所以出现了错误。这里将要写入aux文件的内容清空。 +% \begin{macrocode} + \def\footnotehint{}% + \bibliographypublications{contents/publications}%插入攻博/硕期间发表的论文 + }}{} + } +} \clearpage\end{CJK}} +}%这是大括号是前面onlychapters选项的ifdef命令的一部分。 % \end{macrocode} % \iffalse % @@ -7100,6 +7800,256 @@ EXECUTE {end.bib} % \iffalse % % \fi +% \iffalse +%<*packagecheck> +% \fi +% \section{版本检查程序} +% \changes{v0.6.2}{2014/02/11}{增加一个用于检查依赖宏包版本的文件。} +% \begin{macrocode} +% !Mode:: "TeX:UTF-8" + +\makeatletter +\def\version@uestcthesis{v1.0.0} +\IfFileExists{ctexbook.cls}{ +\documentclass[cs4size,UTF8,fancyhdr,hyperref,fntef,openany]{ctexbook} +}{ +\documentclass{article} +} +\def\@parse@version@checkpackage#1/#2/#3#4#5\@nil{#1/#2/#3#4 } +\def\packagelist{} +%检查指定宏包版本是否高于所需版本日期,如果宏包存在则加载后读取版本日期。 +\newcommand{\checkpackage}[2]{% + \expandafter\def\csname#1@needversion\endcsname{#2} + \IfFileExists{#1.\@pkgextension}{% + \usepackage{#1}% + \@ifpackagelater{#1}{#2}{% + \expandafter\def\csname#1@checkresult\endcsname{OK!} + }{% + \expandafter\def\csname#1@checkresult\endcsname{too old!} + } + \expandafter\def\csname#1@currentversion\endcsname{% + \xdef\cver@checkpackage{\csname ver@#1.sty\endcsname} + \expandafter\@parse@version@checkpackage\cver@checkpackage\@nil% + }% + }% + {\expandafter\def\csname#1@checkresult\endcsname{not found!}}% + + \xdef\packagelist{#1,\packagelist} +} +%个别宏包版本无法读取,鉴于版本较旧,只检查是否存在 +\newcommand{\checkpackagespecial}[2]{% + \expandafter\def\csname#1@needversion\endcsname{#2} + \IfFileExists{#1.\@pkgextension}{% + \usepackage{#1}% + \expandafter\def\csname#1@checkresult\endcsname{Maybe OK!} + + \expandafter\def\csname#1@currentversion\endcsname{% + unknown! + }% + }% + {\expandafter\def\csname#1@checkresult\endcsname{not found!}}% + + \xdef\packagelist{#1,\packagelist} +} +%检查ctexbook文类的版本 +\newcommand{\checkctexbookclass}[1]{% + \expandafter\def\csname ctexbook@needversion\endcsname{#1} + \IfFileExists{ctexbook.\@clsextension}{% + \@ifclasslater{ctexbook}{#1}{% + \expandafter\def\csname ctexbook@checkresult\endcsname{OK!} + }{% + \expandafter\def\csname ctexbook@checkresult\endcsname{too old!} + } + \expandafter\def\csname ctexbook@currentversion\endcsname{% + \xdef\cver@checkpackage{\csname ver@ctexbook.cls\endcsname} + \expandafter\@parse@version@checkpackage\cver@checkpackage\@nil% + }% + }% + {\expandafter\def\csname ctexbook@checkresult\endcsname{not found!}}% + + \xdef\packagelist{ctexbook,\packagelist} +} +%生成输出行 +\def\checkresult#1{% + \makebox[4.5cm][l]{#1}% + \makebox[10em][l]{\csname#1@needversion\endcsname}% + \makebox[10em][l]{\csname#1@currentversion\endcsname}% + \makebox[10em][l]{\csname#1@checkresult\endcsname}\\ +} + + + +%这些宏包是模板中主动加载的,测试顺序和模板中的加载顺序一致。 +\checkctexbookclass{2011/03/11} +\checkpackage{mathptmx}{2005/04/12} +\checkpackage{etoolbox}{2011/01/03} +\checkpackage{ifthen}{2001/05/26} +\checkpackage{geometry}{2010/09/12} +\checkpackage{graphicx}{1999/02/16} +\checkpackage{calc}{2007/08/22} +\checkpackage{float}{2001/11/08} +\checkpackagespecial{texnames}{}%这个宏包没有版本号 +\checkpackage{caption}{2013/05/02} +\checkpackage{booktabs}{2005/04/14} +\checkpackage{tabularx}{1999/01/07} +\checkpackage{threeparttable}{2003/06/13} +\checkpackage{longtable}{2004/02/01} +\checkpackage{placeins}{2005/04/18} +\checkpackage{flafter}{2000/07/23} +\checkpackage{amsmath}{2013/01/14} +\checkpackage{amsfonts}{2013/01/14} +\checkpackage{amssymb}{2013/01/14} +\checkpackage{bm}{2004/02/26} +\checkpackage{ntheorem}{2011/08/15} +\checkpackage{natbib}{2010/09/13} +\checkpackage{multibib}{2008/12/10} +\checkpackage{cmap}{2008/03/06} +\checkpackage{hyperxmp}{2013/07/18} +\checkpackage{hyperref}{2012/11/06} +\checkpackage{subfigure}{2002/07/30} +\checkpackage{enumitem}{2011/09/28} +\checkpackage{color}{2005/11/14} +\checkpackage{marvosym}{2011/07/20} +\checkpackage{glossaries}{2013/12/05} +\checkpackage{footmisc}{2011/06/06} +\checkpackage{pifont}{2005/04/12} + +%这些宏包是由前面的宏包自动加载的。它们应该已经加载完毕。 +\checkpackagespecial{fontenc}{2005/09/27} +\checkpackage{l3bootstrap}{2014/01/04} +\checkpackage{l3names}{2014/01/04} +\checkpackage{etex}{1998/03/26} +\checkpackage{expl3}{2014/01/07} +\checkpackage{l3basics}{2014/01/04} +\checkpackage{l3expan}{2014/01/04} +\checkpackage{l3tl}{2013/12/27} +\checkpackage{l3seq}{2013/12/14} +\checkpackage{l3int}{2013/08/02} +\checkpackage{l3quark}{2013/12/14} +\checkpackage{l3prg}{2014/01/04} +\checkpackage{l3clist}{2013/07/28} +\checkpackage{l3token}{2013/08/25} +\checkpackage{l3prop}{2013/12/14} +\checkpackage{l3msg}{2013/07/28} +\checkpackage{l3file}{2013/10/13} +\checkpackage{l3skip}{2013/07/28} +\checkpackage{l3keys}{2013/12/08} +\checkpackage{l3fp}{2014/01/04} +\checkpackage{l3box}{2013/07/28} +\checkpackage{l3coffins}{2013/12/14} +\checkpackage{l3color}{2012/08/29} +\checkpackage{l3luatex}{2013/07/28} +\checkpackage{l3candidates}{2014/01/06} +\checkpackage{ifpdf}{2011/01/30} +\checkpackage{ifxetex}{2010/09/12} +\checkpackage{keyval}{1999/03/16} +\checkpackage{indentfirst}{1995/11/23} +\checkpackage{fix-cm}{2006/09/13} +\checkpackage{CJKutf8}{2012/05/07} +\checkpackage{inputenc}{2008/03/30} +\checkpackage{CJK}{2012/05/07} +\checkpackage{MULEenc}{2012/05/07} +\checkpackage{CJKpunct}{2009/05/06} +\checkpackage{CJKfntef}{2012/05/07} +\checkpackage{CJKulem}{2012/05/07} +\checkpackage{ulem}{2012/05/18} +\checkpackage{ifvtex}{2010/03/01} +\checkpackage{graphics}{2009/02/05} +\checkpackage{trig}{1999/03/16} +\checkpackage{infwarerr}{2010/04/08} +\checkpackage{ltxcmds}{2011/11/09} +\checkpackage{caption3}{2013/05/02} +\checkpackage{array}{2008/09/09} +\checkpackage{amstext}{2000/06/29} +\checkpackage{amsbsy}{1999/11/29} +\checkpackage{amsopn}{1999/12/14} +\checkpackage{atenddvi}{2007/04/17} +\checkpackage{zref-abspage}{2012/04/04} +\checkpackage{zref-base}{2012/04/04} +\checkpackage{kvsetkeys}{2012/04/25} +\checkpackage{etexcmds}{2011/02/16} +\checkpackage{ifluatex}{2010/03/01} +\checkpackage{kvdefinekeys}{2011/04/07} +\checkpackage{pdftexcmds}{2011/11/29} +\checkpackage{auxhook}{2011/03/04} +\checkpackage{atbegshi}{2011/10/05} +\checkpackage{zref-lastpage}{2012/04/04} +\checkpackage{atveryend}{2011/06/30} +\checkpackage{kvoptions}{2011/06/30} +\checkpackage{pdfescape}{2011/11/25} +\checkpackage{stringenc}{2011/12/02} +\checkpackage{intcalc}{2007/09/27} +\checkpackage{hobsub-hyperref}{2012/04/25} +\checkpackage{hobsub-generic}{2012/04/25} +\checkpackage{hobsub}{2012/04/25} +\checkpackage{bigintcalc}{2012/04/08} +\checkpackage{bitset}{2011/01/30} +\checkpackage{uniquecounter}{2011/01/30} +\checkpackage{letltxmacro}{2010/09/02} +\checkpackage{hopatch}{2011/06/24} +\checkpackage{xcolor-patch}{2011/01/30} +\checkpackage{refcount}{2011/10/16} +\checkpackage{hycolor}{2011/01/30} +\checkpackage{url}{2006/04/12} +\checkpackage{rerunfilecheck}{2011/04/15} +\checkpackage{xkeyval}{2012/10/14} +\checkpackage{mfirstuc}{2013/11/04} +\checkpackage{textcase}{2004/10/07} +\checkpackage{xfor}{2009/02/05} +\checkpackage{datatool-base}{2013/09/06} +\checkpackage{substr}{2009/10/20} +\checkpackage{datatool-fp}{2013/08/29} +\checkpackage{fp}{1995/04/02} +\checkpackage{defpattern}{1994/10/12} +\checkpackage{fp-basic}{1996/05/13} +\checkpackage{fp-addons}{1995/03/15} +\checkpackage{fp-snap}{1995/04/05} +\checkpackage{fp-exp}{1995/04/03} +\checkpackage{fp-trigo}{1995/04/14} +\checkpackage{fp-pas}{1994/08/29} +\checkpackage{fp-random}{1995/02/23} +\checkpackage{fp-eqn}{1995/04/03} +\checkpackage{fp-upn}{1996/10/21} +\checkpackage{fp-eval}{1995/04/03} +\checkpackage{glossaries-compatible-307}{2013/11/14} +\checkpackage{glossary-hypernav}{2013/11/14} +\checkpackage{glossary-list}{2013/11/14} +\checkpackage{glossary-long}{2013/11/14} +\checkpackage{glossary-super}{2013/11/14} +\checkpackage{supertabular}{2004/02/20} +\checkpackage{glossary-tree}{2013/11/14} +\checkpackage{ltcaption}{2013/02/03} +\checkpackage{nameref}{2012/10/27} +\checkpackage{gettitlestring}{2010/12/03} +\makeatother +\begin{document} +\chapter{Packages Check} +\makeatletter% +\noindent NOTICE:This report is prepared for uestcthesis \version@uestcthesis. + +\noindent\makebox[4.5cm][l]{\bf Package}\makebox[10em][l]{\bf Need}\makebox[10em][l]{\bf Have}\makebox[10em][l]{\bf Check Result}\\ +\newif\iflisthasnext +%从记录宏包名的\packagelist弹出一个宏包名 +\def\poppackagename#1,#2\@nil{% +\checkresult{#1}% +\def\packagelist{#2}% +} +\loop +\expandafter\poppackagename\packagelist\@nil% +\ifx\packagelist\empty\listhasnextfalse % +\else\listhasnexttrue% +\fi% +\iflisthasnext% +\repeat% +\makeatother +\end{document} + +% \end{macrocode} +% \iffalse +% +% \fi + + % \iffalse %<*beamer> % \fi @@ -7148,7 +8098,7 @@ EXECUTE {end.bib} } } { -\newrgbcolor{curcolor}{0 0.33725491 0.62352943} +\newrgbcolor{curcolor}{0 0.36078431 0.63529412} \pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor] { \newpath @@ -7650,7 +8600,7 @@ EXECUTE {end.bib} } } { -\newrgbcolor{curcolor}{0 0.33725491 0.62352943} +\newrgbcolor{curcolor}{0 0.36078431 0.63529412} \pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor] { \newpath @@ -7679,7 +8629,7 @@ EXECUTE {end.bib} } } { -\newrgbcolor{curcolor}{0 0.33725491 0.62352943} +\newrgbcolor{curcolor}{0 0.36078431 0.63529412} \pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor] { \newpath @@ -7705,7 +8655,7 @@ EXECUTE {end.bib} } } { -\newrgbcolor{curcolor}{0 0.33725491 0.62352943} +\newrgbcolor{curcolor}{0 0.36078431 0.63529412} \pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor] { \newpath @@ -7723,7 +8673,7 @@ EXECUTE {end.bib} } } { -\newrgbcolor{curcolor}{0 0.33725491 0.62352943} +\newrgbcolor{curcolor}{0 0.36078431 0.63529412} \pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor] { \newpath @@ -7779,7 +8729,7 @@ EXECUTE {end.bib} } } { -\newrgbcolor{curcolor}{0.9137255 0.32549021 0.15686275} +\newrgbcolor{curcolor}{0.9176471 0.46666667 0.11764706} \pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor] { \newpath @@ -7796,7 +8746,7 @@ EXECUTE {end.bib} } } { -\newrgbcolor{curcolor}{0.9137255 0.32549021 0.15686275} +\newrgbcolor{curcolor}{0.9176471 0.46666667 0.11764706} \pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor] { \newpath @@ -7821,7 +8771,7 @@ EXECUTE {end.bib} } } { -\newrgbcolor{curcolor}{0.9137255 0.32549021 0.15686275} +\newrgbcolor{curcolor}{0.9176471 0.46666667 0.11764706} \pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor] { \newpath @@ -7861,7 +8811,7 @@ EXECUTE {end.bib} } } { -\newrgbcolor{curcolor}{0.9137255 0.32549021 0.15686275} +\newrgbcolor{curcolor}{0.9176471 0.46666667 0.11764706} \pscustom[linestyle=none,fillstyle=solid,fillcolor=curcolor] { \newpath diff --git a/Master/texmf-dist/doc/latex/uestcthesis/source/uestcthesis.ins b/Master/texmf-dist/doc/latex/uestcthesis/source/uestcthesis.ins index f715ee53793..2e710260e01 100644 --- a/Master/texmf-dist/doc/latex/uestcthesis/source/uestcthesis.ins +++ b/Master/texmf-dist/doc/latex/uestcthesis/source/uestcthesis.ins @@ -1,70 +1,71 @@ -% !Mode:: "TeX:UTF-8:INS" - -%%% uestcthesis.ins -%%% Copyright 2012-2013 Shi Fujun -%% -%% This work may be distributed and/or modified under the -%% conditions of the LaTeX Project Public License, either version 1.3 -%% of this license or (at your option) any later version. -%% The latest version of this license is in -%% http://www.latex-project.org/lppl.txt -%% and version 1.3 or later is part of all distributions of LaTeX -%% version 2005/12/01 or later. -%% -%% This work has the LPPL maintenance status `maintained'. -%% -%% The Current Maintainer of this work is Shi Fujun . -%% -%% This work consists of the files uestcthesis.dtx and uestcthesis.ins -%% and the derived file uestcthesis.cls, uestcthesis.bst and beamerthemeuestcthesis.sty. -%% Other files in this work's package are belongs to the respective owners. -\input docstrip.tex -\keepsilent -\askforoverwritefalse - -\usedir{tex/latex/uestcthesis} - -\preamble - -This is a generated file. - - Copyright 2012-2013 Shi Fujun - - This work may be distributed and/or modified under the - conditions of the LaTeX Project Public License, either version 1.3 - of this license or (at your option) any later version. - The latest version of this license is in - http://www.latex-project.org/lppl.txt - and version 1.3 or later is part of all distributions of LaTeX - version 2005/12/01 or later. - - This work has the LPPL maintenance status `maintained'. - - The Current Maintainer of this work is Shi Fujun . - - This work consists of the files uestcthesis.dtx, uestcthesis.ins - and the derived file uestcthesis.cls, uestcthesis.bst and beamerthemeuestcthesis.sty. - Other files in this work's package are belongs to the respective owners. - -\endpreamble - -\generate{\file{uestcthesis.cls}{\from{uestcthesis.dtx}{class}}} -\generate{\file{uestcthesis.bst}{\from{uestcthesis.dtx}{bst}}} -\generate{\file{beamerthemeuestcthesis.sty}{\from{uestcthesis.dtx}{beamer}}} - -\obeyspaces -\Msg{*************************************************************} -\Msg{* *} -\Msg{* To finish the installation you have to move the following *} -\Msg{* file into a directory searched by TeX: *} -\Msg{* *} -\Msg{*uestcthesis.cls uestcthesis.bst beamerthemeuestcthesis.sty *} -\Msg{* *} -\Msg{* To produce the documentation run the file uestcthesis.dtx *} -\Msg{* through LaTeX. *} -\Msg{* *} -\Msg{* Happy TeXing! *} -\Msg{* *} -\Msg{*************************************************************} - -\endbatchfile +% !Mode:: "TeX:UTF-8:INS" + +%%% uestcthesis.ins +%%% Copyright 2012-2013 Shi Fujun +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Shi Fujun . +%% +%% This work consists of the files uestcthesis.dtx and uestcthesis.ins +%% and the derived file uestcthesis.cls, uestcthesis.bst and beamerthemeuestcthesis.sty. +%% Other files in this work's package are belongs to the respective owners. +\input docstrip.tex +\keepsilent +\askforoverwritefalse + +\usedir{tex/latex/uestcthesis} + +\preamble + +This is a generated file. + + Copyright 2012-2013 Shi Fujun + + This work may be distributed and/or modified under the + conditions of the LaTeX Project Public License, either version 1.3 + of this license or (at your option) any later version. + The latest version of this license is in + http://www.latex-project.org/lppl.txt + and version 1.3 or later is part of all distributions of LaTeX + version 2005/12/01 or later. + + This work has the LPPL maintenance status `maintained'. + + The Current Maintainer of this work is Shi Fujun . + + This work consists of the files uestcthesis.dtx, uestcthesis.ins + and the derived file uestcthesis.cls, uestcthesis.bst and beamerthemeuestcthesis.sty. + Other files in this work's package are belongs to the respective owners. + +\endpreamble + +\generate{\file{uestcthesis.cls}{\from{uestcthesis.dtx}{class}}} +\generate{\file{uestcthesis.bst}{\from{uestcthesis.dtx}{bst}}} +\generate{\file{beamerthemeuestcthesis.sty}{\from{uestcthesis.dtx}{beamer}}} +\generate{\file{packagecheck.tex}{\from{uestcthesis.dtx}{packagecheck}}} + +\obeyspaces +\Msg{*************************************************************} +\Msg{* *} +\Msg{* To finish the installation you have to move the following *} +\Msg{* file into a directory searched by TeX: *} +\Msg{* *} +\Msg{*uestcthesis.cls uestcthesis.bst beamerthemeuestcthesis.sty *} +\Msg{* *} +\Msg{* To produce the documentation run the file uestcthesis.dtx *} +\Msg{* through LaTeX. *} +\Msg{* *} +\Msg{* Happy TeXing! *} +\Msg{* *} +\Msg{*************************************************************} + +\endbatchfile -- cgit v1.2.3