Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

对于格式的修改 #35

Merged
merged 8 commits into from
Jun 12, 2022
Merged
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
Binary file added figures/logo/SUSTech-cn.eps
Binary file not shown.
Binary file added figures/logo/SUSTech-en.eps
Binary file not shown.
Binary file removed figures/logo/SUSTech-en.pdf
Binary file not shown.
Binary file removed figures/logo/SUSTech-zh.pdf
Binary file not shown.
Binary file modified fonts/simsun.ttc
Binary file not shown.
Binary file modified fonts/simsunb.ttf
Binary file not shown.
25 changes: 19 additions & 6 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,13 @@
BoldItalicFont = *bi
]{times} %英文默认为Times New Roman

\renewcommand{\baselinestretch}{1.5} %调整正文为1.5倍行距
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

下面 \RequirePackage[MSWordLineSpacingMultiple=1.5]{zhlineskip} 设定了行距,是没有生效么

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

在正文之中并未生效;PDF为注释\renewcommand{\baselinestretch}{1.5},与不注释以及Word手动设置1.5倍行距的比较
实际上这样调整还是没有完全与Word中的行距完全一致,但不加这行确实行距差距过大
对比.pdf


%取消标题空行
\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 +120,7 @@
% 需要使用ctexart文类,否则报错键不存在
section = {
name={{},.},
format={\hspace*{-1.5em}\黑体\三号},
format={\黑体\三号},
},
subsection = {
format={\黑体\四号},
Expand Down Expand Up @@ -150,6 +161,8 @@
\setlength\cftparskip{7pt}
\setlength\cftsubsecindent{0bp}
\setlength\cftsubsubsecindent{0bp}
% 修改目录标题之间的距离
\renewcommand{\cftbeforesecskip}{0pt}
\RequirePackage{xkeyval}
% 根据名称定义中英文控制序列
\def\中英信息#1,#2#3{
Expand Down Expand Up @@ -261,13 +274,13 @@
U\hfill D\hfill C\下划线[2.3cm]{\UDC@中} \hspace{0.45\textwidth} & 密级\下划线[2.3cm]{\密级@中}
\end{tabular}
\vskip 1.35cm
\includegraphics[width=0.85\textwidth]{figures/logo/SUSTech-zh.pdf}
\hspace{-0.75cm}\includegraphics[width=0.85\textwidth]{figures/logo/SUSTech-cn.eps}
\vskip 0.5cm
{\粗体\宋体\小初 \thesis@subject}
\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 @@ -299,13 +312,13 @@
CLC \下划线[2.3cm]{\分类号@英} \hfill Number\下划线[2.3cm]{\编号@英}\\[5pt]
UDC\下划线[2.3cm]{\UDC@英} \hfill Available for reference~\quad$\square$Yes~\quad$\square$No
\vskip 1.8cm
\includegraphics[width=0.9\textwidth]{figures/logo/SUSTech-en.pdf}
\includegraphics[width=0.9\textwidth]{figures/logo/SUSTech-en.eps}
\vskip 1.6cm
{\小初 \thesis@subject@en}
\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 +358,7 @@

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