Skip to content

Commit

Permalink
Hide professional degree type if it's empty (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
zepinglee committed Feb 28, 2022
1 parent 04a77b5 commit 7c0d710
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- 新增选项 `math-font = cm` (Computer Modern)([#324](https://github.com/ustctug/ustcthesis/issues/324))。
- 新增 LuaLaTeX 支持(虽然很慢)。

# Changed

- 专业学位类型 `professional-type` 为空时不再显示括号([#325](https://github.com/ustctug/ustcthesis/issues/325))。

## [v3.3.1] - 2021-12-10

### Changed
Expand Down
4 changes: 2 additions & 2 deletions test/testfiles/titlepage-master.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,8 @@ Completed box being shipped out [3]
....\kern 0.00021
....\glue 4.015 plus 2.00749 minus 1.33833
....\TU/texgyretermes(0)/m/n/16.06 type)
....\kern -0.0002
....\kern 0.0002
....\kern -0.00021
....\kern 0.00021
....\penalty 10000
....\glue(\parfillskip) 0.0
....\glue(\rightskip) 0.0 plus 1.0fil
Expand Down
22 changes: 12 additions & 10 deletions ustcthesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -1859,14 +1859,15 @@
\vskip 2.0cm%
\else
\vskip 0.8cm%
{\lishu\fontsize{26bp}{26bp}\selectfont
%
\begingroup
\fontsize{26bp}{26bp}\selectfont
\ifx\ustc@professional@type\@empty
专业学位类型%
\null
\else
\ustc@professional@type
\lishu\ustc@professional@type%
\fi
\par}%
\par
\endgroup
\vskip 1.0cm%
\fi
\ifustc@badge@color@blue
Expand Down Expand Up @@ -1911,14 +1912,15 @@
{\sffamily\fontsize{26bp}{30bp}\selectfont
\ustc@thesis@name@en\par}%
\ifustc@degree@type@academic\else
{\fontsize{16bp}{32bp}\selectfont
(%
\begingroup
\fontsize{16bp}{32bp}\selectfont
\ifx\ustc@professional@type@en\@empty
Professional degree type%
\null
\else
\ustc@professional@type@en
(\ustc@professional@type@en)
\fi
)\par}%
\par
\endgroup
\fi
\vskip 2.5cm%
\ifustc@badge@color@blue
Expand Down

0 comments on commit 7c0d710

Please sign in to comment.