diff options
author | Karl Berry <karl@freefriends.org> | 2021-08-28 20:41:07 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-08-28 20:41:07 +0000 |
commit | 4e5cb02ecfe62152cf68ce69e36e2a158b35ccfc (patch) | |
tree | a81694566089728dfd65cfae2fb6a48d481aa647 /Master/texmf-dist/tex/latex/pdfmanagement-testphase/output-patches-tmp-ltx.sty | |
parent | 56f77dc75ccfc9a5d94cfea3ded898085d13a262 (diff) |
pdfmanagement-testphase (28aug21)
git-svn-id: svn://tug.org/texlive/trunk@60347 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/pdfmanagement-testphase/output-patches-tmp-ltx.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/pdfmanagement-testphase/output-patches-tmp-ltx.sty | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/output-patches-tmp-ltx.sty b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/output-patches-tmp-ltx.sty new file mode 100644 index 00000000000..a6ef100742d --- /dev/null +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/output-patches-tmp-ltx.sty @@ -0,0 +1,68 @@ +%% +%% This is file `output-patches-tmp-ltx.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% output-patches-tmp-ltx.dtx (with options: `package') +%% +%% Copyright (C) 2019-2021 The LaTeX Project +%% +%% It may be distributed and/or modified under the conditions of +%% the LaTeX Project Public License (LPPL), either version 1.3c of +%% this license or (at your option) any later version. The latest +%% version of this license is in the file: +%% +%% https://www.latex-project.org/lppl.txt +%% +%% This file is part of the "LaTeX PDF management testphase bundle" (The Work in LPPL) +%% and all files in that bundle must be distributed together. +%% +%% File: output-patches.dtx (C) Copyright 2020-2021 Frank Mittelbach +\ProvidesPackage{output-patches-tmp-ltx} + [2021-08-20 v0.95 Temporary patches of output commands] +\RequirePackage{etoolbox} +\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{} + +\patchcmd\@outputpage + {\vfil\color@hbox\normalcolor\hb@xt@\textwidth{\@thehead}\color@endbox} + {\vfil\@kernel@before@head\color@hbox\normalcolor\hb@xt@\textwidth{\@thehead}\color@endbox\@kernel@after@head} + {\typeout{Patching header in \string\@outputpage}}{\PATCHerror } + +\patchcmd\@outputpage + {\color@hbox\normalcolor\hb@xt@\textwidth{\@thefoot}\color@endbox} + {\@kernel@before@foot\color@hbox\normalcolor\hb@xt@\textwidth{\@thefoot}\color@endbox\@kernel@after@foot} + {\typeout{Patching footer in \string\@outputpage}}{\PATCHerror } + +\patchcmd\@makecol + {\vskip\skip\footins} + {\vskip\skip\footins\@kernel@before@footins} + {\typeout{Patching \string\@makecol\space for tagging}}{\PATCHerror } + + +\pretocmd\@makecol{\@kernel@before@cclv} + {\typeout{Patching \string\@makecol\space for tagging}}{\PATCHerror } +\AddToHook{package/after/multicol}{% multicol needs later loading + \patchcmd\page@sofar + {\setbox\z@\hbox{p}\global\dimen\tw@\dp\z@}% + {% + \setbox\z@\hbox{p}\global\dimen\tw@\dp\z@ + \@mult@ptagging@hook + }% + {\typeout{Patching \string\page@sofar\space for tagging}}{\PATCHerror}% +} +\ExplSyntaxOn +\def\@kernel@before@head{\pdfannot_link_off:} +\def\@kernel@before@foot{\pdfannot_link_off:} +\def\@kernel@after@head {\pdfannot_link_on:} +\def\@kernel@after@foot {\pdfannot_link_on:} +\ExplSyntaxOff +%% +%% +%% End of file `output-patches-tmp-ltx.sty'. |