[latex3-commits] [git/LaTeX3-latex3-latex2e] metadata: skeleton (4697e70d)

Frank Mittelbach frank.mittelbach at latex-project.org
Tue Dec 7 19:17:02 CET 2021


Repository : https://github.com/latex3/latex2e
On branch  : metadata
Link       : https://github.com/latex3/latex2e/commit/4697e70db30c68d3df2444f2d6ef58dc2daceb9b

>---------------------------------------------------------------

commit 4697e70db30c68d3df2444f2d6ef58dc2daceb9b
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Tue Dec 7 19:17:02 2021 +0100

    skeleton


>---------------------------------------------------------------

4697e70db30c68d3df2444f2d6ef58dc2daceb9b
 base/doc/source2e.tex |   2 +
 base/format.ins       |   1 +
 base/ltmeta.dtx       | 114 ++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 117 insertions(+)

diff --git a/base/doc/source2e.tex b/base/doc/source2e.tex
index abe8c1aa..cc3e5d16 100644
--- a/base/doc/source2e.tex
+++ b/base/doc/source2e.tex
@@ -264,6 +264,8 @@ page_precedence "rnaA"
 
  \DocInclude{ltpara}   % Paragraph hooks (L3 module)
 
+ \DocInclude{ltmeta}   % Document Metadara interface (L3 module)
+
  \DocInclude{ltspace}  % Spacing, line and page breaking.
 
  \DocInclude{ltlogos}  % Logos.
diff --git a/base/format.ins b/base/format.ins
index eece2f57..b5e75a94 100644
--- a/base/format.ins
+++ b/base/format.ins
@@ -174,6 +174,7 @@ the system are in the document `cfgguide.tex'.
           \from{lterror.dtx}{2ekernel}
           \from{ltpar.dtx}{2ekernel}
           \from{ltpara.dtx}{2ekernel}         % L3 layer module
+          \from{ltmeta.dtx}{2ekernel}         % L3 layer module
           \from{ltspace.dtx}{2ekernel}
           \from{ltlogos.dtx}{2ekernel}
           \from{ltfiles.dtx}{2ekernel}
diff --git a/base/ltmeta.dtx b/base/ltmeta.dtx
new file mode 100644
index 00000000..36ffa238
--- /dev/null
+++ b/base/ltmeta.dtx
@@ -0,0 +1,114 @@
+% \iffalse meta-comment
+%
+%% File: ltmeta.dtx (C) Copyright 2021
+%       Frank Mittelbach, LaTeX Team
+%
+% It may be distributed and/or modified under the conditions of the
+% LaTeX Project Public License (LPPL), either version 1.3c of this
+% license or (at your option) any later version.  The latest version
+% of this license is in the file
+%
+%    https://www.latex-project.org/lppl.txt
+%
+%
+%%% From File: ltmeta.dtx
+%
+%    \begin{macrocode}
+\def\ltmetaversion{v1.0a}
+\def\ltmetadate{2021/12/07}
+%    \end{macrocode}
+%<*driver>
+\documentclass{l3doc}
+
+%\usepackage{ltmeta}
+
+% Fixing footnotes in  functions and variables: this should be in l3doc!
+
+\newcommand\fixfootnote[2]{\footnotemark
+  \AddToHookNext{env/#1/after}{\footnotetext{#2}}}
+\AddToHook{env/function/begin}{\def\footnote{\fixfootnote{function}}}
+\AddToHook{env/variable/begin}{\def\footnote{\fixfootnote{variable}}}
+
+\EnableCrossrefs
+\CodelineIndex
+\begin{document}
+  \DocInput{ltmeta.dtx}
+\end{document}
+%</driver>
+%
+% \fi
+%
+% \providecommand\hook[1]{\texttt{#1}}
+% \providecommand\env[1]{\texttt{#1}}
+%
+%
+%
+% \title{The \texttt{ltmeta.dtx} code\thanks{This file has version
+%    \ltmetaversion\ dated \ltmetadate, \copyright\ \LaTeX\
+%    Project.}}
+% \author{Frank Mittelbach}
+%
+% \maketitle
+%
+%
+% \begin{abstract}
+%    This code defines the \cs{DeclareDocumentMetadata} interface.
+% \end{abstract}
+%
+% \tableofcontents
+%
+%
+% \section{Introduction}
+%
+%
+%
+%
+%
+%
+% \StopEventually{\setlength\IndexMin{200pt}  \PrintIndex  }
+%
+%
+% \section{The Implementation}
+%
+%    \begin{macrocode}
+%<@@=tag>
+%    \end{macrocode}
+%
+%
+%    \begin{macrocode}
+%<*2ekernel|latexrelease>
+\ExplSyntaxOn
+%<latexrelease>\NewModuleRelease{2021/06/01}{ltmeta}
+%<latexrelease>                 {Document~Metadata~handling}
+%    \end{macrocode}
+%
+%
+%
+% \subsection{}
+%
+%
+%    \begin{macrocode}
+%
+%<latexrelease>\IncludeInRelease{0000/00/00}%
+%<latexrelease>                 {Document~Metadata~handling}
+%<latexrelease>
+%<latexrelease>
+%<latexrelease>
+%<latexrelease>\EndModuleRelease
+\ExplSyntaxOff
+%</2ekernel|latexrelease>
+%    \end{macrocode}
+%
+%    Restore module prefix:
+%    \begin{macrocode}
+%<@@=>
+%    \end{macrocode}
+%
+%
+%
+%
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\endinput
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%





More information about the latex3-commits mailing list.