From a5f735cf10cd43fcd0802645b25265969aa4863b Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 3 Jan 2023 20:49:43 +0000 Subject: zref-clever (3jan23) git-svn-id: svn://tug.org/texlive/trunk@65452 c570f23f-e606-0410-a88d-b1316a301751 --- .../source/latex/zref-clever/zref-clever.dtx | 55 +++++++++++++++++----- .../source/latex/zref-clever/zref-clever.ins | 4 +- 2 files changed, 44 insertions(+), 15 deletions(-) (limited to 'Master/texmf-dist/source/latex') diff --git a/Master/texmf-dist/source/latex/zref-clever/zref-clever.dtx b/Master/texmf-dist/source/latex/zref-clever/zref-clever.dtx index 8604bd5c391..82e6fcbf0ff 100644 --- a/Master/texmf-dist/source/latex/zref-clever/zref-clever.dtx +++ b/Master/texmf-dist/source/latex/zref-clever/zref-clever.dtx @@ -4,7 +4,7 @@ % % This file is part of the LaTeX package "zref-clever". % -% Copyright (C) 2021-2022 Gustavo Barros +% Copyright (C) 2021-2023 Gustavo Barros % % It may be distributed and/or modified under the conditions of the % LaTeX Project Public License (LPPL), either version 1.3c of this @@ -165,7 +165,7 @@ % % Identify the package. % \begin{macrocode} -\ProvidesExplPackage {zref-clever} {2022-12-27} {0.3.2} +\ProvidesExplPackage {zref-clever} {2023-01-03} {0.3.3} {Clever LaTeX cross-references based on zref} % \end{macrocode} % @@ -252,13 +252,17 @@ % \begin{macrocode} \zref@newprop { zc@type } { - \exp_args:NNe \prop_if_in:NnTF \l_@@_counter_type_prop - \l_@@_current_counter_tl + \tl_if_empty:NTF \l_@@_reftype_override_tl { - \exp_args:NNe \prop_item:Nn \l_@@_counter_type_prop + \exp_args:NNe \prop_if_in:NnTF \l_@@_counter_type_prop + \l_@@_current_counter_tl + { + \exp_args:NNe \prop_item:Nn \l_@@_counter_type_prop + { \l_@@_current_counter_tl } + } { \l_@@_current_counter_tl } } - { \l_@@_current_counter_tl } + { \l_@@_reftype_override_tl } } \zref@addprop \ZREF@mainlist { zc@type } % \end{macrocode} @@ -3732,6 +3736,22 @@ % \end{macrocode} % % +% \subsubsection*{\opt{reftype} option} +% +% This allows one to manually specify the reference type. It is the +% equivalent of \pkg{cleveref}'s optional argument to \cs{label}. +% +% \begin{macrocode} +\tl_new:N \l_@@_reftype_override_tl +\keys_define:nn { zref-clever/label } + { + reftype .tl_set:N = \l_@@_reftype_override_tl , + reftype .default:n = {} , + reftype .initial:n = {} , + } +% \end{macrocode} +% +% % \subsubsection*{\opt{countertype} option} % % \cs{l_@@_counter_type_prop} is used by \texttt{zc@type} property, and stores @@ -3889,7 +3909,7 @@ \keys_define:nn { zref-clever/label } { currentcounter .tl_set:N = \l_@@_current_counter_tl , - currentcounter .value_required:n = true , + currentcounter .default:n = \@currentcounter , currentcounter .initial:n = \@currentcounter , } % \end{macrocode} @@ -8570,6 +8590,12 @@ % if they were not previously set. In other words, for them the precedence % order is inverted, the first value takes precedence. % +% \textbf{\pkg{zref-vario}:} If you are interested in the localization of +% \pkg{zref-clever} to your language, and willing to contribute to it, you may +% also want to consider doing the same for the companion package +% \pkg{zref-vario}. It is actually a much simpler task than localizing +% \pkg{zref-clever}. +% % % \subsection{English} % @@ -9272,10 +9298,11 @@ type = solution , % \subsection{French} % % French language file has been initially provided by the author, and has been -% improved thanks to Denis Bitouzé and François Lagarde (at \githubissue{1}) -% and participants of the Groupe francophone des Utilisateurs de \TeX{} -% (GUTenberg) (at \url{https://groups.google.com/g/gut_fr/c/rNLm6weGcyg}) and -% the \texttt{fr.comp.text.tex} (at +% improved thanks to \contributor{Denis Bitouzé} and \contributor{François +% Lagarde} (at \githubissue{1}) and participants of the Groupe francophone des +% Utilisateurs de \TeX{} (GUTenberg) (at +% \url{https://groups.google.com/g/gut_fr/c/rNLm6weGcyg}) and the +% \texttt{fr.comp.text.tex} (at % \url{https://groups.google.com/g/fr.comp.text.tex/c/Fa11Tf6MFFs}) mailing % lists. % @@ -10254,8 +10281,10 @@ type = solution , % % \subsection{Italian} % -% Italian language file initially contributed by Matteo Ferrigato -% (\githubissue{11}). +% Italian language file initially contributed by \contributor{Matteo +% Ferrigato} (\githubissue{11}), with the help of participants of the Gruppo +% Utilizzatori Italiani di \TeX{} (GuIT) forum (at +% \url{https://www.guitex.org/home/it/forum/5-tex-e-latex/121856-closed-zref-clever-e-localizzazione-in-italiano}). % % \begin{macrocode} %<*package> diff --git a/Master/texmf-dist/source/latex/zref-clever/zref-clever.ins b/Master/texmf-dist/source/latex/zref-clever/zref-clever.ins index f05b026520a..d4f77dcf36f 100644 --- a/Master/texmf-dist/source/latex/zref-clever/zref-clever.ins +++ b/Master/texmf-dist/source/latex/zref-clever/zref-clever.ins @@ -4,7 +4,7 @@ % % This file is part of the LaTeX package "zref-clever". % -% Copyright (C) 2021-2022 Gustavo Barros +% Copyright (C) 2021-2023 Gustavo Barros % % It may be distributed and/or modified under the conditions of the % LaTeX Project Public License (LPPL), either version 1.3c of this @@ -50,7 +50,7 @@ This file was generated from file(s) of the LaTeX package "zref-clever". -Copyright (C) 2021-2022 Gustavo Barros +Copyright (C) 2021-2023 Gustavo Barros It may be distributed and/or modified under the conditions of the LaTeX Project Public License (LPPL), either version 1.3c of this -- cgit v1.2.3