Skip to content

Commit 1aa883c

Browse files
authored
feat: allow linebreak in titlepage info (#66)
1 parent 797daa2 commit 1aa883c

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

sjtutex/source/sjtutex.dtx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4869,10 +4869,11 @@
48694869
% 汉字分散对齐的表格列说明符。
48704870
% \begin{macrocode}
48714871
\newcolumntype { \SJTU@CT@D } [ 1 ]
4872-
{ >{ \begin { SJTU@CJK@FTS } {#1} } c <{ \end { SJTU@CJK@FTS } } }
4872+
{ > { \begin { SJTU@CJK@FTS } {#1} } c < { \end { SJTU@CJK@FTS } } }
48734873
% \end{macrocode}
48744874
%
48754875
% \changes{v2.1}{2023/11/30}{标题页信息栏改用表格实现。}
4876+
% \changes{unreleased}{2024/08/14}{标题页信息栏允许手动换行。}
48764877
% \begin{macro}[int]{\@@_title_page_info_i:nnn,\@@_title_page_info_i:nxx,
48774878
% \@@_title_page_info_ii:n}
48784879
% 信息输出。
@@ -4886,7 +4887,12 @@
48864887
{
48874888
\exp_not:o { \cs:w c_@@_name_ ##1 _ #1 _tl \cs_end: }
48884889
&
4889-
\exp_not:o { \cs:w l_@@_info_ ##1 _ #1 _tl \cs_end: }
4890+
\exp_not:N \hbox:n
4891+
{
4892+
\exp_not:N \tabular [ t ] { @{} l @{} }
4893+
\exp_not:o { \cs:w l_@@_info_ ##1 _ #1 _tl \cs_end: }
4894+
\exp_not:N \endtabular
4895+
}
48904896
}
48914897
}
48924898
\group_begin:
@@ -4951,7 +4957,7 @@
49514957
{
49524958
\exp_not:N \SJTU@CT@D { 5 em }
49534959
@ { \exp_not:V \c_@@_name_info_sep_zh_tl }
4954-
>{ \exp_not:N \normalfont } l
4960+
> { \exp_not:N \setbaselineskip { 22.5 bp } \exp_not:N \normalfont } l
49554961
}
49564962
{
49574963
author,
@@ -5015,7 +5021,7 @@
50155021
%<en> r @ { \exp_not:V \c_@@_name_info_sep_en_tl }
50165022
%<de> r @ { \exp_not:V \c_@@_name_info_sep_de_tl }
50175023
%<ja> r @ { \exp_not:V \c_@@_name_info_sep_ja_tl }
5018-
>{ \exp_not:N \normalfont } l
5024+
> { \exp_not:N \setbaselineskip { 22.5 bp } \exp_not:N \normalfont } l
50195025
}
50205026
{ author, \l_@@_info_supervisors_clist }
50215027
} ,

0 commit comments

Comments
 (0)