Skip to content

Commit

Permalink
match 2021 bachelor template (sjtug#622)
Browse files Browse the repository at this point in the history
* match latest Chinese tempalte

* fix siunitx issue

* set red as default logo color
  • Loading branch information
skyzh authored May 18, 2021
1 parent f157d26 commit 13d05ad
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 12 deletions.
10 changes: 8 additions & 2 deletions contents/math_and_citations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,15 @@ \subsection{数字和单位}
宏包 \pkg{siunitx} 提供了更好的数字和单位支持:
\begin{itemize}
\item \num{12345.67890}
\item \num{1+-2i}
% For TeXLive 2021, siunitx >= 3.0
% \item \complexnum{1+-2i}
% For siunitx < 3.0
% \item \num{1+-2i}
\item \num{.3e45}
\item \num{1.654 x 2.34 x 3.430}
% For TeXLive 2021, siunitx >= 3.0
% \item \numproduct{1.654 x 2.34 x 3.430}
% For siunitx < 3.0
% \item \num{1.654 x 2.34 x 3.430}
\item \si{kg.m.s^{-1}}
\item \si{\micro\meter} $\si{\micro\meter}$
\item \si{\ohm} $\si{\ohm}$
Expand Down
5 changes: 3 additions & 2 deletions main.tex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
% !TeX encoding = UTF-8

% 载入 SJTUThesis 模版
\documentclass[type=master]{sjtuthesis}
\documentclass[type=bachelor]{sjtuthesis}
% 选项
% type=[doctor|master|bachelor|course], % 可选(默认:doctor),论文类型
% zihao=[-4|5], % 可选(研究生默认:-4,本科默认:5),正文字号大小
Expand All @@ -22,7 +22,8 @@
\maketitle

% 原创性声明、版权授权页
\originalitypage*
\originalitypage
% 如果不需要在原创性声明页面显示论文名,请使用 \originalitypage*
\copyrightpage[scans/copyright.pdf]

% 使用罗马数字对前文编号
Expand Down
Binary file modified scans/copyright.pdf
Binary file not shown.
10 changes: 7 additions & 3 deletions sjtusetup.tex
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,20 @@
%
style = {%
%
% 本科论文页眉 logo 颜色
% 默认为黑色
% 本科论文页眉 logo 颜色 (red/blue/black)
%
% header-logo-color = red,
%
% 本科论文封面 logo 颜色 (red/blue/black)
%
% title-logo-color = red
},
%
% 名称设置
%
name = {%
name = {
% publications = {攻读学位期间完成的论文},
% acknowledgements = {谢\hspace{\ccwd}辞},
},
}

Expand Down
10 changes: 5 additions & 5 deletions texmf/tex/latex/sjtuthesis/sjtuthesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@
blue,
black,
},
initial = blue,
initial = red,
},
header-logo-color = {
name = header@logo@color,
Expand All @@ -264,7 +264,7 @@
blue,
black,
},
initial = black,
initial = red,
},
float-number-separator = {
name = fl@num@sep,
Expand Down Expand Up @@ -422,9 +422,9 @@
\sjtu@name@def{degree@type@zh}{学士}
\sjtu@name@def{degree@type@en}{Bachelor}
\sjtu@name@def{thesis@type}{学位论文}
\sjtu@name@def{thesis@kind}{毕业设计(论文)}
\sjtu@name@def{thesis@kind}{学位论文}
\sjtu@name@def{subject@zh}{\sjtu@name@degree@type@zh\sjtu@name@thesis@type}
\sjtu@name@def{subject@en}{Thesis of \sjtu@name@degree@type@en}
\sjtu@name@def{subject@en}{\sjtu@name@degree@type@en's Thesis}
\fi
\sjtu@name@def{author@zh}{学生姓名}
\sjtu@name@def{id@zh}{学生学号}
Expand Down Expand Up @@ -1081,7 +1081,7 @@
\begingroup
\zihao{4}
\begingroup
\linespread{1.5}\selectfont
\linespread{2.0}\selectfont
\sjtu@name@origbody\par
\endgroup
\vskip 16ex
Expand Down

0 comments on commit 13d05ad

Please sign in to comment.