texlive[76116] Master/texmf-dist: newpax (22aug25)
commits+karl at tug.org
commits+karl at tug.org
Fri Aug 22 23:32:00 CEST 2025
Revision: 76116
https://tug.org/svn/texlive?view=revision&revision=76116
Author: karl
Date: 2025-08-22 23:32:00 +0200 (Fri, 22 Aug 2025)
Log Message:
-----------
newpax (22aug25)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/newpax/README.md
trunk/Master/texmf-dist/doc/latex/newpax/doc-input1.pdf
trunk/Master/texmf-dist/doc/latex/newpax/doc-input1.tex
trunk/Master/texmf-dist/doc/latex/newpax/doc-input2.pdf
trunk/Master/texmf-dist/doc/latex/newpax/doc-input2.tex
trunk/Master/texmf-dist/doc/latex/newpax/doc-use-newpax.pdf
trunk/Master/texmf-dist/doc/latex/newpax/doc-use-newpax.tex
trunk/Master/texmf-dist/doc/latex/newpax/doc-use-pax.pdf
trunk/Master/texmf-dist/doc/latex/newpax/newpax.pdf
trunk/Master/texmf-dist/doc/latex/newpax/newpax.tex
trunk/Master/texmf-dist/source/latex/newpax/newpax.dtx
trunk/Master/texmf-dist/source/latex/newpax/newpax.ins
trunk/Master/texmf-dist/tex/latex/newpax/newpax.lua
trunk/Master/texmf-dist/tex/latex/newpax/newpax.sty
Modified: trunk/Master/texmf-dist/doc/latex/newpax/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/newpax/README.md 2025-08-22 21:31:48 UTC (rev 76115)
+++ trunk/Master/texmf-dist/doc/latex/newpax/README.md 2025-08-22 21:32:00 UTC (rev 76116)
@@ -7,7 +7,7 @@
The package is based on and uses code from [pax](https://ctan.org/pkg/pax) by Heiko Oberdiek.
-Packageversion: 0.55
+Packageversion: 0.56
Packagedate: 2023-09-11 Author: Ulrike Fischer
## License
Modified: trunk/Master/texmf-dist/doc/latex/newpax/doc-input1.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/newpax/doc-input1.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/newpax/doc-input1.tex 2025-08-22 21:31:48 UTC (rev 76115)
+++ trunk/Master/texmf-dist/doc/latex/newpax/doc-input1.tex 2025-08-22 21:32:00 UTC (rev 76116)
@@ -1,5 +1,5 @@
% !Mode:: "TeX:UTF-8:Main"
-\DocumentMetadata{uncompress}
+\RequirePackage{pdfmanagement}
\documentclass{article}
\usepackage{hyperref}
Modified: trunk/Master/texmf-dist/doc/latex/newpax/doc-input2.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/newpax/doc-input2.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/newpax/doc-input2.tex 2025-08-22 21:31:48 UTC (rev 76115)
+++ trunk/Master/texmf-dist/doc/latex/newpax/doc-input2.tex 2025-08-22 21:32:00 UTC (rev 76116)
@@ -1,5 +1,5 @@
% !Mode:: "TeX:UTF-8:Main"
-\DocumentMetadata{uncompress}
+\RequirePackage{pdfmanagement}
\documentclass{article}
\usepackage{hyperref}
Modified: trunk/Master/texmf-dist/doc/latex/newpax/doc-use-newpax.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/newpax/doc-use-newpax.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/newpax/doc-use-newpax.tex 2025-08-22 21:31:48 UTC (rev 76115)
+++ trunk/Master/texmf-dist/doc/latex/newpax/doc-use-newpax.tex 2025-08-22 21:32:00 UTC (rev 76116)
@@ -1,7 +1,7 @@
% !Mode:: "TeX:UTF-8:Main"
% The next command needs LaTeX 2022-06-01, for older formats see documentation
% of pdfmanagement-testphase
-\DocumentMetadata{uncompress}
+\RequirePackage{pdfmanagement}
\documentclass{article}
\usepackage{pdfpages,xcolor}
Modified: trunk/Master/texmf-dist/doc/latex/newpax/doc-use-pax.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/newpax/newpax.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/newpax/newpax.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/newpax/newpax.tex 2025-08-22 21:31:48 UTC (rev 76115)
+++ trunk/Master/texmf-dist/doc/latex/newpax/newpax.tex 2025-08-22 21:32:00 UTC (rev 76116)
@@ -1,9 +1,10 @@
% !Mode:: "TeX:UTF-8:Main"
\makeatletter
-\def\UlrikeFischer at package@version{0.55}
-\def\UlrikeFischer at package@date{2023-11-08}
+\def\UlrikeFischer at package@version{0.56}
+\def\UlrikeFischer at package@date{2025-08-21}
\makeatother
-\DocumentMetadata{pdfversion=1.7,lang=en-UK, uncompress}
+\RequirePackage{pdfmanagement}
+\SetKeys[document/metadata]{pdfversion=1.7,lang=en-UK}
\documentclass[DIV=12,parskip=half-,bibliography=totoc]{scrartcl}
\usepackage{scrlayer-scrpage}
@@ -57,11 +58,11 @@
The \pkg{pax} package from Heiko Oberdiek offers a solution for this problem: it extracts all the annotations
and destinations of the included PDF in a text file, does some clever recalculations of their coordinates and reinserts them.
The package works basically fine but has a few drawbacks: To collect the annotation one has to run an external
-java program which relies on an now outdated library, and it works only with pdf\LaTeX{}.
+java program which relies on a now outdated library, and it works only with pdf\LaTeX{}.
The \pkg{newpax} tries to address these problems. It offers a lua script to extract the annotations.
The script can be used with lua(la)tex and no external tools are needed. The annotations can
-then be reinserted either with the \pkg{pax.sty} or with the new \pkg{newpax.sty} whose code based in large parts on the \pkg{pax} package: it uses its data structure and the original code to calculate the coordinates (with a few minor bug corrections), but the pdf\LaTeX{} primitives have been replaced by commands from the new \LaTeX{} PDF management in \pkg{pdfmanagement-testphase} so it should works with all major engines and backends (with the exception of dvips).
+then be reinserted either with the \pkg{pax.sty} or with the new \pkg{newpax.sty} whose code is based in large parts on the \pkg{pax} package: it uses its data structure and the original code to calculate the coordinates (with a few minor bug corrections), but the pdf\LaTeX{} primitives have been replaced by commands from the \LaTeX{} PDF management in \pkg{pdfmanagement-testphase} so it should works with all major engines and backends (with the exception of dvips).
\section{Quick use instructions}
@@ -87,8 +88,8 @@
\subsection{Step 2: Using the \texttt{.newpax}-file with \texorpdfstring{\pkg{newpax}}{newpax}}
The package \pkg{newpax} is based on the package \pkg{pax} but extends it in various way.
-It is still an experimental package, and it requires the new \LaTeX{} PDF management
-code in \pkg{pdfmanagement-testphase} package. This new code is---as the name implies---currently in the testphase and \emph{not} compatible with every package!
+It requires the \LaTeX{} PDF management
+code in the \pkg{pdfmanagement-testphase} package. The PDF management is \emph{not} compatible with every package, check its documentation!
The following listing shows how to use \pkg{newpax}.
Modified: trunk/Master/texmf-dist/source/latex/newpax/newpax.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/newpax/newpax.dtx 2025-08-22 21:31:48 UTC (rev 76115)
+++ trunk/Master/texmf-dist/source/latex/newpax/newpax.dtx 2025-08-22 21:32:00 UTC (rev 76116)
@@ -29,12 +29,12 @@
%<@@=newpax>
\NeedsTeXFormat{LaTeX2e}[2022-11-01]
\ProvidesPackage{newpax}%
- [2023-11-08 v0.55 Annotation support for PDF graphics based on pax.sty adapted by (UF)]%
+ [2025-08-21 v0.56 Annotation support for PDF graphics based on pax.sty adapted by (UF)]%
% \end{macrocode}
% Test if the pdfmanagement is loaded:
% \begin{macrocode}
\ExplSyntaxOn
-\IfDocumentMetadataTF
+\IfPDFManagementActiveTF
{}
{ %error for now, perhaps warning later.
\PackageError{newpax}
@@ -44,7 +44,7 @@
}
{
Load~it~with \MessageBreak
- \string\DocumentMetadata{}\MessageBreak
+ \string\RequirePackage{pdfmanagement}\MessageBreak
before~loading~the~class
}
}
@@ -919,8 +919,8 @@
%<*lua>
local ProvidesLuaModule = {
name = "newpax",
- version = "0.55", --TAGVERSION
- date = "2023-11-08", --TAGDATE
+ version = "0.56", --TAGVERSION
+ date = "2025-08-21", --TAGDATE
description = "newpax lua code",
license = "The LATEX Project Public License 1.3c"
}
@@ -1438,9 +1438,13 @@
WRITE ( outputKV_Border (annot) )
WRITE ( outputKV_BS (annot) )
WRITE ( outputKV_goto (destcountVAR) )
+ local type,annotgoto,hex = GETFROMDICTIONARY(annot,"Dest")
+ -- if the Dest is a string add the string as a name:
+ if type == 6 then
+ WRITE ( outputKV_goto_name(annotgoto) )
+ end
WRITE(strKVS_END) -- end KVS
- WRITE(strENTRY_END) -- end annot data
- local type,annotgoto,hex = GETFROMDICTIONARY(annot,"Dest")
+ WRITE(strENTRY_END) -- end annot data
table.insert(collected_destinations, outputENTRY_dest(destcountVAR,
annotgoto,pagereftonumVAR,destnamestorefVAR,docVAR))
else
Modified: trunk/Master/texmf-dist/source/latex/newpax/newpax.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/newpax/newpax.ins 2025-08-22 21:31:48 UTC (rev 76115)
+++ trunk/Master/texmf-dist/source/latex/newpax/newpax.ins 2025-08-22 21:32:00 UTC (rev 76116)
@@ -2,7 +2,7 @@
File: newpax.ins
-Copyright (C) 2021,2022 Ulrike Fischer
+Copyright (C) 2021-2025 Ulrike Fischer
It may be distributed and/or modified under the conditions of the
LaTeX Project Public License (LPPL), either version 1.3c of this
@@ -34,7 +34,7 @@
\let\MetaPrefix\relax
\preamble
-Copyright (C) 2021,2022 Ulrike Fischer
+Copyright (C) 2021-2025 Ulrike Fischer
It may be distributed and/or modified under the conditions of
the LaTeX Project Public License (LPPL), either version 1.3c of
Modified: trunk/Master/texmf-dist/tex/latex/newpax/newpax.lua
===================================================================
--- trunk/Master/texmf-dist/tex/latex/newpax/newpax.lua 2025-08-22 21:31:48 UTC (rev 76115)
+++ trunk/Master/texmf-dist/tex/latex/newpax/newpax.lua 2025-08-22 21:32:00 UTC (rev 76116)
@@ -6,7 +6,7 @@
--
-- newpax.dtx (with options: `lua')
--
--- Copyright (C) 2021,2022 Ulrike Fischer
+-- Copyright (C) 2021-2025 Ulrike Fischer
--
-- It may be distributed and/or modified under the conditions of
-- the LaTeX Project Public License (LPPL), either version 1.3c of
@@ -20,8 +20,8 @@
--
local ProvidesLuaModule = {
name = "newpax",
- version = "0.55", --TAGVERSION
- date = "2023-11-08", --TAGDATE
+ version = "0.56", --TAGVERSION
+ date = "2025-08-21", --TAGDATE
description = "newpax lua code",
license = "The LATEX Project Public License 1.3c"
}
@@ -524,9 +524,13 @@
WRITE ( outputKV_Border (annot) )
WRITE ( outputKV_BS (annot) )
WRITE ( outputKV_goto (destcountVAR) )
+ local type,annotgoto,hex = GETFROMDICTIONARY(annot,"Dest")
+ -- if the Dest is a string add the string as a name:
+ if type == 6 then
+ WRITE ( outputKV_goto_name(annotgoto) )
+ end
WRITE(strKVS_END) -- end KVS
WRITE(strENTRY_END) -- end annot data
- local type,annotgoto,hex = GETFROMDICTIONARY(annot,"Dest")
table.insert(collected_destinations, outputENTRY_dest(destcountVAR,
annotgoto,pagereftonumVAR,destnamestorefVAR,docVAR))
else
Modified: trunk/Master/texmf-dist/tex/latex/newpax/newpax.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/newpax/newpax.sty 2025-08-22 21:31:48 UTC (rev 76115)
+++ trunk/Master/texmf-dist/tex/latex/newpax/newpax.sty 2025-08-22 21:32:00 UTC (rev 76116)
@@ -6,7 +6,7 @@
%%
%% newpax.dtx (with options: `package')
%%
-%% Copyright (C) 2021,2022 Ulrike Fischer
+%% Copyright (C) 2021-2025 Ulrike Fischer
%%
%% It may be distributed and/or modified under the conditions of
%% the LaTeX Project Public License (LPPL), either version 1.3c of
@@ -20,9 +20,9 @@
%%
\NeedsTeXFormat{LaTeX2e}[2022-11-01]
\ProvidesPackage{newpax}%
- [2023-11-08 v0.55 Annotation support for PDF graphics based on pax.sty adapted by (UF)]%
+ [2025-08-21 v0.56 Annotation support for PDF graphics based on pax.sty adapted by (UF)]%
\ExplSyntaxOn
-\IfDocumentMetadataTF
+\IfPDFManagementActiveTF
{}
{ %error for now, perhaps warning later.
\PackageError{newpax}
@@ -32,7 +32,7 @@
}
{
Load~it~with \MessageBreak
- \string\DocumentMetadata{}\MessageBreak
+ \string\RequirePackage{pdfmanagement}\MessageBreak
before~loading~the~class
}
}
More information about the tex-live-commits
mailing list.