diff options
author | Karl Berry <karl@freefriends.org> | 2023-08-21 20:20:51 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-08-21 20:20:51 +0000 |
commit | 78f128f37a962971eb0071ac427c974dce850ef9 (patch) | |
tree | 371ea4aa30d5f56ef0fb19dad771d1cc18d42155 /Master/texmf-dist/tex | |
parent | 0f78a073b59e97071fc8c44f73d1be15e920ae1c (diff) |
pdfmanagement-testphase (21aug23)
git-svn-id: svn://tug.org/texlive/trunk@68005 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
17 files changed, 211 insertions, 112 deletions
diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/color-ltx.sty b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/color-ltx.sty index dcfba47cc0b..53218fe6aa9 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/color-ltx.sty +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/color-ltx.sty @@ -24,7 +24,7 @@ %% This file has the LPPL maintenance status "maintained". %% \NeedsTeXFormat{LaTeX2e}[1995/12/01] -\ProvidesPackage{color-ltx}[2023-03-09 v0.95x +\ProvidesPackage{color-ltx}[2023-08-20 v0.95y Standard LaTeX Color (patched for l3color, part of pdfmanagement-testphase, original version 2022/01/06 v1.3d) (DPC)] \edef\Gin@codes{% \catcode`\noexpand\^^A\the\catcode`\^^A\relax diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/colorspace-patches-tmp-ltx.sty b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/colorspace-patches-tmp-ltx.sty index 2b08ae1d808..698922d100d 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/colorspace-patches-tmp-ltx.sty +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/colorspace-patches-tmp-ltx.sty @@ -19,7 +19,7 @@ % % for those people who are interested. \NeedsTeXFormat{LaTeX2e}[2020/10/01] -\ProvidesExplPackage{colorspace-patches-tmp-ltx}{2023-03-09}{0.95x} +\ProvidesExplPackage{colorspace-patches-tmp-ltx}{2023-08-20}{0.95y} {temporay patches to for the colorspace package to test pdfresource management ... UF} % colorspace can define more models, that l3color can't yet handle. diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/hgeneric-testphase.def b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/hgeneric-testphase.def index 940a532e5f9..5f694001c1a 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/hgeneric-testphase.def +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/hgeneric-testphase.def @@ -19,8 +19,7 @@ %% and all files in that bundle must be distributed together. %% %% File: hyperref-generic.dtx - -\ProvidesFile{hgeneric-testphase.def}[2023-03-09 v0.95x % +\ProvidesFile{hgeneric-testphase.def}[2023-08-20 v0.95y % generic Hyperref driver for the LaTeX PDF management testphase bundle] \RequirePackage{etoolbox} %why? diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/hyperref-colorschemes.def b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/hyperref-colorschemes.def index 29a3982e647..58afa2345a1 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/hyperref-colorschemes.def +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/hyperref-colorschemes.def @@ -20,7 +20,6 @@ %% %% File: hyperref-generic.dtx - \prop_const_from_keyval:cn { c__hyp_colorscheme_primary-colors_prop } { linkcolor = [rgb]{1,0,0}, %red diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvipdfmx.def b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvipdfmx.def index 545aac814be..329a00e3465 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvipdfmx.def +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvipdfmx.def @@ -20,8 +20,14 @@ %% %% File: l3backend-testphase.dtx \ProvidesExplFile - {l3backend-testphase-dvipdfmx.def}{2023-03-09}{} + {l3backend-testphase-dvipdfmx.def}{2023-08-20}{} {LaTeX~PDF~management~testphase~bundle~backend~support: dvipdfmx} +\bool_if:NT \l__pdfmanagement_delayed_shipout_bool + { + \cs_new_protected:Npn \__kernel_backend_shipout_literal:e #1 + { \tex_special:D~shipout { #1} } + } + \RequirePackage{l3ref-tmp} \cs_generate_variant:Nn \ref_label:nn {en} \cs_generate_variant:Nn \ref_value:nn {en} @@ -170,7 +176,7 @@ \int_gincr:N \g__pdf_backend_name_int \__kernel_backend_literal:x { - pdf:code~/#1/l3pdf\int_use:N\g__pdf_backend_name_int\c_space_tl BDC + pdf:code~/\exp_not:n{#1}/l3pdf\int_use:N\g__pdf_backend_name_int\c_space_tl BDC } \__kernel_backend_literal:x { @@ -200,13 +206,22 @@ \__kernel_backend_literal:n {pdf:code~ /#1~<<#2>>~BDC } } -\cs_set_protected:Npn \__pdf_backend_bdc:nn #1 #2 + \cs_set_protected:Npn \__pdf_backend_bdc:nn #1 #2 { \bool_if:NTF \g__pdfmanagement_active_bool {\cs_gset_eq:NN \__pdf_backend_bdc:nn \__pdf_backend_bdc_contobj:nn} {\cs_gset_eq:NN \__pdf_backend_bdc:nn \__pdf_backend_bdc_contstream:nn} \__pdf_backend_bdc:nn {#1}{#2} } + +\bool_if:NT\l__pdfmanagement_delayed_shipout_bool + { + \cs_set_protected:Npn \__pdf_backend_bdc_shipout_contstream:ee #1 #2 + { + \__kernel_backend_shipout_literal:e {pdf:code~ /#1~<<#2>>~BDC } + } + \cs_set_eq:NN \__pdf_backend_bdc_shipout:ee \__pdf_backend_bdc_shipout_contstream:ee + } \cs_set_protected:Npn \__pdf_backend_emc: { \__kernel_backend_literal:n {pdf:code~EMC} %pdfbase diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvips.def b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvips.def index daede494128..7fb20c162a7 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvips.def +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvips.def @@ -20,8 +20,14 @@ %% %% File: l3backend-testphase.dtx \ProvidesExplFile - {l3backend-testphase-dvips.def}{2023-03-09}{} + {l3backend-testphase-dvips.def}{2023-08-20}{} {LaTeX~PDF~management~testphase~bundle~backend~support: dvips} +\bool_if:NT \l__pdfmanagement_delayed_shipout_bool + { + \cs_new_protected:Npn \__kernel_backend_shipout_literal:e #1 + { \tex_special:D~shipout { #1} } + } + \RequirePackage{l3ref-tmp} \cs_generate_variant:Nn \ref_label:nn {en} \cs_generate_variant:Nn \ref_value:nn {en} @@ -124,8 +130,18 @@ \bool_new:N \l__pdf_backend_xform_bool \cs_set_protected:Npn \__pdf_backend_bdc:nn #1 #2 % #1 eg. Span, #2: dict_content { - \__pdf_backend_pdfmark:x{/#1~<<#2>>~/BDC} + \__pdf_backend_pdfmark:n{/#1~<<#2>>~/BDC} } + +\bool_if:NT\l__pdfmanagement_delayed_shipout_bool + { + \cs_new_protected:Npn \__pdf_backend_bdc_shipout:ee #1 #2 % #1 eg. Span, #2: dict_content + { + \__kernel_backend_shipout_literal:e + {ps: SDict ~ begin ~ mark /#1~<<#2>>~/BDC ~ pdfmark ~ end } + } + } + \cs_set_protected:Npn \__pdf_backend_bdcobject:nn #1 #2 % #1 eg. Span, #2: object name { \__pdf_backend_pdfmark:x{/#1~\__pdf_backend_object_ref:n{#2}~/BDC} diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvisvgm.def b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvisvgm.def index 233fea1d182..1b20208c3a1 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvisvgm.def +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-dvisvgm.def @@ -20,8 +20,14 @@ %% %% File: l3backend-testphase.dtx \ProvidesExplFile - {l3backend-testphase-dvisvgm.def}{2023-03-09}{} + {l3backend-testphase-dvisvgm.def}{2023-08-20}{} {LaTeX~PDF~management~testphase~bundle~backend~support: dvisvgm} +\bool_if:NT \l__pdfmanagement_delayed_shipout_bool + { + \cs_new_protected:Npn \__kernel_backend_shipout_literal:e #1 + { \tex_special:D~shipout { #1} } + } + \RequirePackage{l3ref-tmp} \cs_generate_variant:Nn \ref_label:nn {en} \cs_generate_variant:Nn \ref_value:nn {en} @@ -100,6 +106,11 @@ \bool_new:N \l__pdf_backend_xform_bool \cs_set_protected:Npn \__pdf_backend_bdc:nn #1 #2 % #1 eg. Span, #2: dict_content {} +\bool_if:NT\l__pdfmanagement_delayed_shipout_bool + { + \cs_set_protected:Npn \__pdf_backend_shipout_bdc:ee #1 #2 % #1 eg. Span, #2: dict_content + {} + } \cs_set_protected:Npn \__pdf_backend_bdcobject:nn #1 #2 % #1 eg. Span, #2: object name {} \cs_set_protected:Npn \__pdf_backend_bdcobject:n #1 % #1 eg. Span, diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-luatex.def b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-luatex.def index 94fd0d4157b..5686bb26021 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-luatex.def +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-luatex.def @@ -20,8 +20,24 @@ %% %% File: l3backend-testphase.dtx \ProvidesExplFile - {l3backend-testphase-luatex.def}{2023-03-09}{} + {l3backend-testphase-luatex.def}{2023-08-20}{} {LaTeX~PDF~management~testphase~bundle~backend~support: PDF output (LuaTeX)} +\bool_if:NT \l__pdfmanagement_delayed_shipout_bool + { + \cs_new_protected:Npn \__kernel_backend_shipout_literal:e #1 + { \tex_special:D~shipout { #1} } + \cs_new_protected:Npn \__kernel_backend_shipout_literal_pdf:e #1 + { + \tex_pdfextension:D ~ literal ~ shipout ~ + { #1 } + } + \cs_new_protected:Npn \__kernel_backend_shipout_literal_page:e #1 + { + \tex_pdfextension:D ~ literal ~ shipout ~ + page { #1 } + } + } + \RequirePackage{l3ref-tmp} \cs_generate_variant:Nn \ref_label:nn {en} \cs_generate_variant:Nn \ref_value:nn {en} @@ -216,7 +232,7 @@ { \int_gincr:N \g__pdf_backend_name_int \exp_args:Nx\__kernel_backend_literal_page:n - { /#1 ~ /l3pdf\int_use:N\g__pdf_backend_name_int\c_space_tl BDC } + { /\exp_not:n{#1} ~ /l3pdf\int_use:N\g__pdf_backend_name_int\c_space_tl BDC } \bool_if:NTF \l__pdf_backend_xform_bool { \exp_args:Nnx\pdfdict_gput:nnn %no handler needed @@ -249,13 +265,24 @@ { \__kernel_backend_literal_page:n { /#1~<<#2>>~BDC } } -\cs_set_protected:Npn \__pdf_backend_bdc:nn #1 #2 + + \cs_set_protected:Npn \__pdf_backend_bdc:nn #1 #2 { \bool_if:NTF \g__pdfmanagement_active_bool {\cs_gset_eq:NN \__pdf_backend_bdc:nn \__pdf_backend_bdc_contobj:nn} {\cs_gset_eq:NN \__pdf_backend_bdc:nn \__pdf_backend_bdc_contstream:nn} \__pdf_backend_bdc:nn {#1}{#2} } + +\bool_if:NT\l__pdfmanagement_delayed_shipout_bool + { + \cs_set_protected:Npn \__pdf_backend_bdc_shipout_contstream:ee #1 #2 + { + \__kernel_backend_shipout_literal_page:e { /#1~<<#2>>~BDC } + } + \cs_set_eq:NN \__pdf_backend_bdc_shipout:ee \__pdf_backend_bdc_shipout_contstream:ee + } + \cs_set_protected:Npn \__pdf_backend_emc: { \__kernel_backend_literal_page:n { EMC } diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-pdftex.def b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-pdftex.def index 918e00d0d01..2611028606f 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-pdftex.def +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-pdftex.def @@ -20,8 +20,24 @@ %% %% File: l3backend-testphase.dtx \ProvidesExplFile - {l3backend-testphase-pdftex.def}{2023-03-09}{} + {l3backend-testphase-pdftex.def}{2023-08-20}{} {LaTeX~PDF~management~testphase~bundle~backend~support: PDF output (pdfTeX)} +\bool_if:NT \l__pdfmanagement_delayed_shipout_bool + { + \cs_new_protected:Npn \__kernel_backend_shipout_literal:e #1 + { \tex_special:D~shipout { #1} } + \cs_new_protected:Npn \__kernel_backend_shipout_literal_pdf:e #1 + { + \tex_pdfliteral:D ~ shipout ~ + { #1 } + } + \cs_new_protected:Npn \__kernel_backend_shipout_literal_page:e #1 + { + \tex_pdfliteral:D ~ shipout ~ + page { #1 } + } + } + \RequirePackage{l3ref-tmp} \cs_generate_variant:Nn \ref_label:nn {en} \cs_generate_variant:Nn \ref_value:nn {en} @@ -188,7 +204,7 @@ { \int_gincr:N \g__pdf_backend_name_int \exp_args:Nx\__kernel_backend_literal_page:n - { /#1 ~ /l3pdf\int_use:N\g__pdf_backend_name_int\c_space_tl BDC } + { /\exp_not:n{#1} ~ /l3pdf\int_use:N\g__pdf_backend_name_int\c_space_tl BDC } % code to set the property .... \int_gincr:N\g__pdf_backend_resourceid_int \bool_if:NTF \l__pdf_backend_xform_bool @@ -228,6 +244,7 @@ { \__kernel_backend_literal_page:n { /#1~<<#2>>~BDC } } + \cs_set_protected:Npn \__pdf_backend_bdc:nn #1 #2 { \bool_if:NTF \g__pdfmanagement_active_bool @@ -235,6 +252,15 @@ {\cs_gset_eq:NN \__pdf_backend_bdc:nn \__pdf_backend_bdc_contstream:nn} \__pdf_backend_bdc:nn {#1}{#2} } +\bool_if:NT\l__pdfmanagement_delayed_shipout_bool + { + \cs_set_protected:Npn \__pdf_backend_bdc_shipout_contstream:ee #1 #2 + { + \__kernel_backend_shipout_literal_page:e { /#1~<<#2>>~BDC } + } + \cs_set_eq:NN \__pdf_backend_bdc_shipout:ee \__pdf_backend_bdc_shipout_contstream:ee + } + \cs_set_protected:Npn \__pdf_backend_emc: { \__kernel_backend_literal_page:n { EMC } diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-xetex.def b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-xetex.def index 950fa287feb..f3eeb03e37f 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-xetex.def +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase-xetex.def @@ -20,8 +20,14 @@ %% %% File: l3backend-testphase.dtx \ProvidesExplFile - {l3backend-testphase-xetex.def}{2023-03-09}{} + {l3backend-testphase-xetex.def}{2023-08-20}{} {LaTeX~PDF~management~testphase~bundle~backend~support: XeTeX} +\bool_if:NT \l__pdfmanagement_delayed_shipout_bool + { + \cs_new_protected:Npn \__kernel_backend_shipout_literal:e #1 + { \tex_special:D~shipout { #1} } + } + \RequirePackage{l3ref-tmp} \cs_generate_variant:Nn \ref_label:nn {en} \cs_generate_variant:Nn \ref_value:nn {en} @@ -170,7 +176,7 @@ \int_gincr:N \g__pdf_backend_name_int \__kernel_backend_literal:x { - pdf:code~/#1/l3pdf\int_use:N\g__pdf_backend_name_int\c_space_tl BDC + pdf:code~/\exp_not:n{#1}/l3pdf\int_use:N\g__pdf_backend_name_int\c_space_tl BDC } \__kernel_backend_literal:x { @@ -200,13 +206,22 @@ \__kernel_backend_literal:n {pdf:code~ /#1~<<#2>>~BDC } } -\cs_set_protected:Npn \__pdf_backend_bdc:nn #1 #2 + \cs_set_protected:Npn \__pdf_backend_bdc:nn #1 #2 { \bool_if:NTF \g__pdfmanagement_active_bool {\cs_gset_eq:NN \__pdf_backend_bdc:nn \__pdf_backend_bdc_contobj:nn} {\cs_gset_eq:NN \__pdf_backend_bdc:nn \__pdf_backend_bdc_contstream:nn} \__pdf_backend_bdc:nn {#1}{#2} } + +\bool_if:NT\l__pdfmanagement_delayed_shipout_bool + { + \cs_set_protected:Npn \__pdf_backend_bdc_shipout_contstream:ee #1 #2 + { + \__kernel_backend_shipout_literal:e {pdf:code~ /#1~<<#2>>~BDC } + } + \cs_set_eq:NN \__pdf_backend_bdc_shipout:ee \__pdf_backend_bdc_shipout_contstream:ee + } \cs_set_protected:Npn \__pdf_backend_emc: { \__kernel_backend_literal:n {pdf:code~EMC} %pdfbase diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase.lua b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase.lua index 8d8f5e3c635..02de44427b9 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase.lua +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3backend-testphase.lua @@ -22,6 +22,7 @@ + ltx= ltx or {} ltx.__pdf = ltx.__pdf or {} ltx.__pdf.Page = ltx.__pdf.Page or {} diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3pdffield-testphase.sty b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3pdffield-testphase.sty index 1e74f4b0769..83c9df66fca 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3pdffield-testphase.sty +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/l3pdffield-testphase.sty @@ -27,7 +27,7 @@ %% File: l3pdffield.dtx \NeedsTeXFormat{LaTeX2e} -\ProvidesExplPackage{l3pdffield-testphase}{2023-03-09}{0.95x}% +\ProvidesExplPackage{l3pdffield-testphase}{2023-08-20}{0.95y}% {form fields} \csname HyField@NeedAppearancesfalse\endcsname % suppress NeedAppearances \str_new:N \l__pdffield_tmpa_str 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 deleted file mode 100644 index 65274b4fc50..00000000000 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/output-patches-tmp-ltx.sty +++ /dev/null @@ -1,74 +0,0 @@ -%% -%% 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-2023 Frank Mittelbach -\ProvidesPackage{output-patches-tmp-ltx} - [2022-10-29 v0.96 Temporary output patches for tagging and better link support] -\RequirePackage{etoolbox} -\providecommand\@kernel@before@head{} -\providecommand\@kernel@before@foot{} -\providecommand\@kernel@after@head{} -\providecommand\@kernel@after@foot{} -\providecommand\@mult@ptagging@hook{}% multicol - -\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 } -\@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 } - - - \pretocmd\@makecol{\@kernel@before@cclv} - {\typeout{Patching \string\@makecol\space for tagging}}{\PATCHerror } - } -\AddToHook{package/multicol/after} - {% 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'. diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-firstaid.sty b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-firstaid.sty index bf2e8557eba..9668e7042de 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-firstaid.sty +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-firstaid.sty @@ -19,7 +19,7 @@ %% and all files in that bundle must be distributed together. %% %% File: pdfmanagement-firstaid.dtx -\ProvidesExplPackage{pdfmanagement-firstaid}{2023-03-09}{0.95x} +\ProvidesExplPackage{pdfmanagement-firstaid}{2023-08-20}{0.95y} {LaTeX PDF management testphase bundle / firstaid-patches} \clist_map_inline:nn @@ -60,16 +60,6 @@ }{} } } -\bool_if:NT \g__pdfmanagement_firstaid_output_bool - { - \file_if_exist:nF {new-or-1-latex-lab-testphase.ltx} - { - \AddToHook{package/latex-lab-testphase-new-or/after} - {\RequirePackage{output-patches-tmp-ltx}} - \AddToHook{package/tagpdf/after} - {\RequirePackage{output-patches-tmp-ltx}} - } - } \bool_if:NT \g__pdfmanagement_firstaid_color_bool { diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphase.ltx b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphase.ltx index 5b43835e3a3..62e38f5e3a5 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphase.ltx +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphase.ltx @@ -27,8 +27,49 @@ %% and all files in that bundle must be distributed together. %% %% File: pdfmanagement-testphase.dtx -\ProvidesExplFile{pdfmanagement-testphase.ltx}{2023-03-09}{0.95x} +\ProvidesExplFile{pdfmanagement-testphase.ltx}{2023-08-20}{0.95y} {PDF~management~code~(testphase)} +\bool_new:N\l__pdfmanagement_delayed_shipout_bool +\msg_new:nnn {pdfmanagement}{delayed-shipout} + { + The~engine~is~too~old!\\ + \tl_to_str:n{\pdf_bdc_shipout:ee}~can~not~be~used. + } +\sys_if_engine_luatex:T + { + \int_compare:nNnT {\tex_luatexversion:D} > {116} + { + \bool_set_true:N\l__pdfmanagement_delayed_shipout_bool + } + } +\sys_if_engine_pdftex:T + { + \fp_compare:nNnT{\int_use:N\tex_pdftexversion:D.\tex_pdftexrevision:D}>{140.24} + { + \bool_set_true:N\l__pdfmanagement_delayed_shipout_bool + } + } +\sys_if_engine_ptex:T + { + \int_compare:nNnT{\tex_epTeXversion:D} > {230213} + { + \bool_set_true:N\l__pdfmanagement_delayed_shipout_bool + } + } +\sys_if_engine_uptex:T + { + \int_compare:nNnT{\tex_epTeXversion:D} > {230213} + { + \bool_set_true:N\l__pdfmanagement_delayed_shipout_bool + } + } +\sys_if_engine_xetex:T + { + \fp_compare:nNnT{\int_use:N\tex_XeTeXversion:D\tex_XeTeXrevision:D} > {0.999994} + { + \bool_set_true:N\l__pdfmanagement_delayed_shipout_bool + } + } %% File: l3pdfdict.dtx \cs_new:Npn \__pdfdict_get_type:n #1 { @@ -1733,7 +1774,11 @@ _pdfstandard / X-6p .code:n = {\AddToDocumentProperties [document]{pdfstandard-X}{PDF/X-6p}}, _pdfstandard / UA-1 .code:n = - {\AddToDocumentProperties [document]{pdfstandard-UA}{1}}, + { + \AddToDocumentProperties [document]{pdfstandard-UA}{{1}{2016}} + }, + _pdfstandard / UA-2 .code:n = + {\AddToDocumentProperties [document]{pdfstandard-UA}{{2}{2023}}}, xmp .bool_gset:N = \g__pdfmeta_xmp_bool } \bool_new:N \g__pdfmeta_xmp_export_bool @@ -2168,6 +2213,12 @@ {Integer} {internal} {Part~of~ISO~14289~standard} +\__pdfmeta_xmp_property_new:nnnnn + {pdfuaid} + {rev} + {Integer} + {internal} + {Revision~of~ISO~14289~standard} \__pdfmeta_xmp_schema_new:nnn {PDF/X~ID~Schema} {pdfxid} @@ -2358,8 +2409,13 @@ {\__pdfmeta_xmp_add_packet_line:nne {pdfaid}{rev} {\pdfmeta_standard_item:n{year}}} \__pdfmeta_xmp_add_packet_line:nne {pdfxid}{GTS_PDFXVersion}{\GetDocumentProperties{document/pdfstandard-X}} - \__pdfmeta_xmp_add_packet_line:nne - {pdfuaid}{part}{\GetDocumentProperties{document/pdfstandard-UA}} + \pdfmanagement_get_documentproperties:nNT {document/pdfstandard-UA}\l__pdfmeta_tmpa_tl + { + \__pdfmeta_xmp_add_packet_line:nne + {pdfuaid}{part}{\exp_last_unbraced:No\use_i:nn \l__pdfmeta_tmpa_tl} + \__pdfmeta_xmp_add_packet_line:nne + {pdfuaid}{rev}{\exp_last_unbraced:No\use_ii:nn \l__pdfmeta_tmpa_tl} + } } \cs_new_protected:Npn \__pdfmeta_xmp_build_photoshop: @@ -2599,11 +2655,15 @@ { \prop_gput:Nnn \g__str_alias_prop { default } { utf8 } } +\msg_new:nnn {pdfmanagement}{ unknown-convert} + { + Unknown~string~conversion~method~'#1'! + } \cs_new:Npn \pdf_string_from_unicode:nnN #1 #2 #3 { \cs_if_exist_use:cF { __pdf_string_from_unicode_#1:nN } { - \__kernel_msg_error:nnn { pdf } { unknown-convert } {#1} + \msg_error:nnn { pdf } { unknown-convert } {#1} \use_none:nn } { #2 } #3 @@ -2705,6 +2765,20 @@ } \cs_new_protected:Npn \pdf_bdc:nn #1 #2 { \__pdf_backend_bdc:nn { #1 }{ #2 } } +\cs_generate_variant:Nn \pdf_bdc:nn {ee} + +\cs_new_protected:Npn \pdf_bdc_shipout:ee #1 #2 + { + \bool_if:NTF\l__pdfmanagement_delayed_shipout_bool + { + \__pdf_backend_bdc_shipout:ee { #1 }{ #2 } + \cs_gset_eq:NN \pdf_bdc_shipout:ee \__pdf_backend_bdc_shipout:ee + } + { + \msg_error:nn {pdfmanagement}{delayed-shipout} + \cs_gset_eq:NN \pdf_bdc_shipout:ee \use_none:nn + } + } \cs_new_protected:Npn \pdf_bdcobject:nn #1 #2 { \__pdf_backend_bdcobject:nn { #1 }{ #2 } } \cs_new_protected:Npn \pdf_bdcobject:n #1 { \__pdf_backend_bdcobject:n { #1 } } \cs_new_protected:Npn \pdf_bmc:n #1 { \__pdf_backend_bmc:n { #1 } } diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphase.sty b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphase.sty index a07962f8eb8..bf7973e63d0 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphase.sty +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/pdfmanagement-testphase.sty @@ -19,7 +19,7 @@ %% and all files in that bundle must be distributed together. %% %% File: pdfmanagement-testphase.dtx -\ProvidesExplPackage{pdfmanagement-testphase}{2023-03-09}{0.95x} +\ProvidesExplPackage{pdfmanagement-testphase}{2023-08-20}{0.95y} {LaTeX PDF management testphase bundle} \providecommand\IfFormatAtLeastTF{\@ifl@t@r\fmtversion} \IfFormatAtLeastTF{2020-10-01}{}{ diff --git a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/xcolor-patches-tmp-ltx.sty b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/xcolor-patches-tmp-ltx.sty index 192e4b77a1e..2e2fb2edabf 100644 --- a/Master/texmf-dist/tex/latex/pdfmanagement-testphase/xcolor-patches-tmp-ltx.sty +++ b/Master/texmf-dist/tex/latex/pdfmanagement-testphase/xcolor-patches-tmp-ltx.sty @@ -1,6 +1,6 @@ %% LaTeX2e file `xcolor-patches.sty' %% -\ProvidesPackage{xcolor-patches-tmp-ltx}[2023-03-09 v0.95x patch xcolor for l3color] +\ProvidesPackage{xcolor-patches-tmp-ltx}[2023-08-20 v0.95y patch xcolor for l3color] \@ifundefined{color_set:nn}{\RequirePackage{l3color}}{} \ExplSyntaxOn |