Skip to content

Commit

Permalink
Merge pull request #36 from iydon/dev
Browse files Browse the repository at this point in the history
Clean #35
  • Loading branch information
liziwl authored Jun 14, 2022
2 parents 39ad1e5 + 269b44b commit ce64b50
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
Binary file modified fonts/simsun.ttc
Binary file not shown.
Binary file modified fonts/simsunb.ttf
Binary file not shown.
20 changes: 16 additions & 4 deletions sustechthesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@
\RequirePackage{hologo}
\RequirePackage{etoolbox}

%添加绘制三线表的必要依赖
\RequirePackage{multirow}
\RequirePackage{threeparttable}

\setmainfont[
Path=fonts/times/,
Extension = .ttf,
Expand All @@ -64,6 +68,11 @@
BoldItalicFont = *bi
]{times} %英文默认为Times New Roman

%取消标题空行
\RequirePackage{titlesec}
\titlespacing{\section}{0pt}{1.2ex plus .0ex minus .0ex}{.3ex plus .0ex}
\titlespacing{\subsection}{0pt}{1.2ex plus .0ex minus .0ex}{.3ex plus .0ex}

\RequirePackage{geometry}
\geometry{a4paper,top=2.5cm,bottom=2.0cm,left=3.0cm,right=2.5cm}
\RequirePackage{amssymb}
Expand Down Expand Up @@ -109,7 +118,7 @@
% 需要使用ctexart文类,否则报错键不存在
section = {
name={{},.},
format={\hspace*{-1.5em}\\三号},
format={\黑\三号},
},
subsection = {
format={\黑\四号},
Expand All @@ -131,6 +140,7 @@
\fi
\captionsetup[subfigure]{labelformat=rightBracket, labelsep=enspace}% 子图a,b,c外没有括号

\renewcommand{\baselinestretch}{1.5} %调整正文为1.5倍行距
\RequirePackage[MSWordLineSpacingMultiple=1.5]{zhlineskip}
% 行距设置
\newenvironment{行距}[1]%
Expand All @@ -148,6 +158,8 @@
\renewcommand\cftsubsubsecfont{\宋\四号}
\renewcommand\cftsubsubsecpagefont{\宋\四号}
\setlength\cftparskip{7pt}
% 修改目录标题之间的距离
\setlength\cftbeforesecskip{0bp}
\setlength\cftsubsecindent{0bp}
\setlength\cftsubsubsecindent{0bp}
\RequirePackage{xkeyval}
Expand Down Expand Up @@ -267,7 +279,7 @@
\vskip 3.5cm
{\粗\宋\三
\begin{tabular}{lc}
\sustech@info@item*[5em]{题目:}[9cm]{\题目@中}\\[9pt]
\sustech@info@item*[5em]{题目:}[9.15cm]{\题目@中}\\[9pt]
\ifdefempty{\副标题@中}%
{% empty
\relax
Expand Down Expand Up @@ -305,7 +317,7 @@
\vskip 2.7cm
{\粗\三
\begin{tabular}{rr}
\sustech@info@item*{Thesis Title:}[9cm]{\题目@英}\\[9pt]
\sustech@info@item*{Thesis Title:}[9.92cm]{\题目@英}\\[9pt]
\ifdefempty{\副标题@英}%
{% empty
\relax
Expand Down Expand Up @@ -345,7 +357,7 @@

\vskip 4.55cm
\begin{flushright}
\makebox[10em][l]{作者签名:}\\
\makebox[11em][l]{作者签名:}\\
\makebox[11em][l]{\下划线[2cm]{}年\下划线[1cm]{}月\下划线[1cm]{}日}
\end{flushright}
\end{spacing}
Expand Down

0 comments on commit ce64b50

Please sign in to comment.