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 | |
parent | c4ee329d9de36c54e6715838a7617a385228e519 (diff) |
metastr (2sep20)
git-svn-id: svn://tug.org/texlive/trunk@56246 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/latex/metastr/README.txt | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/metastr/metasamp.tex | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/metastr/metastr.pdf | bin | 340489 -> 340901 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/metastr/metastr.dtx | 51 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/metastr/metastr.sty | 16 |
5 files changed, 53 insertions, 18 deletions
diff --git a/Master/texmf-dist/doc/latex/metastr/README.txt b/Master/texmf-dist/doc/latex/metastr/README.txt index f91ab5a62d6..fcdaecdd3ec 100644 --- a/Master/texmf-dist/doc/latex/metastr/README.txt +++ b/Master/texmf-dist/doc/latex/metastr/README.txt @@ -1,4 +1,4 @@ -metastr v1.1.1 +metastr v1.1.2 Copyright 2020 Niklas Beisert metastr is a LaTeX2e package diff --git a/Master/texmf-dist/doc/latex/metastr/metasamp.tex b/Master/texmf-dist/doc/latex/metastr/metasamp.tex index ec46f2b0017..ca5e53a6221 100644 --- a/Master/texmf-dist/doc/latex/metastr/metasamp.tex +++ b/Master/texmf-dist/doc/latex/metastr/metasamp.tex @@ -17,7 +17,7 @@ %% version 2005/12/01 or later. %% \NeedsTeXFormat{LaTeX2e}[1996/12/01] -\ProvidesFile{metasamp.tex}[2020/08/27 v1.1.1 sample for metastr] +\ProvidesFile{metasamp.tex}[2020/09/02 v1.1.2 sample for metastr] \documentclass[12pt]{article} \usepackage{geometry} diff --git a/Master/texmf-dist/doc/latex/metastr/metastr.pdf b/Master/texmf-dist/doc/latex/metastr/metastr.pdf Binary files differindex fa578dc1436..5301e909300 100644 --- a/Master/texmf-dist/doc/latex/metastr/metastr.pdf +++ b/Master/texmf-dist/doc/latex/metastr/metastr.pdf diff --git a/Master/texmf-dist/source/latex/metastr/metastr.dtx b/Master/texmf-dist/source/latex/metastr/metastr.dtx index 6f70de93a52..4a68d29a963 100644 --- a/Master/texmf-dist/source/latex/metastr/metastr.dtx +++ b/Master/texmf-dist/source/latex/metastr/metastr.dtx @@ -18,10 +18,10 @@ % and the derived files metastr.sty and metasamp.tex. % %<package|sample>\NeedsTeXFormat{LaTeX2e}[1996/12/01] -%<package>\ProvidesPackage{metastr}[2020/08/27 v1.1.1 Metadata Strings Storage] -%<sample>\ProvidesFile{metasamp.tex}[2020/08/27 v1.1.1 sample for metastr] +%<package>\ProvidesPackage{metastr}[2020/09/02 v1.1.2 Metadata Strings Storage] +%<sample>\ProvidesFile{metasamp.tex}[2020/09/02 v1.1.2 sample for metastr] %<*driver> -\def\thedate#1{2020/08/27}\def\theversion#1{v1.1.1} +\def\thedate#1{2020/09/02}\def\theversion#1{v1.1.2} \ProvidesFile{metastr.dtx}[\thedate{} \theversion{} metastr reference manual file] \PassOptionsToClass{10pt,a4paper}{article} \documentclass{ltxdoc} @@ -1398,6 +1398,26 @@ Make use of the \textsf{babel} package for translations of basic terms. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \subsection{Revision History} +\iffalse + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\paragraph{vXXX+:} YYYY/MM/DD+ + +\begin{itemize} +\item +\ldots +\end{itemize} + +\fi + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\paragraph{v1.1.2:} 2020/09/02 + +\begin{itemize} +\item +improve hook processing to set |pdflang| at the right moment +\end{itemize} + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \paragraph{v1.1.1:} 2020/08/27 @@ -2099,27 +2119,38 @@ some representations of the selected license: % \end{macrocode} % \macro{\mstr@begindoc} +% \macro{\mstr@begindocpreamble} % Hook for writing data to PDF file; -% this is the last chance to write the preamble set of data to the PDF: +% this is the last chance to write the preamble set of data to the PDF +% (|pdflang| must be declared before \textsf{hyperxmp} +% detects languages at the end of the preamble +% and before \textsf{hyperref} sets it at the beginning of the document): % \begin{macrocode} \newcommand{\mstr@begindoc}{% - \mstr@ifwritepdf[preamble]{\metawritepdfpreamble}% - \mstr@ifwritepdf[auto]{\metawritepdf}% -} + \mstr@ifwritepdf[auto]{\metawritepdf}} +\newcommand{\mstr@begindocpreamble}{% + \mstr@ifwritepdf[preamble]{\metawritepdfpreamble}} % \end{macrocode} % Hook |\mstr@begindoc| to begining of |document| block -% before hooks by \textsf{hyperref} are called; +% (before hooks by \textsf{hyperref} and \textsf{hyperxmp} are called, +% just in case); +% hook |\mstr@begindocpreamble| to begining of |document| block +% before hooks by \textsf{hyperxmp} are called; % legacy code for latex releases earlier than 2020-10 % to add hook before all other hooks are called: % \begin{macrocode} \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 % \end{macrocode} 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 |