Skip to content

Commit

Permalink
Merge pull request Nazzcjy#1 from cflee123/master
Browse files Browse the repository at this point in the history
0130\2304
Nazzcjy authored Jan 30, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents fecbf90 + 491c2cd commit 2b70f85
Showing 3 changed files with 62 additions and 5 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,25 @@
# szuthesis 深圳大学学位论文 LaTeX 模板
1、实现黑体加粗,但需自己下载字体
2、修改了页边距(上—2.54cm, 下—2.54cm, 左—3.17cm, 右—3.17cm)
3、修改了页眉下划线为双线且上粗下细
4、封面:
(1)“深圳大学硕士学位论文”删去“深圳大学”,并将大小调整为小初
(2)封面上方分类号等四项的内容调整为黑体小四
(3)新增“学号”、“学科”、日期的填写
5、原创性声明页:
(1)修改了标题内容
6、章节内容:
(1)修改了章标题大小为黑体三号加粗、一级标题为黑体小三加粗、二级标题和为宋体四号加粗
(2)将第1章改为第一章
7、摘要:
(1)修改了摘要二字的大小为:黑体加粗三号
(2)将Abstract改为全大写,且改为三号加粗
8、目录:
(1)修改了“目录”为黑体三号加粗
(2)章节标题加粗
9、页眉现在显示为每章标题


# 使用方法:
1、每一章(也就是每一个\Chapter)后,需要在“\markboth{第一章\quad 章标题}{}”中更改自己的章标题;
2、在中文摘要中:“\markboth{论文标题}{}”填写自己的论文标题,英文摘要不用管;
Binary file added main.pdf
Binary file not shown.
43 changes: 38 additions & 5 deletions szuthesis.cls
Original file line number Diff line number Diff line change
@@ -49,6 +49,22 @@
\RequirePackage{xeCJKfntef}% underline for CJK
\RequirePackage{fancyhdr}% header and footer
\RequirePackage[backend=biber,style=gb7714-2015,gbpub=false]{biblatex}

% 设置fancyhdr
\pagestyle{fancy} % 使用fancy页面样式
\fancyhf{} % 清除所有页眉和页脚的默认设置
\fancyhead[LE,RO]{\leftmark} % 在偶数页的左侧和奇数页的右侧显示当前章节的名称和编号
\fancyfoot[C]{\thepage} % 在页脚中间设置页码

% 章节起始页的风格
\fancypagestyle{plain}{
\fancyhf{} % 清除页眉和页脚
\renewcommand{\headrulewidth}{0pt} % 去掉页眉下方的横线
\fancyfoot[C]{\thepage} % 仅在页脚中间显示页码
}

% 确保章节名称被正确捕获
\renewcommand{\chaptermark}[1]{\markboth{\chaptername\ \thechapter.\ #1}{}}
%---------------------------------------------------------------------------%
%->> Latex3
%---------------------------------------------------------------------------%
@@ -158,6 +174,7 @@
}{
\szu@error{`FangSong' font is required! Please install `FangSong'}
}

\newCJKfontfamily\heitib{FZHei-B01S}[AutoFakeBold=2]
% \def\BoldSongOptions{AutoFakeBold=2}
% \IfFontExistsTF{Noto~Serif~CJK~SC}{
@@ -422,7 +439,7 @@
}{\szu@clearpage}
\newenvironment{ABSTRACT}{
\ctexset{chapter = {
format = \linespread{1.0}\zihao{2}\szu@lucon\bfseries\centering,
format = \linespread{1.0}\zihao{3}\szu@lucon\bfseries\centering,
beforeskip = {5pt},
afterskip = {18pt},
}}%
@@ -490,6 +507,19 @@
\def\@tocrmarg{2em}% right margin for multiple line entries, \@tocrmarg ≥ \@pnumwidth
% \def\@chaptervspace{1ex}% vertical space between chapter titles
%-
\usepackage{tikz}
\newcommand{\myboldcftdotfill}{%
\leavevmode\leaders\hbox to 0.454em{%
$\m@th\mkern \@dotsep
\begin{tikzpicture}
\filldraw (0,0) circle (0.03); % 调整圆点半径来改变加粗程度
\end{tikzpicture}%
\mkern \@dotsep$
}\hfill\kern\z@
}

% \renewcommand{\cfttoctitlefont}{\zihao{3}\bfseries\heiti\centering}
% \renewcommand{\cftaftertoctitle}{\vspace{24pt}\vspace{-\baselineskip}}%设置目录标题为黑体加粗
%- redefine dottedtocline from classes.dtx and latex.ltx
\renewcommand*{\@dottedtocline}[5]{% [<level>,<indent>,<numwidth>,<title>,<page>]
\ifnum #1>\c@tocdepth \else
@@ -535,11 +565,14 @@
\begingroup
\parindent \z@ \rightskip \@pnumwidth
\parfillskip -\@pnumwidth
\leavevmode \zihao{4}\rmfamily
\leavevmode \zihao{4}\bfseries\rmfamily
\advance\leftskip\@tempdima
\hskip -\leftskip
#1\nobreak
\leaders\hbox{$\m@th\mkern \@dotsep \cdot\mkern \@dotsep$}% add dotted toc line
% \hspace{0.1em}%向右移动起始位置
% \leaders\hbox{$\m@th\mkern \@dotsep \pmb{\cdot} \mkern \@dotsep$}% add dotted toc line
\myboldcftdotfill % 使用自定义的加粗点线
% \hspace{-0.5em}%向右移动终点位置
\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
\penalty\@highpenalty
\endgroup
@@ -559,7 +592,7 @@
\pagestyle{fancy}
\fancypagestyle{mainmatterstyle}{% style for mainmatter
\fancyhf{}% clear fields
\fancyhead[C]{\small\rmfamily \szu@value@ch@title}% structure elements
\fancyhead[C]{\small\rmfamily \leftmark}% structure elements
\fancyfoot[C]{\small\rmfamily \thepage}% page number
\renewcommand{\headrule}{
\makebox[0pt][l]{\rule[0.55\baselineskip]{\headwidth}{0.5pt}}%
@@ -593,7 +626,7 @@
\renewcommand{\tableofcontents}{
\begingroup%
\ctexset{chapter = {
format = \linespread{1.0}\zihao{2}\rmfamily\centering,
format = \linespread{1.0}\zihao{3}\bfseries\heitib\centering,
beforeskip = {10pt},
afterskip = {30pt},
}}%

0 comments on commit 2b70f85

Please sign in to comment.