From a4a2c8e471a456fb443ecdad61828be6e3c2bb7e Mon Sep 17 00:00:00 2001 From: Xiangdong Zeng Date: Sun, 8 Dec 2024 17:42:19 +0800 Subject: [PATCH] fix: track `l3doc` changes - See CTeX-org/ctex-kit#700 and CTeX-org/ctex-kit#703. - Close #344. --- source/fduthesis-doc.dtx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/source/fduthesis-doc.dtx b/source/fduthesis-doc.dtx index e09af2a..7b93062 100644 --- a/source/fduthesis-doc.dtx +++ b/source/fduthesis-doc.dtx @@ -1485,7 +1485,7 @@ \cs_set_protected:Npn \@@_print_macroname:nN #1#2 { \strut - \@@_get_hyper_target:xN + \@@_get_hyper_target:eN { \exp_not:n {#1} \bool_if:NT #2 { \tl_to_str:n {TF} } @@ -1499,11 +1499,12 @@ % \end{macrocode} % 命令中的空格改用“\textvisiblespace”显示。 % \begin{macrocode} - \tl_replace_all:Non \l_@@_tmpa_tl - { \c_catcode_other_space_tl } - { \fontspec_visible_space: } - \@@_macroname_prefix:o \l_@@_tmpa_tl - \@@_macroname_suffix:N #2 + \tl_replace_all:NVn \l_@@_tmpa_tl + \c_catcode_other_space_tl + { \textvisiblespace } + \__codedoc_print_macroname_aux:on + \l__codedoc_tmpa_tl + { \bool_if:NT #2 { \__codedoc_typeset_TF: } } } } % \end{macrocode}