Skip to content

Commit

Permalink
fix: 修复研究生封面的导师信息居中问题 (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
atxy-blip committed Nov 4, 2022
1 parent d63e92f commit d5089e6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 9 deletions.
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@

## [未发布]

### 修复

- 修复研究生封面上导师信息的居中问题 - [#165]

## [1.1.0] - 2022-10-23

### 新增

- 盲审模式下不显示致谢
Expand Down Expand Up @@ -415,8 +421,11 @@
- 模板上传至 CTAN


[未发布]: https://github.com/nju-lug/NJUThesis/compare/v1.0.0...HEAD
[未发布]: https://github.com/nju-lug/NJUThesis/compare/v1.1.0...HEAD

[1.1.0]: https://github.com/nju-lug/NJUThesis/compare/v1.0.0...v1.1.0
[1.0.0]: https://github.com/nju-lug/NJUThesis/compare/v0.20.0...v1.0.0

[0.20.0]: https://github.com/nju-lug/NJUThesis/compare/v0.19.0...v0.20.0
[0.19.0]: https://github.com/nju-lug/NJUThesis/compare/v0.18.0...v0.19.0
[0.18.0]: https://github.com/nju-lug/NJUThesis/compare/v0.17.0...v0.18.0
Expand Down Expand Up @@ -470,6 +479,7 @@
[#148]: https://github.com/nju-lug/NJUThesis/issues/148
[#150]: https://github.com/nju-lug/NJUThesis/discussions/150
[#155]: https://github.com/nju-lug/NJUThesis/discussions/155
[#165]: https://github.com/nju-lug/NJUThesis/discussions/165

[更新日志]: https://keepachangelog.com/zh-CN/1.0.0/
[语义化版本]: https://semver.org/lang/zh-CN/
Expand Down
22 changes: 14 additions & 8 deletions source/njuthesis.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -4086,7 +4086,7 @@ To produce the documentation run the original source files ending with
%
% \begin{macro}{\@@_keys_set:nn}
% \changes{v1.1}{2022/09/26}{使用 \cs{keys_set_filter:nnn} 重构盲审模式。}
% 在开启盲审模式时,屏蔽被编入 \opt{annoymous} 分组的键值对输入。
% 在开启盲审模式时,屏蔽被编入 \opt{anonymous} 分组的键值对输入。
% \begin{macrocode}
\bool_if:NTF \g_@@_opt_anon_bool
{
Expand Down Expand Up @@ -4570,6 +4570,10 @@ To produce the documentation run the original source files ending with
% \begin{macrocode}
email .tl_set:N = \g_@@_info_email_tl
}
% \end{macrocode}
%
% 将指定信息项归入 \opt{anonymous} 组,以在盲审模式下选择性屏蔽。
% \begin{macrocode}
\clist_map_inline:Nn \c_@@_name_anon_clist
{ \keys_define:nn { nju / info } { #1 .groups:n = { anonymous } } }
\clist_map_inline:Nn \c_@@_name_anon_en_clist
Expand All @@ -4578,6 +4582,7 @@ To produce the documentation run the original source files ending with
% \end{macro}
%
% \changes{v0.15}{2022/01/22}{正确处理双导师信息。}
% \changes{v1.1}{2022/11/04}{修复研究生模板封面的导师信息居中问题。}
% 在导言区录入用户信息后进行变量设置。此处使用到了 \pkg{ctex} 提供的命令,
% 应当位于载入文档类之后。
% \begin{macrocode}
Expand All @@ -4586,17 +4591,18 @@ To produce the documentation run the original source files ending with
% \end{macrocode}
% 拼合双导师的姓名和职称。
% \begin{macrocode}
\clist_map_inline:nn
{ \g_@@_info_supv_clist, \g_@@_info_supvii_clist }
\tl_set:Nx \g_@@_info_supvfull_tl
{ \clist_use:Nn \g_@@_info_supv_clist { \@@_hskip: } }
\clist_if_empty:NF \g_@@_info_supvii_clist
{
\tl_gput_right:Nx \g_@@_info_supvfull_tl
{ \clist_use:Nn #1 { \@@_hskip: } \@@_quad: }
{ \@@_quad: \clist_use:Nn \g_@@_info_supv_clist { \@@_hskip: } }
}
\tl_gput_right:Nn \g_@@_info_supvfull_tl { \tex_unskip:D }
\tl_set:Nn \g_@@_info_supvfull_en_tl
\tl_set_eq:NN \g_@@_info_supvfull_en_tl \g_@@_info_supv_en_tl
\tl_if_empty:NF \g_@@_info_supvii_en_tl
{
\g_@@_info_supv_en_tl \@@_quad:
\g_@@_info_supvii_en_tl \tex_unskip:D
\tl_gput_right:Nx \g_@@_info_supvfull_en_tl
{ \@@_quad: \g_@@_info_supvii_en_tl }
}
}
%</class>
Expand Down

0 comments on commit d5089e6

Please sign in to comment.