diff options
author | Karl Berry <karl@freefriends.org> | 2020-04-11 22:20:53 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-04-11 22:20:53 +0000 |
commit | 9ba05f7c343e9c9ef750fc1cc4a49049e29de19c (patch) | |
tree | 3d5a11816aecba4b72ed35fd67bb4e10553bf1ba /Master/texmf-dist/tex/latex/hyperxmp | |
parent | a0fc5a65fc2886b3bd8a04e94db45c2f9f126d24 (diff) |
hyperxmp (11apr20)
git-svn-id: svn://tug.org/texlive/trunk@54652 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperxmp')
-rw-r--r-- | Master/texmf-dist/tex/latex/hyperxmp/hyperxmp.sty | 35 |
1 files changed, 23 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperxmp/hyperxmp.sty b/Master/texmf-dist/tex/latex/hyperxmp/hyperxmp.sty index bcd36e7d64c..e538450b175 100644 --- a/Master/texmf-dist/tex/latex/hyperxmp/hyperxmp.sty +++ b/Master/texmf-dist/tex/latex/hyperxmp/hyperxmp.sty @@ -22,7 +22,7 @@ %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{hyperxmp} - [2020/03/20 v5.0 Store hyperref metadata in XMP format] + [2020/04/08 v5.1 Store hyperref metadata in XMP format] \edef\hyxmp@dq@code{\the\catcode`\"} \catcode`\"=12 \def\hyxmp@driver{hpdftex} @@ -87,12 +87,12 @@ \PackageWarning{hyperxmp}{pdfapart and pdfuapart must be numeric}% }% } -\def\@pdfapart{1} +\def\@pdfapart{} \define@key{Hyp}{pdfapart}{% \afterassignment\hyxmp@no@bad@parts\@tempcnta=0#1\relax \hyxmp@pdfstringdef\@pdfapart{\the\@tempcnta}% } -\def\@pdfaconformance{B} +\def\@pdfaconformance{} \define@key{Hyp}{pdfaconformance}{% \uppercase{\hyxmp@pdfstringdef\@pdfaconformance{#1}}% } @@ -328,14 +328,25 @@ \fi } \newcommand*{\hyxmp@check@standards}{% - \def\hyxmp@standards{% + \ifHy@pdfa + \@ifmtargexp{\@pdfapart}{% + \PackageWarningNoLine{hyperxmp}{% + `pdfa' was passed to hyperref, but `pdfapart' was\MessageBreak + not specified.\space\space Setting pdfapart to `1' and\MessageBreak + pdfaconformance to `B'% + }% + \gdef\@pdfapart{1}% + \gdef\@pdfaconformance{B}% + }% + \fi + \edef\hyxmp@standards{% \@pdfapart \@pdfxstandard \@pdfuapart }% \@ifnotmtargexp{\hyxmp@standards}{% \@ifmtargexp{\@pdftitle}{% - \PackageWarning{hyperxmp}{% + \PackageWarningNoLine{hyperxmp}{% Missing pdftitle (required for PDF standards\MessageBreak compliance)% }% @@ -568,7 +579,7 @@ \edef\hyxmp@today@xmp{\expandafter\hyxmp@pdf@to@xmp@date\pdffeedback creationdate}% } \hyxmp@try@today{filemoddate}{% - \edef\hyxmp@today@xmp{\filemoddate{\jobname.aux}}% + \edef\hyxmp@today@xmp{\filemoddate{\jobname.log}}% \edef\next{% \edef\noexpand\hyxmp@today@xmp{\noexpand\hyxmp@as@xmp@date{\hyxmp@today@xmp}}% }% @@ -984,14 +995,14 @@ _______________________________________________________________^^J% \newcommand*{\hyxmp@x@default}{x-default} \newcommand*{\hyxmp@define@pdfproducer}{% \gdef\@pdfproducer{TeX} - \ifPDFTeX - \expandafter\hyxmp@banner@to@producer\expandafter{\pdftexbanner} + \ifLuaTeX + \expandafter\hyxmp@banner@to@producer\expandafter{\luatexbanner}% \else - \ifLuaTeX - \expandafter\hyxmp@banner@to@producer\expandafter{\luatexbanner} + \ifPDFTeX + \expandafter\hyxmp@banner@to@producer\expandafter{\pdftexbanner}% \else \ifXeTeX - \edef\@pdfproducer{XeTeX version \the\XeTeXversion\XeTeXrevision} + \edef\@pdfproducer{XeTeX version \the\XeTeXversion\XeTeXrevision}% \fi \fi \fi @@ -1000,7 +1011,7 @@ _______________________________________________________________^^J% \ifx\scantokens\relax \gdef\@pdfproducer{#1}% \else - \scantokens{\makeatletter\hyxmp@remove@this#1\relax\makeatother}% + {\scantokens{\makeatletter\hyxmp@remove@this#1\relax}}% \fi } \def\hyxmp@remove@this This is #1\relax{\gdef\@pdfproducer{#1}} |