Skip to content

Commit

Permalink
Merge pull request #959 from tuna/eqn-paren
Browse files Browse the repository at this point in the history
新增选项 `eqn-paren-style` 选择数学公式编号的括号为全角/半角
  • Loading branch information
Harry-Chen authored Jul 1, 2024
2 parents fd35bde + 0ef812a commit 424ffac
Show file tree
Hide file tree
Showing 26 changed files with 205 additions and 146 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

## [Unreleased]

### Added

- 增加选项 `eqn-paren-style` 控制公式编号的括号样式([#959](https://github.com/tuna/thuthesis/pull/959))。

### Fixed

- 解决本科生的多篇“书面翻译对应的原文索引”([#956](https://github.com/tuna/thuthesis/issues/956))。
Expand Down
36 changes: 27 additions & 9 deletions testfiles/02-committee.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ Completed box being shipped out [1]
....\glue(\rightskip) 0.0 plus 1.0fil
...\penalty 10000
...\glue 49.18375 plus -1.0
...\marks1{学位论文指导小组、公开评阅人和答辩委员会名单}
...\marks2{学位论文指导小组、公开评阅人和答辩委员会名单}
...\marks3{学位论文指导小组、公开评阅人和答辩委员会名单}
...\marks1{\__mark_id:n {1}学位论文指导小组、公开评阅人和答辩委\ETC.}
...\marks2{\__mark_id:n {2}学位论文指导小组、公开评阅人和答辩委\ETC.}
...\marks3{\__mark_id:n {3}学位论文指导小组、公开评阅人和答辩委\ETC.}
...\mark{{学位论文指导小组、公开评阅人和答辩委员会名单}{\ETC.}
...\penalty 10000
...\glue(\parskip) 0.0 plus 1.0
Expand Down Expand Up @@ -793,7 +793,10 @@ Completed box being shipped out [1]
.......\glue(\tabskip) 0.0
.......\hbox(14.05243+6.02255)x78.24507
........\rule(14.05243+6.02255)x0.0
........\vbox(14.05243+6.02255)x78.24507
........\vbox(0.0+-0.00002)x78.24507
.........\glue -20.075
.........\glue(\parskip) 0.0
.........\glue(\parskip) 0.0
.........\hbox(14.05243+6.02255)x78.24507, glue set 39.12254fil
..........\glue(\leftskip) 0.0 plus 1.0fil
..........\hbox(0.0+0.0)x0.0
Expand Down Expand Up @@ -891,7 +894,10 @@ Completed box being shipped out [1]
.......\glue(\tabskip) 0.0
.......\hbox(14.05243+6.02255)x78.24507
........\rule(14.05243+6.02255)x0.0
........\vbox(14.05243+6.02255)x78.24507
........\vbox(0.0+-0.00002)x78.24507
.........\glue -20.075
.........\glue(\parskip) 0.0
.........\glue(\parskip) 0.0
.........\hbox(14.05243+6.02255)x78.24507, glue set 39.12254fil
..........\glue(\leftskip) 0.0 plus 1.0fil
..........\hbox(0.0+0.0)x0.0
Expand All @@ -903,7 +909,10 @@ Completed box being shipped out [1]
........\glue 0.0 plus 1.0fil
.......\glue(\tabskip) 0.0
.......\hbox(14.05243+6.02255)x84.78908
........\vbox(14.05243+6.02255)x84.78908
........\vbox(0.0+-0.00002)x84.78908
.........\glue -20.075
.........\glue(\parskip) 0.0
.........\glue(\parskip) 0.0
.........\hbox(14.05243+6.02255)x84.78908, glue set 42.39455fil
..........\glue(\leftskip) 0.0 plus 1.0fil
..........\hbox(0.0+0.0)x0.0
Expand All @@ -915,7 +924,10 @@ Completed box being shipped out [1]
........\glue 0.0 plus 1.0fil
.......\glue(\tabskip) 0.0
.......\hbox(14.05243+6.02255)x131.73639
........\vbox(14.05243+6.02255)x131.73639
........\vbox(0.0+-0.00002)x131.73639
.........\glue -20.075
.........\glue(\parskip) 0.0
.........\glue(\parskip) 0.0
.........\hbox(14.05243+6.02255)x131.73639, glue set 65.8682fil
..........\glue(\leftskip) 0.0 plus 1.0fil
..........\hbox(0.0+0.0)x0.0
Expand Down Expand Up @@ -953,7 +965,10 @@ Completed box being shipped out [1]
.......\glue(\tabskip) 0.0
.......\hbox(14.05243+6.02255)x78.24507
........\rule(14.05243+6.02255)x0.0
........\vbox(14.05243+6.02255)x78.24507
........\vbox(0.0+-0.00002)x78.24507
.........\glue -20.075
.........\glue(\parskip) 0.0
.........\glue(\parskip) 0.0
.........\hbox(14.05243+6.02255)x78.24507, glue set 39.12254fil
..........\glue(\leftskip) 0.0 plus 1.0fil
..........\hbox(0.0+0.0)x0.0
Expand Down Expand Up @@ -1023,7 +1038,10 @@ Completed box being shipped out [1]
.......\glue(\tabskip) 0.0
.......\hbox(14.05243+6.02255)x78.24507
........\rule(14.05243+6.02255)x0.0
........\vbox(14.05243+6.02255)x78.24507
........\vbox(0.0+-0.00002)x78.24507
.........\glue -20.075
.........\glue(\parskip) 0.0
.........\glue(\parskip) 0.0
.........\hbox(14.05243+6.02255)x78.24507, glue set 39.12254fil
..........\glue(\leftskip) 0.0 plus 1.0fil
..........\hbox(0.0+0.0)x0.0
Expand Down
6 changes: 3 additions & 3 deletions testfiles/03-copyright-doctor.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ Completed box being shipped out [1]
....\glue(\rightskip) 0.0 plus 1.0fil
...\penalty 10000
...\glue 36.135 plus -1.0
...\marks1{关于学位论文使用授权的说明}
...\marks2{关于学位论文使用授权的说明}
...\marks3{关于学位论文使用授权的说明}
...\marks1{\__mark_id:n {1}关于学位论文使用授权的说明}
...\marks2{\__mark_id:n {2}关于学位论文使用授权的说明}
...\marks3{\__mark_id:n {3}关于学位论文使用授权的说明}
...\mark{{关于学位论文使用授权的说明}{关于学位论文使用授\ETC.}
...\penalty 10000
...\glue 13.04874
Expand Down
6 changes: 3 additions & 3 deletions testfiles/03-copyright-master.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ Completed box being shipped out [1]
....\glue(\rightskip) 0.0 plus 1.0fil
...\penalty 10000
...\glue 36.135 plus -1.0
...\marks1{关于学位论文使用授权的说明}
...\marks2{关于学位论文使用授权的说明}
...\marks3{关于学位论文使用授权的说明}
...\marks1{\__mark_id:n {1}关于学位论文使用授权的说明}
...\marks2{\__mark_id:n {2}关于学位论文使用授权的说明}
...\marks3{\__mark_id:n {3}关于学位论文使用授权的说明}
...\mark{{关于学位论文使用授权的说明}{关于学位论文使用授\ETC.}
...\penalty 10000
...\glue 13.04874
Expand Down
6 changes: 3 additions & 3 deletions testfiles/04-abstract.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ Completed box being shipped out [1]
....\glue(\rightskip) 0.0 plus 1.0fil
...\penalty 10000
...\glue 27.10124 plus -1.0
...\marks1{摘\hskip 1em\relax 要}
...\marks2{摘\hskip 1em\relax 要}
...\marks3{摘\hskip 1em\relax 要}
...\marks1{\__mark_id:n {1}摘\hskip 1em\relax 要}
...\marks2{\__mark_id:n {2}摘\hskip 1em\relax 要}
...\marks3{\__mark_id:n {3}摘\hskip 1em\relax 要}
...\mark{{摘\hskip 1em\relax 要}{摘\hskip 1em\relax 要}}
...\penalty 10000
...\glue(\parskip) 0.0 plus 1.0
Expand Down
6 changes: 3 additions & 3 deletions testfiles/05-abstract-en.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ Completed box being shipped out [2]
....\glue(\rightskip) 0.0 plus 1.0fil
...\penalty 10000
...\glue 27.10124 plus -1.0
...\marks1{Abstract}
...\marks2{Abstract}
...\marks3{Abstract}
...\marks1{\__mark_id:n {1}Abstract}
...\marks2{\__mark_id:n {2}Abstract}
...\marks3{\__mark_id:n {3}Abstract}
...\mark{{Abstract}{Abstract}}
...\penalty 10000
...\glue(\parskip) 0.0 plus 1.0
Expand Down
9 changes: 5 additions & 4 deletions testfiles/06-contents.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ Package fontspec Info:
(fontspec) - 'normal' (m/n) with NFSS spec.: <->"[FandolHei-Regular.otf]/OT:language=dflt;"
(fontspec) - 'bold' (b/n) with NFSS spec.: <->"[FandolHei-Bold.otf]/OT:language=dflt;"
[1
] [2
]
[2
] (06-contents.toc
Completed box being shipped out [4]
\vbox(710.18088+4.1104)x439.87962
Expand Down Expand Up @@ -100,9 +101,9 @@ Completed box being shipped out [4]
....\glue(\rightskip) 0.0 plus 1.0fil
...\penalty 10000
...\glue 27.10124 plus -1.0
...\marks1{目\hskip 1em\relax 录}
...\marks2{目\hskip 1em\relax 录}
...\marks3{目\hskip 1em\relax 录}
...\marks1{\__mark_id:n {7}目\hskip 1em\relax 录}
...\marks2{\__mark_id:n {8}目\hskip 1em\relax 录}
...\marks3{\__mark_id:n {9}目\hskip 1em\relax 录}
...\mark{{目\hskip 1em\relax 录}{目\hskip 1em\relax 录}}
...\penalty 10000
...\penalty 10000
Expand Down
6 changes: 3 additions & 3 deletions testfiles/07-1-figures-tables.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ Completed box being shipped out [3]
....\glue(\rightskip) 0.0 plus 1.0fil
...\penalty 10000
...\glue 27.10124 plus -1.0
...\marks1{插图和附表清单}
...\marks2{插图和附表清单}
...\marks3{插图和附表清单}
...\marks1{\__mark_id:n {1}插图和附表清单}
...\marks2{\__mark_id:n {2}插图和附表清单}
...\marks3{\__mark_id:n {3}插图和附表清单}
...\mark{{插图和附表清单}{插图和附表清单}}
...\penalty 10000
...\glue 0.0 plus 0.1
Expand Down
6 changes: 3 additions & 3 deletions testfiles/07-2-figures.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ C.}
....\glue(\rightskip) 0.0 plus 1.0fil
...\penalty 10000
...\glue 27.10124 plus -1.0
...\marks1{插图清单}
...\marks2{插图清单}
...\marks3{插图清单}
...\marks1{\__mark_id:n {1}插图清单}
...\marks2{\__mark_id:n {2}插图清单}
...\marks3{\__mark_id:n {3}插图清单}
...\mark{{插图清单}{插图清单}}
...\penalty 10000
...\glue 0.0 plus 0.1
Expand Down
6 changes: 3 additions & 3 deletions testfiles/07-3-tables.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ C.}
....\glue(\rightskip) 0.0 plus 1.0fil
...\penalty 10000
...\glue 27.10124 plus -1.0
...\marks1{附表清单}
...\marks2{附表清单}
...\marks3{附表清单}
...\marks1{\__mark_id:n {1}附表清单}
...\marks2{\__mark_id:n {2}附表清单}
...\marks3{\__mark_id:n {3}附表清单}
...\mark{{附表清单}{附表清单}}
...\penalty 10000
...\glue 0.0 plus 0.1
Expand Down
6 changes: 3 additions & 3 deletions testfiles/08-notation-nomencl/08-notation-nomencl.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ Completed box being shipped out [8]
....\glue(\rightskip) 0.0 plus 1.0fil
...\penalty 10000
...\glue 27.10124 plus -1.0
...\marks1{符号和缩略语说明}
...\marks2{符号和缩略语说明}
...\marks3{符号和缩略语说明}
...\marks1{\__mark_id:n {1}符号和缩略语说明}
...\marks2{\__mark_id:n {2}符号和缩略语说明}
...\marks3{\__mark_id:n {3}符号和缩略语说明}
...\mark{{符号和缩略语说明}{符号和缩略语说明}}
...\penalty 10000
...\glue -30.11249
Expand Down
6 changes: 3 additions & 3 deletions testfiles/08-notation.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ Completed box being shipped out [8]
....\glue(\rightskip) 0.0 plus 1.0fil
...\penalty 10000
...\glue 27.10124 plus -1.0
...\marks1{符号和缩略语说明}
...\marks2{符号和缩略语说明}
...\marks3{符号和缩略语说明}
...\marks1{\__mark_id:n {1}符号和缩略语说明}
...\marks2{\__mark_id:n {2}符号和缩略语说明}
...\marks3{\__mark_id:n {3}符号和缩略语说明}
...\mark{{符号和缩略语说明}{符号和缩略语说明}}
...\penalty 10000
...\glue -30.11249
Expand Down
Loading

0 comments on commit 424ffac

Please sign in to comment.