wang_rx 发表于 2017-6-22 10:18:17

Latex 博客模板-基于电子科技大学学位论文latex模板

  主要修改了原工程的thesis.clx文件,主要修改了
  1 封面LOGO 2 封面个人信息 3 去掉英文摘要、英文译文等章节 ,使内容更适合paper。
  修改的代码如下:





%%
%% This is file `uestcthesis.cls',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% uestcthesis.dtx(with options: `class')
%%
%% This is a generated file.
%%
%%Copyright 2012-2013 Shi Fujun <shifujun@foxmail.com>
%%
%%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 <shifujun@foxmail.com>.
%%
%%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.
%%

\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{uestcthesis}
   
\LoadClass{ctexbook}
\RequirePackage{etoolbox}
\RequirePackage{ifthen}
\newcommand{\bachelor@uestcthesis}{
\newcommand{\degree@uestcthesis}{bachelor}
\newcommand{\bachelortitlepage@uestcthesis}{}%先声明宏,稍后定义。
\newcommand{\titlepage@degree}{\bachelortitlepage@uestcthesis}

\newcommand{\multibibflag@uestcthesis}{}

\newcommand{\thesisname@degree}{天线领域的一名小学生}

\newcommand{\chapternumberformat@uestcthesis}{\arabic{chapter}}
}
\newcommand{\master@uestcthesis}{
\newcommand{\degree@uestcthesis}{master}
\newcommand{\mastertitlepage@uestcthesis}{}%先声明宏,稍后定义。
\newcommand{\titlepage@degree}{\mastertitlepage@uestcthesis}

\newcommand{\multibibflag@uestcthesis}{TRUE}

\newcommand{\thesisname@degree}{博客随笔}

\newcommand{\publicationsname@degree}{研究成果}

\newcommand{\@degree}{硕士}

\newcommand{\publicationsname@english}{Research Results Obtained During the Study for Master Degree}
\newcommand{\thesisname@english}{Master Thesis of University of Electronic Science and Technology of China}

\newcommand{\chapternumberformat@uestcthesis}{\chinese{chapter}}
}
\newcommand{\doctor@uestcthesis}{
\newcommand{\degree@uestcthesis}{doctor}
\newcommand{\doctortitlepage@uestcthesis}{}%先声明宏,稍后定义。
\newcommand{\titlepage@degree}{\doctortitlepage@uestcthesis}

\newcommand{\multibibflag@uestcthesis}{TRUE}

\newcommand{\thesisname@degree}{电子科技大学博士学位论文}

\newcommand{\publicationsname@degree}{攻博期间取得的研究成果}

\newcommand{\@degree}{博士}

\newcommand{\publicationsname@english}{Research Results Obtained During the Study for Doctor Degree}
\newcommand{\thesisname@english}{Doctor Thesis of University of Electronic Science and Technology of China}

\newcommand{\chapternumberformat@uestcthesis}{\chinese{chapter}}
}
\newcommand{\tocname@uestcthesis}{\zihao{5}目\enspace 录}
\newcommand{\chaptername@uestcthesis}{
\CTEXsetup[ name={第,章},
             number={\chapternumberformat@uestcthesis}
             ]{chapter}
             }
\newcommand{\chaptermarkfix@uestcthesis}{
\renewcommand{\chaptermark}{\markboth{第\chapternumberformat@uestcthesis章~##1 }{}}
}
\newcommand{\acknowledgementsname@uestcthesis}{致\enspace 谢}
\newcommand{\glossaryname@uestcthesis}{主要符号表}
\newcommand{\entryname@uestcthesis}{符号或术语}
\newcommand{\descriptionname@uestcthesis}{说明}
\newcommand{\glspageheader@uestcthesis}{页码}
\newcommand{\english@uestcthesis}{
\renewcommand{\tocname@uestcthesis}{\zihao{5}Contents}
\renewcommand{\chaptername@uestcthesis}{
\CTEXsetup[ name={Chapter\space,},
             number={\arabic{chapter}}
             ]{chapter}
             }
\renewcommand{\chaptermarkfix@uestcthesis}{}
\renewcommand{\chaptermark}{\markboth{Chapter\space\arabic{chapter}~##1 }{}}

\renewcommand{\acknowledgementsname@uestcthesis}{Acknowledgements}
\renewcommand{\CTEX@bibname}{References}
\renewcommand{\publicationsname@degree}{\publicationsname@english}
\renewcommand{\thesisname@degree}{\thesisname@english}
\renewcommand{\CTEX@figurename}{Figure}
\renewcommand{\CTEX@tablename}{Table}
\renewcommand{\glossaryname@uestcthesis}{Glossary}
\renewcommand{\entryname@uestcthesis}{Notation}
\renewcommand{\descriptionname@uestcthesis}{Description}
\renewcommand{\glspageheader@uestcthesis}{Page}
\renewcommand{\CTEX@appendixname}{Appendix~}
}
\DeclareOption{bachelor}{\bachelor@uestcthesis}
\DeclareOption{master}{\master@uestcthesis}
\DeclareOption{doctor}{\doctor@uestcthesis}
\DeclareOption{english}{\english@uestcthesis}
\ProcessOptions\relax
\RequirePackage[a4paper,headheight=12.65pt,headsep=4mm,includeheadfoot,centering,
               top=2.75cm,left=3cm]{geometry}
\linespread{1.391}
\parskip=0bp plus 10bp minus 1bp
\raggedbottom
\RequirePackage{graphicx,calc,float,texnames}
\RequirePackage{caption}
\intextsep=6bp
\captionsetup{aboveskip=0bp,belowskip=-7mm+6bp}
\captionsetup{aboveskip=0bp,belowskip=0bp}
\RequirePackage{booktabs,tabularx,threeparttable,longtable}
\DeclareCaptionFont{capfont}{\zihao{5}}
\captionsetup{font=capfont}
\renewcommand{\thefigure}{\arabic{chapter}\textendash\arabic{figure}}
\renewcommand{\thetable}{\arabic{chapter}\textendash\arabic{table}}
\graphicspath{{pics/}}
\RequirePackage{placeins}
\RequirePackage{flafter}
\newcommand{\newcmds@uestcthesis}{
\newcommand{\pic}{
\begin{figure}[##1]
\centering
   \includegraphics[##3]{##4}
   \caption{##2}
   \label{##4}
\end{figure}
}
\newcommand{\subpiclabel}{}%定义一个空的多图环境整体的标签变量
\newcommand{\subpiccaption}{}%定义一个空的多图环境整体的标题变量
\newenvironment{pics}{%定义多图环境
\renewcommand{\subpiclabel}{##3}%设置多图环境整体的标签
\renewcommand{\subpiccaption}{##2}%设置多图环境整体的标题。这里先定义两个空变量,又设置值,是因为在定义一个环境时,环境结尾中不能调用##2,##3等传入的值。所以要在环境结尾中插入标题和标签就只能这么做了。
\begin{figure}[##1]
\centering}
{\caption{\subpiccaption}
\label{\subpiclabel}
\end{figure}
}
\newcommand{\addsubpic}{
\subfigure[##1]{\label{##3}\includegraphics[##2]{##3}}
}
\newcommand{\threelinetable}{
\begin{table}[##1]
\zihao{5}%管理规范中要求表格中文字为五号字。
\centering
\begin{threeparttable}
\caption{##5}
\label{##2}
\begin{tabularx}{##3}{##4}
\toprule
##6
\midrule
##7
\bottomrule
\end{tabularx}
\ifblank{##8}{}{
\begin{tablenotes}
##8
\end{tablenotes}
}
\end{threeparttable}
\end{table}
}
\newcommand{\longthreelinetable}{
{
\zihao{5}%管理规范中要求表格中文字为五号字。
\centering
\begin{longtable}{##4}
\caption{##2}\label{##1}\\
\toprule
##5
\midrule
\endfirsthead
\multicolumn{##3}{r}{\footnotesize 接上页}\\
\toprule
##5
\midrule
\endhead
\bottomrule
\multicolumn{##3}{r}{\footnotesize 接下页}\\
\endfoot
\bottomrule
\endlastfoot
##6
\end{longtable}
}
}
\newcommand{\pictable}{
\begin{table}[##1]
\centering
\caption{##2}
\label{##4}
\includegraphics[##3]{##4}
\end{table}
}
}%\newcmds@uestcthesis定义完毕
\newcommand{\mainmatterfancy}{
\fancyhf{}
\fancyhead{\zihao{5}\leftmark}%奇数页居中打印章标题
\fancyhead{\zihao{5}\thesisname@degree}%偶数页居中打印论文全名
\fancyfoot{\zihao{-5}\thepage}%页码位于页面底端,居中打印。
}
\newcommand{\Cabstractfancy}{%
\fancyhf{}%
\fancyhead{\zihao{5}摘要}%页眉居中打印“摘要”
\fancyfoot{\zihao{-5}\thepage}%页码位于页面底端,居中打印。
}
\newcommand{\Eabstractfancy}{
\fancyhf{}%
\fancyhead{\zihao{5}ABSTRACT}%页眉居中打印“ABSTRACT”
\fancyfoot{\zihao{-5}\thepage}%页码位于页面底端,居中打印。
}
\newcommand{\tocmatterfancy}{
\fancyhf{}
\fancyhead{\tocname@uestcthesis}%页眉居中打印“目 录”
\fancyfoot{\zihao{-5}\thepage}%页码位于页面底端,居中打印。
}
\newcommand{\glossarymatterfancy}{%定义主要符号表版式设置
\fancypagestyle{plain}{
\fancyhf{}
\fancyhead{\zihao{5}\glossaryname@uestcthesis}%
\fancyfoot{\zihao{-5}\thepage}%
}
\renewcommand{\glossarypreamble}{%
\fancyhead{\zihao{5}\glossaryname@uestcthesis}%页眉居中打印“主要符号表”
}
}
\newcommand{\Cabstractmatter}{
\setcounter{page}{1}%页码重置为1
\pagenumbering{Roman}%页码使用大写罗马数字
\pagestyle{fancy}
\Cabstractfancy
\fancypagestyle{plain}{\Cabstractfancy}
}
\newcommand{\Eabstractmatter}{
\pagestyle{fancy}
\Eabstractfancy
\fancypagestyle{plain}{\Eabstractfancy}
}
\newcommand{\tocmatter}{
\pagestyle{fancy}
\tocmatterfancy
\fancypagestyle{plain}{\tocmatterfancy}
}
\renewcommand{\mainmatter}{
\newpage
\setcounter{page}{1}
\pagenumbering{arabic}
\pagestyle{fancy}
\chaptermarkfix@uestcthesis %修正页眉章号显示不正确
\mainmatterfancy%设置正文的版式
\fancypagestyle{plain}{\mainmatterfancy}
}
\newcommand{\stuid}{
\newcommand{\@stuid}{#1}
}
\newcommand{\major}{
\newcommand{\@major}{#1}
}
\newcommand{\school}{
\newcommand{\@school}{#1}
}
\newcommand{\adviser}{
\newcommand{\@advisername}{#1}%姓名
\newcommand{\@advisertitle}{#2}%职称
\newcommand{\@adviserinstitution}{#3}%工作单位
}
\newcommand{\adviserB}{
\newcommand{\@adviserBname}{#1}%姓名
\newcommand{\@adviserBtitle}{#2}%职称
\newcommand{\@adviserBinstitution}{#3}%工作单位
}
\newcommand{\adviserC}{
\newcommand{\@adviserCname}{#1}%姓名
\newcommand{\@adviserCtitle}{#2}%职称
\newcommand{\@adviserCinstitution}{#3}%工作单位
}
\newcommand{\adviserD}{
\newcommand{\@adviserDname}{#1}%姓名
\newcommand{\@adviserDtitle}{#2}%职称
\newcommand{\@adviserDinstitution}{#3}%工作单位
}
\newcommand{\university}{
\newcommand{\@university}{#1}
}
\renewcommand{\date}{
\renewcommand{\@date}{#1年#2月#3日}
\newcommand{\@year}{#1}%用于pdf元信息
}
\newcommand{\oraldefensedate}{
\newcommand{\@oraldefensedate}{#1年#2月#3日}
}
\newcommand{\awarddate}{
\newcommand{\@awarddate}{#1年#2月#3日}
}
\newcommand{\classnumber}{
\newcommand{\@classnumber}{#1}
}
\newcommand{\securityclassification}{
\newcommand{\@securityclassification}{#1}
}
\newcommand{\UDC}{
\newcommand{\@UDC}{#1}
}
\newcommand{\chairman}{
\newcommand{\@chairman}{#1}
}
\newcommand{\appraiser}{
\newcommand{\@appraiser}{#1}
}
\newcommand{\englishtitle}{
\newcommand{\@englishtitle}{#1}
}
\newcommand{\englishmajor}{
\newcommand{\@englishmajor}{#1}
}
\newcommand{\englishauthor}{
\newcommand{\@englishauthor}{#1}
}
\newcommand{\englishadvisor}{
\newcommand{\@englishadvisor}{#1}
}
\newcommand{\englishshcool}{
\newcommand{\@englishshcool}{#1}
}
\begin{filecontents*}{logo.tex}
\documentclass{standalone}
\usepackage{pstricks}

\begin{document}
%%Creator: 0.48.3.1
%%Please note this file requires PSTricks extensions
\psset{xunit=.5pt,yunit=.5pt,runit=.5pt}
\begin{pspicture}(11072.75488281,3090.08740234)
{
\newrgbcolor{curcolor}{0.17254902 0.17254902 0.16862746}
\pscustom
此处省略N行
\end{pspicture}

\end{document}
\end{filecontents*}

%    \immediate\write18{latex logo}%
%    \immediate\write18{dvips logo}%
%    \IfFileExists{logo.dvi}{
%    \immediate\write18{ps2pdf logo.ps}%
%    }{}
\newcommand{\uestclogo}{
\IfFileExists{tmp.pdf}{\includegraphics{tmp.pdf}}{
{\zihao{6}此文档不是用正确编译脚本生成的。请用compile.bat或compile.sh生成才能保证编译结果完全正确,包括此处的LOGO。
如果您是从MikTeX或CTAN.org处得到的此模板,请访问\url{https://github.com/shifujun/UESTCthesis}获取最新版本和相应的编译脚本。}
}
}
\newcommand{\uestclogobadge}{
\IfFileExists{logo.pdf}{\includegraphics*{logo.pdf}}{
{\zihao{6}此文档不是用正确编译脚本生成的。请用compile.bat或compile.sh生成才能保证编译结果完全正确,包括此处的LOGO。
如果您是从MikTeX或CTAN.org处得到的此模板,请访问\url{https://github.com/shifujun/UESTCthesis}获取最新版本和相应的编译脚本。}
}
}
\ifdefstring{\degree@uestcthesis}{bachelor}{
\renewcommand{\bachelortitlepage@uestcthesis}{
\renewcommand{\maketitle}{
\begin{titlepage}
\begin{center}
\zihao{3}
\uestclogo\\
\vspace{1cm}
\resizebox{!}{1cm}{\zihao{0} 天\hspace{0.30em}线\hspace{0.30em}领\hspace{0.30em}域\hspace{0.30em}的\hspace{0.30em}一\hspace{0.30em}名\hspace{0.30em}小\hspace{0.30em}学\hspace{0.30em}生}\\
{\bf TECHNOLOGICAL BLOGS}\\
\renewcommand{\ULthickness}{0.8pt}
\renewcommand{\CJKunderlinecolor}{\color{black}}
\linespread{1.25}
\noindent
\parbox{\linewidth}{\centering
{\heiti\zihao{3} 题目}\zihao{3}{\uline{\@title}}
}\\
\linespread{1.391}
\renewcommand{\ULthickness}{0.4pt}
{\zihao{3}姓名~}\makebox{\uline{\hfill\@author\hfill}}\\
%%{\zihao{3}学\qquad 号~}\makebox{\uline{\hfill\@stuid\hfill}}\\
%%{\zihao{3}专\qquad 业~}\makebox{\uline{\hfill\@major\hfill}}\\
%%{\zihao{3}学\qquad 院~}\makebox{\uline{\hfill\@school\hfill}}\\
{\zihao{3}博客地址~}\makebox{\uline{\hfill\@advisername\hfill}}\\
{\zihao{3}邮箱~}\makebox{\uline{\hfill\@university\hfill}}\\
{\zihao{3}\@date}
\end{center}
\end{titlepage}}}}{}
\ifdefstring{\degree@uestcthesis}{master}{
\renewcommand{\mastertitlepage@uestcthesis}{
\renewcommand{\maketitle}{%定义封面的格式
\begin{titlepage}
\begin{center}
{\zihao{2}电\enspace{}子\enspace{}科\enspace{}技\enspace{}大\enspace{}学}\\
{\zihao{-4}UNIVERSITY OF ELECTRONIC SCIENCE AND TECHNOLOGY OF CHINA}\\
~\\
~\\
{\zihao{0}硕士学位论文}\\
{\bf\zihao{3}MASTER THESIS}\\
\uestclogobadge\\
\renewcommand{\ULthickness}{0.8pt}
\renewcommand{\CJKunderlinecolor}{\color{black}}
\linespread{1.25}
\noindent
\parbox{\linewidth}{\centering
{\zihao{-2} 论文题目~~}{\zihao{3}\uline{\@title}}
}\\
\linespread{1.391}
\renewcommand{\ULthickness}{0.4pt}
{\zihao{3}~}\\
{\zihao{3}学科专业~}\makebox{\zihao{3}\uline{\hfill\@major\hfill}}\\
{\zihao{3}学\qquad 号~}\makebox{\zihao{3}\uline{\hfill\@stuid\hfill}}\\
{\zihao{3}作者姓名~}\makebox{\zihao{3}\uline{\hfill\@author\hfill}}\\
{\zihao{3}指导教师~}\makebox{\zihao{3}\uline{\hfill\@advisername\hfill}}\\
\end{center}
\newpage
\thispagestyle{empty}
\noindent
{\zihao{-4}分类号}\makebox{\zihao{-4}\uline{~~~\@classnumber\hfill}}
{\zihao{-4}密级}\makebox{\zihao{-4}\uline{~~~\@securityclassification\hfill}}\\
{\zihao{-4}UDC\textsuperscript{注1}\!}\makebox{\zihao{-4}\uline{~~~\@UDC\hfill}}\\
\begin{center}
{\zihao{-0}学\quad{}位\quad{}论\quad{}文}\\
{\zihao{3}~}\\
\makebox[\linewidth]{\zihao{3}\uline{\hfill\@title\hfill}}\\
{\zihao{-4}(题名和副题名)}\\
{\zihao{5}~}\\
{\zihao{5}~}\\
\makebox{\zihao{3}\uline{\hfill\@author\hfill}}\\
{\zihao{-4}(作者姓名)}\\
{\zihao{-4}~}\\
{\zihao{5}~}\\
{\zihao{-4}指导教师}\makebox{\zihao{-4}\uline{\hfill\@advisername 、\@advisertitle 、\@adviserinstitution \hfill}}\\
{\zihao{-4}\qquad\qquad}\makebox{\zihao{-4}\uline{\hfill\ifthenelse{\isundefined{\@adviserBname}}{}{\@adviserBname 、\@adviserBtitle 、\@adviserBinstitution }\hfill}}\\
{\zihao{-4}\qquad\qquad}\makebox{\zihao{-4}\uline{\hfill\ifthenelse{\isundefined{\@adviserCname}}{}{\@adviserBname 、\@adviserCtitle 、\@adviserCinstitution }\hfill}}\\
{\zihao{-4}\qquad\qquad}\makebox{\zihao{-4}\uline{\hfill\ifthenelse{\isundefined{\@adviserDname}}{}{\@adviserBname 、\@adviserDtitle 、\@adviserDinstitution }\hfill}}\\
{\zihao{-4}(姓名、职称、单位名称)}\\
\end{center}
{\zihao{-4}申请学位级别}\makebox{\zihao{-4}\uline{\hfill\@degree\hfill}}
{\zihao{-4}学科专业}\makebox{\zihao{-4}\uline{\hfill\@major\hfill}}\\
{\zihao{-4}提交论文日期}\makebox{\zihao{-4}\uline{\hfill\@date\hfill}}
{\zihao{-4}论文答辩日期}\makebox{\zihao{-4}\uline{\hfill\@oraldefensedate\hfill}}\\
{\zihao{-4}学位授予单位和日期}\makebox{\zihao{3}\uline{\hfill 电子科技大学\hfill\@awarddate}}\\
{\zihao{-4}答辩委员会主席}\makebox{\zihao{-4}\uline{\hfill\@chairman\hfill}}\\
{\zihao{-4}评阅人}\makebox{\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}\\
{\zihao{-3}University of Electronic Science and Technology of China}\\
\vspace{3cm}
\makebox{\zihao{4}Major:}\makebox{\zihao{4}\uline{\hfill\@englishmajor\hfill}}\\
\makebox{\zihao{4}Author:}\makebox{\zihao{4}\uline{\hfill\@englishauthor\hfill}}\\
\makebox{\zihao{4}Advisor:}\makebox{\zihao{4}\uline{\hfill\@englishadvisor\hfill}}\\
\makebox{\zihao{4}School:}\makebox{\zihao{4}\uline{\hfill\@englishshcool\hfill}}\\
\end{center}
\newpage
\thispagestyle{empty}
\linespread{1.5}
\begin{center}
{\bf\zihao{-2}独创性声明}\par
\end{center}
{\zihao{4}\qquad 本人声明所呈交的学位论文是本人在导师指导下进行的研究工作及取得的研究成果。据我所知,除了文中特别加以标注和致谢的地方外,论文中不包含其他人已经发表或撰写过的研究成果,也不包含为获得电子科技大学或其它教育机构的学位或证书而使用过的材料。与我一同工作的同志对本研究所做的任何贡献均已在论文中作了明确的说明并表示谢意。\par
~\par
作者签名:\makebox{\uline{\hfill}}\hfill
日期:\qquad{}年\qquad{}月\qquad{}日 \par
~\par
\begin{center}
{\bf\zihao{-2}论文使用授权}\par
\end{center}
{\zihao{4}\qquad 本学位论文作者完全了解电子科技大学有关保留、使用学位论文的规定,有权保留并向国家有关部门或机构送交论文的复印件和磁盘,允许论文被查阅和借阅。本人授权电子科技大学可以将学位论文的全部或部分内容编入有关数据库进行检索,可以采用影印、缩印或扫描等复制手段保存、汇编学位论文。\par
(保密的学位论文在解密后应遵守此规定) \par
~\par
}
\qquad 作者签名:\makebox{\uline{\hfill}}\hfill
导师签名:\makebox{\uline{\hfill}}\par
\hfill 日期:\qquad{}年\qquad{}月\qquad{}日 \par
}
\linespread{1.391}
\end{titlepage}}}}{}
\ifdefstring{\degree@uestcthesis}{doctor}{
\renewcommand{\doctortitlepage@uestcthesis}{
\renewcommand{\maketitle}{%定义封面的格式
\begin{titlepage}
\begin{center}
{\zihao{2}电\enspace{}子\enspace{}科\enspace{}技\enspace{}大\enspace{}学}\\
{\zihao{-4}UNIVERSITY OF ELECTRONIC SCIENCE AND TECHNOLOGY OF CHINA}\\
~\\
~\\
{\zihao{0}博士学位论文}\\
{\bf\zihao{3}DOCTORAL DISSERTATION}\\
\uestclogobadge\\
\renewcommand{\ULthickness}{0.8pt}
\renewcommand{\CJKunderlinecolor}{\color{black}}
\linespread{1.25}
\noindent
\parbox{\linewidth}{\centering
{\zihao{-2} 论文题目~~}{\zihao{3}\uline{\@title}}
}\\
\linespread{1.391}
\renewcommand{\ULthickness}{0.4pt}
{\zihao{3}~}\\
{\zihao{3}学科专业~}\makebox{\zihao{3}\uline{\hfill\@major\hfill}}\\
{\zihao{3}学\qquad 号~}\makebox{\zihao{3}\uline{\hfill\@stuid\hfill}}\\
{\zihao{3}作者姓名~}\makebox{\zihao{3}\uline{\hfill\@author\hfill}}\\
{\zihao{3}指导教师~}\makebox{\zihao{3}\uline{\hfill\@advisername\hfill}}\\
\end{center}
\newpage
\thispagestyle{empty}
\noindent
{\zihao{-4}分类号}\makebox{\zihao{-4}\uline{~~~\@classnumber\hfill}}
{\zihao{-4}密级}\makebox{\zihao{-4}\uline{~~~\@securityclassification\hfill}}\\
{\zihao{-4}UDC\textsuperscript{注1}\!}\makebox{\zihao{-4}\uline{~~~\@UDC\hfill}}\\
\begin{center}
{\zihao{-0}学\quad{}位\quad{}论\quad{}文}\\
{\zihao{3}~}\\
\makebox[\linewidth]{\zihao{3}\uline{\hfill\@title\hfill}}\\
{\zihao{-4}(题名和副题名)}\\
{\zihao{5}~}\\
{\zihao{5}~}\\
\makebox{\zihao{3}\uline{\hfill\@author\hfill}}\\
{\zihao{-4}(作者姓名)}\\
{\zihao{-4}~}\\
{\zihao{5}~}\\
{\zihao{-4}指导教师}\makebox{\zihao{-4}\uline{\hfill\@advisername 、\@advisertitle 、\@adviserinstitution \hfill}}\\
{\zihao{-4}\qquad\qquad}\makebox{\zihao{-4}\uline{\hfill\ifthenelse{\isundefined{\@adviserBname}}{}{\@adviserBname 、\@adviserBtitle 、\@adviserBinstitution }\hfill}}\\
{\zihao{-4}\qquad\qquad}\makebox{\zihao{-4}\uline{\hfill\ifthenelse{\isundefined{\@adviserCname}}{}{\@adviserBname 、\@adviserCtitle 、\@adviserCinstitution }\hfill}}\\
{\zihao{-4}\qquad\qquad}\makebox{\zihao{-4}\uline{\hfill\ifthenelse{\isundefined{\@adviserDname}}{}{\@adviserBname 、\@adviserDtitle 、\@adviserDinstitution }\hfill}}\\
{\zihao{-4}(姓名、职称、单位名称)}\\
\end{center}
{\zihao{-4}申请学位级别}\makebox{\zihao{-4}\uline{\hfill\@degree\hfill}}
{\zihao{-4}学科专业}\makebox{\zihao{-4}\uline{\hfill\@major\hfill}}\\
{\zihao{-4}提交论文日期}\makebox{\zihao{-4}\uline{\hfill\@date\hfill}}
{\zihao{-4}论文答辩日期}\makebox{\zihao{-4}\uline{\hfill\@oraldefensedate\hfill}}\\
{\zihao{-4}学位授予单位和日期}\makebox{\zihao{3}\uline{\hfill 电子科技大学\hfill\@awarddate}}\\
{\zihao{-4}答辩委员会主席}\makebox{\zihao{-4}\uline{\hfill\@chairman\hfill}}\\
{\zihao{-4}评阅人}\makebox{\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 Doctor Dissertation Submitted to}\\
{\zihao{-3}University of Electronic Science and Technology of China}\\
\vspace{3cm}
\makebox{\zihao{4}Major:}\makebox{\zihao{4}\uline{\hfill\@englishmajor\hfill}}\\
\makebox{\zihao{4}Author:}\makebox{\zihao{4}\uline{\hfill\@englishauthor\hfill}}\\
\makebox{\zihao{4}Advisor:}\makebox{\zihao{4}\uline{\hfill\@englishadvisor\hfill}}\\
\makebox{\zihao{4}School:}\makebox{\zihao{4}\uline{\hfill\@englishshcool\hfill}}\\
\end{center}
\newpage
\thispagestyle{empty}
\linespread{1.5}
\begin{center}
{\bf\zihao{-2}独创性声明}\par
\end{center}
{\zihao{4}\qquad 本人声明所呈交的学位论文是本人在导师指导下进行的研究工作及取得的研究成果。据我所知,除了文中特别加以标注和致谢的地方外,论文中不包含其他人已经发表或撰写过的研究成果,也不包含为获得电子科技大学或其它教育机构的学位或证书而使用过的材料。与我一同工作的同志对本研究所做的任何贡献均已在论文中作了明确的说明并表示谢意。\par
~\par
作者签名:\makebox{\uline{\hfill}}\hfill
日期:\qquad{}年\qquad{}月\qquad{}日 \par
~\par
\begin{center}
{\bf\zihao{-2}论文使用授权}\par
\end{center}
{\zihao{4}\qquad 本学位论文作者完全了解电子科技大学有关保留、使用学位论文的规定,有权保留并向国家有关部门或机构送交论文的复印件和磁盘,允许论文被查阅和借阅。本人授权电子科技大学可以将学位论文的全部或部分内容编入有关数据库进行检索,可以采用影印、缩印或扫描等复制手段保存、汇编学位论文。\par
(保密的学位论文在解密后应遵守此规定) \par
~\par
}
\qquad 作者签名:\makebox{\uline{\hfill}}\hfill
导师签名:\makebox{\uline{\hfill}}\par
\hfill 日期:\qquad{}年\qquad{}月\qquad{}日 \par
}
\linespread{1.391}
\end{titlepage}}}}{}
\titlepage@degree
\setcounter{secnumdepth}{3}
\chaptername@uestcthesis
\CTEXsetup[ nameformat={},
             numberformat={},
             titleformat={},
             aftername={~},
             beforeskip={2mm},%章标题段前30磅,这里2mm是由于实际效果与MS WORD有差异而微调出的。具体测量的是页眉线到章标题文字上边的距离。
             afterskip={30bp plus 6bp minus 6bp},%章标题段后30磅。
             format={\heiti\zihao{-3}\centering},
             ]{chapter}
\CTEXsetup[ aftername={~},
             beforeskip={18bp},
             afterskip={18bp plus 3.6bp minus 3.6bp},
             format={\heiti\zihao{4}\flushleft}]{section}
\CTEXsetup[ aftername={~},
             beforeskip={12bp},
             afterskip={12bp plus 2.4bp minus 2.4bp},
             format={\heiti\zihao{4}\flushleft}]{subsection}
\CTEXsetup[ aftername={~},
             beforeskip={6bp},
             afterskip={6bp plus 1.2bp minus 1.2bp},
             format={\heiti\zihao{-4}\flushleft}]{subsubsection}
\newenvironment{Cabstract}{
\newcommand{\@ckeywords}{
\ifthenelse{\equal{#1}{}}{必选关键词}{#1}%
\ifthenelse{\equal{#2}{}}{必选关键词}{,#2}%
\ifthenelse{\equal{#3}{}}{必选关键词}{,#3}%
\ifthenelse{\equal{#4}{}}{}{,#4}%
\ifthenelse{\equal{#5}{}}{}{,#5}%
}
\ifthenelse{\equal{#5}{}}{
\ifthenelse{\equal{#4}{}}{
\ifthenelse{\equal{#3}{}}{
\def\@pdfckeywords{#1, #2, 关键字应3-5个}
}{\def\@pdfckeywords{#1, #2, #3}}
}{\def\@pdfckeywords{#1, #2, #3, #4}}
}{\def\@pdfckeywords{#1, #2, #3, #4, #5}}
\hypersetup{%
pdfkeywords={\@pdfckeywords}%在pdf元信息中加入关键字
}
\chapter*{摘要}%插入不带章号的摘要
}
{\\%摘要后换行空出3mm
{\heiti 关键词:}\@ckeywords%插入关键词
}
\newenvironment{Eabstract}{
\newcommand{\@ekeywords}{
\ifthenelse{\equal{#1}{}}{必选关键词}{#1}%
\ifthenelse{\equal{#2}{}}{必选关键词}{, #2}%
\ifthenelse{\equal{#3}{}}{必选关键词}{, #3}%
\ifthenelse{\equal{#4}{}}{}{, #4}%
\ifthenelse{\equal{#5}{}}{}{, #5}%
}
\Eabstractmatter%设置英文摘要版式
%%\chapter*{ABSTRACT}%插入不带章号的ABSTRACT
}
{\\%摘要后换行空出3mm
{\heiti Keywords:}\@ekeywords%插入关键词
}
\CTEXoptions
\setcounter{tocdepth}{3}
\def\@dotsep{2}
\def\l@chapter#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 {\heiti #1}\nobreak \leaders
\hbox {$\m@th \mkern \@dotsep mu\hbox {.}\mkern \@dotsep mu$}\hfill \nobreak
\hb@xt@ \@pnumwidth {\hfil \normalfont \normalcolor #2}\par }\fi}
\ifdefstring{\degree@uestcthesis}{bachelor}{
\renewcommand*\l@section{\@dottedtocline{1}{1em}{1em}}
\renewcommand*\l@subsection{\@dottedtocline{2}{2em}{1em}}
\renewcommand*\l@subsubsection{\@dottedtocline{3}{3em}{1em}}
}{
\renewcommand*\l@section{\@dottedtocline{1}{2em}{1em}}
\renewcommand*\l@subsection{\@dottedtocline{2}{4em}{1em}}
\renewcommand*\l@subsubsection{\@dottedtocline{3}{6em}{1em}}
}
\RequirePackage{amsmath,kmath}
\renewcommand{\theequation}{\arabic{chapter}\textendash\arabic{equation}}
\RequirePackage{ntheorem}
\theorembodyfont{\normalfont}%字体
\theoremheaderfont{\normalfont \bfseries \hspace*{2em}}%设置缩进
\theoremseparator{\enskip}%分隔符是一个空格
\theoremsymbol{}%定义环境结束符,下同
\newtheorem{dingyi}{定义}
\def\enddingyi{\quad\@endtheorem}%修正环境中最后一个字符不是英文字符时,不显示结束符的BUG。下同。
\theoremsymbol{}
\newtheorem{gongli}{公理}
\def\endgongli{\quad\@endtheorem}
\theoremsymbol{}
\newtheorem{dingli}{定理}
\def\enddingli{\quad\@endtheorem}
\theoremsymbol{}
\newtheorem{yinli}{引理}
\def\endyinli{\quad\@endtheorem}
\theoremstyle{nonumberplain}
\theoremsymbol{}
\newtheorem{zhengming}{证明}
\def\endzhengming{\quad\@endtheorem}
\RequirePackage{natbib}

\newcommand{\citeup}{\textsuperscript{\cite{#1}}}
\ifblank{\multibibflag@uestcthesis}{}{
\RequirePackage{multibib}
\newcites{publications}{NULL}
\bibliographystylepublications{uestcthesis}
\nocitepublications{*}
\def\bibliographypublications#1{\let \temp@auxout \@auxout \let \addtocontents
\mb@addtocontents \let \@auxout \@auxoutpublications \let \jobname
\@auxoutpublicationsname \bibliography {#1}}
}
\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,
             breaklinks=true,
pdfdisplaydoctitle=true
]{hyperref}
\input{contents/titlepage.tex}%pdf元信息中需要封面的部分内容,所以在此处导入封面信息
\hypersetup{%
pdftitle={\@title},
pdfauthor={\@author},
pdfcopyright={Copyright (C) \@year, \@author},
pdfsubject={\thesisname@degree},
pdflicenseurl={http://121.49.98.197/tasi/doc/fj_dcx.doc},
pdfcreator={PDFLaTeX with uestcthesis class},
pdflang={zh-CN},
pdfpagelayout={TwoPageRight}
}
\RequirePackage{subfigure}
\RequirePackage{enumerate}
\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{color,marvosym}
\DeclareOldFontCommand{\txttbf}{\ttfamily\bfseries}{\mathbf}
\providecommand{\hlstd}{\textcolor{0,0,0}{#1}}
\providecommand{\hlnum}{\textcolor{0,0,0}{#1}}
\providecommand{\hlesc}{\textcolor{0,0,0}{#1}}
\providecommand{\hlstr}{\textcolor{0,0,0}{#1}}
\providecommand{\hlpps}{\textcolor{0,0,0}{#1}}
\providecommand{\hlslc}{\textcolor{0.4,0.4,0.4}{{#1}}}
\providecommand{\hlcom}{\textcolor{0.4,0.4,0.4}{{#1}}}
\providecommand{\hlppc}{\textcolor{0,0,0}{\txttbf{#1}}}
\providecommand{\hlopt}{\textcolor{0,0,0}{\txttbf{#1}}}
\providecommand{\hlipl}{\textcolor{0,0,0}{#1}}
\providecommand{\hllin}{\textcolor{0.53,0.53,0.53}{#1}}
\providecommand{\hlkwa}{\textcolor{0,0,0}{\txttbf{#1}}}
\providecommand{\hlkwb}{\textcolor{0,0,0}{\txttbf{#1}}}
\providecommand{\hlkwc}{\textcolor{0,0,0}{\txttbf{#1}}}
\providecommand{\hlkwd}{\textcolor{0,0,0}{\txttbf{#1}}}
\definecolor{bgcolor}{rgb}{1,1,1}
\RequirePackage{glossary}
\makeglossary
\renewcommand{\glossaryname}{\glossaryname@uestcthesis}
\renewcommand{\entryname}{\entryname@uestcthesis}
\renewcommand{\descriptionname}{\descriptionname@uestcthesis}
\renewcommand{\glspageheader}{\glspageheader@uestcthesis}
\newcommand{\ifusingglossary}{}
\newcommand{\fuhao}{
\glossary{name={#1},description={#2},sort=#3}
\renewcommand{\ifusingglossary}{true}%设置使用主要符号表
}

\AtBeginDocument{%插入到论文内容的最前面。
\begin{CJK}{UTF8}{rm}%中文支持环境,此处内容不受ctexbook文类影响,所以必须手动加这个环境。
\maketitle%生成并插入封面
%%\clearpage{\pagestyle{empty}\cleardoublepage}
\Cabstractmatter%设置中文摘要版式
\include{contents/Cabstract}%插入中文摘要
%%\clearpage{\pagestyle{empty}\cleardoublepage}
%%\Eabstractmatter%设置英文摘要版式
%%\include{contents/Eabstract}%插入英文摘要
%%\clearpage{\pagestyle{empty}\cleardoublepage}
\tocmatter%目录版式
\tableofcontents%插入目录
\clearpage{\pagestyle{empty}\cleardoublepage}%目录之后另起一页,这样无论目录后有没有主要符号表,主要符号表的页眉设置命令都会应用到下一页。
%%\glossarymatterfancy%设置主要符号表版式。
%%\printglossary%插入主要符号表
%%\clearpage{\pagestyle{empty}\cleardoublepage}
%%\mainmatter%修正主要符号表版式,这里是受目录版式的影响,必须在此加入\mainmatter。
\end{CJK}
\mainmatter%正文区版式
\makeatletter
\newcmds@uestcthesis%自定义图表命令,这些命令必须在document环境里声明才能在正文中使用,所以只能放在这里了。
\makeatother
}
\newcommand{\insertacknowledgement}{
\chapter*{\acknowledgementsname@uestcthesis}%用带星号的章命令插入不带章号的致谢。
\markboth{\acknowledgementsname@uestcthesis}{}%页眉设置
\phantomsection%手动添加目录项之前需要这个命令,用以更新目录超链接的跳转页码。
\addcontentsline{toc}{chapter}{\acknowledgementsname@uestcthesis}%将致谢编入目录
\input{contents/acknowledgements.tex}%插入致谢内容
}
\newcommand{\insertreference}{
\bibliographystyle{uestcthesis}
\phantomsection%手动添加目录项之前需要这个命令,用以更新目录超链接的跳转页码。
\addcontentsline{toc}{chapter}{\CTEX@bibname}%将参考文献编入目录
\nocite{*}%若将此命令屏蔽掉,则未引用的文献不会出现在文后的参考文献列表中。
{\zihao{5}
\bibliography{contents/reference}%插入参考文献
}
}
\AtEndDocument{%插入到论文内容最后面。
\begin{CJK}{UTF8}{rm}
\ifdefstring{\degree@uestcthesis}{bachelor}{%检测是否为本科论文,调换参考文献与致谢的顺序
\insertreference
\newpage
\insertacknowledgement
}{
\insertacknowledgement
\newpage
\insertreference
}

\appendix%附录版式
\renewcommand{\chaptermark}{\markboth{\CTEX@appendixname\Alph{chapter}~#1 }{}}%附录页眉设置
\input{contents/appendix.tex}%插入附录内容
\clearpage
\ifdefstring{\degree@uestcthesis}{bachelor}{

\gdef\thechapter{\@arabic \c@chapter}

\CTEXsetup[ name={,},
   number={}
   ]{chapter}

\setcounter{chapter}{0}

\def\Hy@org@chapter[#1]#2{%
\ifnum \c@secnumdepth >\m@ne \if@mainmatter \refstepcounter {chapter}
\typeout {\CTEXthechapter }\else \fi \else \fi \chaptermark {#1}\addtocontents{lof}
{\protect \addvspace {10\p@ }}\addtocontents {lot}{\protect \addvspace {10\p@ }}
\if@twocolumn \@topnewpage [\@makechapterhead {#2}]
\else
\@makechapterhead {#2}
\@afterheading \fi
}

\def\H@old@sect #1#2#3#4#5#6[#7]#8{\ifnum #2>\c@secnumdepth \let \@svsec \@empty
\else \refstepcounter {#1}\protected@edef \@svsec {\@seccntformat {#1}\relax }\fi
\@tempskipa #5\relax \ifdim \@tempskipa >\z@ \begingroup #6{\@hangfrom {\hskip #3
\relax \@svsec }\interlinepenalty \@M \csname CTEX@#1@titleformat\endcsname #8
\@@par }\endgroup \csname #1mark\endcsname {#7}\else \def \@svsechd
{#6{\hskip #3\relax \@svsec \csname CTEX@#1@titleformat\endcsname #8}\csname #1mark
\endcsname {#7}}\fi \@xsect {#5}}

%%\renewcommand{\chaptermark}{\markboth{外文资料原文}{}}
%%\def\leftmark{外文资料原文}
%%\newpage
%%\phantomsection
%%\addcontentsline{toc}{chapter}{外文资料原文}

\renewcommand{\CTEX@figurename}{Figure}
\renewcommand{\CTEX@tablename}{Table}

%%\include{contents/original}
%%\newpage
%%\phantomsection
%%\addcontentsline{toc}{chapter}{外文资料译文}
%%\renewcommand{\chaptermark}{\markboth{外文资料译文}{}}
%%\def\leftmark{外文资料译文}

\renewcommand{\CTEX@figurename}{图}
\renewcommand{\CTEX@tablename}{表}

\setcounter{chapter}{0}

%%\include{contents/translation}
}
{
\IfFileExists{contents/publications.bib}{%如果删除了publications.bib,则不显示这一章
\CTEXoptions[ bibname={\publicationsname@degree}]%设置攻博/硕期间发表的论文章题目
\phantomsection%手动添加目录项之前需要这个命令,用以更新目录超链接的跳转页码。
\addcontentsline{toc}{chapter}{\publicationsname@degree}%将攻博/硕期间发表的论文编入目录
{\zihao{5}
\bibliographypublications{contents/publications}%插入攻博/硕期间发表的论文
}}{}}
\clearpage\end{CJK}}
\endinput
%%
%% End of file `uestcthesis.cls'.
View Code  生成的内容如下

















页: [1]
查看完整版本: Latex 博客模板-基于电子科技大学学位论文latex模板