| 1 |
% \iffalse meta-comment |
| 2 |
% Local Variables: |
| 3 |
% mode: doctex |
| 4 |
% TeX-master: t |
| 5 |
% End: |
| 6 |
%<*internal> |
| 7 |
\def\nameofplainTeX{plain} |
| 8 |
\ifx\fmtname\nameofplainTeX\else |
| 9 |
\expandafter\begingroup |
| 10 |
\fi |
| 11 |
%</internal> |
| 12 |
%<*install> |
| 13 |
\input docstrip.tex |
| 14 |
\keepsilent |
| 15 |
\askforoverwritefalse |
| 16 |
\preamble |
| 17 |
---------:| --------------------------------------------------------------- |
| 18 |
xduthesis:| XeLaTeX template for writing Xidian University Thesis |
| 19 |
Author:| Fei Qi |
| 20 |
E-mail:| [email protected] |
| 21 |
License:| Released under the LaTeX Project Public License v1.3c or later |
| 22 |
See:| http://www.latex-project.org/lppl.txt |
| 23 |
|
| 24 |
\endpreamble |
| 25 |
\postamble |
| 26 |
|
| 27 |
Copyright (C) 2008-2016 by Fei Qi <[email protected]> |
| 28 |
|
| 29 |
This work may be distributed and/or modified under the |
| 30 |
conditions of the LaTeX Project Public License (LPPL), either |
| 31 |
version 1.3c of this license or (at your option) any later |
| 32 |
version. The latest version of this license is in the file: |
| 33 |
|
| 34 |
http://www.latex-project.org/lppl.txt |
| 35 |
|
| 36 |
This work is "maintained" (as per LPPL maintenance status) by |
| 37 |
Fei Qi. |
| 38 |
|
| 39 |
This work consists of the file xduthesis.dtx and a Makefile. |
| 40 |
Running "make" generates the derived files xduthesis.pdf and xduthesis.cls. |
| 41 |
Running "make inst" installs the files in the user's TeX tree. |
| 42 |
Running "make install" installs the files in the local TeX tree. |
| 43 |
|
| 44 |
\endpostamble |
| 45 |
|
| 46 |
\usedir{tex/xelatex/xduthesis} |
| 47 |
\generate{ |
| 48 |
\file{\jobname.cls}{\from{\jobname.dtx}{class}} |
| 49 |
\file{\jobname.cfg}{\from{\jobname.dtx}{config}} |
| 50 |
} |
| 51 |
%</install> |
| 52 |
%<install>\endbatchfile |
| 53 |
%<*internal> |
| 54 |
\usedir{source/xelatex/xduthesis} |
| 55 |
\generate{ |
| 56 |
\file{\jobname.ins}{\from{\jobname.dtx}{install}} |
| 57 |
} |
| 58 |
\nopreamble\nopostamble |
| 59 |
% \usedir{doc/xelatex/xduthesis} |
| 60 |
% \generate{ |
| 61 |
% \file{README.rst}{\from{\jobname.dtx}{readme}} |
| 62 |
% } |
| 63 |
\ifx\fmtname\nameofplainTeX |
| 64 |
\expandafter\endbatchfile |
| 65 |
\else |
| 66 |
\expandafter\endgroup |
| 67 |
\fi |
| 68 |
%</internal> |
| 69 |
% \fi |
| 70 |
% |
| 71 |
% \CheckSum{1988} |
| 72 |
% |
| 73 |
% \iffalse |
| 74 |
%<*driver> |
| 75 |
\ProvidesFile{xduthesis.dtx}[2015/09/11 1.0.0 Xidian University Thesis Template] |
| 76 |
%</driver> |
| 77 |
%<class>\NeedsTeXFormat{LaTeX2e}[1999/12/01] |
| 78 |
%<class>\ProvidesClass{xduthesis} |
| 79 |
%<config>\ProvidesFile{xduthesis.cfg} |
| 80 |
%<class|config> [2015/09/11 1.0.0 Xidian University Thesis Template] |
| 81 |
%<*driver> |
| 82 |
\documentclass{ltxdoc} |
| 83 |
\usepackage{amssymb} |
| 84 |
\usepackage{url} |
| 85 |
\usepackage{metalogo} |
| 86 |
\usepackage[normalem]{ulem} |
| 87 |
\usepackage{xeCJK} |
| 88 |
\setCJKmainfont[BoldFont={Adobe Heiti Std}]{Adobe Song Std} |
| 89 |
\usepackage{indentfirst} |
| 90 |
% \usepackage[a4paper,margin=25mm,left=50mm,nohead]{geometry} |
| 91 |
\usepackage[numbered]{hypdoc} |
| 92 |
\setlength{\parskip}{4pt plus1pt minus0pt} |
| 93 |
\setlength{\topsep}{0pt} |
| 94 |
\setlength{\partopsep}{0pt} |
| 95 |
\setlength{\parindent}{20pt} |
| 96 |
\addtolength{\oddsidemargin}{-1cm} |
| 97 |
\advance\textwidth 1.5cm |
| 98 |
\addtolength{\topmargin}{-1cm} |
| 99 |
\addtolength{\headsep}{0.3cm} |
| 100 |
\addtolength{\textheight}{2.3cm} |
| 101 |
\renewcommand{\baselinestretch}{1.3} |
| 102 |
|
| 103 |
\makeatletter |
| 104 |
\def\tableofcontents{\renewcommand{\baselinestretch}{1.0}\@starttoc{toc}} |
| 105 |
\def\DescribeOption#1{\SpecialOptionIndex{#1}} |
| 106 |
\def\DescribeMacro{\Describe@Macro} |
| 107 |
\def\Describe@Macro#1{\PrintDescribeMacro{#1}\SpecialUsageIndex{#1}} |
| 108 |
\def\PrintDescribeMacro#1{{\color{-red!75!green!50!blue!55}\MacroFont \string #1\hskip1em }} |
| 109 |
\def\ps@headings{% |
| 110 |
\let\@oddfoot\@empty |
| 111 |
\def\@oddhead{\vbox{\hbox |
| 112 |
to\textwidth{\llap{\fbox{\rightmark\rule[-2pt]{0pt}{13pt}}}\hfil\thepage}\vskip-0.7pt |
| 113 |
\hbox to \textwidth{\hrulefill}}}% |
| 114 |
\let\@evenfoot\@oddfoot |
| 115 |
\let\@evenhead\@oddhead |
| 116 |
\let\@mkboth\markboth |
| 117 |
\def\sectionmark##1{% |
| 118 |
\markright{\ifnum \c@secnumdepth >\m@ne |
| 119 |
\thesection\quad |
| 120 |
\fi |
| 121 |
##1}} |
| 122 |
\def\subsectionmark##1{% |
| 123 |
\markright{\ifnum \c@secnumdepth >\m@ne |
| 124 |
\thesubsection\quad |
| 125 |
\fi |
| 126 |
##1}} |
| 127 |
\def\subsubsectionmark##1{% |
| 128 |
\markright{\ifnum \c@secnumdepth >\m@ne |
| 129 |
\thesubsubsection\quad |
| 130 |
\fi |
| 131 |
##1}}} |
| 132 |
\renewcommand\section{\@startsection {section}{1}{\z@}% |
| 133 |
{-3.5ex \@plus -1ex \@minus -.2ex}% |
| 134 |
{2.3ex \@plus.2ex}% |
| 135 |
{\normalfont\Large\bfseries}} |
| 136 |
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}% |
| 137 |
{-3.25ex\@plus -1ex \@minus -.2ex}% |
| 138 |
{1.5ex \@plus .2ex}% |
| 139 |
{\normalfont\large\bfseries}} |
| 140 |
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}% |
| 141 |
{-3.25ex\@plus -1ex \@minus -.2ex}% |
| 142 |
{1.5ex \@plus .2ex}% |
| 143 |
{\normalfont\normalsize\bfseries}} |
| 144 |
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}% |
| 145 |
{3.25ex \@plus1ex \@minus.2ex}% |
| 146 |
{-1em}% |
| 147 |
{\normalfont\normalsize\bfseries}} |
| 148 |
\renewcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}% |
| 149 |
{3.25ex \@plus1ex \@minus .2ex}% |
| 150 |
{-1em}% |
| 151 |
{\normalfont\normalsize\bfseries}} |
| 152 |
\makeatother |
| 153 |
|
| 154 |
\EnableCrossrefs |
| 155 |
\CodelineIndex |
| 156 |
\RecordChanges |
| 157 |
\begin{document} |
| 158 |
\DocInput{\jobname.dtx} |
| 159 |
\clearpage |
| 160 |
\end{document} |
| 161 |
%</driver> |
| 162 |
% \fi |
| 163 |
% |
| 164 |
% \pagestyle{empty} |
| 165 |
% |
| 166 |
% \GetFileInfo{xduthesis.dtx} |
| 167 |
% \MakeShortVerb{\|} |
| 168 |
% |
| 169 |
% \changes{v0.9.9}{2014/04/19}{Naming changed from xdthesis to xduthesis.} |
| 170 |
% \changes{v0.9.4}{2012/01/10}{Made the full support for the master option.} |
| 171 |
% \changes{v0.9.3a}{2011/12/13}{Fixed line space and chapter space in TOC.} |
| 172 |
% \changes{v0.9.3}{2011/04/20}{Fixed the error on \texttt{$\backslash$nobreakspace}.} |
| 173 |
% \changes{v0.9.2}{2009/06/17}{Using full Chinese punctuation.} |
| 174 |
% \changes{v0.9.1}{2009/06/15}{Template for Bachelor's thesis release candidate.} |
| 175 |
% \changes{v0.9}{2009/06/10}{Template realy works for Bachelor's thesis.} |
| 176 |
% \changes{v0.2}{2009/06/06}{Defined styles of fonts, names, and titles and floats formats.} |
| 177 |
% \changes{v0.1}{2008/06/24}{The \XeLaTeX\ template for writing thesis of Xidian starts.} |
| 178 |
% |
| 179 |
% \def\xduthesis{\texttt{XDU}-\texttt{Thesis}} |
| 180 |
% \def\xduthesis{$\mathbb{XDU}$-$\mathcal{THESIS}$} |
| 181 |
% \def\pkg#1{\texttt{#1}} |
| 182 |
% \def\xdu{西安电子科技大学} |
| 183 |
% |
| 184 |
% \DoNotIndex{\begin,\end,\begingroup,\endgroup} |
| 185 |
% \DoNotIndex{\ifx,\ifdim,\ifnum,\ifcase,\else,\or,\fi} |
| 186 |
% \DoNotIndex{\let,\def,\xdef,\newcommand,\renewcommand} |
| 187 |
% \DoNotIndex{\expandafter,\csname,\endcsname,\relax,\protect} |
| 188 |
% \DoNotIndex{\Huge,\huge,\LARGE,\Large,\large,\normalsize} |
| 189 |
% \DoNotIndex{\small,\footnotesize,\scriptsize,\tiny} |
| 190 |
% \DoNotIndex{\normalfont,\bfseries,\slshape,\interlinepenalty} |
| 191 |
% \DoNotIndex{\hfil,\par,\hskip,\vskip,\vspace,\quad} |
| 192 |
% \DoNotIndex{\centering,\raggedright} |
| 193 |
% \DoNotIndex{\c@secnumdepth,\@startsection,\@setfontsize} |
| 194 |
% \DoNotIndex{\ ,\@plus,\@minus,\p@,\z@,\@m,\@M,\@ne,\m@ne} |
| 195 |
% \DoNotIndex{\@@par,\DeclareOperation,\RequirePackage,\LoadClass} |
| 196 |
% \DoNotIndex{\AtBeginDocument,\AtEndDocument} |
| 197 |
% |
| 198 |
% \IndexPrologue{\section*{索~~~~引}} |
| 199 |
% \GlossaryPrologue{\section*{修改记录}} |
| 200 |
% |
| 201 |
% \renewcommand{\abstractname}{摘~~要} |
| 202 |
% \renewcommand{\contentsname}{目~~录} |
| 203 |
% |
| 204 |
% \title{\xduthesis:\xdu{}学位论文模板\thanks{Xidian University \XeLaTeX{} |
| 205 |
% Thesis Template.}} |
| 206 |
% \author{齐飞\\[5pt] \texttt{[email protected]}} |
| 207 |
% \date{v\fileversion\ (\filedate)} |
| 208 |
% |
| 209 |
% \maketitle\thispagestyle{empty} |
| 210 |
% |
| 211 |
% \begin{abstract} |
| 212 |
% 本宏包旨在建立一个简单易用的、符合西安电子科技大学各级学位撰写格式要求的论文 |
| 213 |
% 模板。目前已经完整支持从学士到硕士及博士学位论文的最新格式。目前研究生论文 |
| 214 |
% (硕士、博士学位论文)符合研究生院2014年发布的学位论文版式要求。 |
| 215 |
% \end{abstract} |
| 216 |
% |
| 217 |
% \vskip2cm |
| 218 |
% \def\abstractname{免责声明} |
| 219 |
% \begin{abstract} |
| 220 |
% \noindent |
| 221 |
% \begin{enumerate} |
| 222 |
% \item 本模板的发布遵守~\LaTeX{} Project Public License (v1.3c) |
| 223 |
% \footnote{\url{http://www.latex-project.org/lppl.txt}},使用前请认真阅读协议内容。 |
| 224 |
% \item 本模板为作者根据\xdu{}教务处颁布的《本科生毕业设计(论文)工作手册》、研 |
| 225 |
% 究生院颁布的《西安电子科技大学研究生学位论文撰写标准》编写而成,旨在 |
| 226 |
% 供\xdu{}毕业生撰写学位论文使用。 |
| 227 |
% \item 此模板仅为写作指南的参考实现,不保证格式审查老师不提任何意见。任何由于使 |
| 228 |
% 用本模板而引起的论文格式审查问题均与本模板作者无关。 |
| 229 |
% \item 任何个人或组织以本模板为基础进行修改、扩展而生成的新的专用模板,请严格遵 |
| 230 |
% 守~\LaTeX{} Project Public License 协议。由于违犯协议而引起的任何纠纷争端均与 |
| 231 |
% 本模板作者无关。 |
| 232 |
% \end{enumerate} |
| 233 |
% \end{abstract} |
| 234 |
% |
| 235 |
% \clearpage |
| 236 |
% \begin{multicols}{2}[ |
| 237 |
% \section*{\contentsname} |
| 238 |
% \setlength{\columnseprule}{.4pt} |
| 239 |
% \setlength{\columnsep}{18pt}] |
| 240 |
% \tableofcontents |
| 241 |
% \end{multicols} |
| 242 |
% |
| 243 |
% \clearpage |
| 244 |
% \pagenumbering{arabic} |
| 245 |
% \pagestyle{headings} |
| 246 |
% |
| 247 |
% \section{模板介绍} |
| 248 |
% |
| 249 |
% 本模板为作者根据\xdu{}教务处颁布的《本科生毕业设计(论文)工作手册》以及研究生 |
| 250 |
% 院颁布的《西安电子科技大学研究生学位论文撰写标准》编写而成,旨在供\xdu{}毕业生 |
| 251 |
% 撰写学位论文使用。目前模板支持从学士到硕士、博士等三级学位论文的排版。 |
| 252 |
% |
| 253 |
% 模板在~\texttt{examples} 目录下提供了学士学位论 |
| 254 |
% 文(\texttt{thesis-bachelor.tex})、硕士学位论文(\texttt{thesis-master.tex})、专 |
| 255 |
% 业硕士学位论文(\texttt{thesis-masterpro.tex})以及博士学位论 |
| 256 |
% 文(\texttt{thesis-doctor.tex})的使用示例。用户可以选择自己需要的样例,并在样例 |
| 257 |
% 的基础上修改使用。这此论文样例的实际内容为模板的使用说明,建议在使用模板前认真 |
| 258 |
% 阅读。为方便用户阅读,该说明按照博士学位论文版式进行了编译,并随模板一同发布(文 |
| 259 |
% 件\texttt{thesis-doctor.pdf})。 |
| 260 |
% |
| 261 |
% 模板在~\texttt{texlive} (\url{https://www.tug.org/texlive/}) 下进行了详细的测试, |
| 262 |
% 能够正常工作。对于其他~\XeLaTeX{}~的发布版本,由于没有进行完整测试,暂时无法确 |
| 263 |
% 定模板的是否能够正常工作。 |
| 264 |
% |
| 265 |
% \xduthesis{} 的主页是:\url{https://github.com/fredqi/xduthesis}。用户可以到该 |
| 266 |
% 主页查看模板的开发进展、下载最新版本。如果在使用中遇到问题,请在页面 |
| 267 |
% \url{https://github.com/fredqi/xduthesis/issues} 报告您所遇到的问题。希望在报 |
| 268 |
% 告错误时能够提供测试代码,以便更快的定位和排查错误。 |
| 269 |
% |
| 270 |
% \section*{致谢} |
| 271 |
% \label{sec:thanks} |
| 272 |
% |
| 273 |
% \changes{v0.9.8}{2012/12/26}{补充致谢信息} |
| 274 |
% |
| 275 |
% 本模板经过多年不断积累完善,终于达到了可以正式发布的状态。在此对本模板开发、测 |
| 276 |
% 试做出贡献与帮助的人一并表示谢意。\pkg{xeCJK}宏包是本模板中文字体支持的基础,模 |
| 277 |
% 板中的很多格式在实现方式上参考了\pkg{thuthesis}宏包,在此对这两个宏包的开发人员 |
| 278 |
% 孙文昌、刘海洋\footnote{[email protected]}、李 |
| 279 |
% 清\footnote{[email protected]}与薛瑞尼\footnote{[email protected]}等人表示深 |
| 280 |
% 挚的谢意。 |
| 281 |
% |
| 282 |
% 本模板的本科学位论文封面部分参考了\textrm{bigeagle}等人开发维护 |
| 283 |
% 的\pkg{XDBA-thesis}论文模板,在此表示感谢。研究生论文封面由陆丹 |
| 284 |
% 峰\footnote{[email protected]}参照\pkg{XDBA-thesis}实现了第一个可用版本,在此 |
| 285 |
% 亦表示感谢。 |
| 286 |
% |
| 287 |
% 在本模板开发过程中,我所指导的硕士生陆丹峰、韩钧宇和谷跃胜、本科毕业生王蓬金、 |
| 288 |
% 赵亚龙、博士生吴金建等人先后试用了功能尚不完善、实现存在严重缺陷的开发版本,为 |
| 289 |
% 本模板的进一步开发完善提供了宝贵的意见,在此一并表示感谢。 |
| 290 |
% |
| 291 |
% |
| 292 |
% \StopEventually{\PrintChanges\PrintIndex} |
| 293 |
% \clearpage |
| 294 |
% |
| 295 |
% \section{实现细节} |
| 296 |
% |
| 297 |
% \subsection{基本信息} |
| 298 |
% |
| 299 |
% \subsection{定义选项} |
| 300 |
% \label{sec:defoption} |
| 301 |
% |
| 302 |
% \changes{v0.9.9}{2014/04/19}{Added option english.} |
| 303 |
% \changes{v0.9.4a}{2012/02/07}{Added option print.} |
| 304 |
% 定义论文类型以及是否涉密 |
| 305 |
% \begin{macrocode} |
| 306 |
%<*class> |
| 307 |
\hyphenation{XDU-Thesis} |
| 308 |
\def\xduthesis{$\mathbb{XDU}$-$\mathcal{THESIS}$} |
| 309 |
\def\version{1.0.0} |
| 310 |
\newif\ifxdu@bachelor\xdu@bachelorfalse |
| 311 |
\newif\ifxdu@master\xdu@masterfalse |
| 312 |
\newif\ifxdu@masterpro\xdu@masterprofalse |
| 313 |
\newif\ifxdu@doctor\xdu@doctorfalse |
| 314 |
\newif\ifxdu@secret\xdu@secretfalse |
| 315 |
\newif\ifxdu@english\xdu@englishfalse |
| 316 |
\newif\ifxdu@mkabstract\xdu@mkabstractfalse |
| 317 |
\newif\ifxdu@print\xdu@printfalse |
| 318 |
\newif\ifxdu@msfonts\xdu@msfontsfalse |
| 319 |
\DeclareOption{bachelor}{\xdu@bachelortrue} |
| 320 |
\DeclareOption{master}{\xdu@mastertrue} |
| 321 |
\DeclareOption{masterpro}{\xdu@masterprotrue} |
| 322 |
\DeclareOption{doctor}{\xdu@doctortrue} |
| 323 |
\DeclareOption{secret}{\xdu@secrettrue} |
| 324 |
\DeclareOption{english}{\xdu@englishtrue} |
| 325 |
\DeclareOption{print}{\xdu@printtrue} |
| 326 |
\DeclareOption{msfonts}{\xdu@msfontstrue} |
| 327 |
\DeclareOption{adobefonts}{\xdu@msfontsfalse} |
| 328 |
\AtEndOfClass{% |
| 329 |
\ifxdu@doctor\relax\else |
| 330 |
\ifxdu@bachelor\relax\else |
| 331 |
\ifxdu@master\relax\else |
| 332 |
\ifxdu@masterpro\relax\else |
| 333 |
\ClassError{xduthesis}% |
| 334 |
{Please specify a thesis option: bachelor, master, masterpro or doctor.}{} |
| 335 |
\fi |
| 336 |
\fi |
| 337 |
\fi |
| 338 |
\fi} |
| 339 |
% \end{macrocode} |
| 340 |
% |
| 341 |
% \begin{macrocode} |
| 342 |
\ExecuteOptions{} |
| 343 |
\ProcessOptions |
| 344 |
\ifxdu@print |
| 345 |
\LoadClass[12pt, a4paper, openright]{book} |
| 346 |
\else |
| 347 |
\LoadClass[12pt, a4paper, openany]{book} |
| 348 |
\fi |
| 349 |
%</class> |
| 350 |
% \end{macrocode} |
| 351 |
% |
| 352 |
% \subsection{装载宏包} |
| 353 |
% \label{sec:loadpackage} |
| 354 |
% |
| 355 |
% \changes{v0.9.4a}{2012/02/07}{Added package calc for paper layout setup.} |
| 356 |
% 设置页边距等引用宏包 |
| 357 |
% \begin{macrocode} |
| 358 |
%<*class> |
| 359 |
\RequirePackage{calc} |
| 360 |
% \end{macrocode} |
| 361 |
% 参考文献引用宏包。 |
| 362 |
% \begin{macrocode} |
| 363 |
\RequirePackage[numbers,super,sort&compress]{natbib} |
| 364 |
% \end{macrocode} |
| 365 |
% |
| 366 |
% \begin{macrocode} |
| 367 |
\ifxdu@print |
| 368 |
\RequirePackage[xetex,colorlinks=true,allcolors=black]{hyperref} |
| 369 |
\else |
| 370 |
\RequirePackage[xetex,colorlinks=true]{hyperref} |
| 371 |
\fi |
| 372 |
% \end{macrocode} |
| 373 |
% 引用的宏包和相应的定义。 |
| 374 |
% \pkg{hypernat} 让~\pkg{hyperref} 和~\pkg{natbib} 协调的工作。应该 |
| 375 |
% 在~\pkg{natbib} 和~\pkg{hyperref} 之后加载,参看其文档。 |
| 376 |
% \begin{macrocode} |
| 377 |
% \RequirePackage{hypernat} |
| 378 |
% \end{macrocode} |
| 379 |
% |
| 380 |
% 首行缩进。 |
| 381 |
% \begin{macrocode} |
| 382 |
\RequirePackage{indentfirst} |
| 383 |
% \end{macrocode} |
| 384 |
% |
| 385 |
% \changes{v0.9.1}{2009/06/15}{引用\pkg{paralist},缩小列表环境的行距} |
| 386 |
% 更好的列表环境。 |
| 387 |
% \begin{macrocode} |
| 388 |
\RequirePackage[neverdecrease]{paralist} |
| 389 |
% \end{macrocode} |
| 390 |
% |
| 391 |
% 页眉页脚。 |
| 392 |
% \begin{macrocode} |
| 393 |
% \RequirePackage{fancyhdr} |
| 394 |
% \end{macrocode} |
| 395 |
% |
| 396 |
% AMS\LaTeX{} 宏包,用来排出更加漂亮的公式 |
| 397 |
% \begin{macrocode} |
| 398 |
\RequirePackage{amsmath, amssymb} |
| 399 |
% \end{macrocode} |
| 400 |
% |
| 401 |
% 图形支持宏包。 |
| 402 |
% \begin{macrocode} |
| 403 |
\RequirePackage{graphicx} |
| 404 |
% \end{macrocode} |
| 405 |
% |
| 406 |
% 并排图形。\pkg{subfigure} 已经不再推荐,用新的~\pkg{subfig}。加入~|config| 选项以便兼容 |
| 407 |
% ~\pkg{subfigure} 的命令。 |
| 408 |
% 浮动图形和表格标题样式。\pkg{caption2} 已经不推荐使用,采用新的~\pkg{caption}。它会自动被 |
| 409 |
% ~\pkg{subfig} 装载进来。所以可以在后面看到~\cs{captionsetup} 的命令。 |
| 410 |
% \begin{macrocode} |
| 411 |
\RequirePackage{subfig} |
| 412 |
% 下划线(虚线) |
| 413 |
% \dashuline{dashing} dashed underline like dashing |
| 414 |
\RequirePackage[normalem]{ulem} |
| 415 |
% \end{macrocode} |
| 416 |
% |
| 417 |
% 载入标题格式宏包。 |
| 418 |
% \begin{macrocode} |
| 419 |
\RequirePackage{ifthen} |
| 420 |
\RequirePackage{titlesec,titletoc} |
| 421 |
% \end{macrocode} |
| 422 |
% 本模板是基于\XeLaTeX{}的。 |
| 423 |
% \begin{macrocode} |
| 424 |
\RequirePackage[BoldFont]{xeCJK} |
| 425 |
% |
| 426 |
% \changes{v0.9.8}{2013/03/14}{增加msfonts选项以使用微软字体} |
| 427 |
% \changes{v0.9.1}{2009/06/17}{使用全角格式中文标点符号} |
| 428 |
% |
| 429 |
\punctstyle{quanjiao} |
| 430 |
\def\CJK@null{\kern\CJKnullspace\Unicode{48}{7}\kern\CJKnullspace} |
| 431 |
\defaultfontfeatures{Mapping=tex-text} % after fontspec |
| 432 |
\ifxdu@msfonts |
| 433 |
\setCJKmainfont{SimSun} |
| 434 |
\setCJKsansfont{SimHei} |
| 435 |
\setCJKmonofont{KaiTi_GB2312} |
| 436 |
\setCJKfamilyfont{song}{SimSun} |
| 437 |
\setCJKfamilyfont{hei}{SimHei} |
| 438 |
\setCJKfamilyfont{fs}{FangSong_GB2312} |
| 439 |
\setCJKfamilyfont{kai}{KaiTi_GB2312} |
| 440 |
\setCJKfamilyfont{li}{Adobe Kaiti Std} |
| 441 |
\setCJKfamilyfont{you}{LiSu} |
| 442 |
\else |
| 443 |
\setCJKmainfont{Adobe Song Std} |
| 444 |
\setCJKsansfont{Adobe Heiti Std} |
| 445 |
\setCJKfamilyfont{song}{Adobe Song Std} |
| 446 |
\setCJKfamilyfont{hei}{Adobe Heiti Std} |
| 447 |
% \setCJKmonofont{Adobe Kaiti Std} |
| 448 |
% \setCJKfamilyfont{fs}{Adobe Fangsong Std} |
| 449 |
% \setCJKfamilyfont{kai}{Adobe Kaiti Std} |
| 450 |
\fi |
| 451 |
\setmainfont{Times New Roman} |
| 452 |
\setsansfont{Arial} |
| 453 |
\setmonofont{Courier Std} |
| 454 |
% \changes{v0.9.3}{2011/04/20}{引用宏包顺序调整,以避免\texttt{nobreakspace}的问题} |
| 455 |
% \changes{v0.9.7}{2012/12/11}{\texttt{xeCJK}与\texttt{xltxtra}冲突导致标点出错} |
| 456 |
\RequirePackage{xunicode,metalogo} |
| 457 |
%</class> |
| 458 |
% \end{macrocode} |
| 459 |
% |
| 460 |
% \subsection{主文档格式} |
| 461 |
% \label{sec:mainbody} |
| 462 |
% \subsubsection{Three matters} |
| 463 |
% |
| 464 |
% \begin{macrocode} |
| 465 |
%<*class> |
| 466 |
\renewcommand\frontmatter{% |
| 467 |
\xdu@clearpage% |
| 468 |
\@mainmatterfalse |
| 469 |
\ifxdu@bachelor\pagenumbering{roman}\else\pagenumbering{Roman}\fi |
| 470 |
\pagestyle{xdu@front}} |
| 471 |
\renewcommand\mainmatter{% |
| 472 |
\xdu@clearpage |
| 473 |
\@mainmattertrue |
| 474 |
\pagenumbering{arabic} |
| 475 |
\pagestyle{xdu@headings}} |
| 476 |
\renewcommand\backmatter{% |
| 477 |
\xdu@clearpage |
| 478 |
\@mainmattertrue} |
| 479 |
%</class> |
| 480 |
% \end{macrocode} |
| 481 |
% |
| 482 |
% \subsubsection{字体} |
| 483 |
% \label{sec:fonts} |
| 484 |
% Ref 2: |
| 485 |
% WORD 中的字号对应该关系如下: |
| 486 |
% \begin{verbatim} |
| 487 |
% 初号 = 42bp = 14.82mm = 42.1575pt |
| 488 |
% 小初 = 36bp = 12.70mm = 36.135 pt |
| 489 |
% 一号 = 26bp = 9.17mm = 26.0975pt |
| 490 |
% 小一 = 24bp = 8.47mm = 24.09pt |
| 491 |
% 二号 = 22bp = 7.76mm = 22.0825pt |
| 492 |
% 小二 = 18bp = 6.35mm = 18.0675pt |
| 493 |
% 三号 = 16bp = 5.64mm = 16.06pt |
| 494 |
% 小三 = 15bp = 5.29mm = 15.05625pt |
| 495 |
% 四号 = 14bp = 4.94mm = 14.0525pt |
| 496 |
% 小四 = 12bp = 4.23mm = 12.045pt |
| 497 |
% 五号 = 10.5bp = 3.70mm = 10.59375pt |
| 498 |
% 小五 = 9bp = 3.18mm = 9.03375pt |
| 499 |
% 六号 = 7.5bp = 2.56mm |
| 500 |
% 小六 = 6.5bp = 2.29mm |
| 501 |
% 七号 = 5.5bp = 1.94mm |
| 502 |
% 八号 = 5bp = 1.76mm |
| 503 |
% |
| 504 |
% 1bp = 72.27/72 pt |
| 505 |
% \end{verbatim} |
| 506 |
% |
| 507 |
% \begin{macro}{\song} |
| 508 |
% \begin{macro}{\songti} |
| 509 |
% \begin{macro}{\hei} |
| 510 |
% \begin{macro}{\heiti} |
| 511 |
% |
| 512 |
% \begin{macrocode} |
| 513 |
%<*class> |
| 514 |
\newcommand{\song}{\CJKfamily{song}} % 宋体 |
| 515 |
\def\songti{\song} |
| 516 |
\newcommand{\hei}{\CJKfamily{hei}} % 黑体 |
| 517 |
\def\heiti{\hei} |
| 518 |
% \end{macrocode} |
| 519 |
% \end{macro} |
| 520 |
% \end{macro} |
| 521 |
% \end{macro} |
| 522 |
% \end{macro} |
| 523 |
% |
| 524 |
% \begin{macro}{\chuhao} |
| 525 |
% \begin{macro}{\xiaochu} |
| 526 |
% \begin{macro}{\yihao} |
| 527 |
% \begin{macro}{\xiaoyi} |
| 528 |
% \begin{macro}{\erhao} |
| 529 |
% \begin{macro}{\xiaoer} |
| 530 |
% \begin{macro}{\sanhao} |
| 531 |
% \begin{macro}{\xiaosan} |
| 532 |
% \begin{macro}{\sihao} |
| 533 |
% \begin{macro}{\banxiaosi} |
| 534 |
% \begin{macro}{\xiaosi} |
| 535 |
% \begin{macro}{\dawu} |
| 536 |
% \begin{macro}{\wuhao} |
| 537 |
% \begin{macro}{\xiaowu} |
| 538 |
% \begin{macro}{\liuhao} |
| 539 |
% \begin{macro}{\xiaoliu} |
| 540 |
% \begin{macro}{\qihao} |
| 541 |
% \begin{macro}{\bahao} |
| 542 |
% \begin{macrocode} |
| 543 |
\newlength\xdu@linespace |
| 544 |
\newcommand{\xdu@choosefont}[2]{% |
| 545 |
\setlength{\xdu@linespace}{#2*\real{#1}}% |
| 546 |
\fontsize{#2}{\xdu@linespace}\selectfont} |
| 547 |
\def\xdu@define@fontsize#1#2{% |
| 548 |
\expandafter\newcommand\csname #1\endcsname[1][\baselinestretch]{% |
| 549 |
\xdu@choosefont{##1}{#2}}} |
| 550 |
\xdu@define@fontsize{chuhao}{42bp} |
| 551 |
\xdu@define@fontsize{xiaochu}{36bp} |
| 552 |
\xdu@define@fontsize{yihao}{26bp} |
| 553 |
\xdu@define@fontsize{xiaoyi}{24bp} |
| 554 |
\xdu@define@fontsize{erhao}{22bp} |
| 555 |
\xdu@define@fontsize{xiaoer}{18bp} |
| 556 |
\xdu@define@fontsize{sanhao}{16bp} |
| 557 |
\xdu@define@fontsize{xiaosan}{15bp} |
| 558 |
\xdu@define@fontsize{sihao}{14bp} |
| 559 |
\xdu@define@fontsize{banxiaosi}{13bp} |
| 560 |
\xdu@define@fontsize{xiaosi}{12bp} |
| 561 |
\xdu@define@fontsize{dawu}{11bp} |
| 562 |
\xdu@define@fontsize{wuhao}{10.5bp} |
| 563 |
\xdu@define@fontsize{xiaowu}{9bp} |
| 564 |
\xdu@define@fontsize{liuhao}{7.5bp} |
| 565 |
\xdu@define@fontsize{xiaoliu}{6.5bp} |
| 566 |
\xdu@define@fontsize{qihao}{5.5bp} |
| 567 |
\xdu@define@fontsize{bahao}{5bp} |
| 568 |
% \end{macrocode} |
| 569 |
% \end{macro} |
| 570 |
% \end{macro} |
| 571 |
% \end{macro} |
| 572 |
% \end{macro} |
| 573 |
% \end{macro} |
| 574 |
% \end{macro} |
| 575 |
% \end{macro} |
| 576 |
% \end{macro} |
| 577 |
% \end{macro} |
| 578 |
% \end{macro} |
| 579 |
% \end{macro} |
| 580 |
% \end{macro} |
| 581 |
% \end{macro} |
| 582 |
% \end{macro} |
| 583 |
% \end{macro} |
| 584 |
% \end{macro} |
| 585 |
% \end{macro} |
| 586 |
% \end{macro} |
| 587 |
% |
| 588 |
% 定义行距,正文小四号(12pt)字,行距为1.5倍行距 |
| 589 |
% \begin{macrocode} |
| 590 |
\renewcommand\normalsize{\@setfontsize\normalsize{12bp}{18bp}} |
| 591 |
\renewcommand\baselinestretch{1.2} |
| 592 |
%</class> |
| 593 |
% \end{macrocode} |
| 594 |
% |
| 595 |
% \subsubsection{页面设置} |
| 596 |
% \label{sec:layout} |
| 597 |
% |
| 598 |
% \begin{macrocode} |
| 599 |
%<*class> |
| 600 |
\setlength{\textwidth}{\paperwidth} |
| 601 |
\addtolength{\textwidth}{-6cm} |
| 602 |
\setlength{\textheight}{\paperheight} |
| 603 |
\ifxdu@bachelor |
| 604 |
\addtolength{\textheight}{-4.5cm} |
| 605 |
\setlength{\topmargin}{1.45cm-1in} |
| 606 |
\setlength{\headheight}{20pt} |
| 607 |
\setlength{\headsep}{0.6cm} |
| 608 |
\setlength{\footskip}{18pt} |
| 609 |
\else |
| 610 |
\addtolength{\textheight}{-5.5cm} |
| 611 |
\setlength\voffset{3cm-1in} |
| 612 |
\setlength{\topmargin}{-5ex} |
| 613 |
\setlength{\headheight}{3ex} |
| 614 |
\setlength{\headsep}{2ex} |
| 615 |
\setlength{\footskip}{5ex} |
| 616 |
\addtolength{\textheight}{-3ex} |
| 617 |
\fi |
| 618 |
\setlength\marginparwidth{0cm} |
| 619 |
\setlength\marginparsep{0cm} |
| 620 |
\setlength{\oddsidemargin}{4cm-1in} |
| 621 |
\setlength{\evensidemargin}{2cm-1in} |
| 622 |
% \setlength{\topskip}{0pt} |
| 623 |
% \setlength{\skip\footins}{15pt} |
| 624 |
%</class> |
| 625 |
% \end{macrocode} |
| 626 |
% |
| 627 |
% \subsubsection{页眉页脚} |
| 628 |
% \label{sec:headerfooter} |
| 629 |
% |
| 630 |
% \changes{v1.0.0}{2014/11/25}{2014版研究生学位论文页眉页脚格式} |
| 631 |
% \changes{v0.9.7}{2012/12/12}{增加博士学位论文页眉与页脚格式支持} |
| 632 |
% \changes{v0.9.8}{2012/12/18}{修正论文题目中换行破坏右侧页眉的问题} |
| 633 |
% |
| 634 |
% 新的一章最好从奇数页开始(openright),所以必须保证它前面那页如果没有内容也必 |
| 635 |
% 须没有页眉页脚。code stolen from fancyhdr |
| 636 |
% |
| 637 |
% \begin{macrocode} |
| 638 |
%<*class> |
| 639 |
\def\xdu@clearpage{% |
| 640 |
\clearpage% |
| 641 |
\if@openright% |
| 642 |
\ifodd\c@page\relax\else% |
| 643 |
\null\thispagestyle{xdu@empty}\newpage% |
| 644 |
\fi% |
| 645 |
\fi} |
| 646 |
% \end{macrocode} |
| 647 |
% |
| 648 |
% |
| 649 |
% 定义页眉和页脚。chapter 自动调用~thispagestyle{xdu@front},所以要重新定 |
| 650 |
% 义~xdu@front。 |
| 651 |
% \begin{macro}{\ps@xdu@empty} |
| 652 |
% \begin{macro}{\ps@xdu@front} |
| 653 |
% \begin{macro}{\ps@xdu@headings} |
| 654 |
% 定义页眉页脚格式: |
| 655 |
% \begin{itemize} |
| 656 |
% \item \texttt{xdu@empty} :无页眉页脚 |
| 657 |
% \item \texttt{xdu@front} :页眉中无页码 |
| 658 |
% \item \texttt{xdu@headings}:页眉中显示页码 |
| 659 |
% \end{itemize} |
| 660 |
% \begin{macrocode} |
| 661 |
\ifxdu@bachelor% |
| 662 |
\def\ps@xdu@header@rules{\vskip2pt\rule{\textwidth}{0.6pt}} |
| 663 |
\else |
| 664 |
\def\ps@xdu@header@rules{ |
| 665 |
\vskip4pt\rule{\textwidth}{0.6pt}% |
| 666 |
\vskip0.8pt\rule{\textwidth}{0.6pt}} |
| 667 |
\fi |
| 668 |
\def\ps@xdu@header@lefttext{% |
| 669 |
\hbox to\textwidth{% |
| 670 |
\hfil{\wuhao\noindent\leftmark}\hfil% |
| 671 |
{\ifxdu@bachelor\xiaowu\thepage\hskip1pt\fi}}} |
| 672 |
\def\ps@xdu@header@righttext{% |
| 673 |
\hbox to\textwidth{% |
| 674 |
{\ifxdu@bachelor\xiaowu\thepage\hskip1pt\fi}% |
| 675 |
\hfil{\let\\=\relax\wuhao\rightmark}\hfil}} |
| 676 |
\def\ps@xdu@footer@text{% |
| 677 |
\ifxdu@bachelor\relax\else% |
| 678 |
\hbox to\textwidth{\hfil{\xiaowu\thepage}\hfil}\fi} |
| 679 |
% \def\ps@xdu@foot@doctor{\vbox{\vskip10pt\rule{\textwidth}{1mm}% |
| 680 |
% \vskip1pt\rule{\textwidth}{0.75pt}\vskip1pt% |
| 681 |
% \hbox to\textwidth{\hfil{\wuhao\ps@xdu@pagefoot}\hfil}}} |
| 682 |
\def\ps@xdu@empty{% |
| 683 |
\let\@oddhead\@empty% |
| 684 |
\let\@evenhead\@empty% |
| 685 |
\let\@oddfoot\@empty% |
| 686 |
\let\@evenfoot\@empty} |
| 687 |
\def\ps@xdu@front{% |
| 688 |
\def\@oddhead{\vbox{\ps@xdu@header@lefttext\ps@xdu@header@rules}}% |
| 689 |
\def\@evenhead{\vbox{\ps@xdu@header@righttext\ps@xdu@header@rules}}% |
| 690 |
\def\@oddfoot{\ps@xdu@footer@text}% |
| 691 |
\def\@evenfoot{\ps@xdu@footer@text}% |
| 692 |
} |
| 693 |
\def\ps@xdu@headings{% |
| 694 |
\def\@oddhead{\vbox{\ps@xdu@header@lefttext\ps@xdu@header@rules}}% |
| 695 |
\def\@evenhead{\vbox{\ps@xdu@header@righttext\ps@xdu@header@rules}}% |
| 696 |
\def\@oddfoot{\ps@xdu@footer@text}% |
| 697 |
\def\@evenfoot{\ps@xdu@footer@text}% |
| 698 |
} |
| 699 |
% \end{macrocode} |
| 700 |
% \end{macro} |
| 701 |
% \end{macro} |
| 702 |
% \end{macro} |
| 703 |
% |
| 704 |
% |
| 705 |
% \changes{v0.9.8}{2013/03/14}{修正电子存储方式页眉} |
| 706 |
% |
| 707 |
% 其实可以直接写到~\cs{chapter} 的定义里面。 |
| 708 |
% \begin{macrocode} |
| 709 |
\ifxdu@bachelor\ifxdu@english |
| 710 |
\renewcommand{\chaptermark}[1]{% |
| 711 |
\ifodd\c@page% |
| 712 |
\markboth{#1}{\xdu@etitle}% |
| 713 |
\else% |
| 714 |
\markboth{\xdu@etitle}{#1}% |
| 715 |
\fi} |
| 716 |
\else |
| 717 |
\renewcommand{\chaptermark}[1]{% |
| 718 |
\ifodd\c@page% |
| 719 |
\markboth{#1}{\xdu@ctitle}% |
| 720 |
\else% |
| 721 |
\markboth{\xdu@ctitle}{#1}% |
| 722 |
\fi} |
| 723 |
\fi\else |
| 724 |
\renewcommand{\chaptermark}[1]{% |
| 725 |
\ifodd\c@page% |
| 726 |
\markboth{#1}{\xdu@xidian@str\xdu@thesis@str}% |
| 727 |
\else% |
| 728 |
\markboth{\xdu@xidian@str\xdu@thesis@str}{#1}% |
| 729 |
\fi} |
| 730 |
\fi |
| 731 |
\renewcommand{\sectionmark}[1]{} |
| 732 |
%</class> |
| 733 |
% \end{macrocode} |
| 734 |
% |
| 735 |
% \changes{v0.9.1}{2009/06/15}{增加首行按照两个中文字符缩进} |
| 736 |
% \subsubsection{段落} |
| 737 |
% \label{sec:paragraph} |
| 738 |
% |
| 739 |
% 用于中文段落缩进和正文版式 |
| 740 |
% \begin{macrocode} |
| 741 |
%<*class> |
| 742 |
\newlength\xdu@CJK@twochars |
| 743 |
\newcommand{\xdu@unicode}[2]{\char\numexpr#1*256+#2\relax} |
| 744 |
\def\xdu@CJK@space{\xdu@unicode{48}{7}} |
| 745 |
\def\CJKindent{% |
| 746 |
\settowidth\xdu@CJK@twochars{\xdu@CJK@space\xdu@CJK@space}% |
| 747 |
\parindent\xdu@CJK@twochars} |
| 748 |
% \end{macrocode} |
| 749 |
% |
| 750 |
% 段落之间的竖直距离 |
| 751 |
% \begin{macrocode} |
| 752 |
\setlength{\parskip}{0pt \@plus0pt \@minus0pt} |
| 753 |
% \end{macrocode} |
| 754 |
% |
| 755 |
% 调整默认列表环境间的距离,以符合中文习惯。 |
| 756 |
% \begin{macro}{xdu@item@space} |
| 757 |
% \begin{macrocode} |
| 758 |
\def\xdu@item@space{% |
| 759 |
\let\itemize\compactitem |
| 760 |
\let\enditemize\endcompactitem |
| 761 |
\let\enumerate\compactenum |
| 762 |
\let\endenumerate\endcompactenum |
| 763 |
\let\description\compactdesc |
| 764 |
\let\enddescription\endcompactdesc} |
| 765 |
%</class> |
| 766 |
% \end{macrocode} |
| 767 |
% \end{macro} |
| 768 |
% |
| 769 |
% \subsubsection{中文标题定义} |
| 770 |
% \label{sec:theor} |
| 771 |
% |
| 772 |
% \changes{v0.2.9.10}{2014/11/24}{根据2014研究生论文版式修正标题样式} |
| 773 |
% \changes{v0.2}{2009/06/06}{加入中文标题的定义} |
| 774 |
% |
| 775 |
% \begin{macrocode} |
| 776 |
%<*config> |
| 777 |
\ifxdu@english |
| 778 |
\renewcommand{\bibname}{References} |
| 779 |
\newcommand{\xdu@ackname}{Acknowledgments} |
| 780 |
\renewcommand{\chaptername}{Chapter {\@arabic\c@chapter}} |
| 781 |
\else |
| 782 |
\renewcommand\contentsname{目录} |
| 783 |
\renewcommand\listfigurename{插图索引} |
| 784 |
\renewcommand\listtablename{表格索引} |
| 785 |
\renewcommand\appendixname{附录} |
| 786 |
\newcommand\listequationname{公式索引} |
| 787 |
\newcommand\equationname{公式} |
| 788 |
\renewcommand\bibname{参考文献} |
| 789 |
\renewcommand\indexname{索引} |
| 790 |
\renewcommand\figurename{图} |
| 791 |
\renewcommand\tablename{表} |
| 792 |
\def\xdu@CJKnumber#1{\ifcase#1{零}\or% |
| 793 |
{一}\or{二}\or{三}\or{四}\or{五}\or% |
| 794 |
{六}\or{七}\or{八}\or{九}\or{十}\or% |
| 795 |
{十一}\or{十二}\or{十三}\or{十四}\or{十五}\or% |
| 796 |
{十六}\or{十七}\or{十八}\or{十九}\or{二十}\fi} |
| 797 |
\newcommand\CJKprepartname{第} |
| 798 |
\newcommand\CJKpartname{部分} |
| 799 |
\newcommand\CJKthepart{\CJKnumber{\@arabic\c@part}} |
| 800 |
\newcommand\CJKprechaptername{第} |
| 801 |
\newcommand\CJKchaptername{章} |
| 802 |
\newcommand\CJKthechapter{\xdu@CJKnumber{\@arabic\c@chapter}} |
| 803 |
\newcommand{\CJKthechaptername}[1]{% |
| 804 |
\CJKprechaptername\xdu@CJKnumber{\@arabic#1}\CJKchaptername} |
| 805 |
\renewcommand{\chaptername}{\CJKprechaptername\CJKthechapter\CJKchaptername} |
| 806 |
\newcommand{\xdu@ackname}{致谢} |
| 807 |
\fi |
| 808 |
\newcommand{\cabstractname}{摘要} |
| 809 |
\newcommand{\eabstractname}{ABSTRACT} |
| 810 |
\newcommand{\xdu@ckeywords@title}{关\hfill{}键\hfill{}词:} |
| 811 |
\newcommand{\xdu@cthesistype@title}{论文类型:} |
| 812 |
\newcommand{\xdu@ekeywords@title}{Keywords:} |
| 813 |
\newcommand{\xdu@ethesistype@title}{Type of Dissertation:} |
| 814 |
%</config> |
| 815 |
% \end{macrocode} |
| 816 |
|
| 817 |
% \subsubsection{章节标题} |
| 818 |
% \label{sec:titleandtoc} |
| 819 |
% |
| 820 |
% \changes{v0.9.8}{2013/03/13}{修正无编号章节的页眉} |
| 821 |
% \changes{v0.9.8}{2013/03/13}{修正章标题之后的空白} |
| 822 |
% \changes{v0.9.8}{2013/03/11}{修正无编号章标题段前段后空白} |
| 823 |
% \changes{v0.9.8}{2013/03/11}{去掉了章标题段首空格} |
| 824 |
% \changes{v0.9.8}{2013/01/19}{增加附录环境} |
| 825 |
% |
| 826 |
% 章标题与章名之间空一个半角空格,居中书写,单倍行距,段前空\texttt{4ex},段后空 |
| 827 |
% \texttt{3ex}。 |
| 828 |
% |
| 829 |
% \begin{macrocode} |
| 830 |
%<*class> |
| 831 |
\newlength{\xdu@chapter@before} |
| 832 |
\newlength{\xdu@chapter@after} |
| 833 |
\ifxdu@bachelor |
| 834 |
\setlength{\xdu@chapter@before}{15mm} |
| 835 |
\setlength{\xdu@chapter@after}{4ex} |
| 836 |
\else |
| 837 |
\setlength{\xdu@chapter@before}{7ex} |
| 838 |
\setlength{\xdu@chapter@after}{5ex} |
| 839 |
\fi |
| 840 |
\renewcommand\chapter{% |
| 841 |
\xdu@clearpage% |
| 842 |
\if@mainmatter\thispagestyle{xdu@headings}% |
| 843 |
\else\thispagestyle{xdu@front}\fi% |
| 844 |
\phantomsection% |
| 845 |
\global\@topnum\z@% |
| 846 |
\secdef\@chapter\@schapter} |
| 847 |
\def\@chapter[#1]#2{% |
| 848 |
\if@mainmatter\refstepcounter{chapter}\fi |
| 849 |
\ifxdu@english% |
| 850 |
\addcontentsline{toc}{chapter}{\xiaosi\bfseries\@chapapp~#1}% |
| 851 |
\chaptermark{\@chapapp~#1}% |
| 852 |
\else% |
| 853 |
\addcontentsline{toc}{chapter}{\xiaosi\song\bfseries\@chapapp\hskip1ex#1}% |
| 854 |
\chaptermark{\@chapapp\hskip2ex#1}% |
| 855 |
\fi% |
| 856 |
\@makechapterhead{#2}} |
| 857 |
\def\@makechapterhead#1{\noindent% |
| 858 |
\parbox[b]{\textwidth}{\vskip\xdu@chapter@before}% |
| 859 |
{\centering \sanhao\song\bfseries% |
| 860 |
\ifnum \c@secnumdepth > \m@ne% |
| 861 |
\@chapapp\hskip1ex% |
| 862 |
\fi% |
| 863 |
\interlinepenalty\@M% |
| 864 |
#1\par\nobreak% |
| 865 |
\vskip\xdu@chapter@after% |
| 866 |
\nointerlineskip}} |
| 867 |
\def\@schapter#1{% |
| 868 |
\addcontentsline{toc}{chapter}{\xiaosi\song\bfseries#1}% |
| 869 |
\chaptermark{#1}% |
| 870 |
\@makeschapterhead{#1} |
| 871 |
\@afterheading} |
| 872 |
\def\@makeschapterhead#1{\noindent% |
| 873 |
\parbox[b]{\textwidth}{\vskip\xdu@chapter@before}% |
| 874 |
{\sanhao\song\bfseries\centering% |
| 875 |
\interlinepenalty\@M |
| 876 |
#1\par\nobreak% |
| 877 |
\vskip\xdu@chapter@after% |
| 878 |
\nointerlineskip}} |
| 879 |
% \end{macrocode} |
| 880 |
% \begin{macro}{\section} |
| 881 |
% |
| 882 |
% 一级节标题,例如:2.1 实验装置与实验方法 |
| 883 |
% 节标题序号与标题名之间空一个汉字符(下同)。 |
| 884 |
% 采用宋体四号(14pt)字书写。 |
| 885 |
% |
| 886 |
% \begin{macrocode} |
| 887 |
\ifxdu@bachelor |
| 888 |
\renewcommand\section{\par% |
| 889 |
\ifdim\prevdepth=-1000pt\dimen0=1ex% |
| 890 |
\else\dimen0=3ex\fi% |
| 891 |
\@startsection {section}{1}{\z@}% |
| 892 |
{\dimen0}% |
| 893 |
{2ex}% |
| 894 |
{\sihao[1.429]\filcenter}} |
| 895 |
\else |
| 896 |
\titleformat{\section}[block]{\xiaosan}{\thesection}{1ex}{} |
| 897 |
\titlespacing{\section}{0pt}{2ex}{2ex} |
| 898 |
\fi |
| 899 |
% \end{macrocode} |
| 900 |
% \end{macro} |
| 901 |
% |
| 902 |
% \begin{macro}{\subsection} |
| 903 |
% 二级节标题,例如:2.1.1 实验方法 |
| 904 |
% 节标题序号与标题名之间空一个汉字符(下同)。 |
| 905 |
% 采用宋体小四号(12pt)字居左书写。 |
| 906 |
% \begin{macrocode} |
| 907 |
\ifxdu@bachelor |
| 908 |
\titleformat{\subsection}[block]{\xiaosi}{\thesubsection}{1ex}{} |
| 909 |
\titlespacing{\subsection}{0em}{2ex}{2ex} |
| 910 |
\else |
| 911 |
\titleformat{\subsection}[block]{\sihao}{\thesubsection}{1ex}{} |
| 912 |
\titlespacing{\subsection}{\xdu@CJK@twochars}{2ex}{2ex} |
| 913 |
\fi |
| 914 |
%</class> |
| 915 |
% \end{macrocode} |
| 916 |
% \end{macro} |
| 917 |
% |
| 918 |
% |
| 919 |
%\subsubsection{目录格式} |
| 920 |
%\label{sec:tableofcontents} |
| 921 |
% |
| 922 |
% \changes{v0.9.8}{2013/03/13}{修正小节目录点间距} |
| 923 |
% \changes{v0.9.8}{2013/03/12}{修正目录点间距、PDF书签} |
| 924 |
% |
| 925 |
% \begin{macrocode} |
| 926 |
%<*class> |
| 927 |
\renewcommand{\tableofcontents}{% |
| 928 |
% \xdu@clearpage% |
| 929 |
% \phantomsection% |
| 930 |
% \@makeschapterhead{\contentsname}% |
| 931 |
% \chaptermark{\contentsname}% |
| 932 |
\chapter*{\contentsname}% |
| 933 |
\@starttoc{toc}} |
| 934 |
\newlength\xdu@dot@space |
| 935 |
\setlength\xdu@dot@space{3bp} |
| 936 |
\titlecontents{chapter}[0pt]{}% |
| 937 |
{\contentslabel{0pt}}% |
| 938 |
{\hspace*{0pt}}% |
| 939 |
{\titlerule*[\xdu@dot@space]{.}\bfseries\contentspage} |
| 940 |
\dottedcontents{section}[4em]{}{2.1em}{\xdu@dot@space} |
| 941 |
\dottedcontents{subsection}[6.8em]{}{2.7em}{\xdu@dot@space} |
| 942 |
%</class> |
| 943 |
% \end{macrocode} |
| 944 |
% |
| 945 |
% \subsubsection{封面和封底} |
| 946 |
% \label{sec:cover} |
| 947 |
% |
| 948 |
% 方便的定义封面的一些替换命令。 |
| 949 |
% |
| 950 |
% \changes{v0.9.9}{2014/04/20}{Cleaned unused codes for master's thesis.} |
| 951 |
% \changes{v0.9.5}{2012/06/23}{引入 \cs{xdu@define@term} 定义封面命令} |
| 952 |
% |
| 953 |
% \begin{macro}{\xdu@define@term} |
| 954 |
% \begin{macrocode} |
| 955 |
%<*class> |
| 956 |
\def\xdu@define@term#1{ |
| 957 |
\expandafter\gdef\csname #1\endcsname##1{% |
| 958 |
\expandafter\gdef\csname xdu@#1\endcsname{##1}} |
| 959 |
\csname #1\endcsname{}} |
| 960 |
% \end{macrocode} |
| 961 |
% \end{macro} |
| 962 |
% |
| 963 |
% \begin{macro}{\subjectcode} |
| 964 |
% \begin{macro}{\catalognumber} |
| 965 |
% \begin{macro}{\classid} |
| 966 |
% \begin{macro}{\studentid} |
| 967 |
% \begin{macro}{\secretlevel} |
| 968 |
% \begin{macro}{\ctitle} |
| 969 |
% \begin{macro}{\cschool} |
| 970 |
% \begin{macro}{\cmajor} |
| 971 |
% \begin{macro}{\cfirstdiscipline} |
| 972 |
% \begin{macro}{\efirstdiscipline} |
| 973 |
% \begin{macro}{\cseconddiscipline} |
| 974 |
% \begin{macro}{\eseconddiscipline} |
| 975 |
% \begin{macro}{\cauthor} |
| 976 |
% \begin{macro}{\csupervisor} |
| 977 |
% \begin{macro}{\ccosupervisor} |
| 978 |
% \begin{macro}{\ecosupervisor} |
| 979 |
% \begin{macro}{\cdate} |
| 980 |
% \begin{macro}{\edate} |
| 981 |
% \begin{macro}{\etitle} |
| 982 |
% \begin{macrocode} |
| 983 |
\xdu@define@term{universitycode} |
| 984 |
\xdu@define@term{catelognumber} |
| 985 |
\xdu@define@term{classid} |
| 986 |
\xdu@define@term{studentid} |
| 987 |
\xdu@define@term{secretlevel} |
| 988 |
\xdu@define@term{ctitle} |
| 989 |
\xdu@define@term{etitle} |
| 990 |
\xdu@define@term{cschool} |
| 991 |
\xdu@define@term{cmajor} |
| 992 |
\xdu@define@term{cfirstdiscipline} |
| 993 |
\xdu@define@term{efirstdiscipline} |
| 994 |
\xdu@define@term{cseconddiscipline} |
| 995 |
\xdu@define@term{eseconddiscipline} |
| 996 |
\xdu@define@term{cauthor} |
| 997 |
\xdu@define@term{eauthor} |
| 998 |
\xdu@define@term{cdegree} |
| 999 |
\xdu@define@term{edegree} |
| 1000 |
\xdu@define@term{csupervisor} |
| 1001 |
\xdu@define@term{esupervisor} |
| 1002 |
\xdu@define@term{ccosupervisor} |
| 1003 |
\xdu@define@term{ecosupervisor} |
| 1004 |
\xdu@define@term{cdate} |
| 1005 |
\xdu@define@term{edate} |
| 1006 |
\xdu@define@term{cthesistype} |
| 1007 |
\xdu@define@term{ethesistype} |
| 1008 |
%</class> |
| 1009 |
% \end{macrocode} |
| 1010 |
% \end{macro} |
| 1011 |
% \end{macro} |
| 1012 |
% \end{macro} |
| 1013 |
% \end{macro} |
| 1014 |
% \end{macro} |
| 1015 |
% \end{macro} |
| 1016 |
% \end{macro} |
| 1017 |
% \end{macro} |
| 1018 |
% \end{macro} |
| 1019 |
% \end{macro} |
| 1020 |
% \end{macro} |
| 1021 |
% \end{macro} |
| 1022 |
% \end{macro} |
| 1023 |
% \end{macro} |
| 1024 |
% \end{macro} |
| 1025 |
% \end{macro} |
| 1026 |
% \end{macro} |
| 1027 |
% \end{macro} |
| 1028 |
% \end{macro} |
| 1029 |
% |
| 1030 |
% \begin{macrocode} |
| 1031 |
%<*config> |
| 1032 |
\def\xdu@universitycode@prefix{学校代码} |
| 1033 |
\def\xdu@catelognumber@prefix{分类号} |
| 1034 |
\def\xdu@classid@prefix{班级} |
| 1035 |
\def\xdu@studentid@prefix{学号} |
| 1036 |
\def\xdu@secretlevel@prefix{密级} |
| 1037 |
\def\xdu@ctitle@prefix{\ifxdu@bachelor{题目}\else{题{\xiaowu(中、英文)}目}\fi} |
| 1038 |
\def\xdu@cschool@prefix{学院} |
| 1039 |
\def\xdu@cmajor@prefix{专业} |
| 1040 |
\def\xdu@cauthor@prefix{\ifxdu@bachelor{学生姓名}\else{作者姓名}\fi} |
| 1041 |
\def\xdu@csupervisor@prefix{\ifxdu@bachelor{导师姓名}% |
| 1042 |
\else\ifxdu@masterpro{学校导师姓名、职称}\else{导师姓名、职称}\fi\fi} |
| 1043 |
\def\xdu@ccosupervisor@prefix{\ifxdu@masterpro{企业导师姓名、职称}\else\relax\fi} |
| 1044 |
\def\xdu@cfirstdiscipline@prefix{\ifxdu@masterpro{领\hskip2em{}域}\else{一级学科}\fi} |
| 1045 |
\def\xdu@cseconddiscipline@prefix{二级学科} |
| 1046 |
\def\xdu@cdegree@prefix{\ifxdu@masterpro{学位类别}\else{申请学位类别}\fi} |
| 1047 |
\def\xdu@cdate@titlepage@prefix{提交学位论文日期} |
| 1048 |
\def\xdu@cdate@prefix{提交日期} |
| 1049 |
\def\xdu@thesis@str{% |
| 1050 |
\ifxdu@bachelor{本科毕业设计论文}\else% |
| 1051 |
\ifxdu@master{硕士学位论文}\else% |
| 1052 |
\ifxdu@doctor{博士学位论文}\else% |
| 1053 |
\ifxdu@masterpro{硕士学位论文}\fi% |
| 1054 |
\fi\fi\fi} |
| 1055 |
%</config> |
| 1056 |
% \end{macrocode} |
| 1057 |
% |
| 1058 |
% \changes{v1.0.0}{2014/11/26}{2014研究生论文封面} |
| 1059 |
% \changes{v0.9.8}{2013/03/14}{修正研究生论文封面行距} |
| 1060 |
% \changes{v0.9.6}{2012/06/27}{完成了本科毕业设计封面设计} |
| 1061 |
% \changes{v0.9.7}{2012/12/12}{完成了研究生论文封面的设计} |
| 1062 |
% \changes{v0.9.7}{2012/12/13}{改进了封面论文题目显示机制,允许题目中使用换行} |
| 1063 |
% |
| 1064 |
% \begin{macrocode} |
| 1065 |
%<*class> |
| 1066 |
\def\xdu@urule#1#2{\hskip2pt\underline{\hb@xt@#1{\hss#2\hss}}\hskip3pt} |
| 1067 |
\def\xdu@put@prefix#1#2{\makebox[#1][s]{#2}} |
| 1068 |
\def\xdu@titlepage{% |
| 1069 |
\ifxdu@bachelor% |
| 1070 |
\xdu@titlepage@bachelor% |
| 1071 |
\else% |
| 1072 |
\xdu@titlepage@graduate% |
| 1073 |
\fi} |
| 1074 |
\newcommand{\xdu@titlepage@bachelor}{ |
| 1075 |
\parbox[b]{0.9\linewidth}{% |
| 1076 |
\xiaosi[1.5]\song\bf\ignorespaces\flushright% |
| 1077 |
\xdu@put@prefix{3em}{\xdu@classid@prefix}\enskip% |
| 1078 |
\xdu@urule{32mm}{\xdu@classid}\par% |
| 1079 |
\xdu@put@prefix{3em}{\xdu@studentid@prefix}\enskip% |
| 1080 |
\xdu@urule{32mm}{\xdu@studentid}} |
| 1081 |
\begin{center} |
| 1082 |
\ifxdu@print\vspace{132mm}\else\vspace{18mm} |
| 1083 |
\includegraphics[width=77mm]{xdubadge}\par |
| 1084 |
\vspace{15mm} |
| 1085 |
\parbox[t]{\linewidth}{\chuhao\hei\centering\xdu@thesis@str}\par |
| 1086 |
\vspace{15mm} |
| 1087 |
\includegraphics[width=44mm]{xdlogo}\par |
| 1088 |
\vspace{18mm}\fi |
| 1089 |
\begin{minipage}{122mm} |
| 1090 |
\flushleft\xiaosan[2.5]\song% |
| 1091 |
\xdu@put@prefix{25mm}{\bf\xdu@ctitle@prefix} |
| 1092 |
\xdu@urule{95mm}{}\par |
| 1093 |
\xdu@put@prefix{25mm}{}\xdu@urule{95mm}{}\par |
| 1094 |
\xdu@put@prefix{25mm}{\bf\xdu@cschool@prefix} |
| 1095 |
\xdu@urule{95mm}{\xdu@cschool}\par |
| 1096 |
\xdu@put@prefix{25mm}{\bf\xdu@cmajor@prefix} |
| 1097 |
\xdu@urule{95mm}{\xdu@cmajor}\par |
| 1098 |
\xdu@put@prefix{25mm}{\bf\xdu@cauthor@prefix} |
| 1099 |
\xdu@urule{95mm}{\xdu@cauthor}\par |
| 1100 |
\xdu@put@prefix{25mm}{\bf\xdu@csupervisor@prefix} |
| 1101 |
\xdu@urule{95mm}{\xdu@csupervisor} |
| 1102 |
\end{minipage} |
| 1103 |
\vskip-87mm\hskip25mm |
| 1104 |
\begin{minipage}{85mm} |
| 1105 |
\xiaosan[2.5]\song\centering\ignorespaces\xdu@ctitle |
| 1106 |
\end{minipage} |
| 1107 |
\end{center} |
| 1108 |
} |
| 1109 |
\newcommand{\xdu@titlepage@graduate}{ |
| 1110 |
\ifxdu@print% |
| 1111 |
\parbox{\textwidth}{\vskip143mm} |
| 1112 |
\else% |
| 1113 |
\parbox{\textwidth}{\vskip35mm} |
| 1114 |
\begin{center} |
| 1115 |
\includegraphics[width=77mm]{xdubadge-gr}\par |
| 1116 |
\vskip15mm |
| 1117 |
\parbox[t]{\linewidth}{\chuhao\hei\centering\xdu@thesis@str}\par |
| 1118 |
\vskip15mm |
| 1119 |
\includegraphics[width=44mm]{xdlogo}\par |
| 1120 |
\end{center} |
| 1121 |
\fi |
| 1122 |
\vskip44mm\noindent |
| 1123 |
\xdu@put@prefix{5em}{\heiti\sihao\bfseries\xdu@cauthor@prefix} |
| 1124 |
\xdu@urule{12em}{\song\sihao\bfseries\xdu@cauthor} |
| 1125 |
\ifxdu@masterpro |
| 1126 |
\xdu@put@prefix{10.5em}{\heiti\sihao\bfseries\xdu@csupervisor@prefix} |
| 1127 |
\xdu@urule{6.5em}{\song\sihao\bfseries\xdu@csupervisor}\par |
| 1128 |
\else |
| 1129 |
\xdu@put@prefix{8em}{\heiti\sihao\bfseries\xdu@csupervisor@prefix} |
| 1130 |
\xdu@urule{9em}{\song\sihao\bfseries\xdu@csupervisor}\par |
| 1131 |
\fi |
| 1132 |
\vskip3ex\noindent |
| 1133 |
\xdu@put@prefix{5em}{\heiti\sihao\bfseries\xdu@cfirstdiscipline@prefix} |
| 1134 |
\xdu@urule{12em}{\song\sihao\bfseries\xdu@cfirstdiscipline} |
| 1135 |
\ifxdu@masterpro |
| 1136 |
\xdu@put@prefix{10.5em}{\heiti\sihao\bfseries\xdu@ccosupervisor@prefix} |
| 1137 |
\xdu@urule{6.5em}{\song\sihao\bfseries\xdu@ccosupervisor}\par |
| 1138 |
\else |
| 1139 |
\xdu@put@prefix{5em}{\heiti\sihao\bfseries\xdu@cseconddiscipline@prefix} |
| 1140 |
\xdu@urule{12em}{\song\sihao\bfseries\xdu@cseconddiscipline}\par |
| 1141 |
\fi |
| 1142 |
\vskip3ex\noindent |
| 1143 |
\xdu@put@prefix{7em}{\heiti\sihao\bfseries\xdu@cdegree@prefix} |
| 1144 |
\xdu@urule{10em}{\song\sihao\bfseries\xdu@cdegree} |
| 1145 |
\xdu@put@prefix{9em}{\heiti\sihao\bfseries\xdu@cdate@titlepage@prefix} |
| 1146 |
\xdu@urule{8em}{\song\sihao\bfseries\xdu@cdate}\par |
| 1147 |
\vskip-79mm\noindent |
| 1148 |
\begin{minipage}{\textwidth} |
| 1149 |
\centering\song\erhao\bfseries\xdu@ctitle\par |
| 1150 |
\end{minipage} |
| 1151 |
} |
| 1152 |
\newcommand{\xdu@cheadpage@bachelor}{} |
| 1153 |
\newcommand{\xdu@eheadpage@bachelor}{} |
| 1154 |
\newcommand{\xdu@cheadpage@graduate}{ |
| 1155 |
\noindent |
| 1156 |
\parbox[b]{\textwidth}{ |
| 1157 |
\vskip4ex |
| 1158 |
\song\wuhao\bfseries\ignorespaces\centering |
| 1159 |
\xdu@put@prefix{4em}{\xdu@universitycode@prefix}% |
| 1160 |
\xdu@urule{8em}{\xdu@universitycode}% |
| 1161 |
\hfill{}% |
| 1162 |
\xdu@put@prefix{4em}{\xdu@studentid@prefix}% |
| 1163 |
\xdu@urule{8em}{\xdu@studentid} |
| 1164 |
\par\vskip1ex |
| 1165 |
\xdu@put@prefix{4em}{\xdu@catelognumber@prefix}% |
| 1166 |
\xdu@urule{8em}{\xdu@catelognumber}% |
| 1167 |
\hfill |
| 1168 |
\xdu@put@prefix{4em}{\xdu@secretlevel@prefix}% |
| 1169 |
\xdu@urule{8em}{\xdu@secretlevel}} |
| 1170 |
\vskip17mm\noindent |
| 1171 |
\begin{center} |
| 1172 |
\begingroup\hei\bfseries\yihao\xdu@xidian@str\par\endgroup |
| 1173 |
\vskip17mm |
| 1174 |
\begingroup\song\erhao\bfseries\xdu@thesis@str\par\endgroup |
| 1175 |
\end{center} |
| 1176 |
\vskip65mm |
| 1177 |
\begingroup\song\sihao[2] |
| 1178 |
\newlength\xdu@headpage@hangpos |
| 1179 |
\setlength\xdu@headpage@hangpos{0.5\textwidth-4em} |
| 1180 |
\noindent\hangindent\xdu@headpage@hangpos\\ |
| 1181 |
\begingroup\bfseries\xdu@cauthor@prefix\endgroup{:}\xdu@cauthor\\ |
| 1182 |
\begingroup\bfseries\xdu@cfirstdiscipline@prefix\endgroup{:} |
| 1183 |
\xdu@cfirstdiscipline\\ |
| 1184 |
\ifxdu@masterpro |
| 1185 |
\begingroup\bfseries\xdu@cdegree@prefix\endgroup{:}\xdu@cdegree\\ |
| 1186 |
\begingroup\bfseries\xdu@csupervisor@prefix\endgroup{:}\xdu@csupervisor\\ |
| 1187 |
\begingroup\bfseries\xdu@ccosupervisor@prefix\endgroup{:}\xdu@ccosupervisor\\ |
| 1188 |
\else |
| 1189 |
\begingroup\bfseries\xdu@cseconddiscipline@prefix\endgroup{:} |
| 1190 |
\xdu@cseconddiscipline\\ |
| 1191 |
\begingroup\bfseries\xdu@cdegree@prefix\endgroup{:}\xdu@cdegree\\ |
| 1192 |
\begingroup\bfseries\xdu@csupervisor@prefix\endgroup{:}\xdu@csupervisor\\ |
| 1193 |
\fi |
| 1194 |
\begingroup\bfseries\xdu@cdate@prefix\endgroup{:}\xdu@cdate\par |
| 1195 |
\endgroup |
| 1196 |
\vskip-110mm\noindent |
| 1197 |
\begin{minipage}{\textwidth} |
| 1198 |
\centering\song\erhao\bfseries\xdu@ctitle\par |
| 1199 |
\end{minipage} |
| 1200 |
} |
| 1201 |
\newcommand{\xdu@eheadpage@graduate}{ |
| 1202 |
\noindent\parbox{\textwidth}{% |
| 1203 |
\ifxdu@doctor\vskip155mm\else\vskip178mm\fi} |
| 1204 |
\noindent |
| 1205 |
\begin{minipage}{1.0\linewidth} |
| 1206 |
\noindent\centering\sanhao[1.57] |
| 1207 |
A \ifxdu@doctor dissertation \else thesis \fi submitted to\\ |
| 1208 |
XIDIAN UNIVERSITY\\ |
| 1209 |
in partial fulfillment of the requirements\\ |
| 1210 |
for the degree of \xdu@edegree% |
| 1211 |
\ifxdu@doctor\relax\else\\in \xdu@efirstdiscipline\fi |
| 1212 |
\end{minipage} |
| 1213 |
\ifxdu@doctor\vskip27mm\else\vskip18mm\fi |
| 1214 |
\begin{minipage}{1.0\linewidth} |
| 1215 |
\noindent\centering\sanhao[1.57] |
| 1216 |
By\\ |
| 1217 |
\xdu@eauthor\\ |
| 1218 |
\ifxdu@doctor(\xdu@efirstdiscipline)\\\fi |
| 1219 |
Supervisor: \xdu@esupervisor% |
| 1220 |
\ifxdu@masterpro\hskip1em\xdu@ecosupervisor\fi\\ |
| 1221 |
\xdu@edate |
| 1222 |
\end{minipage} |
| 1223 |
\vskip-225mm\noindent |
| 1224 |
\begin{minipage}{\textwidth} |
| 1225 |
\noindent\centering\erhao\bfseries\xdu@etitle\par |
| 1226 |
\end{minipage} |
| 1227 |
} |
| 1228 |
\ifxdu@bachelor |
| 1229 |
\let\xdu@cheadpage\xdu@cheadpage@bachelor |
| 1230 |
\let\xdu@eheadpage\xdu@eheadpage@bachelor |
| 1231 |
\else |
| 1232 |
\let\xdu@cheadpage\xdu@cheadpage@graduate |
| 1233 |
\let\xdu@eheadpage\xdu@eheadpage@graduate |
| 1234 |
\fi |
| 1235 |
%</class> |
| 1236 |
% \end{macrocode} |
| 1237 |
% |
| 1238 |
% |
| 1239 |
% \changes{v0.9.9}{2014/04/26}{纯英文论文中不出现作者简介} |
| 1240 |
% \changes{v0.9.7}{2012/12/14}{增加研究论文作者简介} |
| 1241 |
% |
| 1242 |
% \begin{macrocode} |
| 1243 |
%<*config> |
| 1244 |
\ifxdu@english |
| 1245 |
\def\xdu@authorbio@title{Author Biography} |
| 1246 |
\else |
| 1247 |
\def\xdu@authorbio@title{作者简介} |
| 1248 |
\fi |
| 1249 |
%</config> |
| 1250 |
% \end{macrocode} |
| 1251 |
% |
| 1252 |
% \begin{macro}{\xdu@make@authorbio} |
| 1253 |
% \begin{macrocode} |
| 1254 |
%<*class> |
| 1255 |
\long\@xp\def\@xp\collect@@body\@xp#\@xp1\@xp\end\@xp#\@xp2\@xp{% |
| 1256 |
\collect@@body{#1}\end{#2}} |
| 1257 |
\long\@xp\def\@xp\push@begins\@xp#\@xp1\@xp\begin\@xp#\@xp2\@xp{% |
| 1258 |
\push@begins{#1}\begin{#2}} |
| 1259 |
\long\@xp\def\@xp\addto@envbody\@xp#\@xp1\@xp{% |
| 1260 |
\addto@envbody{#1}} |
| 1261 |
\newcommand{\xdu@@cauthorbio}[1]{\long\gdef\xdu@cauthorbio{#1}} |
| 1262 |
\newenvironment{cauthorbio}[1]{\long\gdef\xdu@bio@photo{#1}% |
| 1263 |
\collect@body\xdu@@cauthorbio}{} |
| 1264 |
\newcommand{\xdu@@eauthorbio}[1]{\long\gdef\xdu@eauthorbio{#1}} |
| 1265 |
\newenvironment{eauthorbio}{\collect@body\xdu@@eauthorbio}{} |
| 1266 |
% 照片区域大小 IEEEtran格式 |
| 1267 |
\def\xdu@bio@photowidth{1.00in} % width of the biography photo area |
| 1268 |
\def\xdu@bio@photodepth{1.25in} % depth (height) of the biography photo area |
| 1269 |
% 为放置照片留出的空白区域大小 |
| 1270 |
\def\xdu@bio@hangwidth{1.15in} % width cleared for the biography photo area |
| 1271 |
\def\xdu@bio@hangdepth{1.25in} % depth cleared for the biography photo area |
| 1272 |
\newdimen\@xdtmpdimenA |
| 1273 |
\newdimen\@xdtmpdimenB |
| 1274 |
\newcount\@xdtmpcountA |
| 1275 |
\def\xdu@make@authorbio{% |
| 1276 |
\begin{center} |
| 1277 |
\ifxdu@english% |
| 1278 |
\sanhao[2]\bfseries{\xdu@authorbio@title} |
| 1279 |
\else |
| 1280 |
\sanhao[2]\hei{\xdu@authorbio@title} |
| 1281 |
\fi |
| 1282 |
\end{center} |
| 1283 |
\vskip2ex% |
| 1284 |
\def\xdu@temp@photobox{\mbox{% |
| 1285 |
\begin{minipage}[b][\xdu@bio@photodepth][c]{\xdu@bio@photowidth}% |
| 1286 |
\centering \xdu@bio@photo% |
| 1287 |
\end{minipage}}} |
| 1288 |
\settoheight{\@xdtmpdimenA}{\xdu@temp@photobox} |
| 1289 |
\@xdtmpdimenB=\xdu@bio@hangdepth% |
| 1290 |
% countA has the hang depth |
| 1291 |
\@xdtmpcountA=\@xdtmpdimenB |
| 1292 |
% calculates lines needed to produce the hang depth |
| 1293 |
\divide\@xdtmpcountA by \baselineskip |
| 1294 |
\advance\@xdtmpcountA by 1% ensure we overestimate |
| 1295 |
% reference the top of the photo area to the top of a capital T |
| 1296 |
\settoheight{\@xdtmpdimenB}{\mbox{T}}% |
| 1297 |
\noindent\makebox[0pt][l]{\hspace{-\xdu@bio@hangwidth}% |
| 1298 |
\raisebox{\@xdtmpdimenB}[0pt][0pt]{% |
| 1299 |
\raisebox{-\xdu@bio@photodepth}[0pt][0pt]{\xdu@temp@photobox}}}% |
| 1300 |
\hangindent\xdu@bio@hangwidth% |
| 1301 |
\hangafter-\@xdtmpcountA% |
| 1302 |
\ifxdu@english% |
| 1303 |
\xdu@eauthorbio\par% |
| 1304 |
\else |
| 1305 |
\indent\xdu@cauthorbio\par% |
| 1306 |
\fi |
| 1307 |
\ifnum \prevgraf <\@xdtmpcountA\relax% detect when the biography text is shorter than the photo |
| 1308 |
\advance\@xdtmpcountA by -\prevgraf% calculate how many lines we need to pad |
| 1309 |
\advance\@xdtmpcountA by -1\relax% we compensate for the fact that we indented an extra line |
| 1310 |
\@xdtmpdimenA=\baselineskip% calculate the length of the padding |
| 1311 |
\multiply\@xdtmpdimenA by \@xdtmpcountA% |
| 1312 |
\noindent\rule{0pt}{\@xdtmpdimenA}% insert an invisible support strut |
| 1313 |
\fi% |
| 1314 |
\ifxdu@english\relax\else\xdu@eauthorbio\par\fi% |
| 1315 |
} |
| 1316 |
%</class> |
| 1317 |
% \end{macrocode} |
| 1318 |
% \end{macro} |
| 1319 |
% |
| 1320 |
% |
| 1321 |
% 封面中论文诚信声明部分。 |
| 1322 |
% |
| 1323 |
% \changes{v0.9.7}{2012/12/12}{增加各级学位论文诚信声明页} |
| 1324 |
% |
| 1325 |
%<*config> |
| 1326 |
\def\xdu@xidian@str{西安电子科技大学} |
| 1327 |
\def\xdu@declaration@title{% |
| 1328 |
\ifxdu@bachelor{毕业设计(论文)诚信声明书}% |
| 1329 |
\else{学位论文独创性(或创新性)声明}\fi} |
| 1330 |
\def\xdu@authorization@title{\ifxdu@bachelor{}% |
| 1331 |
\else{关于论文使用授权的说明}\fi} |
| 1332 |
\def\xdu@declaration@str{ |
| 1333 |
\ifxdu@bachelor{本人声明:本人所提交的毕业论文《\xdu@ctitle》是本人在指导教师指 |
| 1334 |
导下独立研究、写作的成果,论文中所引用他人的无论以何种方式发布的文字、研究成 |
| 1335 |
果, 均在论文中加以说明;有关教师、同学和其他人员对本文的写作、修订提出过并为 |
| 1336 |
我在论文中加以采纳的意见、建议,均已在我的致谢辞中加以说明并深致谢意。\par{} |
| 1337 |
本论文和资料若有不实之处,本人承担一切相关责任。} |
| 1338 |
\else{秉承学校严谨的学风和优良的科学道德,本人声明所呈交的论文是我 |
| 1339 |
个人在导师指导下进行的研究工作及取得的研究成果。尽我所知,除了文中特别加以标 |
| 1340 |
注和致谢中所罗列的内容以外,论文中不包含其他人已经发表或撰写过的研究成果; 也 |
| 1341 |
不包含为获得西安电子科技大学或其它教育机构的学位或证书而使用过的材料。与我一 |
| 1342 |
同工作的同志对本研究所做的任何贡献均已在论文中做了明确的说明并表示了谢 |
| 1343 |
意。\par{} |
| 1344 |
学位论文若有不实之处,本人承担一切法律责任。} |
| 1345 |
\fi} |
| 1346 |
\def\xdu@authorization@str{ |
| 1347 |
\ifxdu@bachelor\relax |
| 1348 |
\else{本人完全了解西安电子科技大学有关保留和使用学位论文的规定,即: |
| 1349 |
研究生在校攻读学位期间论文工作的知识产权单位属于西安电子科技大学。学校有权保 |
| 1350 |
留送交论文的复印件,允许查阅、借阅论文;学校可以公布论文的全部或部分内容,允 |
| 1351 |
许采用影印、缩印或其它复制手段保存论文。同时本人保证,获得学位后结合学位论文 |
| 1352 |
研究成果撰写的文章,署名单位为西安电子科技大学。\par{}% |
| 1353 |
保密的学位论文在\underline{\hskip2em}年解密后适用本授权书。} |
| 1354 |
\fi} |
| 1355 |
\def\xdu@author@presig{\ifxdu@bachelor{论文作者:}\else{本人签名:}\fi} |
| 1356 |
\def\xdu@supervisor@presig{\ifxdu@bachelor{指导教师已阅:}% |
| 1357 |
\else{导师签名:}\fi} |
| 1358 |
\def\xdu@date@presig{\ifxdu@bachelor{日期}\else{日 期:}\fi} |
| 1359 |
%</config> |
| 1360 |
% |
| 1361 |
% \begin{macro}{\xdu@make@declaration} |
| 1362 |
% \begin{macrocode} |
| 1363 |
%<*class> |
| 1364 |
\def\xdu@make@declaration{% |
| 1365 |
\song\xiaosi[1.5] |
| 1366 |
{\centering\bfseries\ifxdu@bachelor\sanhao\else\sihao[1.6]\fi% |
| 1367 |
\xdu@xidian@str\par\xdu@declaration@title\par} |
| 1368 |
\vskip4ex\xdu@declaration@str\vskip3ex |
| 1369 |
\xdu@put@prefix{5em}{\xdu@author@presig}\underline{\hskip30mm}\hskip25mm |
| 1370 |
\ifxdu@bachelor |
| 1371 |
\xdu@put@prefix{2em}{\xdu@date@presig}\underline{\hskip30mm}\par |
| 1372 |
\else |
| 1373 |
\xdu@put@prefix{5em}{\xdu@date@presig}\underline{\hskip30mm}\par |
| 1374 |
\fi |
| 1375 |
\vskip16ex |
| 1376 |
\ifxdu@bachelor\relax\else |
| 1377 |
{\centering\bfseries\ifxdu@bachelor\sanhao\else\sihao[1.6]\fi% |
| 1378 |
\xdu@xidian@str\par\xdu@authorization@title\par} |
| 1379 |
\vskip4ex\xdu@authorization@str\par\vskip3ex |
| 1380 |
\xdu@put@prefix{5em}{\xdu@author@presig}\underline{\hskip30mm}\hskip25mm |
| 1381 |
\xdu@put@prefix{5em}{\xdu@supervisor@presig}\underline{\hskip30mm}\par |
| 1382 |
\vskip3ex |
| 1383 |
\xdu@put@prefix{5em}{\xdu@date@presig}\underline{\hskip30mm}\hskip25mm |
| 1384 |
\xdu@put@prefix{5em}{\xdu@date@presig}\underline{\hskip30mm}\par |
| 1385 |
\fi |
| 1386 |
} |
| 1387 |
% \end{macrocode} |
| 1388 |
% \end{macro} |
| 1389 |
% |
| 1390 |
% \begin{macro}{\makecover} |
| 1391 |
% \changes{v0.9.5}{2012/06/23}{分成几个小模块来搞,不然这个 macro 太大了,看不过来} |
| 1392 |
% |
| 1393 |
% \begin{macrocode} |
| 1394 |
\newcommand{\makecover}{ |
| 1395 |
\begin{titlepage} |
| 1396 |
\xdu@titlepage |
| 1397 |
\end{titlepage} |
| 1398 |
\xdu@clearpage |
| 1399 |
\thispagestyle{xdu@empty} |
| 1400 |
\xdu@cheadpage |
| 1401 |
\xdu@clearpage |
| 1402 |
\thispagestyle{xdu@empty} |
| 1403 |
\xdu@eheadpage |
| 1404 |
\xdu@clearpage |
| 1405 |
\addtolength{\topmargin}{15pt} |
| 1406 |
\thispagestyle{xdu@empty} |
| 1407 |
\xdu@make@declaration |
| 1408 |
\xdu@clearpage |
| 1409 |
\addtolength{\topmargin}{-15pt} |
| 1410 |
\setcounter{page}{1} |
| 1411 |
\xdu@makeabstract |
| 1412 |
} |
| 1413 |
%</class> |
| 1414 |
% \end{macrocode} |
| 1415 |
% \end{macro} |
| 1416 |
% |
| 1417 |
% \subsubsection{数学相关} |
| 1418 |
%\label{sec:maths} |
| 1419 |
% |
| 1420 |
% \begin{macrocode} |
| 1421 |
%<*class> |
| 1422 |
\renewcommand\theequation{\ifnum \c@chapter>\z@ \thechapter% |
| 1423 |
-\fi\@arabic\c@equation} |
| 1424 |
%</class> |
| 1425 |
% \end{macrocode} |
| 1426 |
% |
| 1427 |
% \subsubsection{浮动对象以及表格} |
| 1428 |
% \label{sec:float} |
| 1429 |
% |
| 1430 |
% 设置浮动对象和文字之间的距离 |
| 1431 |
% |
| 1432 |
% \changes{v0.9.8}{2013/03/14}{设置图表长标题居中对齐} |
| 1433 |
% \changes{v0.2}{2009/06/06}{增加\cs{subfloat}} |
| 1434 |
% |
| 1435 |
% \begin{macrocode} |
| 1436 |
%<*class> |
| 1437 |
\let\old@tabular\@tabular |
| 1438 |
\def\xdu@tabular{\wuhao\old@tabular} |
| 1439 |
\ifxdu@english |
| 1440 |
\DeclareCaptionLabelFormat{xdu@cap}{{\wuhao#1~\rmfamily#2}} |
| 1441 |
\else |
| 1442 |
\DeclareCaptionLabelFormat{xdu@cap}{{\wuhao#1\rmfamily#2}} |
| 1443 |
\fi |
| 1444 |
\DeclareCaptionLabelSeparator{xdu@sep}{\hspace{1em}} |
| 1445 |
\DeclareCaptionFont{xdu@capfont}{\wuhao} |
| 1446 |
\captionsetup{labelformat=xdu@cap, |
| 1447 |
labelsep=xdu@sep, |
| 1448 |
font=xdu@capfont, |
| 1449 |
justification=centering} |
| 1450 |
\captionsetup[table]{position=top, belowskip={1pc-\intextsep}, aboveskip=1pc} |
| 1451 |
\captionsetup[figure]{position=bottom, belowskip={1pc-\intextsep}, aboveskip=1pc} |
| 1452 |
\captionsetup[subfloat]{font=xdu@capfont,captionskip=6bp,% |
| 1453 |
nearskip=6bp,farskip=0bp,topadjust=0bp} |
| 1454 |
\renewenvironment{table}{% |
| 1455 |
\renewcommand* {\@floatboxreset}{% |
| 1456 |
\reset@font\@setminipage} |
| 1457 |
\dawu\@float{table}% |
| 1458 |
}{% |
| 1459 |
\end@float\normalsize |
| 1460 |
} |
| 1461 |
%</class> |
| 1462 |
% \end{macrocode} |
| 1463 |
|
| 1464 |
% \subsubsection{摘要格式} |
| 1465 |
% \label{sec:abstractformat} |
| 1466 |
% |
| 1467 |
% \changes{v1.0.0}{2014/11/24}{按照2014研究生论文版式修改摘要模板} |
| 1468 |
% \changes{v0.9.9}{2014/04/20}{Fixed fragile {e,c}abstract environments.} |
| 1469 |
% |
| 1470 |
% \begin{macro}{\xdu@makeabstract} |
| 1471 |
% 中文摘要部分的标题为"摘要",用宋体三号字加精力。 |
| 1472 |
% \begin{macrocode} |
| 1473 |
%<*class> |
| 1474 |
\newcommand{\xdu@@cabstract}[1]{\long\gdef\xdu@cabstract{#1}} |
| 1475 |
\newenvironment{cabstract}{\collect@body\xdu@@cabstract}{} |
| 1476 |
\newcommand{\xdu@@eabstract}[1]{\long\gdef\xdu@eabstract{#1}} |
| 1477 |
\newenvironment{eabstract}{\collect@body\xdu@@eabstract}{} |
| 1478 |
\newcommand{\xdu@@ckeywords}[1]{\long\gdef\xdu@ckeywords{#1}} |
| 1479 |
\newenvironment{ckeywords}{\collect@body\xdu@@ckeywords}{} |
| 1480 |
\newcommand{\xdu@@ekeywords}[1]{\long\gdef\xdu@ekeywords{#1}} |
| 1481 |
\newenvironment{ekeywords}{\collect@body\xdu@@ekeywords}{} |
| 1482 |
\newcommand{\xdu@makeabstract}{% |
| 1483 |
\xdu@mkabstracttrue% |
| 1484 |
% 摘要内容用小四号字书写,两端对齐,汉字用宋体,外文字用Times New Roman 体,标点 |
| 1485 |
% 符号一律用中文输入状态下的标点符号 |
| 1486 |
\expandafter \ifx \csname xdu@cabstract\endcsname% |
| 1487 |
\relax\else% |
| 1488 |
\chapter*{\cabstractname}% |
| 1489 |
\normalsize\par\xdu@cabstract\vskip12bp% |
| 1490 |
%本科关键词为悬挂缩进 |
| 1491 |
\ifxdu@bachelor% |
| 1492 |
\setbox0=\hbox{\hei\xdu@ckeywords@title\hspace{1em}}% |
| 1493 |
\noindent\hangindent\wd0\hangafter1 |
| 1494 |
\expandafter \ifx \csname xdu@ckeywords\endcsname% |
| 1495 |
\relax\box0{\hei}% |
| 1496 |
\else\box0{\hei\xdu@ckeywords}\fi% |
| 1497 |
\else%% 硕士、博士论文格式相同 |
| 1498 |
\begingroup\song\wuhao |
| 1499 |
\setbox0=\hbox{\bfseries\xdu@cthesistype@title}% |
| 1500 |
\setbox1=\hbox to \wd0 {\bfseries\xdu@ckeywords@title}% |
| 1501 |
\noindent\hangindent\wd0\hangafter1 |
| 1502 |
\expandafter \ifx \csname xdu@ckeywords\endcsname% |
| 1503 |
\relax\box1{\bfseries}% |
| 1504 |
\else\box1{\xdu@ckeywords}\fi% |
| 1505 |
\par\noindent\box0{\bfseries}\xdu@cthesistype% |
| 1506 |
\endgroup% |
| 1507 |
\fi% |
| 1508 |
\fi% |
| 1509 |
% 英文摘要部分的标题为“ABSTRACT”,用Times New Roman 体三号字。 |
| 1510 |
\expandafter \ifx \csname xdu@eabstract\endcsname \relax% |
| 1511 |
\else% |
| 1512 |
\chapter*{\bfseries\eabstractname}% |
| 1513 |
\normalsize\par\xdu@eabstract\vskip12bp% |
| 1514 |
% 关键词为悬挂缩进(本科、硕士、博士论文格式相同) |
| 1515 |
\begingroup\ifxdu@bachelor\normalsize\else\wuhao\fi |
| 1516 |
\setbox0=\hbox{\bfseries\xdu@ekeywords@title\hskip1em}% |
| 1517 |
\noindent\hangindent\wd0\hangafter1% |
| 1518 |
\expandafter \ifx \csname xdu@ekeywords\endcsname% |
| 1519 |
\relax\box0{\ifxdu@bachelor\bfseries\fi}% |
| 1520 |
\else\box0{\ifxdu@bachelor\bfseries\fi\xdu@ekeywords}\fi% |
| 1521 |
\ifxdu@bachelor\relax\else% |
| 1522 |
\par\noindent {\bfseries\xdu@ethesistype@title}% |
| 1523 |
\hskip1em\xdu@ethesistype |
| 1524 |
\endgroup |
| 1525 |
\fi% |
| 1526 |
\fi |
| 1527 |
\xdu@mkabstractfalse% |
| 1528 |
} |
| 1529 |
%</class> |
| 1530 |
% \end{macrocode} |
| 1531 |
% \end{macro} |
| 1532 |
% |
| 1533 |
% |
| 1534 |
% \subsubsection{插图索引/表格索引} |
| 1535 |
% \label{sec:floatlists} |
| 1536 |
% |
| 1537 |
% \changes{v1.0.0}{2014/11/24}{按照2014研究生论文版式增加插图与表格索引} |
| 1538 |
% |
| 1539 |
% \begin{macro}{listoffigures} |
| 1540 |
% \begin{macro}{listoftables} |
| 1541 |
% \begin{macrocode} |
| 1542 |
%<*class> |
| 1543 |
\def\@tocrmarg{2em} |
| 1544 |
\def\@dotsep{1} % 目录点间的距离 |
| 1545 |
\def\@dottedtocline#1#2#3#4#5{% |
| 1546 |
\ifnum #1>\c@tocdepth \else |
| 1547 |
\vskip \z@ \@plus.2\p@ |
| 1548 |
{\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip |
| 1549 |
\parindent #2\relax\@afterindenttrue |
| 1550 |
\interlinepenalty\@M |
| 1551 |
\leavevmode |
| 1552 |
\@tempdima #3\relax |
| 1553 |
\advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip |
| 1554 |
{#4}\nobreak\hskip2pt |
| 1555 |
\leaders\hbox{$\m@th\mkern \@dotsep mu\hbox{.}\mkern \@dotsep mu$}\hfill |
| 1556 |
\nobreak{\normalfont \normalcolor #5}% |
| 1557 |
\par}% |
| 1558 |
\fi} |
| 1559 |
\def\xdu@starttoc#1{% #1: float type, prepend type name in \listof*** entry. |
| 1560 |
\let\oldnumberline\numberline |
| 1561 |
\def\numberline##1{\oldnumberline{\csname #1name\endcsname% |
| 1562 |
\ifxdu@english~\else\hskip.2em\fi ##1}} |
| 1563 |
\@starttoc{\csname ext@#1\endcsname} |
| 1564 |
\let\numberline\oldnumberline} |
| 1565 |
\def\xdu@listof#1{% #1: float type |
| 1566 |
\@ifstar |
| 1567 |
{\chapter*[]{\csname list#1name\endcsname}\xdu@starttoc{#1}} |
| 1568 |
{\chapter*{\csname list#1name\endcsname}\xdu@starttoc{#1}}} |
| 1569 |
\renewcommand\listoffigures{\xdu@listof{figure}} |
| 1570 |
\ifxdu@english |
| 1571 |
\renewcommand*\l@figure{\@dottedtocline{1}{0em}{5em}} |
| 1572 |
\else |
| 1573 |
\renewcommand*\l@figure{\@dottedtocline{1}{0em}{3.2em}} |
| 1574 |
\fi |
| 1575 |
\renewcommand\listoftables{\xdu@listof{table}} |
| 1576 |
\let\l@table\l@figure |
| 1577 |
%<class> |
| 1578 |
% \end{macrocode} |
| 1579 |
% \end{macro} |
| 1580 |
% \end{macro} |
| 1581 |
% |
| 1582 |
% |
| 1583 |
% \subsubsection{参考文献} |
| 1584 |
% \label{sec:ref} |
| 1585 |
% |
| 1586 |
% \begin{macro}{\onlinecite} |
| 1587 |
% 正文引用模式。依赖于\pkg{natbib}宏包,修改其中的命令。 |
| 1588 |
% \begin{macrocode} |
| 1589 |
%<*class> |
| 1590 |
\bibpunct{[}{]}{,}{s}{}{,} |
| 1591 |
\renewcommand\NAT@citesuper[3]{\ifNAT@swa |
| 1592 |
\unskip\kern\p@\textsuperscript{\NAT@@open #1\NAT@@close}% |
| 1593 |
\if*#3*\else\ (#3)\fi\else #1\fi\endgroup} |
| 1594 |
\DeclareRobustCommand\onlinecite{\@onlinecite} |
| 1595 |
\def\@onlinecite#1{\begingroup\let\@cite\NAT@citenum\citep{#1}\endgroup} |
| 1596 |
% \end{macrocode} |
| 1597 |
% \end{macro} |
| 1598 |
% |
| 1599 |
% 参考文献的正文部分用五号字。 |
| 1600 |
% 行距采用固定值16磅,段前空3磅,段后空0磅。 |
| 1601 |
% |
| 1602 |
% \begin{environment}{thebibliography} |
| 1603 |
% 修改默认的thebibliography环境,增加一些调整代码。 |
| 1604 |
% \begin{macrocode} |
| 1605 |
\renewenvironment{thebibliography}[1]{% |
| 1606 |
\chapter*{\bibname}% |
| 1607 |
\wuhao[1.5]% |
| 1608 |
\list{\@biblabel{\@arabic\c@enumiv}}% |
| 1609 |
{\renewcommand{\makelabel}[1]{##1\hfill} |
| 1610 |
\settowidth\labelwidth{1.1cm} |
| 1611 |
\setlength{\labelsep}{0.6em} |
| 1612 |
\setlength{\itemindent}{0pt} |
| 1613 |
\setlength{\leftmargin}{\labelwidth+\labelsep} |
| 1614 |
\addtolength{\itemsep}{-0.7em} |
| 1615 |
\usecounter{enumiv}% |
| 1616 |
\let\p@enumiv\@empty |
| 1617 |
\renewcommand\theenumiv{\@arabic\c@enumiv}}% |
| 1618 |
\sloppy |
| 1619 |
\clubpenalty4000 |
| 1620 |
\@clubpenalty \clubpenalty |
| 1621 |
\widowpenalty4000% |
| 1622 |
\interlinepenalty4000% |
| 1623 |
\sfcode`\.\@m} |
| 1624 |
{\def\@noitemerr |
| 1625 |
{\@latex@warning{Empty `thebibliography' environment}}% |
| 1626 |
\endlist} |
| 1627 |
%</class> |
| 1628 |
% \end{macrocode} |
| 1629 |
% \end{environment} |
| 1630 |
% |
| 1631 |
% \subsubsection{致谢} |
| 1632 |
% \label{sec:ack} |
| 1633 |
% |
| 1634 |
% \begin{macrocode} |
| 1635 |
%<*class> |
| 1636 |
\ifxdu@english |
| 1637 |
\newenvironment{acknowledgments}{\chapter*{\bfseries\xdu@ackname}}{} |
| 1638 |
\else |
| 1639 |
\newenvironment{acknowledgments}{\chapter*{\xdu@ackname}}{} |
| 1640 |
\fi |
| 1641 |
%</class> |
| 1642 |
% \end{macrocode} |
| 1643 |
% |
| 1644 |
% \subsubsection{附录} |
| 1645 |
% \label{sec:appendix} |
| 1646 |
% |
| 1647 |
% \begin{macrocode} |
| 1648 |
%<*class> |
| 1649 |
\let\xdu@appendix\appendix |
| 1650 |
\renewenvironment{appendix}{ |
| 1651 |
\xdu@appendix |
| 1652 |
\gdef\@chapapp{\appendixname~\thechapter} |
| 1653 |
}{} |
| 1654 |
%</class> |
| 1655 |
% \end{macrocode} |
| 1656 |
% |
| 1657 |
% \begin{macrocode} |
| 1658 |
%<class>\AtEndOfClass{\input{xduthesis.cfg}}% |
| 1659 |
% \end{macrocode} |
| 1660 |
% |
| 1661 |
% 把 CJK 环境放到合适的位置,以免导致其它宏包的命令位于 CJK 环境中而出现问题(比 |
| 1662 |
% 如 natbib 的``Multiple-defined labels'',同时自动开启 CJK。 |
| 1663 |
% \begin{macrocode} |
| 1664 |
%<*class> |
| 1665 |
\AtBeginDocument{\CJKindent} |
| 1666 |
\AtEndOfClass{\sloppy\xdu@item@space} |
| 1667 |
%</class> |
| 1668 |
% \end{macrocode} |
| 1669 |
% |
| 1670 |
% \Finale |
| 1671 |
\endinput |