diff options
author | Norbert Preining <norbert@preining.info> | 2022-02-18 03:01:44 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-02-18 03:01:44 +0000 |
commit | 41041c6bdcedcc33698491c2caec4cd725a4fe97 (patch) | |
tree | 59aa0f9e0235ceee2474351b4b1a90a1eace6619 /macros/latex/contrib/pdfmanagement-testphase/output-patches-tmp-ltx.dtx | |
parent | bd0e05b5b4dba5b38512acb2e7104f180fdb97e6 (diff) |
CTAN sync 202202180301
Diffstat (limited to 'macros/latex/contrib/pdfmanagement-testphase/output-patches-tmp-ltx.dtx')
-rw-r--r-- | macros/latex/contrib/pdfmanagement-testphase/output-patches-tmp-ltx.dtx | 38 |
1 files changed, 23 insertions, 15 deletions
diff --git a/macros/latex/contrib/pdfmanagement-testphase/output-patches-tmp-ltx.dtx b/macros/latex/contrib/pdfmanagement-testphase/output-patches-tmp-ltx.dtx index f084030fd2..341bc1f767 100644 --- a/macros/latex/contrib/pdfmanagement-testphase/output-patches-tmp-ltx.dtx +++ b/macros/latex/contrib/pdfmanagement-testphase/output-patches-tmp-ltx.dtx @@ -58,16 +58,15 @@ % % % \subsection{Patching the OR} -% This add hooks around header and footer. -% At first initialize the hooks +% This add hooks around header and footer, in \cs{@makecol} and in multicol. +% At first initialize some of the hooks. We use providecommand to avoid problems if +% the kernel changes here and provides them directly. % \begin{macrocode} -\newcommand\@kernel@before@head{} -\newcommand\@kernel@before@foot{} -\newcommand\@kernel@after@head{} -\newcommand\@kernel@after@foot{} -\newcommand\@kernel@before@footins{} -\newcommand\@kernel@before@cclv{} -\newcommand\@mult@ptagging@hook{} +\providecommand\@kernel@before@head{} +\providecommand\@kernel@before@foot{} +\providecommand\@kernel@after@head{} +\providecommand\@kernel@after@foot{} +\providecommand\@mult@ptagging@hook{}% multicol % \end{macrocode} % % \begin{macrocode} @@ -92,17 +91,26 @@ % \item % update the \cs{footins} stream if that one got split % \end{itemize} +% +% If the new latex-lab file for the output routine is loaded it will do the right thing. +% In the other case we patch \cs{@makecol} manually. % \begin{macrocode} +\@ifpackageloaded{latex-lab-testphase-new-or} + {} + { + \providecommand\@kernel@before@footins{} + \providecommand\@kernel@before@cclv{} -\patchcmd\@makecol - {\vskip\skip\footins} - {\vskip\skip\footins\@kernel@before@footins} - {\typeout{Patching \string\@makecol\space for tagging}}{\PATCHerror } + \patchcmd\@makecol + {\vskip\skip\footins} + {\vskip\skip\footins\@kernel@before@footins} + {\typeout{Patching \string\@makecol\space for tagging}}{\PATCHerror } % for some reason patching with etoolbox only works in this order ... -\pretocmd\@makecol{\@kernel@before@cclv} - {\typeout{Patching \string\@makecol\space for tagging}}{\PATCHerror } + \pretocmd\@makecol{\@kernel@before@cclv} + {\typeout{Patching \string\@makecol\space for tagging}}{\PATCHerror } + } % \end{macrocode} % \end{macro} % |