summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-02-13 20:53:51 +0000
committerKarl Berry <karl@freefriends.org>2023-02-13 20:53:51 +0000
commit7cc38d15e4d65fc5198c6c25c70427fc7e175cfd (patch)
tree99bad24ce21ed533636b641fc9045945e48e57d9 /Master/texmf-dist/source
parent382b9012bf996da88ee6dbdf36f9d158f7d7fd02 (diff)
zref-clever (13feb23)
git-svn-id: svn://tug.org/texlive/trunk@65822 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r--Master/texmf-dist/source/latex/zref-clever/zref-clever.dtx57
1 files changed, 3 insertions, 54 deletions
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 82e6fcbf0ff..cd5e8a16f03 100644
--- a/Master/texmf-dist/source/latex/zref-clever/zref-clever.dtx
+++ b/Master/texmf-dist/source/latex/zref-clever/zref-clever.dtx
@@ -165,7 +165,7 @@
%
% Identify the package.
% \begin{macrocode}
-\ProvidesExplPackage {zref-clever} {2023-01-03} {0.3.3}
+\ProvidesExplPackage {zref-clever} {2023-02-13} {0.3.4}
{Clever LaTeX cross-references based on zref}
% \end{macrocode}
%
@@ -7916,58 +7916,6 @@
%
%
%
-% \subsection{\opt{KOMA}}
-%
-% Support for \texttt{KOMA-Script} document classes.
-%
-% \begin{macrocode}
-\@@_compat_module:nn { KOMA }
- {
- \cs_if_exist:NT \KOMAClassName
- {
-% \end{macrocode}
-% Add support for \env{captionbeside} and \env{captionofbeside} environments.
-% These environments \emph{do} run some variation of \cs{caption} and hence
-% \cs{refstepcounter}. However, this happens inside a parbox inside the
-% environment, thus grouped, such that we cannot see the variables set by
-% \cs{refstepcounter} when we are setting the label. \cs{@currentlabel} is
-% smuggled out of the group by KOMA, but the same care is not granted for
-% \cs{@currentcounter}. So we have to rely on \cs{@captype}, which the
-% underlying caption infrastructure feeds to \cs{refstepcounter}. Since we
-% must use \texttt{env/.../after} hooks, care should be taken not to set the
-% \opt{currentcounter} option unscoped, which would be quite disastrous. For
-% this reason, though more ``invasive'', we set \cs{@currentcounter} instead,
-% which at least will be set straight the next time \cs{refstepcounter} runs.
-% It sounds reasonable, it is the same treatment \cs{@currentlabel} is
-% receiving in this case.
-% \begin{macrocode}
- \AddToHook { env / captionbeside / after }
- {
- \tl_if_exist:NT \@captype
- { \tl_set_eq:NN \@currentcounter \@captype }
- }
- \tl_new:N \g_@@_koma_captionofbeside_captype_tl
- \AddToHook { env / captionofbeside / end }
- { \tl_gset_eq:NN \g_@@_koma_captype_tl \@captype }
- \AddToHook { env / captionofbeside / after }
- {
- \tl_if_eq:NnF \@currenvir { document }
- {
- \tl_if_empty:NF \g_@@_koma_captype_tl
- {
- \tl_set_eq:NN
- \@currentcounter \g_@@_koma_captype_tl
- }
- }
- \tl_gclear:N \g_@@_koma_captype_tl
- }
- \msg_info:nnx { zref-clever } { compat-class } { \KOMAClassName }
- }
- }
-% \end{macrocode}
-%
-%
-%
% \subsection{\opt{amsmath}}
%
% About this, see \url{https://tex.stackexchange.com/a/402297}.
@@ -7986,7 +7934,8 @@
% protection with \cs{zref@wrapper@babel}, because \cs{zlabel} makes itself
% no-op when \cs{label} is equal to \cs{ltx@gobble}, and that's precisely the
% case inside the \env{multline} environment (and, damn!, I took a beating of
-% this detail\dots{}).
+% this detail\dots{}). See also \url{https://github.com/ho-tex/zref/issues/4}
+% and \url{https://github.com/latex3/latex2e/issues/272}.
% \begin{macrocode}
\cs_set_nopar:Npn \@@_ltxlabel:n #1
{