Skip to content

Commit

Permalink
更新学位参数表示方式,改进可读性
Browse files Browse the repository at this point in the history
  • Loading branch information
liziwl committed Apr 28, 2024
1 parent 7bc74a2 commit e3579f7
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ xetex sustechthesis.ins
* `make clean` 删除示例文件的中间文件(不含 pdf);
* `make cleanall` 删除示例文件的中间文件和 pdf;
* `make wordcount` 论文字数统计。
* `make doc` 生成文档;
* `make doc` 生成文档;
* `make cls` 仅生成 cls 模版类文件;

### 使用 Docker 编译
Expand Down
2 changes: 1 addition & 1 deletion sustech-setup.tex
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
%
degree-domain = {工学}, % 【中文】学科门类:可选理学、工学、医学
degree-domain* = {Engineering}, % 【英文】学位等级:可选Science, Engineering, Medicine
gongshuo = false, % 是否为专业型学位。专业型学位则填 true ,学术型或其他为 false
degree-type = {academic}, % 学位类型:可选学术型(academic)【默认值】、专业型(professional)
%
% 培养单位
% 填写所属院系的全名
Expand Down
2 changes: 1 addition & 1 deletion sustechthesis-example.tex
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
% 2. 学位学科门类(理学、工学、医学)
% 3. 培养单位
% 4. 作者姓名、指导教师等
% 5. 修改gongshuo的值, 默认为false代表生成学术型研究生毕业设计模板, 改为true则将生成专业型研究生毕业设计模板
% 5. 修改degree-type的值, 默认academic代表生成学术型研究生毕业设计模板, 改为professional则将生成专业型研究生毕业设计模板。
\input{sustech-setup}


Expand Down
25 changes: 13 additions & 12 deletions sustechthesis.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@
% 选项 & 可选值 \\ \midrule
% degree-domain & 理学,工学,医学 \\
% degree-domain* & Science, Engineering, Medicine \\
% gongshuo & true (专业型,如工程硕士), false (学术型,如学术硕士或其他) \\
% degree-type & academic (学术型,如学术硕士或其他), professional (专业型,如工程硕士) \\
% \bottomrule
% \end{tabular}
% \end{table}
Expand All @@ -444,7 +444,7 @@
% \thusetup{
% degree-domain = {学位领域},
% degree-domain* = {Degree domain in English},
% gongshuo = false,
% degree-type = academic,
% }
% \end{latex}
%
Expand All @@ -453,7 +453,7 @@
% \begin{latex}
% \thusetup{
% department = {系名全称},
% department* = {Department name in English}}
% department* = {Department name in English}
% }
% \end{latex}
%
Expand Down Expand Up @@ -1109,6 +1109,7 @@
default = master,
},
degree-type = {
default = academic,
choices = {
academic,
professional,
Expand Down Expand Up @@ -3342,13 +3343,13 @@
default = {Engineering},
name = degree@domain@en,
},
gongshuo = {
default = false,
degree-type = {
default = academic,
choices = {
false,
true,
academic,
professional,
},
name = gongshuo,
name = degree@type,
},
% \end{macrocode}
%
Expand Down Expand Up @@ -3655,14 +3656,14 @@
\def\thu@schoolid{14325}
\def\flagtrue{true}
\def\zhuanye{%
\ifx\flagtrue\thu@gongshuo%
\ifthu@degree@type@professional%
专业类别%
\else%
学科名称%
\fi%
}
\def\zhuanye@en{%
\ifx\flagtrue\thu@gongshuo Category%
\ifthu@degree@type@professional Category%
\else%
Discipline%
\fi%
Expand All @@ -3689,14 +3690,14 @@
\fi%
}
\def\thu@subject{
\ifx\flagtrue\thu@gongshuo%
\ifthu@degree@type@professional%
\thu@degree@domain \degree@level 专业学位论文%
\else%
\thu@degree@domain \degree@level 学位论文%
\fi%
}
\def\thu@subject@en{%
\ifx\flagtrue\thu@gongshuo%
\ifthu@degree@type@professional%
Thesis for the Professional Degree of \degree@level@en@noun \ of \thu@degree@domain@en%
\else%
Thesis for the Degree of \degree@level@en@noun \ of \thu@degree@domain@en%
Expand Down

0 comments on commit e3579f7

Please sign in to comment.