Skip to content

Commit

Permalink
fix: 修复成果列表中文姓名加粗的问题 (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
atxy-blip committed Mar 21, 2024
1 parent e15a1fe commit 6d3bfc9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

## [未发布]

### 修复

- 修复成果列表中文姓名加粗的问题 - [#192]

## [1.4.0] - 2024-03-19

### 新增
Expand Down Expand Up @@ -626,6 +630,7 @@
[#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
[#192]: https://github.com/nju-lug/NJUThesis/discussions/192
[#200]: https://github.com/nju-lug/NJUThesis/discussions/200
[#202]: https://github.com/nju-lug/NJUThesis/discussions/202
[#204]: https://github.com/nju-lug/NJUThesis/issues/204
Expand Down
13 changes: 9 additions & 4 deletions source/njuthesis.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -4357,15 +4357,15 @@ To produce the documentation run the original source files ending with
\sys_if_engine_xetex:T
{
\RequirePackage { xeCJKfntef }
\NewDocumentCommand \njuline { m } { \CJKunderline{#1} }
\cs_new_eq:NN \njuline \CJKunderline
}
% \end{macrocode}
% \pkg{lua-ul} 中需要在结尾使用 \tn{null} 保护尾部空白。
% \begin{macrocode}
\sys_if_engine_luatex:T
{
\RequirePackage { lua-ul }
\NewDocumentCommand \njuline { m } { \underLine{#1} \@@_null: }
\NewDocumentCommand \njuline { m } { \underLine {#1} \@@_null: }
}
%</class>
% \end{macrocode}
Expand Down Expand Up @@ -8191,6 +8191,7 @@ To produce the documentation run the original source files ending with
% \changes{v0.10}{2021/09/29}{新增了成果列表页面。}
% \changes{v0.14}{2021/12/20}{成果列表中可突出指定作者姓名及年份。}
% \changes{v1.2}{2023/04/07}{修复成果列表与章末参考文献表的冲突。}
% \changes{v1.4}{2024/03/21}{修复成果列表中文姓名加粗的问题。}
% 成果列表。
% \begin{macrocode}
\NewDocumentCommand \njupaperlist
Expand All @@ -8199,13 +8200,17 @@ To produce the documentation run the original source files ending with
\group_begin:
% \end{macrocode}
% 修改姓名的显示方式,使被注解的姓名可被加粗下划线表示。
% 由于 \pkg{biblatex} 提供的 \tn{MakeCapital} 是一个 robust 命令,
% 在绘制下划线过程中无法被完全展开,我们将其替换为
% 可被展开的 \cs{str_uppercase:f} 以避免造成错误。
% \begin{macrocode}
\cs_set_eq:NN \MakeCapital \str_uppercase:f
\RenewDocumentCommand \mkbibnamegiven { m }
{ \ifitemannotation { thesisauthor }
{ \njuline { \bf ##1 } } {##1} }
{ \bfseries \njuline {##1} } {##1} }
\RenewDocumentCommand \mkbibnamefamily { m }
{ \ifitemannotation { thesisauthor }
{ \njuline { \bf ##1 } } {##1} }
{ \bfseries \njuline {##1} } {##1} }
% \end{macrocode}
% 修改年份的显示方式,默认进行加粗。
% \begin{macrocode}
Expand Down

0 comments on commit 6d3bfc9

Please sign in to comment.