texlive[54098] Master/texmf-dist: zref (4mar20)

commits+karl at tug.org commits+karl at tug.org
Thu Mar 5 01:53:33 CET 2020


Revision: 54098
          http://tug.org/svn/texlive?view=revision&revision=54098
Author:   karl
Date:     2020-03-05 01:53:33 +0100 (Thu, 05 Mar 2020)
Log Message:
-----------
zref (4mar20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/zref/zref.pdf
    trunk/Master/texmf-dist/source/latex/zref/zref.dtx
    trunk/Master/texmf-dist/tex/latex/zref/zref-abspage.sty
    trunk/Master/texmf-dist/tex/latex/zref/zref-abspos.sty
    trunk/Master/texmf-dist/tex/latex/zref/zref-base.sty
    trunk/Master/texmf-dist/tex/latex/zref/zref-counter.sty
    trunk/Master/texmf-dist/tex/latex/zref/zref-dotfill.sty
    trunk/Master/texmf-dist/tex/latex/zref/zref-env.sty
    trunk/Master/texmf-dist/tex/latex/zref/zref-hyperref.sty
    trunk/Master/texmf-dist/tex/latex/zref/zref-lastpage.sty
    trunk/Master/texmf-dist/tex/latex/zref/zref-marks.sty
    trunk/Master/texmf-dist/tex/latex/zref/zref-nextpage.sty
    trunk/Master/texmf-dist/tex/latex/zref/zref-pageattr.sty
    trunk/Master/texmf-dist/tex/latex/zref/zref-pagelayout.sty
    trunk/Master/texmf-dist/tex/latex/zref/zref-perpage.sty
    trunk/Master/texmf-dist/tex/latex/zref/zref-runs.sty
    trunk/Master/texmf-dist/tex/latex/zref/zref-savepos.sty
    trunk/Master/texmf-dist/tex/latex/zref/zref-thepage.sty
    trunk/Master/texmf-dist/tex/latex/zref/zref-titleref.sty
    trunk/Master/texmf-dist/tex/latex/zref/zref-totpages.sty
    trunk/Master/texmf-dist/tex/latex/zref/zref-user.sty
    trunk/Master/texmf-dist/tex/latex/zref/zref-xr.sty
    trunk/Master/texmf-dist/tex/latex/zref/zref.sty

Modified: trunk/Master/texmf-dist/doc/latex/zref/zref.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/zref/zref.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/zref/zref.dtx	2020-03-05 00:53:15 UTC (rev 54097)
+++ trunk/Master/texmf-dist/source/latex/zref/zref.dtx	2020-03-05 00:53:33 UTC (rev 54098)
@@ -1,7 +1,7 @@
 % \iffalse meta-comment
 %
 % File: zref.dtx
-% Version: 2019/11/29 v2.28
+% Version: 2020-03-03 v2.29
 % Info: A new reference scheme for LaTeX
 %
 % Copyright (C)
@@ -95,10 +95,6 @@
 %    TDS:doc/latex/zref/zref-example.tex
 %    TDS:doc/latex/zref/zref-example-lastpage.tex
 %    TDS:doc/latex/zref/zref-example-nextpage.tex
-%    TDS:doc/latex/zref/test/zref-test1.tex
-%    TDS:doc/latex/zref/test/zref-test-base.tex
-%    TDS:doc/latex/zref/test/zref-test-runs.tex
-%    TDS:doc/latex/zref/test/zref-test-titleref-memoir.tex
 %    TDS:source/latex/zref/zref.dtx
 %
 %<*ignore>
@@ -116,7 +112,7 @@
 \input docstrip.tex
 \Msg{************************************************************************}
 \Msg{* Installation}
-\Msg{* Package: zref 2019/11/29 v2.28 A new reference scheme for LaTeX (HO)}
+\Msg{* Package: zref 2020-03-03 v2.29 A new reference scheme for LaTeX (HO)}
 \Msg{************************************************************************}
 
 \keepsilent
@@ -128,11 +124,11 @@
 This is a generated file.
 
 Project: zref
-Version: 2019/11/29 v2.28
+Version: 2020-03-03 v2.29
 
 Copyright (C)
   2006-2012 Heiko Oberdiek
-  2016-2019 Oberdiek Package Support Group
+  2016-2020 Oberdiek Package Support Group
 
 This work may be distributed and/or modified under the
 conditions of the LaTeX Project Public License, either
@@ -202,10 +198,6 @@
 %  \file{zref-test-base.tex}{\from{zref.dtx}{test-base}}%
 %  \file{zref-test-runs.tex}{\from{zref.dtx}{test-runs}}%
 %  \file{zref-test-titleref-memoir.tex}{\from{zref.dtx}{test-titleref-memoir}}%
-  \nopreamble
-  \nopostamble
-%  \usedir{source/latex/zref/catalogue}%
-%  \file{zref.xml}{\from{zref.dtx}{catalogue}}%
 }
 
 \catcode32=13\relax% active space
@@ -238,7 +230,7 @@
 %<*driver>
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesFile{zref.drv}%
-  [2019/11/29 v2.28 A new reference scheme for LaTeX (HO)]%
+  [2020-03-03 v2.29 A new reference scheme for LaTeX (HO)]%
 \documentclass{ltxdoc}
 \usepackage{holtxdoc}[2011/11/22]
 \setlength{\emergencystretch}{1em}
@@ -249,26 +241,11 @@
 % \fi
 %
 %
-% \CharacterTable
-%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%   Digits        \0\1\2\3\4\5\6\7\8\9
-%   Exclamation   \!     Double quote  \"     Hash (number) \#
-%   Dollar        \$     Percent       \%     Ampersand     \&
-%   Acute accent  \'     Left paren    \(     Right paren   \)
-%   Asterisk      \*     Plus          \+     Comma         \,
-%   Minus         \-     Point         \.     Solidus       \/
-%   Colon         \:     Semicolon     \;     Less than     \<
-%   Equals        \=     Greater than  \>     Question mark \?
-%   Commercial at \@     Left bracket  \[     Backslash     \\
-%   Right bracket \]     Circumflex    \^     Underscore    \_
-%   Grave accent  \`     Left brace    \{     Vertical bar  \|
-%   Right brace   \}     Tilde         \~}
 %
 % \GetFileInfo{zref.drv}
 %
 % \title{The \xpackage{zref} package}
-% \date{2019/11/29 v2.28}
+% \date{2020-03-03 v2.29}
 % \author{Heiko Oberdiek\thanks
 % {Please report any issues at \url{https://github.com/ho-tex/zref/issues}}}
 %
@@ -878,6 +855,10 @@
 %
 % With the help of package \xpackage{atbegshi}
 % a new counter |abspage| with absolute page numbers is provided.
+% For technical and historical reasons the counter itself is zero based:
+% if you use it directly on the first page, e.g
+% with |\arabic{abspage}| you will get 0 as value. When using |\zref|
+% the first page will be page 1 as expected.
 % Also a new property |abspage| is defined and added to the
 % main property list. Thus you can reference the absolute
 % page number:
@@ -1339,6 +1320,46 @@
 % The property list |savepos| contains the properties |posx|
 % and |posy|.
 %
+% \subsection{Module \xmodule{abspos}}
+% Module \xmodule{abspos} allows to get various values of the page layout. There is no user
+% command, only a number of internal commands. For example:
+% \begin{quote}
+%   |\zref at absposx{|\meta{label}|}{|\meta{value}|}{|\meta{position}|}|\\
+%   |\zref at absposy{|\meta{label}|}{|\meta{value}|}{|\meta{position}|}|
+% \end{quote}
+%
+% The return value is like in the module \xmodule{savepos} a number representing a length in sp.
+% The length are measured from the bottom left of the page.
+%
+% \meta{label} is a label set with \cs{zlabel} or \cs{zsavepos} that allows to retrieve the
+% absolute page number.
+%
+% \meta{position} is for the x-command one of |left|, |right| or |center|. For the y-command
+%  it is one of |top|, |bottom|, |center|.
+%
+% The possible content of \meta{value} can be seen in the following table. Be aware that the code
+% makes some assumptions which are perhaps not always true -- for example that the left of
+% the head is identical to the left of the body.
+%
+% \medskip
+% \begin{tabular}{lll}
+%  \textbf{value} & \textbf{axis} & \textbf{comments}\\\hline
+%   media         & x             &   left=0, right=\cs{pdfpagewidth} \\
+%   paper         & x             &   left=0, right=\cs{paperwidth}\\
+%   stock         & x             &   derived from paper\\
+%   media         & y             & bottom=0, top=\cs{pdfpageheigh}\\
+%   paper         & y             & top=\cs{pdfpageheight}, bottom=top-\cs{paperheight}\\
+%   stock         & y             & top  derived from paper\\
+%   head          & x             & calculated with hoffset, horigin, etc\\
+%   head          & y             & calculated\\
+%   body          & x             & = head value\\%
+%   body          & y             & = head bottom - \cs{headsep}\\
+%   foot          & x             & = head\\
+%   foot          & y             & calculated from body bottom and \cs{footskip}\\
+%   marginpar     & x             &different on odd/even pages! \\
+%   marginpar     & y             & = body %
+% \end{tabular}
+%
 % \subsection{Module \xmodule{dotfill}}
 %
 % \begin{declcs}{zdotfill}
@@ -1433,6 +1454,17 @@
 % this macro as extension. \cs{XR at ext} is used if
 % \xpackage{hyperref} is loaded, otherwise |pdf|.
 %
+% \subsection{Module \xmodule{pageattr}}
+%
+% This module allows to recover the content of the register
+% \cs{pdfpageattr} and \cs{pdfpagesattr} in pdftex and the equivalent register
+% in luatex. There is no user command. Programmer commands are
+%
+% \begin{quote}
+% |\zref at pdfpageattr{|\meta{absolute page number}|}|
+%
+% |\zref at pdfpagesattr{|\meta{absolute page number}|}|
+% \end{quote}
 % \section{ToDo}\label{sec:todo}
 %
 % Among other things the following issues are left for future work:
@@ -1631,7 +1663,7 @@
 %<*package>
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref}
-  [2019/11/29 v2.28 A new reference scheme for LaTeX (HO)]%
+  [2020-03-03 v2.29 A new reference scheme for LaTeX (HO)]%
 %    \end{macrocode}
 %
 % \subsubsection{Load basic module}
@@ -1718,7 +1750,7 @@
 %<*base>
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-base}%
-  [2019/11/29 v2.28 Module base for zref (HO)]%
+  [2020-03-03 v2.29 Module base for zref (HO)]%
 %    \end{macrocode}
 %
 % \subsubsection{Utilities}
@@ -3025,7 +3057,7 @@
 %<*user>
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-user}%
-  [2019/11/29 v2.28 Module user for zref (HO)]%
+  [2020-03-03 v2.29 Module user for zref (HO)]%
 \RequirePackage{zref-base}[2019/11/29]
 \ifx\ZREF at base@ok Y%
 \else
@@ -3116,7 +3148,7 @@
 %<*abspage>
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-abspage}%
-  [2019/11/29 v2.28 Module abspage for zref (HO)]%
+  [2020-03-03 v2.29 Module abspage for zref (HO)]%
 \RequirePackage{zref-base}[2019/11/29]
 \ifx\ZREF at base@ok Y%
 \else
@@ -3164,7 +3196,7 @@
 %<*counter>
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-counter}%
-  [2019/11/29 v2.28 Module counter for zref (HO)]%
+  [2020-03-03 v2.29 Module counter for zref (HO)]%
 \RequirePackage{zref-base}[2019/11/29]
 \ifx\ZREF at base@ok Y%
 \else
@@ -3204,7 +3236,7 @@
 %<*lastpage>
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-lastpage}%
-  [2019/11/29 v2.28 Module lastpage for zref (HO)]%
+  [2020-03-03 v2.29 Module lastpage for zref (HO)]%
 \RequirePackage{zref-base}[2019/11/29]
 \RequirePackage{zref-abspage}[2019/11/29]
 \RequirePackage{atveryend}[2009/12/07]
@@ -3276,7 +3308,7 @@
 %<*thepage>
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-thepage}%
-  [2019/11/29 v2.28 Module thepage for zref (HO)]%
+  [2020-03-03 v2.29 Module thepage for zref (HO)]%
 \RequirePackage{zref-base}[2019/11/29]
 \ifx\ZREF at base@ok Y%
 \else
@@ -3351,7 +3383,7 @@
 %<*nextpage>
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-nextpage}%
-  [2019/11/29 v2.28 Module nextpage for zref (HO)]%
+  [2020-03-03 v2.29 Module nextpage for zref (HO)]%
 \RequirePackage{zref-base}[2019/11/29]
 \ifx\ZREF at base@ok Y%
 \else
@@ -3455,7 +3487,7 @@
 %<*totpages>
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-totpages}%
-  [2019/11/29 v2.28 Module totpages for zref (HO)]%
+  [2020-03-03 v2.29 Module totpages for zref (HO)]%
 \RequirePackage{zref-base}[2019/11/29]
 \ifx\ZREF at base@ok Y%
 \else
@@ -3497,7 +3529,7 @@
 %<*pagelayout>
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-pagelayout}%
-  [2019/11/29 v2.28 Module pagelayout for zref (HO)]%
+  [2020-03-03 v2.29 Module pagelayout for zref (HO)]%
 \RequirePackage{zref-base}[2019/11/29]
 \ifx\ZREF at base@ok Y%
 \else
@@ -3511,40 +3543,7 @@
 \RequirePackage{atveryend}[2010/03/24]
 %    \end{macrocode}
 %
-% \subsubsection{Support for \hologo{LuaTeX}}
 %
-%    \begin{macrocode}
-\ifluatex
-  \ifnum\luatexversion<39 %
-  \else
-    \begingroup
-      \escapechar=-1 %
-      \def\ZREF at temp#1{%
-        \ltx at IfUndefined{\string#1}{%
-          \let#1\ltx at undefined
-          \directlua{%
-            if tex.enableprimitives then %
-              tex.enableprimitives('', {'\string#1'})%
-            end%
-          }%
-          \ltx at ifundefined{\string#1}{%
-          }{%
-            \global#1=#1%
-            \@PackageInfoNoLine{zref-pagelayout}{%
-              \string#1 enabled%
-            }%
-          }%
-        }{}%
-      }%
-      \ZREF at temp\pdfpagewidth
-      \ZREF at temp\pdfpageheight
-      \ZREF at temp\pdfhorigin
-      \ZREF at temp\pdfvorigin
-    \endgroup
-  \fi
-\fi
-%    \end{macrocode}
-%
 % \subsubsection{Define layout properties}
 %
 %    \begin{macrocode}
@@ -3569,10 +3568,29 @@
 \ZREF at temp\stockheight % memoir.cls, crop.sty
 \ZREF at temp\mediawidth % VTeX
 \ZREF at temp\mediaheight % VTeX
+\ifluatex
+\zref at newprop*{pdfvorigin}%
+                             [\number\pdfvariable vorigin]% hash-ok
+                             {\number\pdfvariable vorigin}%
+\zref at addprop{thepage}{pdfvorigin}
+\zref at newprop*{pdfhorigin}%
+                             [\number\pdfvariable horigin]% hash-ok
+                             {\number\pdfvariable horigin}%
+\zref at addprop{thepage}{pdfhorigin}
+\zref at newprop*{pdfpageheight}%
+                             [\number\pageheight]% hash-ok
+                             {\number\pageheight}%
+\zref at addprop{thepage}{pdfpageheight}
+\zref at newprop*{pdfpagewidth}%
+                             [\number\pagewidth]% hash-ok
+                             {\number\pagewidth}%
+\zref at addprop{thepage}{pdfpagewidth}
+\else
 \ZREF at temp\pdfpagewidth
 \ZREF at temp\pdfpageheight
 \ZREF at temp\pdfhorigin
 \ZREF at temp\pdfvorigin
+\fi
 \ZREF at temp\hoffset
 \ZREF at temp\voffset
 \ZREF at temp\topmargin
@@ -3739,7 +3757,7 @@
 %<*pageattr>
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-pageattr}%
-  [2019/11/29 v2.28 Module pageattr for zref (HO)]%
+  [2020-03-03 v2.29 Module pageattr for zref (HO)]%
 \RequirePackage{zref-base}[2019/11/29]
 \ifx\ZREF at base@ok Y%
 \else
@@ -3751,61 +3769,48 @@
 \RequirePackage{iftex}[2019/11/07]%
 %    \end{macrocode}
 %
+%
 %    \begin{macrocode}
+\let\ZREF at temp=N%
 \ifluatex
-  \ifnum\luatexversion<39 %
-  \else
-    \begingroup
-      \escapechar=-1 %
-      \def\ZREF at temp#1{%
-        \ltx at IfUndefined{\string#1}{%
-          \let#1\ltx at undefined
-          \directlua{%
-            if tex.enableprimitives then %
-              tex.enableprimitives('', {'\string#1'})%
-            end%
-          }%
-          \ltx at ifundefined{\string#1}{%
-          }{%
-            \global#1=#1%
-            \@PackageInfoNoLine{zref-pageattr}{%
-              \string#1 enabled%
-            }%
-          }%
-        }{}%
-      }%
-      \ZREF at temp\pdfpageattr
-      \ZREF at temp\pdfpagesattr
-    \endgroup
-  \fi
+\expandafter\@firstoftwo
+\else
+\expandafter\@secondoftwo
 \fi
-%    \end{macrocode}
-%
-%    \begin{macrocode}
-\let\ZREF at temp=N%
-\ltx at IfUndefined{pdfpageattr}{%
+{%luatex
+ \RequirePackage{zref-thepage}[2019/11/29]
+ \RequirePackage{zref-lastpage}[2019/11/29]%
+ \zref at newprop*{pdfpageattr}[]{\zref at hex{\the\pdfvariable pageattr}}%
+ \zref at addprop{thepage}{pdfpageattr}%
+ \zref at newprop*{pdfpagesattr}[]{\zref at hex{\the\pdfvariable pagesattr}}%
+ \zref at addprop{LastPage}{pdfpagesattr}%
+ \let\ZREF at temp=Y%
+}
+{%other
+ \ltx at IfUndefined{pdfpageattr}{%
   \@PackageInfoNoLine{zref-pageattr}{%
     \string\pdfpageattr\space is not available%
   }%
   \def\zref at pdfpageattr#1{}%
   \def\zref at pdfpageattr@used#1{}%
-}{%
+ }{%
   \RequirePackage{zref-thepage}[2019/11/29]%
   \zref at newprop*{pdfpageattr}[]{\zref at hex{\the\pdfpageattr}}%
   \zref at addprop{thepage}{pdfpageattr}%
   \let\ZREF at temp=Y%
-}
-\ltx at IfUndefined{pdfpagesattr}{%
+ }
+ \ltx at IfUndefined{pdfpagesattr}{%
   \@PackageInfoNoLine{zref-pageattr}{%
     \string\pdfpagesattr\space is not available%
   }%
   \def\zref at pdfpagesattr{}%
   \def\zref at pdfpagesattr@used{}%
-}{%
+ }{%
   \RequirePackage{zref-lastpage}[2019/11/29]%
   \zref at newprop*{pdfpagesattr}[]{\zref at hex{\the\pdfpagesattr}}%
   \zref at addprop{LastPage}{pdfpagesattr}%
   \let\ZREF at temp=Y%
+ }%
 }%
 %    \end{macrocode}
 %    \begin{macrocode}
@@ -3863,12 +3868,23 @@
 %    \end{macro}
 %    \begin{macro}{\ZREF at pa@AtVeryEnd}
 %    \begin{macrocode}
-\ltx at IfUndefined{pdfpageattr}{%
+\let\ZREF at temp=Y%
+\ltx at IfUndefined{pdfpageattr}{}{\let\ZREF at temp=N}
+\ifluatex \let\ZREF at temp=N \fi
+\ifx\ZREF at temp Y
+ \expandafter\@firstoftwo
+\else
+ \expandafter\@secondoftwo
+\fi
+ {%
   \def\ZREF at pa@AtVeryEnd{}%
-}{%
+ }
+ {%
   \def\ZREF at pa@AtVeryEnd{%
     \begingroup
-      \toks@{List of \ltx at backslashchar pdfpageattr:\MessageBreak}%
+      \toks@{List of \ltx at backslashchar
+             \ifluatex pdfvariable\else pdf\fi
+             pdfpageattr:\MessageBreak}%
       \count@=1 %
       \ZREF at pa@ListPage
       \edef\x{\endgroup
@@ -3882,11 +3898,13 @@
 %    \end{macro}
 %    \begin{macro}{\zref at pageattr}
 %    \begin{macrocode}
-\def\zref at pageattr#1{%
+\def\zref at pdfpageattr#1{%
   \zref at unhex{%
     \zref at extract{thepage\ZREF at number{#1}}{pdfpageattr}%
   }%
 }
+% compability, \zref at pageattr was defined in older versions
+\let\zref at pageattr\zref at pdfpageattr
 %    \end{macrocode}
 %    \end{macro}
 %    \begin{macro}{\zref at pageattr@used}
@@ -3921,8 +3939,13 @@
 %    \end{macrocode}
 %    \end{macro}
 %    \begin{macrocode}
-\ltx at IfUndefined{pdfpagesattr}{%
-}{%
+\let\ZREF at temp=Y%
+\ltx at IfUndefined{pdfpagesattr}{}{\let\ZREF at temp=N}
+\ifluatex \let\ZREF at temp=N \fi
+\ifx\ZREF at temp N
+ \expandafter\@firstofone
+\fi
+ {%
 %    \end{macrocode}
 %    \begin{macro}{\zref at pdfpagesattr}
 %    \begin{macrocode}
@@ -3943,7 +3966,9 @@
 %    \begin{macrocode}
   \ltx at LocalAppendToMacro\ZREF at pa@AtVeryEnd{%
     \@PackageInfoNoLine{zref-pageattr}{%
-      \ltx at backslashchar pdfpagesattr:\MessageBreak
+      \ltx at backslashchar
+      \ifluatex pdfvariable\else pdf\fi
+      pagesattr:\MessageBreak
       <<\zref at pdfpagesattr>>%
       \MessageBreak
     }%
@@ -3964,7 +3989,7 @@
 %<*marks>
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-marks}%
-  [2019/11/29 v2.28 Module marks for zref (HO)]%
+  [2020-03-03 v2.29 Module marks for zref (HO)]%
 \RequirePackage{zref-base}[2019/11/29]
 \ifx\ZREF at base@ok Y%
 \else
@@ -4070,7 +4095,7 @@
 %<*runs>
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-runs}%
-  [2019/11/29 v2.28 Module runs for zref (HO)]%
+  [2020-03-03 v2.29 Module runs for zref (HO)]%
 %    \end{macrocode}
 %
 %    \begin{macro}{\zruns}
@@ -4102,7 +4127,7 @@
 %<*perpage>
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-perpage}%
-  [2019/11/29 v2.28 Module perpage for zref (HO)]%
+  [2020-03-03 v2.29 Module perpage for zref (HO)]%
 \RequirePackage{zref-base}[2019/11/29]
 \ifx\ZREF at base@ok Y%
 \else
@@ -4284,7 +4309,7 @@
 %<*titleref>
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-titleref}%
-  [2019/11/29 v2.28 Module titleref for zref (HO)]%
+  [2020-03-03 v2.29 Module titleref for zref (HO)]%
 \RequirePackage{zref-base}[2019/11/29]
 \ifx\ZREF at base@ok Y%
 \else
@@ -4697,7 +4722,7 @@
 %<*xr>
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-xr}%
-  [2019/11/29 v2.28 Module xr for zref (HO)]%
+  [2020-03-03 v2.29 Module xr for zref (HO)]%
 \RequirePackage{zref-base}[2019/11/29]
 \ifx\ZREF at base@ok Y%
 \else
@@ -5233,7 +5258,7 @@
 %<*hyperref>
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-hyperref}%
-  [2019/11/29 v2.28 Module hyperref for zref (HO)]%
+  [2020-03-03 v2.29 Module hyperref for zref (HO)]%
 \RequirePackage{zref-base}[2019/11/29]
 \ifx\ZREF at base@ok Y%
 \else
@@ -5263,7 +5288,7 @@
 %<*savepos>
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-savepos}%
-  [2019/11/29 v2.28 Module savepos for zref (HO)]%
+  [2020-03-03 v2.29 Module savepos for zref (HO)]%
 \RequirePackage{zref-base}[2019/11/29]
 \ifx\ZREF at base@ok Y%
 \else
@@ -5270,19 +5295,12 @@
   \expandafter\endinput
 \fi
 %    \end{macrocode}
-% LuaTeX compatibility
-%    \begin{macrocode}
-\ifx\pdfsavepos\@undefined
-  \let\pdfsavepos          \savepos
-  \let\pdflastxpos         \lastxpos
-  \let\pdflastypos         \lastypos
-\fi
-%    \end{macrocode}
 %
 % \subsubsection{Availability}
 %
 %    First we check, whether the feature is available.
 %    \begin{macrocode}
+\ifx\directlua\@undefined
 \ltx at IfUndefined{pdfsavepos}{%
   \PackageError\ZREF at name{%
     \string\pdfsavepos\space is not supported.\MessageBreak
@@ -5290,6 +5308,7 @@
   }\ZREF at UpdatePdfTeX
   \endinput
 }{}%
+\fi
 %    \end{macrocode}
 %    In PDF mode we are done. However support for DVI mode
 %    was added later in version 1.40.0. In earlier versions
@@ -5296,7 +5315,6 @@
 %    \cs{pdfsavepos} is defined, but its execution raises
 %    an error. Note that \hologo{XeTeX} also provides \cs{pdfsavepos}.
 %    \begin{macrocode}
-\RequirePackage{ifpdf}
 \ifpdf
 \else
   \ltx at IfUndefined{pdftexversion}{%
@@ -5317,8 +5335,13 @@
 %
 %    \begin{macrocode}
 \zref at newlist{savepos}
-\zref at newprop*{posx}[0]{\the\pdflastxpos}
-\zref at newprop*{posy}[0]{\the\pdflastypos}
+\ifx\directlua\@undefined
+  \zref at newprop*{posx}[0]{\the\pdflastxpos}
+  \zref at newprop*{posy}[0]{\the\pdflastypos}
+\else
+  \zref at newprop*{posx}[0]{\the\lastxpos}
+  \zref at newprop*{posy}[0]{\the\lastypos}
+\fi
 \zref at addprops{savepos}{posx,posy}
 %    \end{macrocode}
 %
@@ -5326,11 +5349,19 @@
 %
 %    \begin{macro}{\zref at savepos}
 %    \begin{macrocode}
-\def\zref at savepos{%
-  \if at filesw
-    \pdfsavepos
-  \fi
-}
+\ifx\directlua\@undefined
+  \def\zref at savepos{%
+    \if at filesw
+      \pdfsavepos
+    \fi
+  }
+\else
+  \def\zref at savepos{%
+    \if at filesw
+      \savepos
+    \fi
+  }
+\fi
 %    \end{macrocode}
 %    \end{macro}
 %
@@ -5430,7 +5461,7 @@
 %<*abspos>
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-abspos}%
-  [2019/11/29 v2.28 Module abspos for zref (HO)]%
+  [2020-03-03 v2.29 Module abspos for zref (HO)]%
 \RequirePackage{zref-base}[2019/11/29]
 \ifx\ZREF at base@ok Y%
 \else
@@ -5450,10 +5481,6 @@
 \zref at addprop{savepos}{abspage}
 %    \end{macrocode}
 %
-%    \begin{macrocode}
-\RequirePackage{ifpdf}[2010/09/13]
-%    \end{macrocode}
-%
 %    \begin{macro}{\zref at absposx}
 %    \begin{macrocode}
 \newcommand*{\zref at absposx}[3]{%
@@ -5655,6 +5682,9 @@
     pdfpagewidth%
   }%
 }
+\ifluatex
+\def\ZREF at abspos@media at width{pdfpagewidth}%
+\fi
 %    \end{macrocode}
 %    \end{macro}
 %    \begin{macro}{\ZREF at abspos@media at height}
@@ -5682,6 +5712,18 @@
     \noexpand\fi
   }%
 }
+\ifluatex
+\edef\ZREF at abspos@media at height{%
+   \noexpand\ifcase\pageheight
+      \ltx at ifundefined{stockheight}{%
+        paperheight%
+      }{%
+        stockheight%
+      }%
+    \noexpand\else
+      pdfpageheight%
+    \noexpand\fi}%
+\fi
 %    \end{macrocode}
 %    \end{macro}
 %
@@ -5778,14 +5820,22 @@
 %
 % \subsubsection{Origin}
 %
+% There doesn't seem a good reason to make these tests depend on pdf mode
+%  in current engines, so comment out the \verb|\ifpdf| tests.
 %    \begin{macro}{\ZREF at abspos@origin at x}
 %    \begin{macrocode}
 \let\ZREF at temp\ltx at two
 \ltx at IfUndefined{pdfhorigin}{}{%
-  \ifpdf
+%  \ifpdf
     \let\ZREF at temp\ltx at zero
-  \fi
+%  \fi
 }
+\ifluatex
+% \ifpdf
+  \let\ZREF at temp\ltx at zero
+% \fi
+\fi
+
 \ifx\ZREF at temp\ltx at two
   \ifnum\mag=1000 %
     \let\ZREF at temp\ltx at one
@@ -5810,10 +5860,15 @@
 %    \begin{macrocode}
 \let\ZREF at temp\ltx at two
 \ltx at IfUndefined{pdfvorigin}{}{%
-  \ifpdf
+%  \ifpdf
     \let\ZREF at temp\ltx at zero
-  \fi
+%  \fi
 }
+\ifluatex
+%  \ifpdf
+    \let\ZREF at temp\ltx at zero
+%  \fi
+\fi
 \ifx\ZREF at temp\ltx at two
   \ifnum\mag=1000 %
     \let\ZREF at temp\ltx at one
@@ -6059,7 +6114,7 @@
 %<*dotfill>
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-dotfill}%
-  [2019/11/29 v2.28 Module dotfill for zref (HO)]%
+  [2020-03-03 v2.29 Module dotfill for zref (HO)]%
 \RequirePackage{zref-base}[2019/11/29]
 \ifx\ZREF at base@ok Y%
 \else
@@ -6159,7 +6214,7 @@
 %<*env>
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-env}%
-  [2019/11/29 v2.28 Module env for zref (HO)]%
+  [2020-03-03 v2.29 Module env for zref (HO)]%
 \RequirePackage{zref-base}[2019/11/29]
 \ifx\ZREF at base@ok Y%
 \else
@@ -6195,202 +6250,8 @@
 %</env>
 %    \end{macrocode}
 %
+%% \section{Installation}
 %
-% \section{Test}
-%
-% \subsection{\cs{zref at localaddprop}}
-%
-%    \begin{macrocode}
-%<*test1>
-\NeedsTeXFormat{LaTeX2e}
-\nofiles
-\documentclass{article}
-\usepackage{zref-base}[2019/11/29]
-\usepackage{qstest}
-\IncludeTests{*}
-\LogTests{log}{*}{*}
-
-\makeatletter
-\def\ExpectList#1#2{%
-  \expandafter\expandafter\expandafter\Expect
-  \expandafter\expandafter\expandafter{\csname Z at L@#1\endcsname}{#2}%
-}
-\begin{qstest}{localaddprop}{localaddprop}
-  \ExpectList{main}{\default\page}%
-  \Expect{undefined}*{\meaning\foobar}%
-  \zref at newprop{foobar}{FOO}%
-  \Expect{undefined}*{\meaning\foobar}%
-  \zref at newlist{alist}%
-  \ExpectList{alist}{}%
-  \begingroup
-    \zref at localaddprop{main}{foobar}%
-    \Expect{undefined}*{\meaning\foobar}%
-    \ExpectList{main}{\default\page\foobar}%
-    \zref at localaddprop{alist}{page}%
-    \ExpectList{alist}{\page}%
-  \endgroup
-  \ExpectList{main}{\default\page}%
-  \ExpectList{alist}{}%
-  \zref at addprop{alist}{foobar}%
-  \ExpectList{alist}{\foobar}%
-  \Expect{undefined}*{\meaning\foobar}%
-\end{qstest}
-\@@end
-%</test1>
-%    \end{macrocode}
-%
-% \subsection{Module \xmodule{base}}
-%
-%    \begin{macrocode}
-%<*test-base>
-\NeedsTeXFormat{LaTeX2e}
-\documentclass{article}
-\usepackage{zref-base,zref-titleref}[2019/11/29]
-\usepackage{qstest}
-\IncludeTests{*}
-\LogTests{log}{*}{*}
-
-\makeatletter
-\newcommand*{\DefExpand}[2]{%
-  \expandafter\expandafter\expandafter\def
-  \expandafter\expandafter\expandafter#1%
-  \expandafter\expandafter\expandafter{#2}%
-  \@onelevel at sanitize#1%
-}
-\newcommand*{\Test}[3]{%
-  \Expect{#2}*{#1}%
-  \zref at wrapper@unexpanded{%
-    \Expect*{#3}*{#1}%
-  }%
-  \DefExpand\x{#1}%
-  \Expect*{#3}*{\x}%
-}
-\makeatother
-
-\begin{document}
-\section{\textit{Hello} \textbf{World}}
-\label{sec:hello}
-\makeatletter
-\zref at newprop{foo}[\@empty D\@empty efault]{\@empty V\@empty alue}
-\begin{qstest}{getcurrent}{getcurrent}
-  \Test{\zref at getcurrent{foo}}%
-       {Value}{\noexpand\@empty V\noexpand\@empty alue}%
-  \Test{\zref at getcurrent{xy}}{}{}%
-\end{qstest}
-\begin{qstest}{extract}{extract}
-  \def\textbf#1{<#1>}%
-  \def\textit#1{[#1]}% hash-ok
-  \Test{\zref at extractdefault{xy}{page}{\@empty D\@empty efault}}%
-       {Default}{\noexpand\@empty D\noexpand\@empty efault}%
-  \Test{\zref at extractdefault{sec:hello}{foo}{\@empty A\@empty B}}%
-       {AB}{\noexpand\@empty A\noexpand\@empty B}%
-  \Test{\zref at extract{sec:hello}{foo}}%
-       {Default}{\noexpand\@empty D\noexpand\@empty efault}%
-  \zref at ifrefundefined{sec:hello}{%
-  }{%
-    \Test{\zref at extract{sec:hello}{default}}{1}{1}%
-    \Test{\zref at extract{sec:hello}{title}}%
-         {[Hello] <World>}%
-         {\noexpand\textit{Hello} \noexpand\textbf{World}}%
-  }%
-\end{qstest}
-\end{document}
-%</test-base>
-%    \end{macrocode}
-%
-% \subsection{Module \xmodule{runs}}
-%
-%    \begin{macrocode}
-%<*test-runs>
-\NeedsTeXFormat{LaTeX2e}
-\documentclass{article}
-\usepackage{zref-runs}[2019/11/29]
-\usepackage{qstest}
-\IncludeTests{*}
-\LogTests{log}{*}{*}
-
-\begin{qstest}{zruns-preamble}{zruns-preamble}
-  \Expect{0}*{\zruns}%
-\end{qstest}
-
-\AtBeginDocument{%
-  \begin{qstest}{zruns-atbegindocument}{zruns-atbegindocument}%
-    \Expect*{\number\ExpectRuns}*{\zruns}%
-  \end{qstest}%
-}
-
-\begin{document}
-\begin{qstest}{zruns-document}{zruns-document}
-  \Expect*{\number\ExpectRuns}*{\zruns}%
-\end{qstest}
-\end{document}
-%</test-runs>
-%    \end{macrocode}
-%
-% \subsection{Module \xmodule{titleref}}
-%
-%    \begin{macrocode}
-%<*test-titleref-memoir>
-\NeedsTeXFormat{LaTeX2e}
-\documentclass{memoir}
-\usepackage{zref-titleref}[2019/11/29]
-\usepackage{qstest}
-\IncludeTests{*}
-\LogTests{log}{*}{*}
-\begin{document}
-\makeatletter
-\def\List{}
-\def\Label#1{%
-  \zref at label{#1}%
-  \g at addto@macro\List{%
-    \par
-    #1: [\ztitleref{#1}]%
-  }%
-  \mbox{}%
-  \zref at refused{#1}%
-  \zref at ifrefundefined{#1}{%
-  }{%
-    \begingroup
-      \edef\x{\zref at extract{#1}{title}}%
-      \Expect{OK/}*{\expandafter\ltx at carthree\x{}{}{}\@nil}%
-    \endgroup
-  }%
-}
-\def\Test#1{%
-  \csname#1\endcsname*{OK/#1}%
-  \Label{#1*}%
-  \csname#1\endcsname{OK/#1}%
-  \Label{#1}%
-  \csname#1\endcsname[OK/#1-toc]%
-                     {WRONG-in-titleref/#1-toc-2}%
-  \Label{#1-toc}%
-  \expandafter\ifx\csname#1\endcsname\part
-  \else
-    \headnamereffalse
-    \csname#1\endcsname[OK/#1-th-toc]%
-                       [WRONG-in-titleref/#1-th-toc-2]%
-                       {WRONG-in-titleref/#1-th-toc-3}%
-    \Label{#1-th-toc}%
-    \headnamereftrue
-    \csname#1\endcsname[WRONG-in-titleref/#1-th-head-1]%
-                       [OK/#1-th-head]%
-                       {WRONG-in-titleref/#1-th-head-3}%
-    \Label{#1-th-head}%
-  \fi
-}
-\begin{qstest}{section}{section}
-  \@for\x:=part,chapter,section,subsection,subsubsection\do{%
-    \expandafter\Test\expandafter{\x}%
-  }%
-\end{qstest}
-\newpage
-\List
-\end{document}
-%</test-titleref-memoir>
-%    \end{macrocode}
-%
-% \section{Installation}
-%
 % \subsection{Download}
 %
 % \paragraph{Package.} This package is available on
@@ -6462,10 +6323,6 @@
 %   zref-example.tex & doc/latex/zref/zref-example.tex\\
 %   zref-example-lastpage.tex & doc/latex/zref/zref-example-lastpage.tex\\
 %   zref-example-nextpage.tex & doc/latex/zref/zref-example-nextpage.tex\\
-%   test/zref-test1.tex & doc/latex/zref/test/zref-test1.tex\\
-%   test/zref-test-base.tex & doc/latex/zref/test/zref-test-base.tex\\
-%   test/zref-test-runs.tex & doc/latex/zref/test/zref-test-runs.tex\\
-%   test/zref-test-titleref-memoir.tex & doc/latex/zref/test/zref-test-titleref-memoir.tex\\
 %   zref.dtx & source/latex/zref/zref.dtx\\
 % \end{tabular}^^A
 % }^^A
@@ -6865,6 +6722,19 @@
 %   \item
 %     Use \xpackage{iftex} directly.
 %   \end{Version}
+%   \begin{Version}{2020-03-03 v2.29}
+%   \item
+%     adapted in module zref-pagelayout the properties pdfhorigin, pdfvorigin,
+%     pdfpagewidth, pdfpageheight for luatex to the right primitives.
+%   \item
+%     Removed no longer needed code for older lualatex versions.
+%   \item added some documentation of the abspos module.
+%   \item adapted the abspos module to the new luatex primitives.
+%   \item adapted pageattr module to the new luatex primitives.
+%   \item added short documentation for pageattr module
+%   \item use luatex command names directly in zref-savepos rather than defining pdftex compatibility names.
+%   \item allow zref-abspos to use \verb|\pdf[vh]origin| in dvi mode.
+%   \end{Version}
 % \end{History}
 %
 % \PrintIndex

Modified: trunk/Master/texmf-dist/tex/latex/zref/zref-abspage.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/zref/zref-abspage.sty	2020-03-05 00:53:15 UTC (rev 54097)
+++ trunk/Master/texmf-dist/tex/latex/zref/zref-abspage.sty	2020-03-05 00:53:33 UTC (rev 54098)
@@ -9,11 +9,11 @@
 %% This is a generated file.
 %% 
 %% Project: zref
-%% Version: 2019/11/29 v2.28
+%% Version: 2020-03-03 v2.29
 %% 
 %% Copyright (C)
 %%   2006-2012 Heiko Oberdiek
-%%   2016-2019 Oberdiek Package Support Group
+%%   2016-2020 Oberdiek Package Support Group
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either
@@ -48,7 +48,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-abspage}%
-  [2019/11/29 v2.28 Module abspage for zref (HO)]%
+  [2020-03-03 v2.29 Module abspage for zref (HO)]%
 \RequirePackage{zref-base}[2019/11/29]
 \ifx\ZREF at base@ok Y%
 \else
@@ -65,6 +65,7 @@
 }%
 \zref at newprop*{abspage}[0]{\the\c at abspage}%
 \zref at addprop\ZREF at mainlist{abspage}%
+%% \section{Installation}
 \endinput
 %%
 %% End of file `zref-abspage.sty'.

Modified: trunk/Master/texmf-dist/tex/latex/zref/zref-abspos.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/zref/zref-abspos.sty	2020-03-05 00:53:15 UTC (rev 54097)
+++ trunk/Master/texmf-dist/tex/latex/zref/zref-abspos.sty	2020-03-05 00:53:33 UTC (rev 54098)
@@ -9,11 +9,11 @@
 %% This is a generated file.
 %% 
 %% Project: zref
-%% Version: 2019/11/29 v2.28
+%% Version: 2020-03-03 v2.29
 %% 
 %% Copyright (C)
 %%   2006-2012 Heiko Oberdiek
-%%   2016-2019 Oberdiek Package Support Group
+%%   2016-2020 Oberdiek Package Support Group
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either
@@ -48,7 +48,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-abspos}%
-  [2019/11/29 v2.28 Module abspos for zref (HO)]%
+  [2020-03-03 v2.29 Module abspos for zref (HO)]%
 \RequirePackage{zref-base}[2019/11/29]
 \ifx\ZREF at base@ok Y%
 \else
@@ -61,7 +61,6 @@
 \fi
 \RequirePackage{zref-pagelayout}[2019/11/29]
 \zref at addprop{savepos}{abspage}
-\RequirePackage{ifpdf}[2010/09/13]
 \newcommand*{\zref at absposx}[3]{%
   \number
     \expandafter\zref at absposnumx\expandafter{%
@@ -170,6 +169,9 @@
     pdfpagewidth%
   }%
 }
+\ifluatex
+\def\ZREF at abspos@media at width{pdfpagewidth}%
+\fi
 \edef\ZREF at abspos@media at height{%
   \ltx at ifundefined{pdfpageheight}{%
     \ltx at ifundefined{mediaheight}{%
@@ -193,6 +195,18 @@
     \noexpand\fi
   }%
 }
+\ifluatex
+\edef\ZREF at abspos@media at height{%
+   \noexpand\ifcase\pageheight
+      \ltx at ifundefined{stockheight}{%
+        paperheight%
+      }{%
+        stockheight%
+      }%
+    \noexpand\else
+      pdfpageheight%
+    \noexpand\fi}%
+\fi
 \def\ZREF at abspos@media at x@left#1{%
   0%
 }
@@ -232,10 +246,12 @@
 }
 \let\ZREF at temp\ltx at two
 \ltx at IfUndefined{pdfhorigin}{}{%
-  \ifpdf
     \let\ZREF at temp\ltx at zero
-  \fi
 }
+\ifluatex
+  \let\ZREF at temp\ltx at zero
+\fi
+
 \ifx\ZREF at temp\ltx at two
   \ifnum\mag=1000 %
     \let\ZREF at temp\ltx at one
@@ -256,10 +272,11 @@
 \fi
 \let\ZREF at temp\ltx at two
 \ltx at IfUndefined{pdfvorigin}{}{%
-  \ifpdf
     \let\ZREF at temp\ltx at zero
-  \fi
 }
+\ifluatex
+    \let\ZREF at temp\ltx at zero
+\fi
 \ifx\ZREF at temp\ltx at two
   \ifnum\mag=1000 %
     \let\ZREF at temp\ltx at one
@@ -359,6 +376,7 @@
 \let\ZREF at abspos@stock at y@top\ZREF at abspos@paper at y@top
 \let\ZREF at abspos@stock at y@bottom\ZREF at abspos@paper at y@bottom
 \let\ZREF at abspos@stock at y@center\ZREF at abspos@paper at y@center
+%% \section{Installation}
 \endinput
 %%
 %% End of file `zref-abspos.sty'.

Modified: trunk/Master/texmf-dist/tex/latex/zref/zref-base.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/zref/zref-base.sty	2020-03-05 00:53:15 UTC (rev 54097)
+++ trunk/Master/texmf-dist/tex/latex/zref/zref-base.sty	2020-03-05 00:53:33 UTC (rev 54098)
@@ -9,11 +9,11 @@
 %% This is a generated file.
 %% 
 %% Project: zref
-%% Version: 2019/11/29 v2.28
+%% Version: 2020-03-03 v2.29
 %% 
 %% Copyright (C)
 %%   2006-2012 Heiko Oberdiek
-%%   2016-2019 Oberdiek Package Support Group
+%%   2016-2020 Oberdiek Package Support Group
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either
@@ -48,7 +48,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-base}%
-  [2019/11/29 v2.28 Module base for zref (HO)]%
+  [2020-03-03 v2.29 Module base for zref (HO)]%
 \RequirePackage{ltxcmds}[2010/12/02]
 \RequirePackage{infwarerr}[2010/04/08]
 \RequirePackage{kvsetkeys}[2010/03/01]
@@ -784,6 +784,7 @@
   \global\let\ZREF at NewPropPageValue\relax
 }
 \let\ZREF at base@ok=Y
+%% \section{Installation}
 \endinput
 %%
 %% End of file `zref-base.sty'.

Modified: trunk/Master/texmf-dist/tex/latex/zref/zref-counter.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/zref/zref-counter.sty	2020-03-05 00:53:15 UTC (rev 54097)
+++ trunk/Master/texmf-dist/tex/latex/zref/zref-counter.sty	2020-03-05 00:53:33 UTC (rev 54098)
@@ -9,11 +9,11 @@
 %% This is a generated file.
 %% 
 %% Project: zref
-%% Version: 2019/11/29 v2.28
+%% Version: 2020-03-03 v2.29
 %% 
 %% Copyright (C)
 %%   2006-2012 Heiko Oberdiek
-%%   2016-2019 Oberdiek Package Support Group
+%%   2016-2020 Oberdiek Package Support Group
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either
@@ -48,7 +48,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-counter}%
-  [2019/11/29 v2.28 Module counter for zref (HO)]%
+  [2020-03-03 v2.29 Module counter for zref (HO)]%
 \RequirePackage{zref-base}[2019/11/29]
 \ifx\ZREF at base@ok Y%
 \else
@@ -64,6 +64,7 @@
     }%
   }%
 }
+%% \section{Installation}
 \endinput
 %%
 %% End of file `zref-counter.sty'.

Modified: trunk/Master/texmf-dist/tex/latex/zref/zref-dotfill.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/zref/zref-dotfill.sty	2020-03-05 00:53:15 UTC (rev 54097)
+++ trunk/Master/texmf-dist/tex/latex/zref/zref-dotfill.sty	2020-03-05 00:53:33 UTC (rev 54098)
@@ -9,11 +9,11 @@
 %% This is a generated file.
 %% 
 %% Project: zref
-%% Version: 2019/11/29 v2.28
+%% Version: 2020-03-03 v2.29
 %% 
 %% Copyright (C)
 %%   2006-2012 Heiko Oberdiek
-%%   2016-2019 Oberdiek Package Support Group
+%%   2016-2020 Oberdiek Package Support Group
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either
@@ -48,7 +48,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-dotfill}%
-  [2019/11/29 v2.28 Module dotfill for zref (HO)]%
+  [2020-03-03 v2.29 Module dotfill for zref (HO)]%
 \RequirePackage{zref-base}[2019/11/29]
 \ifx\ZREF at base@ok Y%
 \else
@@ -99,6 +99,7 @@
 \def\ZREF at dotfill{%
   \cleaders\hb at xt@\dimen@{\hss\ZREF at df@dot\hss}\hfill
 }
+%% \section{Installation}
 \endinput
 %%
 %% End of file `zref-dotfill.sty'.

Modified: trunk/Master/texmf-dist/tex/latex/zref/zref-env.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/zref/zref-env.sty	2020-03-05 00:53:15 UTC (rev 54097)
+++ trunk/Master/texmf-dist/tex/latex/zref/zref-env.sty	2020-03-05 00:53:33 UTC (rev 54098)
@@ -9,11 +9,11 @@
 %% This is a generated file.
 %% 
 %% Project: zref
-%% Version: 2019/11/29 v2.28
+%% Version: 2020-03-03 v2.29
 %% 
 %% Copyright (C)
 %%   2006-2012 Heiko Oberdiek
-%%   2016-2019 Oberdiek Package Support Group
+%%   2016-2020 Oberdiek Package Support Group
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either
@@ -48,7 +48,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-env}%
-  [2019/11/29 v2.28 Module env for zref (HO)]%
+  [2020-03-03 v2.29 Module env for zref (HO)]%
 \RequirePackage{zref-base}[2019/11/29]
 \ifx\ZREF at base@ok Y%
 \else
@@ -64,6 +64,7 @@
   \fi
 }
 \def\ZREF at ENV@line#1line #2\ltx at empty#3\@nil{#2}%
+%% \section{Installation}
 \endinput
 %%
 %% End of file `zref-env.sty'.

Modified: trunk/Master/texmf-dist/tex/latex/zref/zref-hyperref.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/zref/zref-hyperref.sty	2020-03-05 00:53:15 UTC (rev 54097)
+++ trunk/Master/texmf-dist/tex/latex/zref/zref-hyperref.sty	2020-03-05 00:53:33 UTC (rev 54098)
@@ -9,11 +9,11 @@
 %% This is a generated file.
 %% 
 %% Project: zref
-%% Version: 2019/11/29 v2.28
+%% Version: 2020-03-03 v2.29
 %% 
 %% Copyright (C)
 %%   2006-2012 Heiko Oberdiek
-%%   2016-2019 Oberdiek Package Support Group
+%%   2016-2020 Oberdiek Package Support Group
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either
@@ -48,7 +48,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-hyperref}%
-  [2019/11/29 v2.28 Module hyperref for zref (HO)]%
+  [2020-03-03 v2.29 Module hyperref for zref (HO)]%
 \RequirePackage{zref-base}[2019/11/29]
 \ifx\ZREF at base@ok Y%
 \else
@@ -56,6 +56,7 @@
 \fi
 \ZREF at NewPropAnchor
 \zref at addprop\ZREF at mainlist{anchor}%
+%% \section{Installation}
 \endinput
 %%
 %% End of file `zref-hyperref.sty'.

Modified: trunk/Master/texmf-dist/tex/latex/zref/zref-lastpage.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/zref/zref-lastpage.sty	2020-03-05 00:53:15 UTC (rev 54097)
+++ trunk/Master/texmf-dist/tex/latex/zref/zref-lastpage.sty	2020-03-05 00:53:33 UTC (rev 54098)
@@ -9,11 +9,11 @@
 %% This is a generated file.
 %% 
 %% Project: zref
-%% Version: 2019/11/29 v2.28
+%% Version: 2020-03-03 v2.29
 %% 
 %% Copyright (C)
 %%   2006-2012 Heiko Oberdiek
-%%   2016-2019 Oberdiek Package Support Group
+%%   2016-2020 Oberdiek Package Support Group
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either
@@ -48,7 +48,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-lastpage}%
-  [2019/11/29 v2.28 Module lastpage for zref (HO)]%
+  [2020-03-03 v2.29 Module lastpage for zref (HO)]%
 \RequirePackage{zref-base}[2019/11/29]
 \RequirePackage{zref-abspage}[2019/11/29]
 \RequirePackage{atveryend}[2009/12/07]
@@ -87,6 +87,7 @@
   \zref at refused{#1}%
   \zref at iflastpage{#1}%
 }
+%% \section{Installation}
 \endinput
 %%
 %% End of file `zref-lastpage.sty'.

Modified: trunk/Master/texmf-dist/tex/latex/zref/zref-marks.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/zref/zref-marks.sty	2020-03-05 00:53:15 UTC (rev 54097)
+++ trunk/Master/texmf-dist/tex/latex/zref/zref-marks.sty	2020-03-05 00:53:33 UTC (rev 54098)
@@ -9,11 +9,11 @@
 %% This is a generated file.
 %% 
 %% Project: zref
-%% Version: 2019/11/29 v2.28
+%% Version: 2020-03-03 v2.29
 %% 
 %% Copyright (C)
 %%   2006-2012 Heiko Oberdiek
-%%   2016-2019 Oberdiek Package Support Group
+%%   2016-2020 Oberdiek Package Support Group
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either
@@ -48,7 +48,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-marks}%
-  [2019/11/29 v2.28 Module marks for zref (HO)]%
+  [2020-03-03 v2.29 Module marks for zref (HO)]%
 \RequirePackage{zref-base}[2019/11/29]
 \ifx\ZREF at base@ok Y%
 \else
@@ -137,6 +137,7 @@
     }%
   }%
 }
+%% \section{Installation}
 \endinput
 %%
 %% End of file `zref-marks.sty'.

Modified: trunk/Master/texmf-dist/tex/latex/zref/zref-nextpage.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/zref/zref-nextpage.sty	2020-03-05 00:53:15 UTC (rev 54097)
+++ trunk/Master/texmf-dist/tex/latex/zref/zref-nextpage.sty	2020-03-05 00:53:33 UTC (rev 54098)
@@ -9,11 +9,11 @@
 %% This is a generated file.
 %% 
 %% Project: zref
-%% Version: 2019/11/29 v2.28
+%% Version: 2020-03-03 v2.29
 %% 
 %% Copyright (C)
 %%   2006-2012 Heiko Oberdiek
-%%   2016-2019 Oberdiek Package Support Group
+%%   2016-2020 Oberdiek Package Support Group
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either
@@ -48,7 +48,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-nextpage}%
-  [2019/11/29 v2.28 Module nextpage for zref (HO)]%
+  [2020-03-03 v2.29 Module nextpage for zref (HO)]%
 \RequirePackage{zref-base}[2019/11/29]
 \ifx\ZREF at base@ok Y%
 \else
@@ -135,6 +135,7 @@
     }%
   \x
 }
+%% \section{Installation}
 \endinput
 %%
 %% End of file `zref-nextpage.sty'.

Modified: trunk/Master/texmf-dist/tex/latex/zref/zref-pageattr.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/zref/zref-pageattr.sty	2020-03-05 00:53:15 UTC (rev 54097)
+++ trunk/Master/texmf-dist/tex/latex/zref/zref-pageattr.sty	2020-03-05 00:53:33 UTC (rev 54098)
@@ -9,11 +9,11 @@
 %% This is a generated file.
 %% 
 %% Project: zref
-%% Version: 2019/11/29 v2.28
+%% Version: 2020-03-03 v2.29
 %% 
 %% Copyright (C)
 %%   2006-2012 Heiko Oberdiek
-%%   2016-2019 Oberdiek Package Support Group
+%%   2016-2020 Oberdiek Package Support Group
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either
@@ -48,7 +48,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-pageattr}%
-  [2019/11/29 v2.28 Module pageattr for zref (HO)]%
+  [2020-03-03 v2.29 Module pageattr for zref (HO)]%
 \RequirePackage{zref-base}[2019/11/29]
 \ifx\ZREF at base@ok Y%
 \else
@@ -55,57 +55,46 @@
   \expandafter\endinput
 \fi
 \RequirePackage{iftex}[2019/11/07]%
+\let\ZREF at temp=N%
 \ifluatex
-  \ifnum\luatexversion<39 %
-  \else
-    \begingroup
-      \escapechar=-1 %
-      \def\ZREF at temp#1{%
-        \ltx at IfUndefined{\string#1}{%
-          \let#1\ltx at undefined
-          \directlua{%
-            if tex.enableprimitives then %
-              tex.enableprimitives('', {'\string#1'})%
-            end%
-          }%
-          \ltx at ifundefined{\string#1}{%
-          }{%
-            \global#1=#1%
-            \@PackageInfoNoLine{zref-pageattr}{%
-              \string#1 enabled%
-            }%
-          }%
-        }{}%
-      }%
-      \ZREF at temp\pdfpageattr
-      \ZREF at temp\pdfpagesattr
-    \endgroup
-  \fi
+\expandafter\@firstoftwo
+\else
+\expandafter\@secondoftwo
 \fi
-\let\ZREF at temp=N%
-\ltx at IfUndefined{pdfpageattr}{%
+{%luatex
+ \RequirePackage{zref-thepage}[2019/11/29]
+ \RequirePackage{zref-lastpage}[2019/11/29]%
+ \zref at newprop*{pdfpageattr}[]{\zref at hex{\the\pdfvariable pageattr}}%
+ \zref at addprop{thepage}{pdfpageattr}%
+ \zref at newprop*{pdfpagesattr}[]{\zref at hex{\the\pdfvariable pagesattr}}%
+ \zref at addprop{LastPage}{pdfpagesattr}%
+ \let\ZREF at temp=Y%
+}
+{%other
+ \ltx at IfUndefined{pdfpageattr}{%
   \@PackageInfoNoLine{zref-pageattr}{%
     \string\pdfpageattr\space is not available%
   }%
   \def\zref at pdfpageattr#1{}%
   \def\zref at pdfpageattr@used#1{}%
-}{%
+ }{%
   \RequirePackage{zref-thepage}[2019/11/29]%
   \zref at newprop*{pdfpageattr}[]{\zref at hex{\the\pdfpageattr}}%
   \zref at addprop{thepage}{pdfpageattr}%
   \let\ZREF at temp=Y%
-}
-\ltx at IfUndefined{pdfpagesattr}{%
+ }
+ \ltx at IfUndefined{pdfpagesattr}{%
   \@PackageInfoNoLine{zref-pageattr}{%
     \string\pdfpagesattr\space is not available%
   }%
   \def\zref at pdfpagesattr{}%
   \def\zref at pdfpagesattr@used{}%
-}{%
+ }{%
   \RequirePackage{zref-lastpage}[2019/11/29]%
   \zref at newprop*{pdfpagesattr}[]{\zref at hex{\the\pdfpagesattr}}%
   \zref at addprop{LastPage}{pdfpagesattr}%
   \let\ZREF at temp=Y%
+ }%
 }%
 \ifx\ZREF at temp N%
   \expandafter\endinput
@@ -143,12 +132,23 @@
     \AtVeryEndDocument{\ZREF at pa@AtVeryEnd}%
   \fi
 }
-\ltx at IfUndefined{pdfpageattr}{%
+\let\ZREF at temp=Y%
+\ltx at IfUndefined{pdfpageattr}{}{\let\ZREF at temp=N}
+\ifluatex \let\ZREF at temp=N \fi
+\ifx\ZREF at temp Y
+ \expandafter\@firstoftwo
+\else
+ \expandafter\@secondoftwo
+\fi
+ {%
   \def\ZREF at pa@AtVeryEnd{}%
-}{%
+ }
+ {%
   \def\ZREF at pa@AtVeryEnd{%
     \begingroup
-      \toks@{List of \ltx at backslashchar pdfpageattr:\MessageBreak}%
+      \toks@{List of \ltx at backslashchar
+             \ifluatex pdfvariable\else pdf\fi
+             pdfpageattr:\MessageBreak}%
       \count@=1 %
       \ZREF at pa@ListPage
       \edef\x{\endgroup
@@ -158,11 +158,12 @@
       }%
     \x
   }%
-\def\zref at pageattr#1{%
+\def\zref at pdfpageattr#1{%
   \zref at unhex{%
     \zref at extract{thepage\ZREF at number{#1}}{pdfpageattr}%
   }%
 }
+\let\zref at pageattr\zref at pdfpageattr
 \ZREF at Robust\def\zref at pageattr@used#1{%
   \zref at refused{thepage\ZREF at number{#1}}%
 }
@@ -186,8 +187,13 @@
     \ZREF at pa@ListPage
   }%
 }
-\ltx at IfUndefined{pdfpagesattr}{%
-}{%
+\let\ZREF at temp=Y%
+\ltx at IfUndefined{pdfpagesattr}{}{\let\ZREF at temp=N}
+\ifluatex \let\ZREF at temp=N \fi
+\ifx\ZREF at temp N
+ \expandafter\@firstofone
+\fi
+ {%
   \def\zref at pdfpagesattr{%
     \zref at unhex{%
       \zref at extract{LastPage}{pdfpagesattr}%
@@ -198,7 +204,9 @@
   }%
   \ltx at LocalAppendToMacro\ZREF at pa@AtVeryEnd{%
     \@PackageInfoNoLine{zref-pageattr}{%
-      \ltx at backslashchar pdfpagesattr:\MessageBreak
+      \ltx at backslashchar
+      \ifluatex pdfvariable\else pdf\fi
+      pagesattr:\MessageBreak
       <<\zref at pdfpagesattr>>%
       \MessageBreak
     }%
@@ -207,6 +215,7 @@
 \AfterLastShipout{%
   \ZREF at pa@AfterLastShipout
 }
+%% \section{Installation}
 \endinput
 %%
 %% End of file `zref-pageattr.sty'.

Modified: trunk/Master/texmf-dist/tex/latex/zref/zref-pagelayout.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/zref/zref-pagelayout.sty	2020-03-05 00:53:15 UTC (rev 54097)
+++ trunk/Master/texmf-dist/tex/latex/zref/zref-pagelayout.sty	2020-03-05 00:53:33 UTC (rev 54098)
@@ -9,11 +9,11 @@
 %% This is a generated file.
 %% 
 %% Project: zref
-%% Version: 2019/11/29 v2.28
+%% Version: 2020-03-03 v2.29
 %% 
 %% Copyright (C)
 %%   2006-2012 Heiko Oberdiek
-%%   2016-2019 Oberdiek Package Support Group
+%%   2016-2020 Oberdiek Package Support Group
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either
@@ -48,7 +48,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-pagelayout}%
-  [2019/11/29 v2.28 Module pagelayout for zref (HO)]%
+  [2020-03-03 v2.29 Module pagelayout for zref (HO)]%
 \RequirePackage{zref-base}[2019/11/29]
 \ifx\ZREF at base@ok Y%
 \else
@@ -57,35 +57,6 @@
 \RequirePackage{zref-thepage}[2019/11/29]
 \RequirePackage{iftex}[2019/11/07]%
 \RequirePackage{atveryend}[2010/03/24]
-\ifluatex
-  \ifnum\luatexversion<39 %
-  \else
-    \begingroup
-      \escapechar=-1 %
-      \def\ZREF at temp#1{%
-        \ltx at IfUndefined{\string#1}{%
-          \let#1\ltx at undefined
-          \directlua{%
-            if tex.enableprimitives then %
-              tex.enableprimitives('', {'\string#1'})%
-            end%
-          }%
-          \ltx at ifundefined{\string#1}{%
-          }{%
-            \global#1=#1%
-            \@PackageInfoNoLine{zref-pagelayout}{%
-              \string#1 enabled%
-            }%
-          }%
-        }{}%
-      }%
-      \ZREF at temp\pdfpagewidth
-      \ZREF at temp\pdfpageheight
-      \ZREF at temp\pdfhorigin
-      \ZREF at temp\pdfvorigin
-    \endgroup
-  \fi
-\fi
 \def\ZREF at temp#1{%
   \begingroup
     \escapechar=-1 %
@@ -107,10 +78,29 @@
 \ZREF at temp\stockheight % memoir.cls, crop.sty
 \ZREF at temp\mediawidth % VTeX
 \ZREF at temp\mediaheight % VTeX
+\ifluatex
+\zref at newprop*{pdfvorigin}%
+                             [\number\pdfvariable vorigin]% hash-ok
+                             {\number\pdfvariable vorigin}%
+\zref at addprop{thepage}{pdfvorigin}
+\zref at newprop*{pdfhorigin}%
+                             [\number\pdfvariable horigin]% hash-ok
+                             {\number\pdfvariable horigin}%
+\zref at addprop{thepage}{pdfhorigin}
+\zref at newprop*{pdfpageheight}%
+                             [\number\pageheight]% hash-ok
+                             {\number\pageheight}%
+\zref at addprop{thepage}{pdfpageheight}
+\zref at newprop*{pdfpagewidth}%
+                             [\number\pagewidth]% hash-ok
+                             {\number\pagewidth}%
+\zref at addprop{thepage}{pdfpagewidth}
+\else
 \ZREF at temp\pdfpagewidth
 \ZREF at temp\pdfpageheight
 \ZREF at temp\pdfhorigin
 \ZREF at temp\pdfvorigin
+\fi
 \ZREF at temp\hoffset
 \ZREF at temp\voffset
 \ZREF at temp\topmargin
@@ -228,6 +218,7 @@
 \AfterLastShipout{%
   \ZREF at pl@AfterLastShipout
 }
+%% \section{Installation}
 \endinput
 %%
 %% End of file `zref-pagelayout.sty'.

Modified: trunk/Master/texmf-dist/tex/latex/zref/zref-perpage.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/zref/zref-perpage.sty	2020-03-05 00:53:15 UTC (rev 54097)
+++ trunk/Master/texmf-dist/tex/latex/zref/zref-perpage.sty	2020-03-05 00:53:33 UTC (rev 54098)
@@ -9,11 +9,11 @@
 %% This is a generated file.
 %% 
 %% Project: zref
-%% Version: 2019/11/29 v2.28
+%% Version: 2020-03-03 v2.29
 %% 
 %% Copyright (C)
 %%   2006-2012 Heiko Oberdiek
-%%   2016-2019 Oberdiek Package Support Group
+%%   2016-2020 Oberdiek Package Support Group
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either
@@ -48,7 +48,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-perpage}%
-  [2019/11/29 v2.28 Module perpage for zref (HO)]%
+  [2020-03-03 v2.29 Module perpage for zref (HO)]%
 \RequirePackage{zref-base}[2019/11/29]
 \ifx\ZREF at base@ok Y%
 \else
@@ -138,6 +138,7 @@
     \let\csname ZREF at perpage@#1\endcsname\@undefined
   }%
 }
+%% \section{Installation}
 \endinput
 %%
 %% End of file `zref-perpage.sty'.

Modified: trunk/Master/texmf-dist/tex/latex/zref/zref-runs.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/zref/zref-runs.sty	2020-03-05 00:53:15 UTC (rev 54097)
+++ trunk/Master/texmf-dist/tex/latex/zref/zref-runs.sty	2020-03-05 00:53:33 UTC (rev 54098)
@@ -9,11 +9,11 @@
 %% This is a generated file.
 %% 
 %% Project: zref
-%% Version: 2019/11/29 v2.28
+%% Version: 2020-03-03 v2.29
 %% 
 %% Copyright (C)
 %%   2006-2012 Heiko Oberdiek
-%%   2016-2019 Oberdiek Package Support Group
+%%   2016-2020 Oberdiek Package Support Group
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either
@@ -48,7 +48,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-runs}%
-  [2019/11/29 v2.28 Module runs for zref (HO)]%
+  [2020-03-03 v2.29 Module runs for zref (HO)]%
 \providecommand*{\zruns}{0}%
 \AtBeginDocument{%
   \edef\zruns{\number\numexpr\zruns+1}%
@@ -62,6 +62,7 @@
     \fi
   \endgroup
 }
+%% \section{Installation}
 \endinput
 %%
 %% End of file `zref-runs.sty'.

Modified: trunk/Master/texmf-dist/tex/latex/zref/zref-savepos.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/zref/zref-savepos.sty	2020-03-05 00:53:15 UTC (rev 54097)
+++ trunk/Master/texmf-dist/tex/latex/zref/zref-savepos.sty	2020-03-05 00:53:33 UTC (rev 54098)
@@ -9,11 +9,11 @@
 %% This is a generated file.
 %% 
 %% Project: zref
-%% Version: 2019/11/29 v2.28
+%% Version: 2020-03-03 v2.29
 %% 
 %% Copyright (C)
 %%   2006-2012 Heiko Oberdiek
-%%   2016-2019 Oberdiek Package Support Group
+%%   2016-2020 Oberdiek Package Support Group
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either
@@ -48,17 +48,13 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-savepos}%
-  [2019/11/29 v2.28 Module savepos for zref (HO)]%
+  [2020-03-03 v2.29 Module savepos for zref (HO)]%
 \RequirePackage{zref-base}[2019/11/29]
 \ifx\ZREF at base@ok Y%
 \else
   \expandafter\endinput
 \fi
-\ifx\pdfsavepos\@undefined
-  \let\pdfsavepos          \savepos
-  \let\pdflastxpos         \lastxpos
-  \let\pdflastypos         \lastypos
-\fi
+\ifx\directlua\@undefined
 \ltx at IfUndefined{pdfsavepos}{%
   \PackageError\ZREF at name{%
     \string\pdfsavepos\space is not supported.\MessageBreak
@@ -66,7 +62,7 @@
   }\ZREF at UpdatePdfTeX
   \endinput
 }{}%
-\RequirePackage{ifpdf}
+\fi
 \ifpdf
 \else
   \ltx at IfUndefined{pdftexversion}{%
@@ -82,14 +78,27 @@
   }%
 \fi
 \zref at newlist{savepos}
-\zref at newprop*{posx}[0]{\the\pdflastxpos}
-\zref at newprop*{posy}[0]{\the\pdflastypos}
+\ifx\directlua\@undefined
+  \zref at newprop*{posx}[0]{\the\pdflastxpos}
+  \zref at newprop*{posy}[0]{\the\pdflastypos}
+\else
+  \zref at newprop*{posx}[0]{\the\lastxpos}
+  \zref at newprop*{posy}[0]{\the\lastypos}
+\fi
 \zref at addprops{savepos}{posx,posy}
-\def\zref at savepos{%
-  \if at filesw
-    \pdfsavepos
-  \fi
-}
+\ifx\directlua\@undefined
+  \def\zref at savepos{%
+    \if at filesw
+      \pdfsavepos
+    \fi
+  }
+\else
+  \def\zref at savepos{%
+    \if at filesw
+      \savepos
+    \fi
+  }
+\fi
 \def\ZREF at zsavepos#1#2#3{%
   \@bsphack
   \if at filesw
@@ -127,6 +136,7 @@
   \zref at extract{#1}{posy}%
 }%
 \let\ZREF at savepos@ok=Y
+%% \section{Installation}
 \endinput
 %%
 %% End of file `zref-savepos.sty'.

Modified: trunk/Master/texmf-dist/tex/latex/zref/zref-thepage.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/zref/zref-thepage.sty	2020-03-05 00:53:15 UTC (rev 54097)
+++ trunk/Master/texmf-dist/tex/latex/zref/zref-thepage.sty	2020-03-05 00:53:33 UTC (rev 54098)
@@ -9,11 +9,11 @@
 %% This is a generated file.
 %% 
 %% Project: zref
-%% Version: 2019/11/29 v2.28
+%% Version: 2020-03-03 v2.29
 %% 
 %% Copyright (C)
 %%   2006-2012 Heiko Oberdiek
-%%   2016-2019 Oberdiek Package Support Group
+%%   2016-2020 Oberdiek Package Support Group
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either
@@ -48,7 +48,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-thepage}%
-  [2019/11/29 v2.28 Module thepage for zref (HO)]%
+  [2020-03-03 v2.29 Module thepage for zref (HO)]%
 \RequirePackage{zref-base}[2019/11/29]
 \ifx\ZREF at base@ok Y%
 \else
@@ -84,6 +84,7 @@
     \zref at thepage{#1}%
   }%
 }
+%% \section{Installation}
 \endinput
 %%
 %% End of file `zref-thepage.sty'.

Modified: trunk/Master/texmf-dist/tex/latex/zref/zref-titleref.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/zref/zref-titleref.sty	2020-03-05 00:53:15 UTC (rev 54097)
+++ trunk/Master/texmf-dist/tex/latex/zref/zref-titleref.sty	2020-03-05 00:53:33 UTC (rev 54098)
@@ -9,11 +9,11 @@
 %% This is a generated file.
 %% 
 %% Project: zref
-%% Version: 2019/11/29 v2.28
+%% Version: 2020-03-03 v2.29
 %% 
 %% Copyright (C)
 %%   2006-2012 Heiko Oberdiek
-%%   2016-2019 Oberdiek Package Support Group
+%%   2016-2020 Oberdiek Package Support Group
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either
@@ -48,7 +48,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-titleref}%
-  [2019/11/29 v2.28 Module titleref for zref (HO)]%
+  [2020-03-03 v2.29 Module titleref for zref (HO)]%
 \RequirePackage{zref-base}[2019/11/29]
 \ifx\ZREF at base@ok Y%
 \else
@@ -288,6 +288,7 @@
     \fi
   }{}%
 }
+%% \section{Installation}
 \endinput
 %%
 %% End of file `zref-titleref.sty'.

Modified: trunk/Master/texmf-dist/tex/latex/zref/zref-totpages.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/zref/zref-totpages.sty	2020-03-05 00:53:15 UTC (rev 54097)
+++ trunk/Master/texmf-dist/tex/latex/zref/zref-totpages.sty	2020-03-05 00:53:33 UTC (rev 54098)
@@ -9,11 +9,11 @@
 %% This is a generated file.
 %% 
 %% Project: zref
-%% Version: 2019/11/29 v2.28
+%% Version: 2020-03-03 v2.29
 %% 
 %% Copyright (C)
 %%   2006-2012 Heiko Oberdiek
-%%   2016-2019 Oberdiek Package Support Group
+%%   2016-2020 Oberdiek Package Support Group
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either
@@ -48,7 +48,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-totpages}%
-  [2019/11/29 v2.28 Module totpages for zref (HO)]%
+  [2020-03-03 v2.29 Module totpages for zref (HO)]%
 \RequirePackage{zref-base}[2019/11/29]
 \ifx\ZREF at base@ok Y%
 \else
@@ -62,6 +62,7 @@
 \AtBeginDocument{%
   \zref at refused{LastPage}%
 }
+%% \section{Installation}
 \endinput
 %%
 %% End of file `zref-totpages.sty'.

Modified: trunk/Master/texmf-dist/tex/latex/zref/zref-user.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/zref/zref-user.sty	2020-03-05 00:53:15 UTC (rev 54097)
+++ trunk/Master/texmf-dist/tex/latex/zref/zref-user.sty	2020-03-05 00:53:33 UTC (rev 54098)
@@ -9,11 +9,11 @@
 %% This is a generated file.
 %% 
 %% Project: zref
-%% Version: 2019/11/29 v2.28
+%% Version: 2020-03-03 v2.29
 %% 
 %% Copyright (C)
 %%   2006-2012 Heiko Oberdiek
-%%   2016-2019 Oberdiek Package Support Group
+%%   2016-2020 Oberdiek Package Support Group
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either
@@ -48,7 +48,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-user}%
-  [2019/11/29 v2.28 Module user for zref (HO)]%
+  [2020-03-03 v2.29 Module user for zref (HO)]%
 \RequirePackage{zref-base}[2019/11/29]
 \ifx\ZREF at base@ok Y%
 \else
@@ -82,6 +82,7 @@
 \ZREF at IfDefinable\zrefused\def{%
   {\zref at refused}%
 }
+%% \section{Installation}
 \endinput
 %%
 %% End of file `zref-user.sty'.

Modified: trunk/Master/texmf-dist/tex/latex/zref/zref-xr.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/zref/zref-xr.sty	2020-03-05 00:53:15 UTC (rev 54097)
+++ trunk/Master/texmf-dist/tex/latex/zref/zref-xr.sty	2020-03-05 00:53:33 UTC (rev 54098)
@@ -9,11 +9,11 @@
 %% This is a generated file.
 %% 
 %% Project: zref
-%% Version: 2019/11/29 v2.28
+%% Version: 2020-03-03 v2.29
 %% 
 %% Copyright (C)
 %%   2006-2012 Heiko Oberdiek
-%%   2016-2019 Oberdiek Package Support Group
+%%   2016-2020 Oberdiek Package Support Group
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either
@@ -48,7 +48,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref-xr}%
-  [2019/11/29 v2.28 Module xr for zref (HO)]%
+  [2020-03-03 v2.29 Module xr for zref (HO)]%
 \RequirePackage{zref-base}[2019/11/29]
 \ifx\ZREF at base@ok Y%
 \else
@@ -447,6 +447,7 @@
   }{%
   }%
 }%
+%% \section{Installation}
 \endinput
 %%
 %% End of file `zref-xr.sty'.

Modified: trunk/Master/texmf-dist/tex/latex/zref/zref.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/zref/zref.sty	2020-03-05 00:53:15 UTC (rev 54097)
+++ trunk/Master/texmf-dist/tex/latex/zref/zref.sty	2020-03-05 00:53:33 UTC (rev 54098)
@@ -9,11 +9,11 @@
 %% This is a generated file.
 %% 
 %% Project: zref
-%% Version: 2019/11/29 v2.28
+%% Version: 2020-03-03 v2.29
 %% 
 %% Copyright (C)
 %%   2006-2012 Heiko Oberdiek
-%%   2016-2019 Oberdiek Package Support Group
+%%   2016-2020 Oberdiek Package Support Group
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either
@@ -48,7 +48,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{zref}
-  [2019/11/29 v2.28 A new reference scheme for LaTeX (HO)]%
+  [2020-03-03 v2.29 A new reference scheme for LaTeX (HO)]%
 \RequirePackage{zref-base}[2019/11/29]
 \@ifundefined{ZREF at base@ok}{\endinput}{}
 \def\ZREF at temp#1{%
@@ -76,6 +76,7 @@
 \ZREF at temp{user}
 \ZREF at temp{xr}
 \ProcessOptions\relax
+%% \section{Installation}
 \endinput
 %%
 %% End of file `zref.sty'.



More information about the tex-live-commits mailing list.