Commit eb4ac729 authored by liziwl's avatar liziwl
Browse files

feat: add professional degree practice plan cover

Add `type = practice` with Chinese and English covers, plus the
`industrial-supervisor` and `training-level` options it needs. Report
tests now build every report type in both languages.
parent ee576cb2
Loading
Loading
Loading
Loading
+4 −0
Changes for CHANGELOG.md: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -33,6 +33,10 @@ Changelog 维护应保持最新版本在文件上面的原则,日期格式按

## [Unreleased](https://github.com/SUSTech-CRA/sustech-master-thesis/compare/v1.3.24...HEAD)

### Added
- 新增文档类型 `type = practice`,支持专业学位研究生实践计划中英文封面。
- 新增 `industrial-supervisor`(业界导师)和 `training-level`(培养层次)及其英文参数。

## [v1.3.24](https://github.com/SUSTech-CRA/sustech-master-thesis/compare/v1.3.23...v1.3.24) - 2026-08-15

### Changed
+2 −2
Changes for README.md: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@

* 模板使用说明(**sustechthesis.pdf**)
* 学位论文示例文档(**sustechthesis-example.tex**)
* 报告示例文档(**sustechthesis-example-report.tex**),包括开题报告、年度考核报告
* 报告示例文档(**sustechthesis-example-report.tex**),包括开题报告、年度考核报告、专业学位研究生实践计划

> 注:模板使用说明尚不完善,仅供参考。主要功能在 `sustech-setup.tex` 配置文件中已有注释说明。

@@ -115,7 +115,7 @@ docker run -it --rm \
### 文档内容
* `sustech-setup.tex` 示例文档基本配置(论文标题、作者等元数据)
* `sustechthesis-example.tex` 学位论文示例文档
* `sustechthesis-example-report.tex` 报告示例文档,包括开题报告,年度考核报告
* `sustechthesis-example-report.tex` 报告示例文档,包括开题报告,年度考核报告,专业学位研究生实践计划
* `data/` 示例文档章节具体内容
* `figures/` 示例文档图片目录
* `ref/` 示例文档参考文献目录
+10 −1
Changes for sustech-setup.tex: 10 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@
  output = print,
  %
  % 文档类型
  %   选择开题报告(proposal)、年度考核报告(progress)或学位论文(thesis)【默认值】。
  %   选择开题报告(proposal)、年度考核报告(progress)、专业学位研究生实践计划(practice)或学位论文(thesis)【默认值】。
  %
  type = thesis,
  %
@@ -70,6 +70,15 @@
  % associate-supervisor  = {大卫查理助理教授},
  % associate-supervisor* = {Assistant Prof. David Charlie},
  %
  % 专业学位研究生实践计划(type = practice)专用
  %   业界导师:填写姓名及职称
  %   培养层次:默认按 degree 显示“硕士”或“博士”,一般无需设置
  %
  industrial-supervisor  = {某某某高级工程师},
  industrial-supervisor* = {Senior Engineer Carol Dave},
  % training-level  = {硕士},
  % training-level* = {Master},
  %
  % 日期
  %   使用 ISO 格式;默认为当前时间
  %   date 为第一页全中文大写日期,defense-date 为第二、三页的答辩日期。
+2 −2
Changes for sustechthesis-example-report.tex: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@

\documentclass[degree=master,language=chinese,font=external,cjk-font=external]{sustechthesis}
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %   研究生报告模板:开题报告,年度考核报告
  %   研究生报告模板:开题报告,年度考核报告,专业学位研究生实践计划
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

  % 学位 degree:
@@ -25,7 +25,7 @@
  
% 论文基本配置,加载宏包等全局配置
% 在此文件中可以选择
% 1. 【重要】文档类型(开题报告,年度考核报告),默认不开启该选项。
% 1. 【重要】文档类型(开题报告,年度考核报告,专业学位研究生实践计划),默认不开启该选项。
% 2. 生成的PDF为无空白页的用于电子版提交的版本 或 插入空白页的以便双面打印的版本
% 3. 学位学科门类(理学、工学、医学)
% 4. 培养单位
+65 −1
Changes for sustechthesis.dtx: 65 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -441,7 +441,8 @@
%
% \subsubsection{文档类型}
% \DescribeOption{type}
% 选择文档类型,可选:\option{proposal}(开题报告)、\option{progress}(年度考核报告)、\option{thesis}(学位论文,默认)。
% 选择文档类型,可选:\option{proposal}(开题报告)、\option{progress}(年度考核报告)、
% \option{practice}(专业学位研究生实践计划)、\option{thesis}(学位论文,默认)。
%
% \begin{latex}
%   \thusetup{
@@ -533,6 +534,18 @@
%   }
% \end{latex}
%
% \subsubsection{实践计划专用信息}
% 以下参数仅用于专业学位研究生实践计划(\option{practice})封面。
% 业界导师为必填项;培养层次默认按 \option{degree} 显示“硕士”或“博士”,一般无需设置。
% \begin{latex}
%   \thusetup{
%     industrial-supervisor  = {某某某高级工程师},
%     industrial-supervisor* = {Senior Engineer Carol Dave},
%     training-level  = {硕士},
%     training-level* = {Master},
%   }
% \end{latex}
%
% \subsubsection{发布日期、答辩日期}
% 默认为当前日期,也可以自己指定(\textbf{推荐}),要求使用 ISO 格式,即是 YYYY-MM-DD 的形式。
% \begin{latex}
@@ -3443,6 +3456,24 @@
  joint-supervisor* = {
    name = joint@supervisor@en,
  },
  industrial-supervisor = {
    name = industrial@supervisor,
  },
  industrial-supervisor* = {
    name = industrial@supervisor@en,
  },
%    \end{macrocode}
%
% 培养层次,默认按学位显示。
%    \begin{macrocode}
  training-level = {
    default = {\degree@level},
    name    = training@level,
  },
  training-level* = {
    default = {\degree@level@en@noun},
    name    = training@level@en,
  },
%    \end{macrocode}
%
% 学位中英文。
@@ -3486,6 +3517,7 @@
    choices = {
      proposal,
      progress,
      practice,
      thesis,
    },
    name    = doc@type,
@@ -3975,6 +4007,12 @@ Thesis for the Degree of \degree@level@en@noun \ of \thu@degree@domain@en%
    \def\date@name@en{Submission Date}
    \def\date@name{年度考核日期}
  \fi
  \ifthu@doc@type@practice
    \def\report@name@en{Research Proposal for Professional Degree Graduate Student}
    \def\report@name{专业学位研究生实践计划}
    \def\date@name@en{Date of Proposal Report}
    \def\date@name{实践计划报告日期}
  \fi
}
\RequirePackage{listofitems}
\newcommand{\ulbox}[2][2em]{%
@@ -4049,6 +4087,18 @@ Thesis for the Degree of \degree@level@en@noun \ of \thu@degree@domain@en%

      \vspace*{30pt}
      {\zihao{3} \songti
        \ifthu@doc@type@practice
          \begin{tabular}{l@{}l}
            \sustech@info@item*[8em]{院(系)}[10em]{\thu@department}\\
            \sustech@info@item[8em]{培养层次}[10em]{\thu@training@level}\\
            \sustech@info@item[8em]{研究生}[10em]{\thu@author}\\
            \sustech@info@item[8em]{学号}[10em]{\thu@author@id}\\
            \sustech@info@item*[8em]{专业}[10em]{\thu@discipline}\\
            \sustech@info@item*[8em]{校内导师}[10em]{\thu@supervisor}\\
            \sustech@info@item*[8em]{业界导师}[10em]{\thu@industrial@supervisor}\\
            \sustech@info@item[8em]{\date@name}[10em]{\thu@format@date{\thu@date@zh@digit}{\thu@date}}
          \end{tabular}
        \else
          \begin{tabular}{l@{}l}
            \sustech@info@item*[6em]{院(系)}[10em]{\thu@department}\\
            \sustech@info@item*[6em]{学科}[10em]{\thu@discipline}\\
@@ -4057,6 +4107,7 @@ Thesis for the Degree of \degree@level@en@noun \ of \thu@degree@domain@en%
            \sustech@info@item[6em]{学号}[10em]{\thu@author@id}\\
            \sustech@info@item[6em]{\date@name}[10em]{\thu@format@date{\thu@date@zh@digit}{\thu@date}}
          \end{tabular}
        \fi
      }\par
      \vfill

@@ -4092,6 +4143,18 @@ Thesis for the Degree of \degree@level@en@noun \ of \thu@degree@domain@en%

      \vspace*{30pt}
      {\zihao{3}
        \ifthu@doc@type@practice
          \begin{tabular}{l@{}l}
            \sustech@info@item*{Department}[16em]{\thu@department@en}\\
            \sustech@info@item{Type}[16em]{\thu@training@level@en}\\
            \sustech@info@item*{Discipline}[16em]{\thu@discipline@en}\\
            \sustech@info@item*{Supervisor}[16em]{\thu@supervisor@en}\\
            \sustech@info@item*{Industrial Supervisor}[16em]{\thu@industrial@supervisor@en}\\
            \sustech@info@item{Student Name}[16em]{\thu@author@en}\\
            \sustech@info@item{Student Number}[16em]{\thu@author@id}\\
            \sustech@info@item{\date@name@en}[16em]{\thu@format@date{\thu@date@en}{\thu@date}}
          \end{tabular}
        \else
          \begin{tabular}{l@{}l}
            \sustech@info@item*{Department}[16em]{\thu@department@en}\\
            \sustech@info@item*{Discipline}[16em]{\thu@discipline@en}\\
@@ -4100,6 +4163,7 @@ Thesis for the Degree of \degree@level@en@noun \ of \thu@degree@domain@en%
            \sustech@info@item{Student Number}[16em]{\thu@author@id}\\
            \sustech@info@item{\date@name@en}[16em]{\thu@format@date{\thu@date@en}{\thu@date}}
          \end{tabular}
        \fi
      }\par
      \vfill

Loading