diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/ctex/ctxdoc.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/ctex/ctxdoc.cls | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/ctex/ctxdoc.cls b/Master/texmf-dist/tex/latex/ctex/ctxdoc.cls index 9e5d39f97da..8b353bd0e3c 100644 --- a/Master/texmf-dist/tex/latex/ctex/ctxdoc.cls +++ b/Master/texmf-dist/tex/latex/ctex/ctxdoc.cls @@ -21,7 +21,7 @@ %% \NeedsTeXFormat{LaTeX2e} \RequirePackage{expl3} -\GetIdInfo$Id: ctxdoc.cls 838ebab 2021-11-19 14:11:35 +0800 Qing Lee <sobenlee@gmail.com> $ +\GetIdInfo$Id: ctxdoc.cls 87d629c 2022-05-23 22:55:12 +0800 Qing Lee <sobenlee@gmail.com> $ {ctex documentation (CTEX)} \ProvidesExplClass{ctxdoc}{\ExplFileDate}{}{\ExplFileDescription} \ExplSyntaxOff @@ -301,8 +301,10 @@ \GetFileInfo {#1} \file_get:nnNTF { \c_sys_jobname_str .id } { \int_set:Nn \tex_endlinechar:D { -1 } } \l__ctxdoc_tmp_tl - { \exp_after:wN \GetIdInfo \l__ctxdoc_tmp_tl } + { \tl_if_empty:NTF \l__ctxdoc_tmp_tl } + { \use_i:nn } { \GetIdInfo $Id$ } + { \exp_after:wN \GetIdInfo \l__ctxdoc_tmp_tl } { \fileinfo } } \cs_new_eq:NN \__ctxdoc_ltx_changes:nnn \changes@ @@ -431,14 +433,20 @@ \if@inlabel \global \@inlabelfalse \@noparlistfalse - \llap { \box \@labels \hskip \leftskip } + \unless \ifvoid \CTEX@labelbox + \llap { \box \CTEX@labelbox \hskip \leftskip } + \fi \fi #1 } } \ctex_patch_cmd:Nnn \macro@code { \if@inlabel \leavevmode \fi } - { \partopsep \z@skip } + { + \partopsep \z@skip + \if@inlabel \setbox \CTEX@labelbox \copy \@labels \fi + } +\newbox \CTEX@labelbox \group_begin: \int_set:Nn \tex_endlinechar:D { -1 } \use:n |