diff options
author | Karl Berry <karl@freefriends.org> | 2022-02-12 21:18:31 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-02-12 21:18:31 +0000 |
commit | 8ad5046e78ac37d11ee2e80eabab5f5c1d3f731a (patch) | |
tree | abfd7250f9a34314b9628f7dc5aba75b7d6a53a7 /Master/texmf-dist/tex/latex/zref-vario | |
parent | 37427a439f796a7ef14eb367dcced3cf4898442c (diff) |
zref-vario (12feb22)
git-svn-id: svn://tug.org/texlive/trunk@61995 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/zref-vario')
-rw-r--r-- | Master/texmf-dist/tex/latex/zref-vario/zref-vario.sty | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/zref-vario/zref-vario.sty b/Master/texmf-dist/tex/latex/zref-vario/zref-vario.sty index 65aa65d4cf7..c389ffd9c65 100644 --- a/Master/texmf-dist/tex/latex/zref-vario/zref-vario.sty +++ b/Master/texmf-dist/tex/latex/zref-vario/zref-vario.sty @@ -42,7 +42,7 @@ %% %% ----------------------------------------------------------------------- %% -\ProvidesExplPackage {zref-vario} {2022-02-08} {0.1.2-alpha} +\ProvidesExplPackage {zref-vario} {2022-02-11} {0.1.3-alpha} {Extended LaTeX page cross-references with varioref and zref-clever} \AddToHook { begindocument/before } { @@ -156,11 +156,18 @@ The~language~must~be~declared~for~'zref-clever',~see~its~documentation. } \@onlypreamble \zvLanguageSetup +\cs_new_protected:Npn \__zrefvario_opt_tl_gset:Nn #1#2 + { + \tl_if_exist:NF #1 + { \tl_new:N #1 } + \tl_gset:Nn #1 {#2} + } +\cs_generate_variant:Nn \__zrefvario_opt_tl_gset:Nn { cn } \keys_define:nn { zref-vario/langsetup } { reftextfaceafter .code:n = { - \tl_gset:cn + \__zrefvario_opt_tl_gset:cn { \__zrefvario_ref_opt_name_lang_tl:en { \l__zrefvario_setup_language_tl } @@ -169,7 +176,7 @@ } , reftextfacebefore .code:n = { - \tl_gset:cn + \__zrefvario_opt_tl_gset:cn { \__zrefvario_ref_opt_name_lang_tl:en { \l__zrefvario_setup_language_tl } @@ -178,7 +185,7 @@ } , reftextafter .code:n = { - \tl_gset:cn + \__zrefvario_opt_tl_gset:cn { \__zrefvario_ref_opt_name_lang_tl:en { \l__zrefvario_setup_language_tl } @@ -187,7 +194,7 @@ } , reftextbefore .code:n = { - \tl_gset:cn + \__zrefvario_opt_tl_gset:cn { \__zrefvario_ref_opt_name_lang_tl:en { \l__zrefvario_setup_language_tl } @@ -196,7 +203,7 @@ } , reftextcurrent .code:n = { - \tl_gset:cn + \__zrefvario_opt_tl_gset:cn { \__zrefvario_ref_opt_name_lang_tl:en { \l__zrefvario_setup_language_tl } @@ -378,7 +385,7 @@ } \cs_new_protected:Npn \__zrefvario_vref_pagenum:Nn #1#2 { - \exp_args:NNNo \exp_args:NNo \tl_set:Nn #1 + \exp_args:NNNo \exp_args:NNo \def #1 { \zref@extractdefault {#2} { page } { ?? } } } \cs_new_protected:Npn \__zrefvario_vrefpagenum:Nn #1#2 |