Skip to content

Commit 7c0d710

Browse files
committed
Hide professional degree type if it's empty (#325)
1 parent 04a77b5 commit 7c0d710

3 files changed

Lines changed: 18 additions & 12 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
- 新增选项 `math-font = cm` (Computer Modern)([#324](https://github.com/ustctug/ustcthesis/issues/324))。
1313
- 新增 LuaLaTeX 支持(虽然很慢)。
1414

15+
# Changed
16+
17+
- 专业学位类型 `professional-type` 为空时不再显示括号([#325](https://github.com/ustctug/ustcthesis/issues/325))。
18+
1519
## [v3.3.1] - 2021-12-10
1620

1721
### Changed

test/testfiles/titlepage-master.tlg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,8 +596,8 @@ Completed box being shipped out [3]
596596
....\kern 0.00021
597597
....\glue 4.015 plus 2.00749 minus 1.33833
598598
....\TU/texgyretermes(0)/m/n/16.06 type)
599-
....\kern -0.0002
600-
....\kern 0.0002
599+
....\kern -0.00021
600+
....\kern 0.00021
601601
....\penalty 10000
602602
....\glue(\parfillskip) 0.0
603603
....\glue(\rightskip) 0.0 plus 1.0fil

ustcthesis.cls

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1859,14 +1859,15 @@
18591859
\vskip 2.0cm%
18601860
\else
18611861
\vskip 0.8cm%
1862-
{\lishu\fontsize{26bp}{26bp}\selectfont
1863-
%
1862+
\begingroup
1863+
\fontsize{26bp}{26bp}\selectfont
18641864
\ifx\ustc@professional@type\@empty
1865-
专业学位类型%
1865+
\null
18661866
\else
1867-
\ustc@professional@type
1867+
\lishu\ustc@professional@type%
18681868
\fi
1869-
\par}%
1869+
\par
1870+
\endgroup
18701871
\vskip 1.0cm%
18711872
\fi
18721873
\ifustc@badge@color@blue
@@ -1911,14 +1912,15 @@
19111912
{\sffamily\fontsize{26bp}{30bp}\selectfont
19121913
\ustc@thesis@name@en\par}%
19131914
\ifustc@degree@type@academic\else
1914-
{\fontsize{16bp}{32bp}\selectfont
1915-
(%
1915+
\begingroup
1916+
\fontsize{16bp}{32bp}\selectfont
19161917
\ifx\ustc@professional@type@en\@empty
1917-
Professional degree type%
1918+
\null
19181919
\else
1919-
\ustc@professional@type@en
1920+
(\ustc@professional@type@en)
19201921
\fi
1921-
)\par}%
1922+
\par
1923+
\endgroup
19221924
\fi
19231925
\vskip 2.5cm%
19241926
\ifustc@badge@color@blue

0 commit comments

Comments
 (0)