7 Star 46 Fork 13

yuh / LZUThesis2023

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
LZUThesis-PgD&PhD.cls 31.66 KB
一键复制 编辑 原始数据 按行查看 历史
yuh 提交于 2024-05-07 01:04 . fix:参考文献默认使用gbt7714格式
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{LZUThesis-PgD&PhD}[2023/05/19 V3.5.0.2023 Thesis for LZUer PgD&PhD By yuhldr Use 2023 standard]
\LoadClass[12pt, a4paper, UTF8, openany,oneside]{ctexbook}
% 兰州大学研究生学位论文写作参考规范 https://ge.lzu.edu.cn/xueweishouyu/guizhangzhidu/lunwenguanli/2020/1223/158947.html
%============================ 一些章节的配置文件 =========%
%%
%% the chapter title format
%%
%正文结构,分别以“第一章”、“1”、“1.1”、“1.1.1”….等树层次格式依次标出。
%章的编号居中,字体为黑体,三号,加粗,居中,单倍行距,段前24磅,段后18磅,如“第一章”;
%节的编号置顶格,按顺序分层,如“1”,“1.1”,“1.1.1”层次,以少为宜,编号与标题之间空1个字符间隙,如“1.1 本科生资料使用”、“1.1.1 本科生数据分析”,字体依次为二级标题黑体,四号,顶左,单倍行距,段前24磅,段后6磅;
%三级标题黑体,小四号,首行缩进2个汉字符,单倍行距,段前12磅,段后6磅。各层次标题用阿拉伯数字连续编号,数字之间用小圆点“.”相隔。
%正文另起一行。正文:宋体,小四(英文用Times New Roman字体,12磅),两端对齐,段落首行左缩进2个汉字符,行间距为固定值20磅,段前段后0磅。
%
%\CTEXsetup[format+={\sffamily\bfseries\small}]{chapter}
\def\CTEX@chapter@nameformat{\bfseries\heiti\zihao{3}} % 应该是加粗(黑体加粗)
\def\CTEX@chapter@titleformat{\bfseries\heiti\zihao{3}} % 应该是加粗(黑体加粗)
\def\CTEX@chapter@beforeskip{24pt}
\def\CTEX@chapter@afterskip{18pt}
%\def\CTEX@chapter@titleformat{\bfseries\heiti\fontspec{Times New Roman}\zihao{3}}
%
%%
%% the section title format
%% 二级标题黑体,四号,顶左,单倍行距,段前24磅,段后6磅
\def\CTEX@section@format{\heiti\zihao{4}}
\def\CTEX@section@beforeskip{24pt}
\def\CTEX@section@afterskip{6pt}
%\def\CTEX@section@beforeskip{-3ex \@plus -1ex \@minus -.2ex}
%\def\CTEX@section@afterskip{1.0ex \@plus .2ex}
%%
%% the subsection title format
%% 三级标题黑体,小四号,单倍行距,段前12磅,段后6磅。
%% 首行缩进2个汉字符 2020年新规定
% 2023恢复2017规定:三级标题:黑体小四号顶左,单倍行距,段前12磅,段后6磅
\def\CTEX@subsection@format{\heiti\zihao{-4}}
% \def\CTEX@subsection@indent{2\ccwd}
\def\CTEX@subsection@beforeskip{12pt}
\def\CTEX@subsection@afterskip{6pt}
%%
%% 四级没要求,可以自己改
%%
\def\CTEX@subsubsection@format{\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}
\@ifclasslater{ctexbook}{2011/03/13}
{%
\ctexset{
% 给的word示例,正文章节前面,空间小,你如果追求一致,可以尝试取消下面的注释
% chapter/fixskip = true,
contentsname={\quad}
}
}
{%
\def\CTEX@contentsname{\quad}
}%
\RequirePackage{textcomp}
\RequirePackage{gensymb}
%============================ 一些章节的配置文件 =========%
% 目录设置,图片
\RequirePackage{subfig}
% 修复上面的冲突
\RequirePackage[titles,subfigure]{tocloft}
% 新增空白页
\RequirePackage{afterpage}
%============================ 我自己用的一些小命令 =========%
%
% 针对那些使用mendeley这一类软件的,直接复制(导出)过来的参考文献,可以在参考文献处点击跳转到文献所在网址
\providecommand \doibase [0]{http://dx.doi.org/}%
% 正文中有些下角标等公式,我们并不想让它斜体,公式不斜体:如 \eqrm{MoS_2}
\newcommand{\eqrm}[1]{
$\rm #1 $
}
% 增加空白页,类似word的换页符,方便打印装订
\newcommand{\blankpage}{\afterpage{\null\newpage}}
% 表格文字居中,其实就是相当于表格合并
% 用法 \tabincell{c}{物理//量//单位}
\newcommand{\tabincell}[2]{ \begin{tabular}{ #1 } #2 \end{tabular}}
% 物理单位埃,已经加了 $ $, 不要再放在$$环境里面
\newcommand{\angstrom}{
$\mathring{\text{A}}$
}
% \makebox[0pt][l]{$\square$}\raisebox{.15ex}{\hspace{0.1em}$\checkmark$}
% \mbox{\ooalign{$\checkmark$\cr\hidewidth$\square$\hidewidth\cr}}
\newcommand{\done}{ \makebox[0pt][l]{$\square$}\raisebox{.15ex}{\hspace{0.1em}$\checkmark$}}
%============================ 我自己用的一些小命令 =========%
\RequirePackage{textcomp}%摄氏度
%=======footnote
%尾注
%=======footnote
\RequirePackage[perpage, bottom]{footmisc}
%%=======page
%页面边距
%论文页边距一般要求:上边距3cm、下边距2.54cm,左右边距3.17cm,页眉页脚2.0cm。
% https://github.com/yuhldr/LZUThesis2020/issues/21
%%=======page
\RequirePackage[top=3cm, bottom=2.54cm,outer=3.17cm, inner=3.17cm, headheight=1cm, footskip=0.54cm, heightrounded]{geometry}
%=======package
%代码风格设置
%=======package
\RequirePackage{listings}
\lstset{
breaklines=true, %对过长的代码自动换行
columns=fixed,
numbers=left, % 在左侧显示行号
numberstyle=\tiny\color{gray}, % 设定行号格式
frame=none, % 不显示背景边框
backgroundcolor=\color[RGB]{245,245,244}, % 设定背景颜色
keywordstyle=\color[RGB]{40,40,255}, % 设定关键字颜色
numberstyle=\footnotesize\color{darkgray},
commentstyle=\it\color[RGB]{0,96,96}, % 设置代码注释的格式
stringstyle=\rmfamily\slshape\color[RGB]{128,0,0}, % 设置字符串格式
showstringspaces=false, % 不显示字符串中的空格
language=tex,
alsolanguage=[ANSI]C, %可以添加很多个alsolanguage,如alsolanguage=matlab,alsolanguage=VHDL等
alsolanguage=python,
alsolanguage=java,
alsolanguage=XML,
alsolanguage=c++,
alsolanguage=matlab,
}
%=======package
%数学宏包
%图像宏包
%颜色宏包
%字体宏包
%=======package
\RequirePackage{amsmath}
% \RequirePackage{amsfonts}
% \RequirePackage{amssymb}
\RequirePackage{mathrsfs}
\RequirePackage{graphicx}
\graphicspath{{figures/}{figure/}{pictures/}
{picture/}{pic/}{pics/}{image/}{images/}}
\RequirePackage[svgnames]{xcolor}
% start ------------ 英文字体(含公式、正文)、加粗、斜体 -------------- start
% 方案一
% \RequirePackage{mathptmx, bm}
% \RequirePackage{bm, mathptmx}
% mathptmx 可以让英文字体(包含公式和正文)为:Times New Roman
% 但是 mathptmx 会导致花体,mathcal和mathscr完全相同,正常mathcal会花的轻一些
% 而且 mathptmx 还会导致boldsymbol 加粗失效
% bm 可以让 boldsymbol 加粗再生效
% 但是需要注意的是,bm 放在前面和后面完全不一样
% bm 放在前面会导致 加粗只是 “描粗” 了的感觉
% bm 放在后面会导致 加粗以后字形变宽,希腊字母相比加粗前有些变形
% 方案二
\RequirePackage{mathptmx, newtxmath}
% 如果觉得上面的不合适,也可以使用 newtxmath,效果略有不同
% 但是问题是,如果只 newtxmath 的话,正文英文字体是不对的,所以也需要 mathptmx
% 最后注意,newtxmath 与 bm 有冲突
% 使用方法详见 `template.tex` 搜索 `boldsymbol`
% end ------------ 英文字体(含公式、正文)、加粗、斜体 -------------- end
\RequirePackage{fontspec} %用电脑上自带的字体
\RequirePackage{float}%控制图片位置 参数H
\RequirePackage[T1]{fontenc}
\RequirePackage{booktabs}
\RequirePackage{harpoon}
\RequirePackage{tablefootnote}
% 可以换页的表格
\RequirePackage{longtable}
% 连续参考文献横杠连接
\RequirePackage{cite}
\newcommand{\upcite}[1]{\textsuperscript{\cite{#1}}}
% 学位论文页码的摘要页和目录页用罗马数字单独编连续码,正文和后置部分用阿拉伯数字、新罗马数字体编连续码,页码排在页脚居中位置。
% 图表目录编号头
\newcommand{\figlabel}{}
\newcommand{\tbllabel}{}
% 自定义目录
\newcommand{\customcontent}{
% 常规目录
\tableofcontents
% 图表目录标题
\CTEXoptions[listfigurename={图\quad 目\quad 录}]
\CTEXoptions[listtablename={表\quad 目\quad 录}]
% 插图目录
\renewcommand{\numberline}[1]{\figlabel~##1\hspace*{1em}}
\listoffigures
% 表格目录
\renewcommand{\numberline}[1]{\tbllabel~##1\hspace*{1em}}
\listoftables
}
%=======head and foot
%页眉页脚
% 页眉、页脚文字均采用小五号宋体,左侧页眉为“兰州大学博(硕)士学位论文”,右侧为学位论文题目名称;页眉下横线可为单横线也可用上粗下细文武线。
%=======head and foot
\RequirePackage{fancyhdr} % Needed to define custom headers/footers
\RequirePackage{lastpage} % Number of pages in the document
\RequirePackage{etoolbox}
\pagestyle{fancy} % Enables the custom headers/footers
\fancypagestyle{frontmatterstyle}{
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\fancyfoot{} % clear all footer fields
\cfoot[C]{\thepage} %
\renewcommand{\thepage}{\Roman{page}}
}
\appto\frontmatter{\pagestyle{frontmatterstyle}}
\DeclareOption{doublelines}{
\def\LZU@doublelines {}
}
\ProcessOptions\relax
\fancypagestyle{mainmatterstyle}{
\fancyhf{}
\lhead{\songti\zihao{-5}兰州大学\the\yjsType 学位论文}% % todo
\rhead{\songti\zihao{-5}\@title}
% Footers
\fancyfoot{} % clear all footer fields
\cfoot[C]{\thepage}
\renewcommand\headrule{\hrule width \hsize height 0.8pt \kern 0.8pt \hrule width \hsize height 0.4pt}
}
\appto\mainmatter{\pagestyle{mainmatterstyle}}
\appto\mainmatter{\linespread{1.3889}\selectfont} %行距
\fancypagestyle{plain}{
\thispagestyle{mainmatterstyle}
}
\AtBeginDocument{\addtocontents{toc}{\protect\thispagestyle{frontmatterstyle}}}
%=======format
%标题样式
%=======format
% “目录”两字间空1个汉字符间隙,三号字,黑体,加粗,居中,单倍行距,段前24磅,段后18磅。
% 目录下方为章、节、条、款及其起始页码,章、节、条、款层次代号可以用阿拉伯数字或汉字。目录中一般只出现三级标题,
% 标题:黑体三号加粗居中,两字中间空一字符距离,单倍行距,段前24磅,段后18磅
% 一级标题:宋体四号,行距20磅,两端对齐,页码右对齐, 段前6磅,段后0磅
% 二级标题:宋体小四号,行距20磅,段前6磅,段后0磅,两端对齐,页码右对齐,左缩进2字符,序号与题名间空一个字符宽度
% 三级标题:宋体小四号,行距20磅,段前6磅,段后0磅,两端对齐,页码右对齐,左缩进3字符,序号与题名间空一个字符宽度
\RequirePackage[font=small]{caption}
\RequirePackage[titles]{tocloft}
\renewcommand\cftchapdotsep{0.5} %虚线间隔
\renewcommand\cftdotsep{0.5} %虚线间隔
% \renewcommand{\cftchapafterpnum}{\vspace{6pt}} %章节间隔 ,节前6磅
\setlength{\cftbeforesecskip}{6pt} %章节间隔 ,节前6磅
% \setlength{\cftbeforechapskip}{6pt}
\setlength{\cftbeforesubsecskip}{6pt}
\renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}} % 设置章节前后的点点
\renewcommand{\cftchappagefont}{\zihao{4}\songti\selectfont} % 设置页码字体
\renewcommand\cftchapfont{\zihao{4}\songti}
\renewcommand\cftsecfont{\zihao{-4} \songti}
\renewcommand\cftsubsecfont{\zihao{-4} \songti}
\setlength\cftbeforetoctitleskip{24pt}
\setlength\cftaftertoctitleskip{18pt}
\setlength{\cftsubsecindent}{3em}
%%=======information
%(一)封面
% 1. 毕业论文(设计)题目。简明扼要,核心内容明确。中文题目一般不超过25个字,字体为宋体,三号;英文题目一般不超过150个字母,字体为Times New Roman,三号。根据论文内容,可以加副标题。
% 2.学生姓名、指导教师、学院、专业、年级字体为宋体,三号。
%
%%=======information
\newtoks\yjsType
\newtoks\yjsZsZy
\newtoks\schoolcode
\newtoks\secret
\newtoks\cid
\newtoks\major
\newtoks\research
\newtoks\education
\newtoks\advisor
\newtoks\codvisor
\newtoks\elapse
\newtoks\defense
\newtoks\titlextra %标题多余一行时添加
%=======english title
\newtoks\entitle
\newtoks\entitletra %标题多余一行时添加
%%=======statement
%标题页
%需要添加循环函数,判定多于一行的情况
%%=======statement
\RequirePackage{array}
\def\LZU@underline[#1]#2{%
\underline{\hbox to #1{\hfill#2\hfill}}}
\def\LZUunderline{\@ifnextchar[\LZU@underline\underline}
\RequirePackage{makecell}
%\RequirePackage{pgffor}
\RequirePackage{forloop}
\RequirePackage{xstring}
\renewcommand\maketitle{%
\cleardoublepage
\thispagestyle{empty}
\begin{flushleft}
{\zihao{5}\heiti 学校代码:\the\schoolcode}
\hspace{260pt}
{\zihao{5}\heiti 密级:\the\secret}
{\zihao{5}\heiti \quad 分类号:\the\cid}
\end{flushleft}
\begin{center}
\includegraphics[width=6.75cm]{lzu2007.png}\\
\vspace{21.8pt}
{\fontsize{22bp}{0pt}\ziju{1}\bfseries\songti{\the\yjsType 学位论文\\}}
\vspace{20.8pt}
{\zihao{3} \songti\the\yjsZsZy}
\vspace{20.8pt}
\par
\zihao{4}
\def\tabcolsep{6pt}
\expandarg
\newcounter{title_str_number}
\vspace*{10pt}
\begin{tabular}{ll}
\bfseries\songti \zihao{4} 论文题目(中文)% “论文题目(中文)”这几个字,应该是加粗(宋体加粗)
% 论文题目用三号字,宋体,加粗,其他信息用小三号字,宋体,加粗,居中。
\forloop{title_str_number}{1}{\value{title_str_number}<6}{%
\StrFindGroup{\@title}{\value{title_str_number}}[\mygroup]%
\IfStrEq{\mygroup}{}{}{%
& {\StrFindGroup{\@title}{\value{title_str_number}}[\mygroup]\LZUunderline[320pt]{ \bfseries\songti \zihao{3}\mygroup}} \\[0.40cm]%
}%
}%
\bfseries\songti \zihao{4} 论文题目(外文)% “论文题目(英文)”这几个字,应该是加粗(宋体加粗)
\forloop{title_str_number}{1}{\value{title_str_number}<6}{%
\StrFindGroup{\the\entitle}{\value{title_str_number}}[\mygroup]%
\IfStrEq{\mygroup}{}{}{%
& {\StrFindGroup{\the\entitle}{\value{title_str_number}}[\mygroup]\LZUunderline[320pt]{\zihao{3}\bfseries\mygroup}} \\[0.40cm]%
}%
}%
% “学生姓名等、指导教师、……”这几个字,应该是加粗(宋体加粗)
{\bfseries\songti \zihao{4}{\hfill\hfill\hfill}} &
{\LZUunderline[320pt]{ \bfseries\songti \zihao{-3}\@author}} \\[0.40cm]
{\bfseries\songti \zihao{4} {\hfill\hfill\hfill}} &
{\LZUunderline[320pt]{ \bfseries\songti \zihao{-3}\the\major}} \\[0.40cm]
{\bfseries\songti \zihao{4}{\hfill\hfill\hfill}} &
{\LZUunderline[320pt]{ \bfseries\songti \zihao{-3} \the\research}} \\[0.40cm]
{\bfseries\songti \zihao{4}{\hfill\hfill\hfill}} &
{\LZUunderline[320pt]{ \bfseries\songti \zihao{-3} \the\education}} \\[0.40cm]
{\bfseries\songti \zihao{4}{\hfill\hfill\hfill}} &
{\LZUunderline[320pt]{ \bfseries\songti \zihao{-3} \the\advisor}} \\[0.40cm]
{\bfseries\songti \zihao{4}{\hfill\hfill\hfill}} &
{\LZUunderline[320pt]{ \bfseries\songti \zihao{-3} \the\codvisor}} \\[0.40cm]
{\bfseries\songti \zihao{4}{论文工作时间段}} &
{\LZUunderline[320pt]{ \bfseries\songti \zihao{-3} \the\elapse}} \\[0.40cm]
{\bfseries\songti \zihao{4}{\hfill\hfill\hfill}} &
{\LZUunderline[320pt]{ \bfseries\songti \zihao{-3} \the\defense}} \\[0.40cm]
\end{tabular}
\par
\vspace{20pt}
{\zihao{5}\heiti 校址: 甘肃省兰州市城关区天水南路 222 号}% “兰州大学教务处”这几个字,应该是雅黑
\end{center}
\clearpage
}
\newtoks \teachertime
\newtoks \mysignature
\newtoks \mytime
\newcommand\makestatement{
\newcommand\fifth{0.2\textwidth}
\newcommand\middlespace{0.08\textwidth}
\thispagestyle{empty}
%\cleardoublepage
\baselineskip 22.5pt
\parskip 0pt
\begin{center}
{\bfseries\songti\zihao{3}{\quad\quad\quad\quad}} % “诚信责任书”这几个字,应该是加粗(宋体加粗)
\end{center}
本人郑重声明:本人所呈交的学位论文,是在导师的指导下独立进行研究所取得的成果。学位论文中凡引用他人已经发表或未发表的成果、数据、观点等,均已明确注明出处。除文中已经注明引用的内容外,不包含任何其他个人或集体已经发表或撰写过的科研成果。对本文的研究成果做出重要贡献的个人和集体,均已在文中以明确方式标明。
本声明的法律责任由本人承担。
\vskip1.5cm
\begin{center}
\begin{tabular*}{\textwidth}{rm{\fifth}lm{\fifth} cm{\fifth}rp{\fifth}lm{\fifth}}
\hfill\hfill\hfill\hfill\hfill 名 :&\LZUunderline[\fifth]{\the\mysignature} & \hspace{\middlespace} & \hfill\quad 期:&\LZUunderline[\fifth]{\the \mytime}
\end{tabular*}
\end{center}
\vskip2.0cm
\begin{center}
{\bfseries\songti\zihao{3}{关于学位论文使用授权的声明}}% “关于毕业论文(设计)使用授权的声明”这几个字,应该是加粗(宋体加粗)
\end{center}
本人在导师指导下所完成的论文及相关的职务作品,知识产权归属兰州大学。本人完全了解兰州大学有关保存、使用学位论文的规定,同意学校保存或向国家有关部门或机构送交论文的纸质版和电子版,允许论文被查阅和借阅;本人授权兰州大学可以将本学位论文的全部或部分内容编入有关数据库进行检索,可以采用任何复制手段保存和汇编本学位论文。本人离校后发表、使用学位论文或与该论文直接相关的学术论文或成果时,第一署名单位仍然为兰州大学。
本学位论文研究内容:
% 如果不能公开,请把下面这两个置换 \done $\square$
\done 可以公开
$\square$ 不宜公开,已在学位办公室办理保密申请,解密后适用本授权书。
(请在以上选项内选择其中一项打“$\surd$”)
\vskip2cm
\begin{center}
\begin{tabular*}{\textwidth}{rlcrl}
论文作者签名 :&\LZUunderline[\fifth]{\the\mysignature} & \hspace{\middlespace} & 导师签名 :&\LZUunderline[\fifth]{\the\supervisorsignature} \\
\quad\\
\qquad \qquad 期:&\LZUunderline[\fifth]{\the \mytime} & \hspace{\middlespace} &\qquad 期:&\LZUunderline[\fifth]{\the\teachertime}
\end{tabular*}
\end{center}
\clearpage
}
%=======abstract
%摘要页
%
%=======abstract
% 1.中文摘要
% (1)论文题目为三号字,黑体,加粗,居中,单倍行距,段前24磅,段后18磅。可分行,每行左右两边至少留3个汉字符空格。
% (2)论文题目下为“中文摘要”,三号字,黑体,加粗,居中,单倍行距,段前24磅,段后18磅。
% (3)摘要内容为小四号字,宋体,行距20磅,段前段后0磅,首行缩进2个汉字符。
% (4)摘要内容后下空1行,行距20磅,段前段后0磅。
% (5)摘要内容后为“关键词”,小四号字,宋体,行距20磅,段前段后0磅,“关键词”三字加粗。关键词数量为3-5个,词与词间用逗号隔开。
\newcommand{\ZhAbstract}[2]{%
\clearpage
\phantomsection
\addcontentsline{toc}{chapter}{中文摘要}
\thispagestyle{frontmatterstyle}
\begin{center}%
\setlength{\parskip}{24pt}
\begin{minipage}{0.8\textwidth}
\linespread{1.3889}
\centering
% 中文摘要标题,应该是加粗(黑体加粗)
\zihao{3}\bfseries\heiti \noindent\@title\the\titlextra
\end{minipage}
\end{center}%
\begin{center}%
\linespread{1}
\setlength{\parskip}{24pt}
\zihao{3}\bfseries\heiti 中文摘要
\end{center}%
%行距20磅 http://blog.sina.com.cn/s/blog_5e16f1770100ly96.html
\setlength{\baselineskip}{20pt}
\selectfont
\setlength{\parskip}{0pt}
\vspace{10pt}
\par #1\\%
\vbox{}\\
% 关键词这几个字,应该是加粗(宋体加粗)
{\bfseries\songti \indent 关键词:} #2
}
% 2.英文摘要
% (1)除“Abstract”外,论文中的英文一律采用“Times New Roman”字体。论文英文题目全部采用大写字母,16磅,加粗,居中,单倍行距,段前24磅,段后18磅。论文题目可分行,每行左右两边至少留6个字符空格。
% (2)英文摘要为“Abstract”,Arial字体,16磅,加粗,居中,单倍行距,段前24磅,段后18磅。
% (3)英文摘要内容每段开头留四个字符空格,12磅,行距20磅,段前段后0磅。
% (4)摘要内容后下空1行,行距20磅,段前段后0磅。
% (5)摘要内容后为“Keywords”,12磅,行距20磅,段前段后0磅。“Keywords”加粗。
\newcommand{\EnAbstract}[2]{%
\clearpage
\phantomsection
\addcontentsline{toc}{chapter}{Abstract}
\thispagestyle{frontmatterstyle}
\begin{center}%
\setlength{\parskip}{24pt}
\begin{minipage}{0.8\textwidth}
\linespread{1}
\selectfont
\centering
\zihao{3} \bfseries \noindent \expandafter\MakeUppercase\expandafter{\the\entitle\ \the\entitletra}%
\end{minipage}
\end{center}%
\begin{center}%
\linespread{1}
\selectfont
\setlength{\parskip}{18pt}
\zihao{3}\fontspec{Arial}\bfseries Abstract %Linux没有这个字体,需要自己安装,或者自定义命令
\end{center}%
\setlength{\parskip}{0pt}
\setlength{\baselineskip}{20pt} %行距20磅
\selectfont
\vspace{11pt}
\par #1\\%
\vbox{}\\
{\bfseries \indent Keywords:} #2
}
%---------------------------
%超链接
%---------------------------
\RequirePackage[unicode,psdextra]{hyperref} % Required for hyperlinks
\hypersetup{hidelinks,breaklinks=true,bookmarksopen=false}
%自动写入pdf信息
\AtBeginDocument{
\hypersetup{
pdftitle = {\@title},
pdfauthor = {\@author},
pdfsubject = {兰州大学\the\yjsType 学位论文}
}
}
\RequirePackage[nameinlink]{cleveref}
\crefformat{equation}{#2式(#1)#3}
\crefformat{figure}{#2图#1#3}
\crefformat{table}{#2表#1#3}
\crefformat{chapter}{#2第\zhnumber{#1}章#3}
\crefformat{section}{#2#1节#3}
\crefformat{subsection}{#2#1小节#3}
\crefformat{subsubsection}{#2#1小节#3}
%\AtBeginDocument{\addtocontents{toc}{\protect\thispagestyle{frontmatterstyle}}}
%item style
\RequirePackage{enumitem}
\setenumerate[1]{itemsep=0pt,partopsep=0pt,parsep=\parskip,topsep=5pt,leftmargin=20pt,label=(\arabic*)}
\setitemize[1]{itemsep=0pt,partopsep=0pt,parsep=\parskip,topsep=0pt}
\setdescription{itemsep=0pt,partopsep=0pt,parsep=\parskip,topsep=5pt}
%======%math theorem
% 英文名称改为汉字
%
%======%math theorem
\RequirePackage[amsmath,thmmarks,hyperref]{ntheorem}
\theorembodyfont{\rmfamily\songti}
\theoremheaderfont{\rmfamily\heiti}
\theoremsymbol{\ensuremath{\square}}
\newtheorem*{proof}{证明}
\theoremstyle{plain}
\theoremsymbol{}
\qedsymbol{\ensuremath{\square}}
\newtheorem{assumption}{假设}[chapter]
\newtheorem{definition}{定义}[chapter]
\newtheorem{proposition}{命题}[chapter]
\newtheorem{lemma}{引理}[chapter]
\newtheorem{theorem}{定理}[chapter]
\newtheorem{axiom}{公理}[chapter]
\newtheorem{corollary}{推论}[chapter]
\newtheorem{example}{}[chapter]
\newtheorem{conjecture}{猜想}[chapter]
\crefname{theorem}{定理}{定理}
\crefname{assumption}{假设}{假设}
\crefname{definition}{定义}{定义}
\crefname{proposition}{命题}{命题}
\crefname{lemma}{引理}{引理}
\crefname{theorem}{定理}{定理}
\crefname{axiom}{公理}{公理}
\crefname{corollary}{推论}{推论}
\crefname{example}{}{}
\crefname{remark}{注释}{注释}
\crefname{conjecture}{猜想}{猜想}
%---------------------------
%程序伪代码实现
%---------------------------
\RequirePackage{algorithm}
\RequirePackage{algpseudocode}
\floatname{algorithm}{算法}
\renewcommand{\algorithmicrequire}{\bfseries{输入:}}
\renewcommand{\algorithmicensure}{\bfseries{输出:}}
%改变图表的编号格式
% 图:图名置于图的下方,五号字,宋体,居中(英文用Times New Roman体10.5磅),单倍行距,段前6磅,段后12磅,图序与图名之间空1个汉字符。
% 表:表名置于表的上方,五号字,宋体,居中(英文用Times New Roman体10.5磅),单倍行距,段前6磅,段后6磅,表序与表名之间空1个汉字符。
% 图和表下方的注释为五号字,宋体,居左(英文用Times New Roman体10.5磅),单倍行距。
\renewcommand{\theequation}{\thechapter-\@arabic \c@equation}
\renewcommand{\thefigure}{\thechapter-\@arabic \c@figure}
\renewcommand{\thetable}{\thechapter-\@arabic \c@table}
\renewcommand{\thealgorithm}{\thechapter-\arabic {algorithm}}
% 图序与图名之间空2个汉字符。2020年新规定 【2020】77号 文件
\DeclareCaptionLabelSeparator{qquad}{\qquad} %两个汉字符
\DeclareCaptionLabelSeparator{bigspace}{.\hspace*{4em}} %三个汉字符
\RequirePackage[labelsep=quad]{caption}
% labelsep=quad
% labelsep=qquad
% \captionsetup{labelsep=qquad}
% 这应该图和表单独设置,但是我都设置了6,你可以自己在插入表格时单独设定图的要求
% 参考如下: https://www.latexstudio.net/archives/8652.html
\setlength{\abovecaptionskip}{6pt}
\setlength{\belowcaptionskip}{-6pt}
% \setlength{\abovedisplayskip}{1pt}
% \setlength{\belowdisplayskip}{1pt}
% 公式左对齐
\newcommand{\mathleft}{\@fleqntrue\@mathmargin 21pt}
%%=======%
%参考文献
%=======%
%著录项目和著录格式遵照《信息与文献参考文献著录规则》(GB/T 7714-2015)的规定执行。
\RequirePackage{gbt7714}
\newtoks\bibdatabase
\newcommand{\printbib}{
\zihao{5}
% 这三种自己选择,因为
% 2020官网这里,要求gbt7714:https://ge.lzu.edu.cn/xueweishouyu/guizhangzhidu/lunwenguanli/2020/1223/158947.html
\bibliographystyle{gbt7714-numerical}
% 2023官网这里要求:https://ge.lzu.edu.cn/xiazaizhuanqu/xuewei/2023/0328/210732.html
% 要求,只是示例没写要求,但是英文参考文献作者没大写(大写太丑了)
% \bibliographystyle{bib/lzubib}
\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{参考文献}
\bibliography{\the \bibdatabase}
}
%=======appendix
%附录页和感谢页
%
%=======appendix
% 附录中的插图、表格、公式、参考文献等的序号需与正文区分,另行编制,如编为“图1”、“表1”、“式(1)”、“文献[1]”等。“附录”两字间空2个汉字间隙,三号字,黑体,加粗,居中,单倍行距,段前24磅,段后18磅。附录的内容为宋体,五号(英文用Times New Roman体,10.5磅),行间距为固定值20磅。
\newcommand{\Appendix}{%
\cleardoublepage
\phantomsection
\setcounter{section}{0}
\stepcounter{chapter}
\renewcommand{\thechapter}{A}%
\addcontentsline{toc}{chapter}{\texorpdfstring{\qquad}{附录}}
\chapter*{\qquad}
\zihao{5}
}
% “致谢”两字间空2个字符间隙,字体为黑体,三号字,加粗居中。单倍行距,段前24磅,段后18磅。正文部分首行缩进两个汉字符,小四号字,仿宋,行距20磅。
\newcommand{\Thanks}{%
\cleardoublepage
\phantomsection
\setcounter{section}{0}
\setcounter{chapter}{1}
\renewcommand{\thechapter}{T}%
\addcontentsline{toc}{chapter}{\texorpdfstring{\qquad}{致谢}}
\chapter*{\qquad}
\zihao{-4}\fangsong
}
\newcommand{\Achievements}{%
\cleardoublepage
\phantomsection
\setcounter{section}{0}
\setcounter{chapter}{1}
\renewcommand{\thechapter}{O}%
\addcontentsline{toc}{chapter}{\texorpdfstring{在学期间的研究成果}{在学期间的研究成果}}
\chapter*{在学期间的研究成果}
\zihao{-4}\fangsong
}
% \newcommand{\MyAppendix}{%
% \cleardoublepage
% \phantomsection
% \setcounter{section}{0}
% \setcounter{chapter}{1}
% \renewcommand{\thechapter}{A}%
% \addcontentsline{toc}{chapter}{\texorpdfstring{附录}{附录}}
% \chapter*{附录}
% \zihao{-4}\fangsong
% }
\newcommand{\blank}{%
\hspace*{\fill}
}
%---------------------------
%论文成绩
%---------------------------
\RequirePackage{tabularx}
\newtoks \supervisorcomment
\newtoks \recommendedgrade
\newtoks \supervisorsignature
\newtoks \committeecomment
\newtoks \finalgrade
\newcommand{\Grade}{
\cleardoublepage
\phantomsection
\setcounter{section}{0}
\setcounter{chapter}{1}
\addcontentsline{toc}{chapter}{论文(设计)成绩}
\begin{center}
\zihao{-3}\bfseries\songti % 成绩这一页整体设置,应该是加粗(宋体加粗)
\begin{tabularx}{\textwidth}{|X|}
\multicolumn{1}{c}{
\zihao{3}\heiti\mdseries {论文(设计)成绩表}
} \\
\hline
导师评语 \\%
\centerline{%
\begin{minipage}[t][10cm][t]{0.92\textwidth}
\setlength\parindent{\ccwd}
\zihao{4} \mdseries \the \supervisorcomment
\end{minipage}} \\
\zihao{4}{建议成绩}\LZUunderline[80pt]{\the \recommendedgrade}
\hfill
指导教师(签字)\LZUunderline[80pt]{
\the \supervisorsignature
} \\
\hline
答辩小组意见 \\
\centerline{%
\begin{minipage}[t][2cm][t]{0.92\textwidth}
\setlength\parindent{\ccwd}
\zihao{-4} \the\committeecomment
\end{minipage}
}
\hfill 答辩委员会负责人(签字)\underline{\hspace{80pt}} \\
\hline
\\[2.3cm]
成绩\LZUunderline[80pt]{\the \finalgrade}\hfill 学院(盖章)\underline{\hspace{80pt}} \\
\hfill{\zihao{-4}\hspace{20pt}\hspace{20pt}} \\
\hline
\end{tabularx}
\end{center}
}
\endinput
%%
%% End of file `LZUThesis.cls'.
TeX/LaTeX
1
https://gitee.com/yuhldr/LZUThesis2020.git
git@gitee.com:yuhldr/LZUThesis2020.git
yuhldr
LZUThesis2020
LZUThesis2023
master

搜索帮助