Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 22 additions & 17 deletions cugthesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@
{\cug@sanhao{学校代码: 10491 \hfill 研究生学号: \cug@studentid }}
\fi
\vspace*{2\baselineskip}
{\par \cug@yihao \bfseries 中国地质大学\\ \cug@@titlelogo \par}
{\par \cug@yihao 中国地质大学\\ \cug@@titlelogo \par}
\vspace*{2.5\baselineskip}
{\par \cug@erhao \sffamily \bfseries \@title \par} %
\vfill
Expand Down Expand Up @@ -555,6 +555,7 @@
}

\renewcommand{\tableofcontents}{%
\cleardoublepage
\@cfttocstart
\par
\begingroup
Expand All @@ -566,6 +567,7 @@
\@starttoc{toc}%
\endgroup
\@cfttocfinish
\cleardoublepage
}

\renewcommand{\@cftmakeloftitle}{%
Expand All @@ -580,7 +582,9 @@
\par\nobreak
\vskip 2ex
\@afterheading}}
\renewcommand\listfigurename{图清单}
\renewcommand{\listoffigures}{%
\cleardoublepage
\@cfttocstart
\par
\begingroup
Expand All @@ -591,7 +595,8 @@
\fi
\@starttoc{lof}%
\endgroup
\@cfttocfinish}%
\@cfttocfinish
\cleardoublepage}%
\renewcommand{\@cftmakelottitle}{%
\addpenalty\@secpenalty
\vspace*{2ex}
Expand All @@ -604,7 +609,9 @@
\par\nobreak
\vskip 2ex
\@afterheading}}
\renewcommand\listtablename{表清单}
\renewcommand{\listoftables}{%
\cleardoublepage
\@cfttocstart
\par
\begingroup
Expand All @@ -615,7 +622,8 @@
\fi
\@starttoc{lot}%
\endgroup
\@cfttocfinish}%
\@cfttocfinish
\cleardoublepage}%

\renewcommand{\contentsname}{目\quad 录}

Expand All @@ -626,20 +634,17 @@
\makeauthorcv
\makeabstract
\tableofcontents
\thispagestyle{empty}
\frontmatter
\ifcug@toc@fig@show
\listoffigures
\addcontentsline{toc}{chapter}{插 \quad 图}
\ifcug@toc@tab@show
\let\cleardoublepage\relax
\let\clearpage\relax
\fi
\fi
\ifcug@toc@tab@show
\listoftables
\addcontentsline{toc}{chapter}{表 \quad 格}
\fi
\frontmatter
\ifcug@toc@fig@show
\phantomsection
\addcontentsline{toc}{chapter}{\listfigurename}
\listoffigures
\fi
\ifcug@toc@tab@show
\phantomsection
\addcontentsline{toc}{chapter}{\listtablename}
\listoftables
\fi
\clearpage
\mainmatter
}
Expand Down
1 change: 1 addition & 0 deletions cugthesisfont.sty
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

\RequirePackage{fontspec}
\RequirePackage{xeCJK}
\RequirePackage[defaultsups]{newtxtext}

%------------- Fonts Settings -------------
%\defaultfontfeatures{Path = fonts/cn/, Mapping = tex-text}
Expand Down
3 changes: 2 additions & 1 deletion demo.tex
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
\documentclass[bibsec, doctor, tabtoc]{cugthesis}
\documentclass[bibsec, master, figtoc, tabtoc]{cugthesis}

\usepackage{ttools}
\usepackage{tcode}
\usepackage{multirow}
\usepackage{emptypage}

\cugthesistitle{中国地质大学研究生学位论文 \LaTeXe{} 模板}{\cugthesis\ \LaTeXe{} Template}
\studentid{1201711347}
Expand Down
7 changes: 7 additions & 0 deletions gbt7714-2005-sec.bst
Original file line number Diff line number Diff line change
Expand Up @@ -1521,6 +1521,13 @@ FUNCTION {masterthesis} { % void Entry::masterthesis() {
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
FUNCTION {mastersthesis} { % void Entry::masterthesis() {
"D" set.mark % set_mark("D");
thesis.impl % thesis_impl();
} % }
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
FUNCTION {bachelorthesis} { % void Entry::bachelorthesis() {
"D" set.mark % set_mark("D");
thesis.impl % thesis_impl();
Expand Down
7 changes: 7 additions & 0 deletions gbt7714-2005.bst
Original file line number Diff line number Diff line change
Expand Up @@ -1480,6 +1480,13 @@ FUNCTION {masterthesis} { % void Entry::masterthesis() {
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
FUNCTION {mastersthesis} { % void Entry::masterthesis() {
"D" set.mark % set_mark("D");
thesis.impl % thesis_impl();
} % }
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
FUNCTION {bachelorthesis} { % void Entry::bachelorthesis() {
"D" set.mark % set_mark("D");
thesis.impl % thesis_impl();
Expand Down