diff --git a/README.md b/README.md index 1e62536..a445689 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,7 @@ xetex sustechthesis.ins * `make clean` 删除示例文件的中间文件(不含 pdf); * `make cleanall` 删除示例文件的中间文件和 pdf; * `make wordcount` 论文字数统计。 -* `make doc` 生成文档; +* `make doc` 生成文档; * `make cls` 仅生成 cls 模版类文件; ### 使用 Docker 编译 diff --git a/sustech-setup.tex b/sustech-setup.tex index 0f1fce9..4a07c57 100644 --- a/sustech-setup.tex +++ b/sustech-setup.tex @@ -34,7 +34,7 @@ % degree-domain = {工学}, % 【中文】学科门类:可选理学、工学、医学 degree-domain* = {Engineering}, % 【英文】学位等级:可选Science, Engineering, Medicine - gongshuo = false, % 是否为专业型学位。专业型学位则填 true ,学术型或其他为 false 。 + degree-type = {academic}, % 学位类型:可选学术型(academic)【默认值】、专业型(professional)。 % % 培养单位 % 填写所属院系的全名 diff --git a/sustechthesis-example.tex b/sustechthesis-example.tex index d2f0225..db08dd4 100644 --- a/sustechthesis-example.tex +++ b/sustechthesis-example.tex @@ -29,7 +29,7 @@ % 2. 学位学科门类(理学、工学、医学) % 3. 培养单位 % 4. 作者姓名、指导教师等 -% 5. 修改gongshuo的值, 默认为false代表生成学术型研究生毕业设计模板, 改为true则将生成专业型研究生毕业设计模板 +% 5. 修改degree-type的值, 默认academic代表生成学术型研究生毕业设计模板, 改为professional则将生成专业型研究生毕业设计模板。 \input{sustech-setup} diff --git a/sustechthesis.dtx b/sustechthesis.dtx index 1cde580..6087384 100644 --- a/sustechthesis.dtx +++ b/sustechthesis.dtx @@ -435,7 +435,7 @@ % 选项 & 可选值 \\ \midrule % degree-domain & 理学,工学,医学 \\ % degree-domain* & Science, Engineering, Medicine \\ -% gongshuo & true (专业型,如工程硕士), false (学术型,如学术硕士或其他) \\ +% degree-type & academic (学术型,如学术硕士或其他), professional (专业型,如工程硕士) \\ % \bottomrule % \end{tabular} % \end{table} @@ -444,7 +444,7 @@ % \thusetup{ % degree-domain = {学位领域}, % degree-domain* = {Degree domain in English}, -% gongshuo = false, +% degree-type = academic, % } % \end{latex} % @@ -453,7 +453,7 @@ % \begin{latex} % \thusetup{ % department = {系名全称}, -% department* = {Department name in English}} +% department* = {Department name in English} % } % \end{latex} % @@ -1109,6 +1109,7 @@ default = master, }, degree-type = { + default = academic, choices = { academic, professional, @@ -3342,14 +3343,6 @@ default = {Engineering}, name = degree@domain@en, }, - gongshuo = { - default = false, - choices = { - false, - true, - }, - name = gongshuo, - }, % \end{macrocode} % % 院系中英文名称。 @@ -3655,14 +3648,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% @@ -3689,14 +3682,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%