From 618743ed4f3d2573f18f02d25f90f722af9c8496 Mon Sep 17 00:00:00 2001 From: chunibyo Date: Tue, 2 Jan 2024 19:02:14 +0800 Subject: [PATCH 1/2] =?UTF-8?q?[fix]=20=E5=9B=BE=E6=B8=85=E5=8D=95?= =?UTF-8?q?=EF=BC=8C=E8=A1=A8=E6=B8=85=E5=8D=95=EF=BC=8C=E8=8B=B1=E6=96=87?= =?UTF-8?q?=E6=A0=87=E9=A2=98=E9=A1=B5=E5=AD=97=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cugthesis.cls | 39 ++++++++++++++++++++++----------------- cugthesisfont.sty | 1 + demo.tex | 3 ++- 3 files changed, 25 insertions(+), 18 deletions(-) diff --git a/cugthesis.cls b/cugthesis.cls index 818efc6..22343be 100644 --- a/cugthesis.cls +++ b/cugthesis.cls @@ -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 @@ -555,6 +555,7 @@ } \renewcommand{\tableofcontents}{% + \cleardoublepage \@cfttocstart \par \begingroup @@ -566,6 +567,7 @@ \@starttoc{toc}% \endgroup \@cfttocfinish + \cleardoublepage } \renewcommand{\@cftmakeloftitle}{% @@ -580,7 +582,9 @@ \par\nobreak \vskip 2ex \@afterheading}} +\renewcommand\listfigurename{图清单} \renewcommand{\listoffigures}{% + \cleardoublepage \@cfttocstart \par \begingroup @@ -591,7 +595,8 @@ \fi \@starttoc{lof}% \endgroup - \@cfttocfinish}% + \@cfttocfinish + \cleardoublepage}% \renewcommand{\@cftmakelottitle}{% \addpenalty\@secpenalty \vspace*{2ex} @@ -604,7 +609,9 @@ \par\nobreak \vskip 2ex \@afterheading}} +\renewcommand\listtablename{表清单} \renewcommand{\listoftables}{% + \cleardoublepage \@cfttocstart \par \begingroup @@ -615,7 +622,8 @@ \fi \@starttoc{lot}% \endgroup - \@cfttocfinish}% + \@cfttocfinish + \cleardoublepage}% \renewcommand{\contentsname}{目\quad 录} @@ -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 } diff --git a/cugthesisfont.sty b/cugthesisfont.sty index 53256d8..b2fbb71 100644 --- a/cugthesisfont.sty +++ b/cugthesisfont.sty @@ -16,6 +16,7 @@ \RequirePackage{fontspec} \RequirePackage{xeCJK} +\RequirePackage[defaultsups]{newtxtext} %------------- Fonts Settings ------------- %\defaultfontfeatures{Path = fonts/cn/, Mapping = tex-text} diff --git a/demo.tex b/demo.tex index 063b948..816666a 100644 --- a/demo.tex +++ b/demo.tex @@ -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} From dfc90a853002a1e9477c5145c7aaaa6579b23393 Mon Sep 17 00:00:00 2001 From: chunibyo Date: Fri, 5 Jan 2024 11:50:06 +0800 Subject: [PATCH 2/2] [fix] cnki bib --- gbt7714-2005-sec.bst | 7 +++++++ gbt7714-2005.bst | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/gbt7714-2005-sec.bst b/gbt7714-2005-sec.bst index 3744b78..a9cff8b 100644 --- a/gbt7714-2005-sec.bst +++ b/gbt7714-2005-sec.bst @@ -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(); diff --git a/gbt7714-2005.bst b/gbt7714-2005.bst index c3ac85c..63a4892 100644 --- a/gbt7714-2005.bst +++ b/gbt7714-2005.bst @@ -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();