From b17e947b9bdcc17df0d63c00397f21ddf6f9973f Mon Sep 17 00:00:00 2001
From: atXY <y-xiong22@mails.tsinghua.edu.cn>
Date: Sun, 23 Apr 2023 22:26:16 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E7=A0=94=E7=A9=B6?=
 =?UTF-8?q?=E7=94=9F=E8=8B=B1=E6=96=87=E6=91=98=E8=A6=81=E6=9D=A1=E7=9B=AE?=
 =?UTF-8?q?=E5=86=85=E5=AE=B9=E4=B8=8B=E5=88=92=E7=BA=BF=E9=80=89=E9=A1=B9?=
 =?UTF-8?q?=20(#202)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 CHANGELOG.md             | 10 +++++++++-
 docs/njuthesis-setup.def |  3 +++
 source/njuthesis.dtx     | 42 +++++++++++++++++++++++++++++++---------
 3 files changed, 45 insertions(+), 10 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index d68bc40..8cbdcc8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,9 +6,14 @@
 
 ## [鏈彂甯僝
 
+### 鏂板
+
+- 鏂板鐮旂┒鐢熻嫳鏂囨憳瑕佹潯鐩唴瀹逛笅鍒掔嚎閫夐」 `abstract/underline` - [#202]
+
 ### 淇
 
 - 鐩插妯″紡涓嬮殣钘忓勾绾у拰瀛︽牎鍚嶇О - [#181]
+- 淇绔犳湯鍙傝€冩枃鐚〃涓庢垚鏋滃垪琛ㄧ殑鍐茬獊闂 - [#191]
 
 ## [1.1.2] - 2023-01-15
 
@@ -45,7 +50,7 @@
 ### 鏂板
 
 - 鐩插妯″紡涓嬩笉鏄剧ず鑷磋阿
-- 鏂板鑴氭敞鍦堢爜閫夐」 `circled` 鍜� `circled*` - [#129]
+- 鏂板鑴氭敞鍦堢爜閫夐」 `footnote/circled` 鍜� `footnote/circled*` - [#129]
 - 鏂板鑴氭敞鐨勬偓鎸傜缉杩涢€夐」 `hang` - [#129]
 
 ### 淇
@@ -516,6 +521,9 @@
 [#170]: https://github.com/nju-lug/NJUThesis/issues/170
 [#172]: https://github.com/nju-lug/NJUThesis/issues/172
 [#173]: https://github.com/nju-lug/NJUThesis/issues/173
+[#181]: https://github.com/nju-lug/NJUThesis/issues/181
+[#191]: https://github.com/nju-lug/NJUThesis/issues/191
+[#202]: https://github.com/nju-lug/NJUThesis/discussions/202
 
 [鏇存柊鏃ュ織]: https://keepachangelog.com/zh-CN/1.0.0/
 [璇箟鍖栫増鏈琞: https://semver.org/lang/zh-CN/
diff --git a/docs/njuthesis-setup.def b/docs/njuthesis-setup.def
index 7123288..1ce7e54 100644
--- a/docs/njuthesis-setup.def
+++ b/docs/njuthesis-setup.def
@@ -165,6 +165,9 @@
     % toc-entry = false,
     % 鎽樿鏄惁鏄剧ず鍦ㄧ洰褰曟潯鐩腑
     %
+    % underline = false,
+    % 鐮旂┒鐢熻嫳鏂囨憳瑕侀〉鏉$洰鍐呭鏄惁娣诲姞涓嬪垝绾�
+    %
     % title-style = strict|centered|natural
     % 鐮旂┒鐢熸憳瑕佹爣棰樻牱寮忥紝璇﹁鎵嬪唽
 }
diff --git a/source/njuthesis.dtx b/source/njuthesis.dtx
index 5d7bee1..cb19448 100644
--- a/source/njuthesis.dtx
+++ b/source/njuthesis.dtx
@@ -2169,6 +2169,13 @@ To produce the documentation run the original source files ending with
 % 鍏抽棴姝ら€夐」鍚庢憳瑕侀〉灏嗕笉浼氬嚭鐜板湪鐩綍涓紝浠呬繚鐣欏叾 PDF 涔︾銆�
 % \end{function}
 %
+% \begin{function}[added=2023-04-23]{abstract/underline}
+%   \begin{syntax}
+%     \OPT{underline} = <\TTF>
+%   \end{syntax}
+% 閫夋嫨鐮旂┒鐢熻嫳鏂囨憳瑕佹潯鐩唴瀹规槸鍚﹂渶瑕佷笅鍒掔嚎銆傞粯璁ゆ坊鍔犮€�
+% \end{function}
+%
 % \begin{function}[added=2022-03-26,updated=2022-07-31]{abstract/title-style}
 %   \begin{syntax}
 %     \OPT{title-style} = <(strict)|centered|natural>
@@ -7731,21 +7738,29 @@ To produce the documentation run the original source files ending with
 % \begin{macro}{\@@_abs_info_en_g:N}
 % \changes{v1.0}{2022/07/01}{绉婚櫎鐮旂┒鐢熻嫳鏂囨憳瑕佺殑涓嬪垝绾裤€倉
 % \changes{v1.1}{2022/12/12}{鎭㈠鐮旂┒鐢熻嫳鏂囨憳瑕佺殑涓嬪垝绾裤€倉
-% 缁樺埗鐮旂┒鐢熻嫳鏂囨憳瑕佷俊鎭爮銆�
+% 缁樺埗鐮旂┒鐢熻嫳鏂囨憳瑕佷俊鎭爮銆傚洜涓哄埌搴曡涓嶈涓嬪垝绾胯繖鍥炰簨璇翠笉娓呮锛�
+% 鎵€浠ヤ笉鍋氶€夋嫨浜嗗叏閮芥暣涓娿€�
 % \begin{arguments}
 %   \item 鍒嗛殧绗�
 % \end{arguments}
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_abs_info_en_g:N #1
   {
-    \@@_uline_list:NNx \g_@@_info_title_en_tl \g_@@_abs_title_left_skip
-      { \c_@@_name_title_en_tl #1 }
-    \clist_map_inline:nn { major, author, supvfull }
+    \bool_if:NTF \g_@@_abs_underline_bool
       {
-        \tex_par:D
-        \@@_get_width_print:Nx \l_@@_tmpa_dim
-          { \@@_name:n { ##1 _en } #1 }
-        \@@_box_ulined_info:Nn \l_@@_tmpa_dim { ##1 _en }
+        \@@_uline_list:NNx \g_@@_info_title_en_tl
+          \g_@@_abs_title_left_skip { \c_@@_name_title_en_tl #1 }
+        \clist_map_inline:nn { major, author, supvfull }
+          {
+            \tex_par:D
+            \@@_get_width_print:Nx \l_@@_tmpa_dim
+              { \@@_name:n { ##1 _en } #1 }
+            \@@_box_ulined_info:Nn \l_@@_tmpa_dim { ##1 _en }
+          }
+      }
+      {
+        \clist_map_inline:nn { title, major, author, supvfull }
+          { \@@_name:n { ##1 _en } #1 \@@_info:n { ##1 _en } \\ }
       }
   }
 %</def-g>
@@ -7843,7 +7858,16 @@ To produce the documentation run the original source files ending with
 %    \end{macrocode}
 % \end{macro}
 %
-% \begin{macro}{style/title-style}
+% \begin{macro}{abstract/underline}
+% \changes{v1.2}{2023/04/23}{鏂板鐮旂┒鐢熻嫳鏂囨憳瑕侀〉涓嬪垝绾块€夐」銆倉
+% 鏄惁涓虹爺绌剁敓鑻辨枃鎽樿鏉$洰鍐呭娣诲姞涓嬪垝绾裤€�
+%    \begin{macrocode}
+    underline          .bool_set:N = \g_@@_abs_underline_bool,
+    underline           .initial:n = true,
+%    \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{abstract/title-style}
 % \changes{v0.16}{2022/03/26}{鍙€夋嫨鐮旂┒鐢熸憳瑕佹爣棰樻牱寮忋€倉
 % 閫夋嫨鎽樿鏍峰紡锛岄粯璁や负 \opt{strict}銆�
 %    \begin{macrocode}
-- 
GitLab