summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-08-27 21:25:12 +0000
committerKarl Berry <karl@freefriends.org>2020-08-27 21:25:12 +0000
commite2c520f7541bb0f62782e4d2d0842b4ba55f87d4 (patch)
treef1408f554fcfa1f720feb75677752fb270fc0a81 /Master/texmf-dist
parent91c29d8f8d11a3baf6ac6a6de6e26ef7c8efa102 (diff)
metastr (27aug20)
git-svn-id: svn://tug.org/texlive/trunk@56195 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/metastr/README.txt2
-rw-r--r--Master/texmf-dist/doc/latex/metastr/metasamp.tex2
-rw-r--r--Master/texmf-dist/doc/latex/metastr/metastr.pdfbin332920 -> 340489 bytes
-rw-r--r--Master/texmf-dist/source/latex/metastr/metastr.dtx51
-rw-r--r--Master/texmf-dist/tex/latex/metastr/metastr.sty19
5 files changed, 51 insertions, 23 deletions
diff --git a/Master/texmf-dist/doc/latex/metastr/README.txt b/Master/texmf-dist/doc/latex/metastr/README.txt
index 0a41eae10c5..f91ab5a62d6 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
+metastr v1.1.1
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 0b0a14761df..ec46f2b0017 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/06/28 v1.1 sample for metastr]
+\ProvidesFile{metasamp.tex}[2020/08/27 v1.1.1 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
index 0511b7fd97d..fa578dc1436 100644
--- a/Master/texmf-dist/doc/latex/metastr/metastr.pdf
+++ b/Master/texmf-dist/doc/latex/metastr/metastr.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/metastr/metastr.dtx b/Master/texmf-dist/source/latex/metastr/metastr.dtx
index 8111b295c10..6f70de93a52 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/06/28 v1.1 Metadata Strings Storage]
-%<sample>\ProvidesFile{metasamp.tex}[2020/06/28 v1.1 sample for metastr]
+%<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]
%<*driver>
-\def\thedate#1{2020/06/28}\def\theversion#1{v1.1}
+\def\thedate#1{2020/08/27}\def\theversion#1{v1.1.1}
\ProvidesFile{metastr.dtx}[\thedate{} \theversion{} metastr reference manual file]
\PassOptionsToClass{10pt,a4paper}{article}
\documentclass{ltxdoc}
@@ -95,6 +95,7 @@ facilitate basic internationalisation and localisation.
\tableofcontents
\endgroup
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Introduction}
@@ -240,7 +241,6 @@ it should therefore be set by the command:
The starred version declares the language for PDF metadata
rather than the document contents.
-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Working with Strings}
\label{sec:work}
@@ -562,12 +562,10 @@ and serves a similar purpose as the \LaTeX{} command |\maketitle|:
|\metaset{titlematter}{%|\\
| \metapick[#1]{titletext}%|\\
| \metapick[#1]{authortext}%|\\
-| \metapick[#1]{datatext}}|
+| \metapick[#1]{datatext}%|\\
+| \metaget[skip]{titlematter}}|
\end{tabular}
\end{center}
-%
-
-%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Write Document Metadata}
@@ -1371,7 +1369,6 @@ or&|\metaunset[auto]{writepdf}|
\end{tabular}
\end{center}
-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Feature Suggestions}
\label{sec:suggestions}
@@ -1394,12 +1391,24 @@ Make use of the \textsf{babel} package for translations of basic terms.
% load babel when not only en?
%\item
%title translations via titletext?
+%\item
+%perhaps use \textsf{xparse} to generate robust commands for optional variants
\end{itemize}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{Revision History}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\paragraph{v1.1.1:} 2020/08/27
+
+\begin{itemize}
+\item
+introduce |skip| variant for |titlematter| register
+\item
+adjust hook to new \LaTeXe\ (2020-10) hook processing
+\end{itemize}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\paragraph{v1.1:} 2020/06/28
\begin{itemize}
@@ -1417,8 +1426,6 @@ fix saving of PDF info (|keeppdfinfo|) with updated \textsf{hyperxmp} package
fix package options |hyperref|, |hyperxmp|, |checkdef|, |xmppdfinfo|
\item
fix compatibility with updated \textsf{doclicense} package (v2)
-\item
-\ldots
\end{itemize}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -1429,6 +1436,7 @@ fix compatibility with updated \textsf{doclicense} package (v2)
first version, published on CTAN
\end{itemize}
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -2101,12 +2109,19 @@ some representations of the selected license:
% \end{macrocode}
% Hook |\mstr@begindoc| to begining of |document| block
-% before all other hooks are called:
+% before hooks by \textsf{hyperref} 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}
+\AddToHook{begindocument}{\mstr@begindoc}
+\else
\begingroup
\toks@\expandafter{\expandafter\mstr@begindoc\@begindocumenthook}%
\xdef\@begindocumenthook{\the\toks@}%
\endgroup
+\fi
% \end{macrocode}
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -2228,7 +2243,8 @@ some representations of the selected license:
\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}}
@@ -2241,7 +2257,8 @@ some representations of the selected license:
% \begin{macrocode}
\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}%
@@ -3058,7 +3075,8 @@ some representations of the selected license:
\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}}
@@ -3071,7 +3089,8 @@ some representations of the selected license:
% \begin{macrocode}
\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}%
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}%