diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d4f3a22712d47629944ecd2e862e37c18a03c78..a8a9561caf767d05e72092f9995b53405748c052 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ ## [鏈彂甯僝 +### 鏂板 + +- 鏁村悎琛ㄦ牸鐜瀛椾綋璁剧疆 - [#94] + ## [1.3.0] - 2023-06-06 ### 鏂板 @@ -538,6 +542,7 @@ [#85]: https://github.com/nju-lug/NJUThesis/discussions/85 [#89]: https://github.com/nju-lug/NJUThesis/discussions/89 [#92]: https://github.com/nju-lug/NJUThesis/issues/92 +[#94]: https://github.com/nju-lug/NJUThesis/discussions/94 [#96]: https://github.com/nju-lug/NJUThesis/issues/96 [#98]: https://github.com/nju-lug/NJUThesis/issues/98 [#99]: https://github.com/nju-lug/NJUThesis/discussions/99 diff --git a/docs/njuthesis-setup.def b/docs/njuthesis-setup.def index e30486133c644cddbcb8dbe250630ea500289c35..8b06eea5a56276b13d86eba39bc3af517f4bf529 100644 --- a/docs/njuthesis-setup.def +++ b/docs/njuthesis-setup.def @@ -194,7 +194,7 @@ } % 涓虹洰褰曚腑鐨勭珷鏍囬娣诲姞寮曞绾� -% \njusetup[tableofcontents/dotline]{chapter} +\njusetup[tableofcontents/dotline]{chapter} % math 绫荤敤浜庤缃暟瀛︾鍙锋牱寮忥紝鍔熻兘璇﹁鎵嬪唽 \njusetup[math]{ @@ -254,6 +254,8 @@ % \njusetformat{footer}{} % 涓€浜涚伒娲昏皟鏁� -% \njusetname{notation}{鏈琛▆ % 鏇存敼绗﹀彿琛ㄥ悕绉� -% \njusetname{tableofcontents}{鐩甛qquad{}娆 % 鏇存敼鐩綍鍚嶇О -% \njusetlength{crulewd}{330pt} % 鍔犻暱灏侀潰椤典笅鍒掔嚎 +% \njusetname{type}{鏈姣曚笟璁捐} % 鎴戝仛鐨勬槸姣曚笟璁捐 +% \njusetname{notation}{鏈琛▆ % 鏇存敼绗﹀彿琛ㄥ悕绉� +% \njusetlength{crulewd}{240pt} % 鍔犻暱灏侀潰椤典笅鍒掔嚎 +% \njusetformat{tabular}{\zihao{-4}\bfseries} % 淇敼琛ㄦ牸鐜鐨勫瓧鍙� +% \EditInstance{nju}{u/cover/emblem-img}{align=l} % 宸﹀榻愮殑鏈鐢熷皝闈㈡牎寰� diff --git a/source/njuthesis.dtx b/source/njuthesis.dtx index c2bae8ef2f02ec27095431f038cb2d910396452f..132784e007df91e9137b43b4bf98a1820699dcee 100644 --- a/source/njuthesis.dtx +++ b/source/njuthesis.dtx @@ -2234,7 +2234,7 @@ To produce the documentation run the original source files ending with % \begin{syntax} % \tn{njusetformat}\marg{鍚嶇О}\marg{鏍峰紡} % \end{syntax} -% 淇敼鏍峰紡銆傞粯璁ゆ牱寮忓彲浠ュ弬瑙� \ref{subsubsec:constant-format} 鑺傘€� +% 淇敼鏍峰紡銆傛墍鏈夊彲浠ヤ慨鏀圭殑榛樿鏍峰紡鍙傝 \ref{subsubsec:constant-format} 鑺傘€� % \end{function} % % 璀锛屽皢绔犳爣棰樺瓧鍙峰姞澶у埌灏忎簩鍙凤紝绀轰緥濡備笅锛� @@ -2243,6 +2243,12 @@ To produce the documentation run the original source files ending with % \njusetformat{chapter}{\zihao{-2}\sffamily\centering} % \end{latexexample} % +% 淇敼琛ㄦ牸鍐呭鐨勫瓧浣擄細 +% +% \begin{latexexample}[moretexcs={\njusetformat,\zihao,\bfseries}] +% \njusetformat{tabular}{\zihao{-4}\bfseries} +% \end{latexexample} +% % % \subsection{瑙嗚璇嗗埆绯荤粺} % @@ -3453,8 +3459,8 @@ To produce the documentation run the original source files ending with % \begin{macrocode} \cs_new_protected:Npn \@@_abs_title:N #1 { - \@@_get_width:NV \l_@@_tmpa_dim #1 - \@@_uuline:N \l_@@_tmpa_dim #1 + \@@_get_width:NV \l_@@_tmpa_dim #1 + \hbox:n { \@@_uuline:N \l_@@_tmpa_dim #1 } } % \end{macrocode} % \end{macro} @@ -5864,7 +5870,7 @@ To produce the documentation run the original source files ending with % \changes{v1.0}{2022/08/06}{鍏煎 \pkg{tabularray} 璁剧疆銆倉 % 琛ㄦ牸榛樿灞呬腑锛屽瓧鍙疯缃负浜斿彿銆俕^A https://www.zhihu.com/question/366803177/answer/977853129 % \begin{macrocode} -\BeforeBeginEnvironment { tabular } { \centering \zihao {5} } +\BeforeBeginEnvironment { tabular } { \centering \c_@@_fmt_tabular_tl } \ctex_at_end_package:nn { tabularray } { % \end{macrocode} @@ -5872,7 +5878,7 @@ To produce the documentation run the original source files ending with % \begin{macrocode} \__tblr_use_lib_booktabs: \tl_set:Nn \l_@@_tmpb_tl - { , abovesep = 4 pt, stretch = 0.8, cells = { font = \small } } + { , abovesep = 4 pt, stretch = 0.8, cells = { font = \c_@@_fmt_tabular_tl } } \tl_put_right:NV \l__tblr_default_tblr_inner_tl \l_@@_tmpb_tl \tl_put_right:NV \l__tblr_default_talltblr_inner_tl \l_@@_tmpb_tl \tl_put_right:Nn \l__tblr_default_talltblr_outer_tl { , headsep = -4 pt } @@ -8475,6 +8481,12 @@ To produce the documentation run the original source files ending with % \end{macrocode} % 鈥滅洰褰曗€濅簩瀛楃殑鏍峰紡銆� % \begin{macrocode} +% \end{macrocode} +% \changes{v1.4}{2023/07/08}{鏁村悎琛ㄦ牸鐜瀛椾綋璁剧疆銆倉 +% \env{tabular} 鐜鍐呯殑瀛椾綋鏍峰紡銆� +% \begin{macrocode} + { tabular } { \zihao { 5 } }, +% \end{macrocode} { toc title } { \centering \zihao { 3 } \bfseries }, { header } { \small \kaishu }, { footer } { \small \rmfamily } @@ -8484,7 +8496,7 @@ To produce the documentation run the original source files ending with % \end{macrocode} % % -% \subsection{鎵嬪唽鏂囨。绫� \cls{njudoc}} +% \subsection{鎵嬪唽鏂囨。绫� \cls{njuthesis-doc}} % \changes{v1.3}{2023/05/12}{灏嗘墜鍐屾牱寮忚缃媶鍒嗕负鍗曠嫭鐨� \cls{njuthesis-doc} 鏂囨。绫汇€倉 % % \begin{macrocode} @@ -8826,11 +8838,12 @@ To produce the documentation run the original source files ending with % \end{macro} % % -% \begin{macro}{\@@_split_pm:n} +% \begin{macro}{\@@_split_pm:n,\@@_split_pm:V} % 閫氳繃绔栫嚎鍒嗗壊 guard 鏍囩銆� % \begin{macrocode} -\cs_new:Npn \@@_split_pm:n #1 +\cs_new:Npn \@@_split_pm:n { \seq_set_split:Nnn \l_tmpa_seq { | } } +\cs_generate_variant:Nn \@@_split_pm:n { V } % \end{macrocode} % \end{macro} % @@ -8842,7 +8855,7 @@ To produce the documentation run the original source files ending with \tl_set:Nn \l_tmpa_str {#1} \clist_map_inline:nn { *, /, (, ) } { \str_remove_all:Nn \l_tmpa_str {##1} } - \seq_set_split:NnV \l_tmpa_seq { | } \l_tmpa_str + \@@_split_pm:V \l_tmpa_str } % \end{macrocode} % \end{macro}