summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ctex/heading/ctex-heading-beamer.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/ctex/heading/ctex-heading-beamer.def')
-rw-r--r--Master/texmf-dist/tex/latex/ctex/heading/ctex-heading-beamer.def14
1 files changed, 12 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/ctex/heading/ctex-heading-beamer.def b/Master/texmf-dist/tex/latex/ctex/heading/ctex-heading-beamer.def
index 0904906df43..dc38764ff74 100644
--- a/Master/texmf-dist/tex/latex/ctex/heading/ctex-heading-beamer.def
+++ b/Master/texmf-dist/tex/latex/ctex/heading/ctex-heading-beamer.def
@@ -24,10 +24,10 @@
%%
%% ---------------------------------------------------------------------
%%
-\GetIdInfo$Id: ctex.dtx 4819efe 2020-05-16 21:20:43 +0800 Qing Lee <sobenlee@gmail.com> $
+\GetIdInfo$Id: ctex.dtx 76d4e94 2020-06-06 23:22:18 +0800 Qing Lee <sobenlee@gmail.com> $
{Heading modification for beamer (CTEX)}
\ProvidesExplFile{ctex-beamer.def}
- {\ExplFileDate}{2.5.2}{\ExplFileDescription}
+ {\ExplFileDate}{2.5.3}{\ExplFileDescription}
\seq_const_from_clist:Nn \c__ctex_headings_seq
{ part , section , subsection }
\cs_new_protected:Npn \__ctex_initial_heading:n #1
@@ -212,12 +212,22 @@
{
\seq_map_inline:Nn \c__ctex_headings_seq
{ \ctex_fix_varioref_label:n { ##1 } }
+ \ctex_at_end_package:nn { cleveref } { \ctex_cleveref_hook: }
}
\cs_new_protected:Npn \ctex_fix_varioref_label:n #1
{
\tl_if_empty:cT { p@#1 }
{ \exp_args:Nnx \labelformat {#1} { \exp_not:c { CTEX@the#1 } } }
}
+\cs_new_protected:Npn \ctex_cleveref_hook:
+ {
+ \ctex_patch_cmd:Nnn \refstepcounter@noarg
+ { \endcsname \csname the }
+ { \expandafter \endcsname \csname the }
+ \ctex_patch_cmd:Nnn \refstepcounter@optarg
+ { \endcsname \csname the }
+ { \expandafter \endcsname \csname the }
+ }
\cs_if_exist:NTF \labelformat
{ \ctex_varioref_hook: }
{