diff options
author | Karl Berry <karl@freefriends.org> | 2020-09-02 21:38:20 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-09-02 21:38:20 +0000 |
commit | bfe8caea14d3577aef252fe0e78c5951b6d95236 (patch) | |
tree | 30502a8407938cd00b703158a2687c6399089071 /Master/texmf-dist/tex/latex/metastr/metastr.sty | |
parent | c4ee329d9de36c54e6715838a7617a385228e519 (diff) |
metastr (2sep20)
git-svn-id: svn://tug.org/texlive/trunk@56246 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/metastr/metastr.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/metastr/metastr.sty | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/metastr/metastr.sty b/Master/texmf-dist/tex/latex/metastr/metastr.sty index feeddfed6fd..62629610acb 100644 --- a/Master/texmf-dist/tex/latex/metastr/metastr.sty +++ b/Master/texmf-dist/tex/latex/metastr/metastr.sty @@ -17,7 +17,7 @@ %% version 2005/12/01 or later. %% \NeedsTeXFormat{LaTeX2e}[1996/12/01] -\ProvidesPackage{metastr}[2020/08/27 v1.1.1 Metadata Strings Storage] +\ProvidesPackage{metastr}[2020/09/02 v1.1.2 Metadata Strings Storage] \RequirePackage{keyval} @@ -186,17 +186,21 @@ } \newcommand{\mstr@begindoc}{% - \mstr@ifwritepdf[preamble]{\metawritepdfpreamble}% - \mstr@ifwritepdf[auto]{\metawritepdf}% -} + \mstr@ifwritepdf[auto]{\metawritepdf}} +\newcommand{\mstr@begindocpreamble}{% + \mstr@ifwritepdf[preamble]{\metawritepdfpreamble}} \ifdefined\AddToHook \DeclareHookRule{begindocument}{metastr}{before}{hyperref} +\DeclareHookRule{begindocument}{metastr}{before}{hyperxmp} \AddToHook{begindocument}{\mstr@begindoc} +\DeclareHookRule{begindocument/before}{metastr}{before}{hyperxmp} +\AddToHook{begindocument/before}{\mstr@begindocpreamble} \else +\AtBeginDocument{\mstr@begindoc} \begingroup -\toks@\expandafter{\expandafter\mstr@begindoc\@begindocumenthook}% -\xdef\@begindocumenthook{\the\toks@}% +\toks@\expandafter{\expandafter\mstr@begindocpreamble\@begindocumenthook} +\xdef\@begindocumenthook{\the\toks@} \endgroup \fi |