diff options
author | Karl Berry <karl@freefriends.org> | 2020-08-27 21:25:12 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-08-27 21:25:12 +0000 |
commit | e2c520f7541bb0f62782e4d2d0842b4ba55f87d4 (patch) | |
tree | f1408f554fcfa1f720feb75677752fb270fc0a81 /Master/texmf-dist/tex/latex/metastr | |
parent | 91c29d8f8d11a3baf6ac6a6de6e26ef7c8efa102 (diff) |
metastr (27aug20)
git-svn-id: svn://tug.org/texlive/trunk@56195 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/metastr')
-rw-r--r-- | Master/texmf-dist/tex/latex/metastr/metastr.sty | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/metastr/metastr.sty b/Master/texmf-dist/tex/latex/metastr/metastr.sty index d43de3190ce..feeddfed6fd 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/06/28 v1.1 Metadata Strings Storage] +\ProvidesPackage{metastr}[2020/08/27 v1.1.1 Metadata Strings Storage] \RequirePackage{keyval} @@ -190,10 +190,15 @@ \mstr@ifwritepdf[auto]{\metawritepdf}% } +\ifdefined\AddToHook +\DeclareHookRule{begindocument}{metastr}{before}{hyperref} +\AddToHook{begindocument}{\mstr@begindoc} +\else \begingroup \toks@\expandafter{\expandafter\mstr@begindoc\@begindocumenthook}% \xdef\@begindocumenthook{\the\toks@}% \endgroup +\fi \metadef{draft} \newcommand{\mstr@set@draft}{% @@ -257,7 +262,8 @@ \metaset{titlematter}{% \metapick[#1]{titletext}% \metapick[#1]{authortext}% - \metapick[#1]{datatext}} + \metapick[#1]{datatext}% + \metaget[skip]{titlematter}} \metaset[print]{titletext}{% \metatitleline[print]{title}% \metatitlelinetwo[print]{subtitle}[print]{draft}} @@ -267,7 +273,8 @@ \metatitlelinetwo[print]{location}[print]{date}} \ifmstr@opt@titlematter\else \metaset{titlematter}{% - \metapick[#1]{titletext}} + \metapick[#1]{titletext}% + \metaget[skip]{titlematter}} \metaset[print]{titletext}{% \metatitleline[print]{title}% \metatitlelinetwo[print]{subtitle}[print]{draft}% @@ -679,7 +686,8 @@ \metaset[course]{titlematter}{% \metapick[course]{titletext}% \metapick[course]{datatext}% - \metapick[course]{authortext}} + \metapick[course]{authortext}% + \metaget[skip]{titlematter}} \metaset[course]{titletext}{% \metatitleline[print]{course}% \metatitlelinetwo[print]{material}[print]{draft}} @@ -689,7 +697,8 @@ \metatitlelinetwo[print]{institution}[print]{period}} \ifmstr@opt@titlematter\else \metaset[course]{titlematter}{% - \metapick[course]{titletext}} + \metapick[course]{titletext}% + \metaget[skip]{titlematter}} \metaset[course]{titletext}{% \metatitleline[print]{course}% \metatitlelinetwo[print]{material}[print]{draft}% |