[latex3-commits] [latex3/latex2e] ltmarks-multicol: different plugs depending on engine (dc8be0197)
github at latex-project.org
github at latex-project.org
Sun Nov 17 16:01:21 CET 2024
Repository : https://github.com/latex3/latex2e
On branch : ltmarks-multicol
Link : https://github.com/latex3/latex2e/commit/dc8be0197f1788d9c801cfc2f72867a307c74e6b
>---------------------------------------------------------------
commit dc8be0197f1788d9c801cfc2f72867a307c74e6b
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date: Sun Nov 17 16:01:21 2024 +0100
different plugs depending on engine
>---------------------------------------------------------------
dc8be0197f1788d9c801cfc2f72867a307c74e6b
required/tools/multicol.dtx | 26 ++++++++++++++++++++------
1 file changed, 20 insertions(+), 6 deletions(-)
diff --git a/required/tools/multicol.dtx b/required/tools/multicol.dtx
index 0c7b48295..6b1d74996 100644
--- a/required/tools/multicol.dtx
+++ b/required/tools/multicol.dtx
@@ -4642,20 +4642,34 @@
% }
% \end{macrocode}
%
-% The plug definition for now just implements the old interface
-% currently used by tagpdf. This needs to change and \cs{@mult at ptagging@hook}
-% replaced by directly using the socket/plug.
+% The plug definition for now just uses the definition from
+% \pkg{tagpdf}. There has to be a decision where such plugs should be
+% implemented: in the package (like now) then they functions used
+% from tagpdf should become public, in \pkg{tagpdf}, or in
+% \texttt{lttagging} in the kernel.
% \changes{v2.0a}{2024/11/12}{Added tagging socket}
% \begin{macrocode}
\NewSocketPlug {tagsupport/page at sofar}{default}
{
- \@mult at ptagging@hook
+ \__tag_check_typeout_v:n {====>~In~\string\page at sofar} % some similar debug message if wanted.
+ \process at cols\mult at firstbox
+ { \__tag_add_missing_mcs_to_stream:Nn \count@ {multicol} }
+ \__tag_add_missing_mcs_to_stream:Nn \mult at rightbox {multicol}
}
-\providecommand\@mult at ptagging@hook{}
+% \end{macrocode}
+% In the \LuaTeX{} engine there is no need to do anything special
+% in this socket.
+% \begin{macrocode}
+\sys_if_engine_luatex:TF
+ { \AssignSocketPlug{tagsupport/page at sofar}{noop} }
+ { \AssignSocketPlug{tagsupport/page at sofar}{default} }
+% \end{macrocode}
+%
+% \begin{macrocode}
+\providecommand\@mult at ptagging@hook{} %temporarly until tagpdf not longer sets that
% \end{macrocode}
%
% \begin{macrocode}
-\AssignSocketPlug{tagsupport/page at sofar}{default}
% \end{macrocode}
%
%
More information about the latex3-commits
mailing list.