[latex3-commits] [git/LaTeX3-latex3-latex2e] OR-lab: WIP (fb7fe0cc)
Frank Mittelbach
frank.mittelbach at latex-project.org
Fri Feb 18 23:59:12 CET 2022
Repository : https://github.com/latex3/latex2e
On branch : OR-lab
Link : https://github.com/latex3/latex2e/commit/fb7fe0ccca6d39f07a957c38296f46d936b03012
>---------------------------------------------------------------
commit fb7fe0ccca6d39f07a957c38296f46d936b03012
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date: Fri Feb 18 23:59:12 2022 +0100
WIP
>---------------------------------------------------------------
fb7fe0ccca6d39f07a957c38296f46d936b03012
required/latex-lab/latex-lab-new-or.dtx | 37 ++++++++++++++++++++++++
required/latex-lab/testfiles-OR/footmisc-000.lvt | 2 ++
required/latex-lab/testfiles-OR/footmisc-000.tlg | 5 ++--
3 files changed, 41 insertions(+), 3 deletions(-)
diff --git a/required/latex-lab/latex-lab-new-or.dtx b/required/latex-lab/latex-lab-new-or.dtx
index 22d17d53..fe35915d 100644
--- a/required/latex-lab/latex-lab-new-or.dtx
+++ b/required/latex-lab/latex-lab-new-or.dtx
@@ -1143,6 +1143,43 @@
\let \@footnotetext \FN at footnotetext
\let\@footnotemark \FN at footnotemark
}
+% \end{macrocode}
+% TEMP PATCHES FOR TESTING
+% \begin{macrocode}
+
+\endinput
+
+\DeclareDocumentCommand\footnote {om}{%
+ \IfNoValueTF{#1}%
+ {\stepcounter\@mpfn
+ \protected at xdef\@thefnmark{\thempfn}}%
+ {\begingroup
+ \csname c@\@mpfn\endcsname #1\relax
+ \unrestored at protected@xdef\@thefnmark{\thempfn}%
+ \endgroup}%
+ \tagstructbegin{tag=Lbl}%
+ \tagmcbegin{tag=Lbl}%
+ \@footnotemark
+ \tagmcend
+ \tagstructend
+ \@footnotetext
+ {%
+ \tagmcbegin{tag=Note}%
+ #2%
+ \tagmcend
+ }%
+}
+
+\def\@makefntext
+ {\noindent\tagstructbegin{tag=Lbl}\tagmcbegin{tag=Lbl}\@makefnmark\tagmcend\tagstructend}
+
+\ExplSyntaxOn
+\AddToHook{cmd/footnote/before}{\tag_mc_end_push:\bgroup\tagpdfparaOff\tagstructbegin{tag=Note}}
+\AddToHook{cmd/footnote/after}{\tagstructend\egroup\tag_mc_begin_pop:n{}}
+\ExplSyntaxOff
+
+
+
\endinput
%</footmisc>
% \end{macrocode}
diff --git a/required/latex-lab/testfiles-OR/footmisc-000.lvt b/required/latex-lab/testfiles-OR/footmisc-000.lvt
index e9a437e5..dd029a26 100644
--- a/required/latex-lab/testfiles-OR/footmisc-000.lvt
+++ b/required/latex-lab/testfiles-OR/footmisc-000.lvt
@@ -1,3 +1,5 @@
+\DocumentMetadata{testphase=phase-II}
+
\documentclass{article}
\input{regression-test}
diff --git a/required/latex-lab/testfiles-OR/footmisc-000.tlg b/required/latex-lab/testfiles-OR/footmisc-000.tlg
index e291541e..17554c40 100644
--- a/required/latex-lab/testfiles-OR/footmisc-000.tlg
+++ b/required/latex-lab/testfiles-OR/footmisc-000.tlg
@@ -1,10 +1,9 @@
This is a generated file for the l3build validation system.
Don't change this file in any respect.
-(footmisc.sty
-Package: footmisc ....-..-.. v... a miscellany of footnote facilities
+(latex-lab-footmisc.ltx
+Package: latex-lab-footmisc ....-..-.. v... a miscellany of footnote facilities
\FN at temptoken=\toks...
\footnotemargin=\dimen...
-\@outputbox at depth=\dimen...
Package footmisc Info: Declaring symbol style bringhurst on input line ....
Package footmisc Info: Declaring symbol style chicago on input line ....
Package footmisc Info: Declaring symbol style wiley on input line ....
More information about the latex3-commits
mailing list.