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/source/latex | |
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/source/latex')
-rw-r--r-- | Master/texmf-dist/source/latex/zref-vario/zref-vario.dtx | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/Master/texmf-dist/source/latex/zref-vario/zref-vario.dtx b/Master/texmf-dist/source/latex/zref-vario/zref-vario.dtx index 17c01eed424..2c0aa781926 100644 --- a/Master/texmf-dist/source/latex/zref-vario/zref-vario.dtx +++ b/Master/texmf-dist/source/latex/zref-vario/zref-vario.dtx @@ -128,7 +128,7 @@ % % Identify the package. % \begin{macrocode} -\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} % \end{macrocode} % @@ -342,11 +342,21 @@ % % % \begin{macrocode} +\cs_new_protected:Npn \@@_opt_tl_gset:Nn #1#2 + { + \tl_if_exist:NF #1 + { \tl_new:N #1 } + \tl_gset:Nn #1 {#2} + } +\cs_generate_variant:Nn \@@_opt_tl_gset:Nn { cn } +% \end{macrocode} +% +% \begin{macrocode} \keys_define:nn { zref-vario/langsetup } { reftextfaceafter .code:n = { - \tl_gset:cn + \@@_opt_tl_gset:cn { \@@_ref_opt_name_lang_tl:en { \l_@@_setup_language_tl } @@ -355,7 +365,7 @@ } , reftextfacebefore .code:n = { - \tl_gset:cn + \@@_opt_tl_gset:cn { \@@_ref_opt_name_lang_tl:en { \l_@@_setup_language_tl } @@ -364,7 +374,7 @@ } , reftextafter .code:n = { - \tl_gset:cn + \@@_opt_tl_gset:cn { \@@_ref_opt_name_lang_tl:en { \l_@@_setup_language_tl } @@ -373,7 +383,7 @@ } , reftextbefore .code:n = { - \tl_gset:cn + \@@_opt_tl_gset:cn { \@@_ref_opt_name_lang_tl:en { \l_@@_setup_language_tl } @@ -382,7 +392,7 @@ } , reftextcurrent .code:n = { - \tl_gset:cn + \@@_opt_tl_gset:cn { \@@_ref_opt_name_lang_tl:en { \l_@@_setup_language_tl } @@ -603,7 +613,7 @@ % \begin{macrocode} \cs_new_protected:Npn \@@_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 \@@_vrefpagenum:Nn #1#2 |