原始CASthesis下载链接:http://www.ctex.org/packagecasthesis
1、CASthesis.cfg
%%
%% This is file `CASthesis.cfg',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% CASthesis.dtx (with options: `cfg')
%%
%% This is a generated file.
%%
%% Copyright 2004-2006
%% CTEX.ORG and any individual authors listed elsewhere in this file.
%%
%% This file was generated from file(s) of the CASthesis package project.
%% ----------------------------------------------------------------------
%%
%% It may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.2
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.2 or later is part of all distributions of LaTeX
%% version 1999/12/01 or later.
%%
%% This is the configuration file of the CASthesis package with LaTeX2e.
%%
\ProvidesFile{CASthesis.cfg}
[2011/04/06 v0.2 CASthesis
configuration file]
\ifxetex
\XeTeXinputencoding "GBK"
\fi
%%
%% the setup of ctex package
%%
\def\CTEX@contentsname{目\CASTspace 录}
\def\CTEX@listfigurename{插\CASTspace 图}
\def\CTEX@listtablename{表\CASTspace 格}
%%
%% labels in the title page
%%
\def\CAST@label@classification{分类号}
\def\CAST@label@confidential{密级}
\def\CAST@label@UDC{UDC}
\def\CAST@label@serialnumber{编号}
\def\CAST@label@submitdate{论文提交日期}
\def\CAST@label@defenddate{论文答辩日期}
\def\CAST@label@school{学位授予单位}
\def\CAST@label@chairman{答辩委员会主席}
\def\CAST@label@author{作者姓名:}
\def\CAST@label@thesis{学位论文}
\def\CAST@label@advisor{指导教师:}
\def\CAST@label@degree{学位类别:}
\def\CAST@label@major{学科专业:}
\def\CAST@label@institute{培养单位:}
%%
%% string values filled in the title page
%%
\def\CAST@value@classification{}
\def\CAST@value@confidential{}
\def\CAST@value@UDC{}
\def\CAST@value@serialnumber{}
\def\CAST@value@school{XXXXXXX}
\def\CAST@value@degreeO{博士}
\def\CAST@value@degree{工学博士}
\def\CAST@value@title{~~~~~(论~文~题~目)~~~~~}
\def\CAST@value@titlemark{\CAST@value@title}
\def\CAST@value@author{(作~者~姓~名)}
\def\CAST@value@advisor{(姓名、专业技术职务、学位)}
\def\CAST@value@advisorinstitute{(单位)}
\def\CAST@value@major{~~~~~(学科专业)~~~~~}
\def\CAST@value@submitdate{~~~~~(~~~年~~~月)~~~~~}
\def\CAST@value@defenddate{}
\def\CAST@value@institute{XXXXXX}
\def\CAST@value@chairman{}
%%
%% labels in the english title page
%%
\def\CAST@label@englishadvisor{Supervisor:}
\def\CAST@label@englishstatement{A Dissertation/Thesis Submitted to\\
\CAST@value@englishschool\\
In partial fulfillment of the requirement for the degree of \CAST@value@englishdegree \\
in \CAST@value@englishmajor}
%%
%% string values filled in the english title page
%%
\def\CAST@value@englishtitle{(English Title of Thesis)}
\def\CAST@value@englishauthor{(Author Name)}
\def\CAST@value@englishadvisor{(Supervisor's Name)}
\def\CAST@value@englishinstitute{XXXXX}
\def\CAST@value@englishschool{XXXXX}
\def\CAST@value@englishdate{%
\ifcase\month\or
January\or February\or March\or April\or May\or June\or
July\or August\or September\or October\or November\or December\fi
, \number\year}
\def\CAST@value@englishdegree{Ph.D.}
\def\CAST@value@englishmajor{Philosophy}
%%
%% labels in the shuoming
%%
\def\CAST@label@shuomingX{研究成果说明}
\def\CAST@label@shuomingXX{关于学位论文使用权的说明}
\def\CAST@label@signature{签名:}
\def\CAST@label@signaturedate{日期:}
\def\CAST@label@advisorsignature{导师签名:}
\def\CAST@label@advisorsignaturedate{日期:}
%%
%% string values filled in the shuoming page
%%
\def\CAST@value@shuomingX{}
\def\CAST@value@shuomingXX{}
\def\CAST@value@signature{}
\def\CAST@value@signaturedate{}
\def\CAST@value@advisorsignature{}
\def\CAST@value@advisorsignaturedate{}
%%
%% labels in the abstracts
%%
\def\CAST@label@abstract{摘\CASTspace 要}
\def\CAST@label@englishabstract{Abstract}
\def\CAST@label@keywords{关键词:}
\def\CAST@label@englishkeywords{Keywords:~}
%%
%% labels in the publications
%%
\def\CAST@label@publications{发表文章目录}
%%
%% labels in the resume
%%
\def\CAST@label@resume{简\CASTspace 历}
%%
%% labels in the thanks
%%
\def\CAST@label@thanks{致\CASTspace 谢}
%%
%% the chapter title format
%%
\def\CTEX@chapter@nameformat{\bfseries\heiti\zihao{-3}}
\def\CTEX@chapter@titleformat{\bfseries\heiti\zihao{-3}}
\def\CTEX@chapter@beforeskip{15\p@}
\def\CTEX@chapter@afterskip{12\p@}
%%
%% the section title format
%%
\def\CTEX@section@format{\bfseries\heiti\zihao{4}\centering}
\def\CTEX@section@beforeskip{-3ex \@plus -1ex \@minus -.2ex}
\def\CTEX@section@afterskip{1.0ex \@plus .2ex}
%%
%% the subsection title format
%%
\def\CTEX@subsection@format{\bfseries\heiti\zihao{-4}}
\def\CTEX@subsection@indent{2\ccwd}
\def\CTEX@subsection@beforeskip{-2.5ex \@plus -1ex \@minus -.2ex}
\def\CTEX@subsection@afterskip{1.0ex \@plus .2ex}
%%
%% the subsubsection title format
%%
\def\CTEX@subsubsection@format{\bfseries\heiti\zihao{-4}}
\def\CTEX@subsubsection@indent{2\ccwd}
\def\CTEX@subsubsection@beforeskip{-2ex \@plus -1ex \@minus -.2ex}
\def\CTEX@subsubsection@afterskip{1.0ex \@plus .2ex}
%%
%% the theorems definitions
%%
\theoremstyle{plain}
\newtheorem{algo}{算法~}[chapter]
\newtheorem{thm}{定理~}[chapter]
\newtheorem{lem}[thm]{引理~}
\newtheorem{prop}[thm]{命题~}
\newtheorem{cor}[thm]{推论~}
\theoremstyle{definition}
\newtheorem{defn}{定义~}[chapter]
\newtheorem{conj}{猜想~}[chapter]
\newtheorem{exmp}{例~}[chapter]
\newtheorem{rem}{注~}
\newtheorem{case}{情形~}
\theoremstyle{break}
\newtheorem{bthm}[thm]{定理~}
\newtheorem{blem}[thm]{引理~}
\newtheorem{bprop}[thm]{命题~}
\newtheorem{bcor}[thm]{推论~}
\renewcommand{\proofname}{\bf 证明}
\endinput
%%
%% End of file `CASthesis.cfg'.
2、CASthesis.cls
%%
%% This is file `CASthesis.cls',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% CASthesis.dtx (with options: `cls')
%%
%% This is a generated file.
%%
%% Copyright 2004-2006
%% CTEX.ORG and any individual authors listed elsewhere in this file.
%%
%% This file was generated from file(s) of the CASthesis package project.
%% ----------------------------------------------------------------------
%%
%% It may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.2
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.2 or later is part of all distributions of LaTeX
%% version 1999/12/01 or later.
%%
%% This file may only be distributed together with a copy of original
%% source files. You may however distribute original source files
%% without such generated files. Copying of this file is authorized
%% only if either:
%% (1) you make absolutely no changes to your copy, including name; OR
%% (2) if you do make changes, you first rename it to some other name.
%%
%% To produce the documentation run the original source files ending
%% with `.dtx' through LaTeX.
%%
%% \CharacterTable
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%% Digits \0\1\2\3\4\5\6\7\8\9
%% Exclamation \! Double quote \" Hash (number) \#
%% Dollar \$ Percent \% Ampersand \&
%% Acute accent \' Left paren \( Right paren \)
%% Asterisk \* Plus \+ Comma \,
%% Minus \- Point \. Solidus \/
%% Colon \: Semicolon \; Less than \<
%% Equals \= Greater than \> Question mark \?
%% Commercial at \@ Left bracket \[ Backslash \\
%% Right bracket \] Circumflex \^ Underscore \_
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
%%
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{CASthesis}
[2011/04/06 v0.2 CASthesis
document class]
\newif\ifCAST@typeinfo \CAST@typeinfotrue
\DeclareOption{notypeinfo}{\CAST@typeinfofalse}
\newif\ifCAST@dvips \CAST@dvipsfalse
\DeclareOption{dvips}{\CAST@dvipstrue}
\DeclareOption{dvipdfm}{\CAST@dvipsfalse}
\DeclareOption{pdftex}{\CAST@dvipsfalse}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{ctexbook}}
\ProcessOptions
\LoadClass[cs4size,a4paper,fancyhdr,fntef]{ctexbook}[2005/11/25]
%% check pdfTeX mode
\RequirePackage{ifpdf,ifxetex}
%% math packages
\RequirePackage{amsmath,amsthm,amsfonts,amssymb,bm}
%% graphics packages
\RequirePackage{graphicx}
%% sort and compress citations
\RequirePackage[sort&compress,numbers]{natbib}
%% packages and settings depend on PDF mode
\ifxetex
\RequirePackage[xetex]{hyperref}
\DeclareGraphicsExtensions{.pdf,.png,.jpg}
\else
\ifpdf % We're running pdfTeX in PDF mode
\RequirePackage[pdftex]{hyperref}
\DeclareGraphicsExtensions{.pdf,.png,.jpg}
\else % We're not running pdfTeX, or running pdfTeX in DVI mode
\ifCAST@dvips
\RequirePackage[dvips]{hyperref}
\RequirePackage{psfrag}
\AtBeginDvi{\special{pdf:tounicode GBK-EUC-UCS2}} % GBK -> Unicode
\else
\RequirePackage[dvipdfm]{hyperref}
\fi
\DeclareGraphicsExtensions{.eps,.ps}
\fi
\fi
\hypersetup{CJKbookmarks=true,%
bookmarksnumbered=true,%
colorlinks,%
linkcolor=blue,%
citecolor=blue,%
plainpages=false,%
pdfstartview=FitH,
pdfpagemode=UseOutlines,
bookmarksopen}
\AtEndOfPackage{\makeatletter\input{CASthesis.cfg}\makeatother}
\oddsidemargin 1.5 true cm
\if@twoside
\evensidemargin 0 true cm
\else
\evensidemargin 1.5 true cm
\fi
\textheight 21 true cm
\textwidth 14.5 true cm
\headheight 15pt
\parskip 0.5ex plus 0.25ex minus 0.25ex
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else
\thispagestyle{empty}%
\hbox{}\newpage\if@twocolumn\hbox{}\newpage\fi\fi\fi}
\renewcommand{\floatpagefraction}{0.80}
\bibliographystyle{plain}
\newcommand\CASTspace{\protect\CTEX@spaceChar\protect\CTEX@spaceChar}
\def\CAST@getfileinfo#1 #2 #3\relax#4\relax{%
\def\CASTfiledate{#1}%
\def\CASTfileversion{#2}%
\def\CASTfileinfo{#3}}%
\expandafter\ifx\csname [email protected]\endcsname\relax
\edef\reserved@a{\csname ver@ctextemp_CASthesis.cls\endcsname}
\else
\edef\reserved@a{\csname [email protected]\endcsname}
\fi
\expandafter\CAST@getfileinfo\reserved@a\relax? ? \relax\relax
\def\CAST@underline[#1]#2{%
\CTEXunderline{\hbox to #1{\hfill#2\hfill}}}
\def\CASTunderline{\@ifnextchar[\CAST@underline\CTEXunderline}
\newcommand\classification[1]{\def\CAST@value@classification{#1}}
\newcommand\confidential[1]{\def\CAST@value@confidential{#1}}
\newcommand\UDC[1]{\def\CAST@value@UDC{#1}}
\newcommand\serialnumber[1]{\def\CAST@value@serialnumber{#1}}
\newcommand\school[1]{\def\CAST@value@school{#1}}
\newcommand\degree[1]{\def\CAST@value@degree{#1}}
\renewcommand\title[2][\CAST@value@title]{%
\def\CAST@value@title{#2}
\def\CAST@value@titlemark{\MakeUppercase{#1}}}
\renewcommand\author[1]{\def\CAST@value@author{#1}}
\newcommand\advisor[1]{\def\CAST@value@advisor{#1}}
\newcommand\advisorinstitute[1]{\def\CAST@value@advisorinstitute{#1}}
\newcommand\major[1]{\def\CAST@value@major{#1}}
\newcommand\submitdate[1]{\def\CAST@value@submitdate{#1}}
\newcommand\defenddate[1]{\def\CAST@value@defenddate{#1}}
\newcommand\institute[1]{\def\CAST@value@institute{#1}}
\newcommand\chairman[1]{\def\CAST@value@chairman{#1}}
\renewcommand\maketitle{%
\cleardoublepage
\thispagestyle{empty}
\begin{center}
\bf\songti\zihao{-4}
\vskip \stretch{2}
\begin{figure}[!htb]
\centerline{\includegraphics[width=6.00in]{CAS}}
\end{figure}
\bf\heiti\zihao{1} \CAST@value@degreeO\CAST@label@thesis
\vskip \stretch{2}
\bf\songti\zihao{2} \CAST@value@title
\vskip \stretch{2}
\bf\fangsong\zihao{4}
\def\tabcolsep{1pt}
\def\arraystretch{1.5}
\begin{tabular}{llcrl}
\centering
\CAST@label@author &
\multicolumn{2}{l}{\CASTunderline[299pt]{\CAST@value@author}}\\
\CAST@label@advisor &
\multicolumn{2}{l}{\CASTunderline[299pt]{\CAST@value@advisor}}\\
&\multicolumn{2}{l}{\CASTunderline[299pt]{\CAST@value@advisorinstitute}}\\
\CAST@label@degree &
\CASTunderline[299pt]{\CAST@value@degree}\\
\CAST@label@major &
\CASTunderline[299pt]{\CAST@value@major}\\
\CAST@label@institute &
\multicolumn{2}{l}{\CASTunderline[299pt]{\CAST@value@institute}}
\end{tabular}
\vskip \stretch{2}
\fangsong\zihao{4} \CAST@value@submitdate
\end{center}
\clearpage
\CAST@typeinfofalse
\if@twoside
\thispagestyle{empty}
\ifCAST@typeinfo
\vspace*{\stretch{1}}
\begin{footnotesize}
\noindent
Typeset by \LaTeXe{} at \CTEX@todayold \\
With package \texttt{CASthesis} \CASTfileversion{} of C\TeX{}.ORG
\end{footnotesize}
\fi
\cleardoublepage
\fi
}
\newcommand\englishtitle[1]{\def\CAST@value@englishtitle{#1}}
\newcommand\englishauthor[1]{\def\CAST@value@englishauthor{#1}}
\newcommand\englishadvisor[1]{\def\CAST@value@englishadvisor{#1}}
\newcommand\englishinstitute[1]{\def\CAST@value@englishinstitute{#1}}
\newcommand\englishdate[1]{\def\CAST@value@englishdate{#1}}
\newcommand\englishdegree[1]{\def\CAST@value@englishdegree{#1}}
\newcommand\englishmajor[1]{\def\CAST@value@englishmajor{#1}}
\newcommand\makeenglishtitle{%
\cleardoublepage
\thispagestyle{empty}
\begin{center}
\vspace*{20pt}
\bf \zihao{3} \CAST@value@englishtitle
\vskip \stretch{2}
\bf \zihao{3} \CAST@value@englishauthor
%%\vskip \stretch{1}
%% \normalfont\zihao{3} \CAST@label@englishadvisor
%%\vskip 3pt
%% \normalfont\zihao{3} \CAST@value@englishadvisor
\vskip \stretch{2}
\rm \normalsize \CAST@label@englishstatement
\vskip \stretch{2}
\rm \normalsize \CAST@value@englishinstitute
\vskip 3pt
\rm \normalsize \CAST@value@englishschool
\vskip 30pt
\rm \normalsize \CAST@value@englishdate
\end{center}
\clearpage
\if@twoside
\thispagestyle{empty}
\cleardoublepage
\fi
}
\newcommand\shuomingX[1]{\def\CAST@value@shuomingX{#1}}
\newcommand\shuomingXX[1]{\def\CAST@value@shuomingXX{#1}}
\newcommand\signature[1]{\def\CAST@value@signature{#1}}
\newcommand\signaturedate[1]{\def\CAST@value@signaturedate{#1}}
\newcommand\advisorsignature[1]{\def\CAST@value@advisorsignature{#1}}
\newcommand\advisorsignaturedate[1]{\def\CAST@value@advisorsignaturedate{#1}}
\newcommand\makeshuoming{%
\cleardoublepage
\thispagestyle{empty}
\begin{center}
\bf \songti \zihao{2} \CAST@label@shuomingX
\end{center}
\begin{flushleft}
\vskip 3pt
\quad\quad \fangsong \zihao{4} \CAST@value@shuomingX
\end{flushleft}
\begin{flushright}
\begin{tabular}{rlcrl}
\renewcommand{\arraystretch}{2.0}
\CAST@label@signature & \CAST@value@signature & \CAST@label@signaturedate & \CAST@value@signaturedate
\end{tabular}
%%\vskip \stretch{2}
%%\fangsong \normalsize \CAST@label@signature\CAST@value@signature\CAST@label@signaturedate\CAST@value@signaturedate
\end{flushright}
\begin{center}
\vskip \stretch{1}
\bf \songti \zihao{2} \CAST@label@shuomingXX
\end{center}
\begin{flushleft}
\vskip 3pt
\quad\quad \fangsong \zihao{4} \CAST@value@shuomingXX
\end{flushleft}
\begin{flushright}
\begin{tabular}{rlcrl}
\renewcommand{\arraystretch}{2.0}
\CAST@label@signature & \CAST@value@signature & \CAST@label@signaturedate & \CAST@value@signaturedate \\ \\
\CAST@label@advisorsignature & \CAST@value@advisorsignature & \CAST@label@advisorsignaturedate & \CAST@value@advisorsignaturedate
\end{tabular}
%%\vskip \stretch{2}
%%\fangsong \normalsize \CAST@label@signature\CAST@value@signature\CAST@label@signaturedate\CAST@value@signaturedate
%%\vskip 3pt
%%\fangsong \normalsize \CAST@label@advisorsignature\CAST@value@advisorsignature\CAST@label@advisorsignaturedate\CAST@value@advisorsignaturedate
\end{flushright}
\clearpage
\if@twoside
\thispagestyle{empty}
\cleardoublepage
\fi
}
% \newif \if@frontmatter \@frontmatterfalse
% \let \LaTeXfrontmatter = \frontmatter
% \let \LaTeXmainmatter = \mainmatter
% \renewcommand {\frontmatter} {\@frontmattertrue \LaTeXfrontmatter}
% \renewcommand {\mainmatter} {\@frontmatterfalse \LaTeXmainmatter}
% \pagestyle{fancy}
% \fancyhf{}
% \fancyhead[CE]{\if@frontmatter\else\small \CAST@value@titlemark\fi}
% \fancyhead[CO]{\if@frontmatter\else\small \leftmark\fi}
% \fancyfoot[CE,CO]{\if@frontmatter\else\small ~\thepage~\fi}
% \renewcommand{\headrulewidth}{\if@frontmatter 0pt\else .7pt\fi}%
% \fancypagestyle{plain}{%
% \pagestyle{fancy}
% }
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0.5pt}
\fancyhf{}
\fancyfoot[CE,CO]{\thepage}
\fancyhead[CO]{\leftmark}
\fancyhead[CE]{\CAST@value@titlemark}
\fancypagestyle{plain}{%
\pagestyle{fancy}
}
\newenvironment{abstract}
{\Nchapter{\CAST@label@abstract}}
{}
\newcommand\keywords[1]{%
\vspace{2ex}\noindent{\heiti \CAST@label@keywords} #1}
\newenvironment{englishabstract}
{\Nchapter{\CAST@label@englishabstract}}
{}
\newcommand\englishkeywords[1]{%
\vspace{2ex}\noindent{\bf \CAST@label@englishkeywords} #1}
\renewcommand\tableofcontents{%
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\Nchapter{\contentsname}%
\@mkboth{\MakeUppercase\contentsname}{\MakeUppercase\contentsname}%
\@starttoc{toc}%
\if@restonecol\twocolumn\fi
}
%%\pagenumbering{arabic}
\addtocontents{toc}{\let\string\CTEX@spaceChar\relax}
\newcommand\Nchapter[1]{%
\if@mainmatter%
\@mainmatterfalse%
\chapter{#1}%
\@mainmattertrue%
\else
\chapter{#1}%
\fi}
\def\@dottedtocline#1#2#3#4#5{%
\ifnum #1>\c@tocdepth \else
\vskip \z@ \@plus.2\p@
{\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
\parindent #2\relax\@afterindenttrue
\interlinepenalty\@M
\leavevmode
\@tempdima #3\relax
\advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
{#4}\nobreak
\leaders\hbox{$\m@th\mkern 1.5mu\cdot\mkern 1.5mu$}\hfill
\nobreak
\hb@xt@\@pnumwidth{\hfil\normalfont \normalcolor #5}%
\par}%
\fi}
\renewcommand*\l@part[2]{%
\ifnum \c@tocdepth >-2\relax
\addpenalty{-\@highpenalty}%
\addvspace{2.25em \@plus\p@}%
\setlength\@tempdima{3em}%
\begingroup
\parindent \z@ \rightskip \@pnumwidth
\parfillskip -\@pnumwidth
{\leavevmode
\large \bfseries #1
\leaders\hbox{$\m@th\mkern 1.5mu\cdot\mkern 1.5mu$}
\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
\nobreak
\global\@nobreaktrue
\everypar{\global\@nobreakfalse\everypar{}}%
\endgroup
\fi}
\renewcommand*\l@chapter[2]{%
\ifnum \c@tocdepth >\m@ne
\addpenalty{-\@highpenalty}%
\vskip 1.0em \@plus\p@
\setlength\@tempdima{1.5em}%
\begingroup
\parindent \z@ \rightskip \@pnumwidth
\parfillskip -\@pnumwidth
\leavevmode \bfseries
\advance\leftskip\@tempdima
\hskip -\leftskip
#1\nobreak
\leaders\hbox{$\m@th\mkern 1.5mu\cdot\mkern 1.5mu$}
\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
\penalty\@highpenalty
\endgroup
\fi}
\renewenvironment{thebibliography}[1]
{\Nchapter{\bibname}%
\@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
\list{\@biblabel{\@arabic\c@enumiv}}%
{\settowidth\labelwidth{\@biblabel{#1}}%
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\@openbib@code
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand\theenumiv{\@arabic\c@enumiv}}%
\sloppy
\clubpenalty4000
\@clubpenalty \clubpenalty
\widowpenalty4000%
\sfcode`\.\@m}
{\def\@noitemerr
{\@latex@warning{Empty `thebibliography' environment}}%
\endlist}
\newenvironment{publications}[1]
{\Nchapter{\CAST@label@publications}%
\@mkboth{\MakeUppercase\CAST@label@publications}
{\MakeUppercase\CAST@label@publications}%
\list{\@biblabel{\@arabic\c@enumiv}}%
{\settowidth\labelwidth{\@biblabel{#1}}%
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\@openbib@code
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand\theenumiv{\@arabic\c@enumiv}}%
\sloppy
\clubpenalty4000
\@clubpenalty \clubpenalty
\widowpenalty4000%
\sfcode`\.\@m}
{\def\@noitemerr
{\@latex@warning{Empty `publications' environment}}%
\endlist}
\newenvironment{resume}
{\Nchapter{\CAST@label@resume}}
{}
\newenvironment{resumesection}[1]
{{\noindent\normalfont\bfseries #1}
\list{}{\labelwidth\z@
\leftmargin 2\ccwd}
\item\relax}
{\endlist}
\newenvironment{resumelist}[1]
{{\noindent\normalfont\bfseries #1}
\list{}{\labelwidth\z@
\leftmargin 4\ccwd
\itemindent -2\ccwd
\listparindent\itemindent}
\item\relax}
{\endlist}
\renewenvironment{thanks}
{\Nchapter{\CAST@label@thanks}}
{}
\setcounter{secnumdepth}{4}
\newtheoremstyle{break}% name
{}% Space above, empty = `usual value'
{}% Space below
{\itshape}% Body font
{}% Indent amount (empty = no indent, \parindent = para indent)
{\bfseries}% Thm head font
{.}% Punctuation after thm head
{\newline}% Space after thm head: \newline = linebreak
{}% Thm head spec
\endinput
%%
%% End of file `CASthesis.cls'.
3、template.tex
%% Thesis Template of Chinese Academy of Sciences
%% for using CASthesis package with LaTeX2e
%%
%% Created by Ling-Yun Wu
%%
%% $Id: template.tex,v 1.10 2007/01/09 05:10:46 aloft Exp $
\documentclass[pdftex]{CASthesis}%[dvipdfm]
% 可选参数:
%
% 下面三个选一个:
% dvipdfm 使用 dvipdfm(x) 生成最终的 PDF 文档 (缺省设置)
% dvips 使用 dvips 生成最终的 PS 文档
% pdftex 使用 pdfLaTeX 生成最终的 PDF 文档
% 设置图形文件的搜索路径
\graphicspath{{chapter/}{figures/}}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{bm}
\usepackage{subfigure}
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{latexsym}
\usepackage{supertabular}
\usepackage{setspace}
\usepackage{flushend}
\usepackage{stfloats}
\usepackage{color}
\usepackage{times}
\renewcommand{\autoref}[1]{图\ref{#1}}
\usepackage[font=small,labelsep=space]{caption}
% 取消链接的颜色(黑白打印时)
%\hypersetup{colorlinks=false}
%\notypeinfo
% 小节标题靠左对齐
%\CTEXsetup[format+={\flushleft}]{section}
\makeatletter %使\section中的内容左对齐
\renewcommand{\section}{\@startsection{section}{1}{0mm}
{-\baselineskip}{0.5\baselineskip}{\bf\leftline}}
\makeatother
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 封面部分
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 中文封面内容
%\classification{}
%\confidential{}
%\UDC{}
%\serialnumber{}
\title{XXXXXXXXXXX}%填写论文题目
\author{XXXXXXXXXXX}%填写作者姓名
\advisor{XXXXXXXXXXX}%填写导师姓名职称
\advisorinstitute{XXXXXXXXXXX}%填写导师单位
\degree{XXXXXXXXXXX}%填写学位名称
\major{XXXXXXXXXXX}%填写专业
\institute{XXXXXXXXXXX}%填写单位
\submitdate{XXXXXXXXXXX}%填写论文提交日期
%\defenddate{2004年8月}%
%\chairman{}%
% 英文封面内容
\englishtitle{XXXXXXXXXXX}%填写论文英文题目
\englishauthor{By \\ XXXXXXXXXXX}%填写论文作者姓名(英文)
\englishdate{April, 2017}%填写论文提交日期
%说明
\shuomingX{本人郑重声明:所提交的学位论文是我本人在指导教师的指导下进行的研究工作获得的研究成果。尽我所知,文中除特别标注和致谢的地方外,学位论文中不包含其他人已经发表或撰写过的研究成果,也不包含为获得XXXX或其它教育机构的学位或证书所使用过的材料。与我一同工作的合作者对此研究工作所做的任何贡献均已在学位论文中作了明确的说明并表示了谢意。
特此申明。}
\shuomingXX{本人完全了解XXXXXXXX所有关保留、使用学位论文的规定,其中包括:①XXX有权保管、并向有关部门送交学位论文的原件与复印件;②XXX可以采用影印、缩印或其他复制手段复制并保存学位论文;③XXX可允许学位论文被查阅或借阅;④XXX可以学术交流为目的,复制赠送和交换学位论文;⑤XXX可以公布学位论文的全部或部分内容(保密学位论文在解密后遵守此规定)。}
% 封面
\maketitle
% 英文封面
\makeenglishtitle%.cls中定义的命令
%说明
\makeshuoming
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 前言部分
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frontmatter
% 摘要
\include{chapter/abstract}%所有 \include{chapter/XXXX均为单独的.tex文件
% 目录
\tableofcontents
% 表格目录
%\listoftables
% 插图目录
% \listoffigures
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 正文部分
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\mainmatter
\include{chapter/chap-intro}%
\include{chapter/chap-method}
%其他正文内容
% 附录
\appendix
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 附件部分
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\backmatter
% 参考文献
% 使用 BibTeX
\bibliography{bib/tex}
\nocite{*}
% 不使用 BibTeX
% \include{chapter/bib}
% 发表文章目录
\include{chapter/pub}
% 个人简历
%\include{chapter/resume}
% 致谢
\include{chapter/thanks}
\end{document}
4、安装CTEX,将上述三个文件放在同一个文件夹,选择PDFLaTex编译template.tex运行看效果
5、其他
(1)图片编号为“图 1.1 ”,引用采用\autoref{the label name of figure},格式为“图1.1”