summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/hyperxmp/hyperxmp.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperxmp/hyperxmp.sty')
-rw-r--r--Master/texmf-dist/tex/latex/hyperxmp/hyperxmp.sty35
1 files changed, 19 insertions, 16 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperxmp/hyperxmp.sty b/Master/texmf-dist/tex/latex/hyperxmp/hyperxmp.sty
index bd32588a1c0..8aed9b04c71 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}
- [2023/09/10 v5.12 Store hyperref metadata in XMP format]
+ [2024/03/17 v5.13 Store hyperref metadata in XMP format]
\IfDocumentMetadataTF{%
\PackageWarning
{hyperxmp}
@@ -166,23 +166,26 @@
\define@key{Hyp}{pdfinstanceid}{\hyxmp@pdfstringdef\hyxmp@InstanceID{#1}}
\def\@pdfversionid{1}
\define@key{Hyp}{pdfversionid}{\hyxmp@pdfstringdef\@pdfversionid{#1}}
-\begingroup
- \@ifpackageloaded{ifdraft}{%
- \let\next=\relax
- }{%
+\let\hyxmp@orig@ifdraft=\ifdraft
+\@ifpackageloaded{ifdraft}{%
+ \let\next=\relax
+}{%
+ \let\ifdraft=\relax
+ \RequirePackage{ifdraft}%
+ \def\next{%
+ \expandafter\let\csname ver@ifdraft.sty\endcsname=\relax
\let\ifdraft=\relax
- \RequirePackage{ifdraft}%
- \def\next{%
- \expandafter\global\expandafter\let\csname ver@ifdraft.sty\endcsname=\relax
- }%
+ \let\ifoptiondraft=\relax
+ \let\ifoptionfinal=\relax
}%
- \ifdraft{%
- \gdef\@pdfrendition{draft}%
- }{%
- \gdef\@pdfrendition{default}%
- }
- \next
-\endgroup
+}%
+\ifdraft{%
+ \def\@pdfrendition{draft}%
+}{%
+ \def\@pdfrendition{default}%
+}
+\next
+\let\ifdraft=\hyxmp@orig@ifdraft
\define@key{Hyp}{pdfrendition}{\hyxmp@pdfstringdef\@pdfrendition{#1}}
\def\@pdfpublication{}
\define@key{Hyp}{pdfpublication}{\hyxmp@pdfstringdef\@pdfpublication{#1}}