[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: firstaid for classes definining \footref unconditionally (to be taken out again later) (809b7e9b)
Frank Mittelbach
frank.mittelbach at latex-project.org
Wed Feb 24 12:33:41 CET 2021
Repository : https://github.com/latex3/latex2e
On branch : develop
Link : https://github.com/latex3/latex2e/commit/809b7e9b9115e8ffd1567fdd25a9ebdb1500047f
>---------------------------------------------------------------
commit 809b7e9b9115e8ffd1567fdd25a9ebdb1500047f
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date: Wed Feb 24 12:33:41 2021 +0100
firstaid for classes definining \footref unconditionally (to be taken out again later)
>---------------------------------------------------------------
809b7e9b9115e8ffd1567fdd25a9ebdb1500047f
.../latex2e-first-aid-for-external-files.dtx | 43 ++-
required/firstaid/testfiles/firstaid-memoir.lvt | 17 ++
required/firstaid/testfiles/firstaid-memoir.tlg | 332 +++++++++++++++++++++
required/firstaid/testfiles/firstaid-scrreport.lvt | 17 ++
required/firstaid/testfiles/firstaid-scrreport.tlg | 121 ++++++++
5 files changed, 527 insertions(+), 3 deletions(-)
diff --git a/required/firstaid/latex2e-first-aid-for-external-files.dtx b/required/firstaid/latex2e-first-aid-for-external-files.dtx
index d17c6967..d0c0e24a 100644
--- a/required/firstaid/latex2e-first-aid-for-external-files.dtx
+++ b/required/firstaid/latex2e-first-aid-for-external-files.dtx
@@ -110,8 +110,8 @@
% \end{macrocode}
%
% \begin{macrocode}
-\def\LaTeXFirstAidDate{2021/01/06}
-\def\LaTeXFirstAidVersion{v1.0j}
+\def\LaTeXFirstAidDate{2021/02/24}
+\def\LaTeXFirstAidVersion{v1.0k}
% \end{macrocode}
%
% \begin{macrocode}
@@ -418,7 +418,8 @@
% \changes{v2.2k}{2020/12/04}{Emulate everysel package}
% \begin{macrocode}
%<*kernel>
-\declare at file@substitution{everysel.sty}{everysel-ltx.sty}
+% this has been updated
+%\declare at file@substitution{everysel.sty}{everysel-ltx.sty}
%</kernel>
% \end{macrocode}
%
@@ -485,6 +486,42 @@
%
%
%
+% \subsection{\cs{footref} first aid}
+%
+% A few classes unconditionally define \cs{footref}. Until that has
+% changed we provide some first aid to let them do this.
+%
+% \begin{macrocode}
+\AddToHook{class/before/scrartcl}[firstaid]{%
+ % for version {2020/09/21 v3.32 KOMA-Script document class
+ \let\footref\@undefined
+}
+\AddToHook{class/before/scrreport}[firstaid]{%
+ % for version {2020/09/21 v3.32 KOMA-Script document class
+ \let\footref\@undefined
+}
+\AddToHook{class/before/scrrprt}[firstaid]{%
+ % for version {2020/09/21 v3.32 KOMA-Script document class
+ \let\footref\@undefined
+}
+\AddToHook{class/before/scrlttr2}[firstaid]{%
+ % for version {2020/09/21 v3.32 KOMA-Script document class
+ \let\footref\@undefined
+}
+\AddToHook{class/before/scrbook}[firstaid]{%
+ % for version {2020/09/21 v3.32 KOMA-Script document class
+ \let\footref\@undefined
+}
+% \end{macrocode}
+%
+% \begin{macrocode}
+\AddToHook{class/before/memoir}[firstaid]{%
+ % for version {2020/10/04 v3.7n configurable book, report, article document class}%
+ \let\footref\@undefined
+}
+% \end{macrocode}
+%
+%
% \subsection[Temporary fixes for the kernel (until the next
% patch-level release)]
% {Temporary fixes for the kernel \\
diff --git a/required/firstaid/testfiles/firstaid-memoir.lvt b/required/firstaid/testfiles/firstaid-memoir.lvt
new file mode 100644
index 00000000..32306ed3
--- /dev/null
+++ b/required/firstaid/testfiles/firstaid-memoir.lvt
@@ -0,0 +1,17 @@
+\RequirePackage{expl3} % make sure the backend files are loaded early
+
+
+\input{regression-test}
+
+\START
+
+\documentclass{memoir}
+
+
+\OMIT
+\begin{document}
+\TIMO
+
+Test\footref{A}
+
+\end{document}
diff --git a/required/firstaid/testfiles/firstaid-memoir.tlg b/required/firstaid/testfiles/firstaid-memoir.tlg
new file mode 100644
index 00000000..feb9ae33
--- /dev/null
+++ b/required/firstaid/testfiles/firstaid-memoir.tlg
@@ -0,0 +1,332 @@
+This is a generated file for the l3build validation system.
+Don't change this file in any respect.
+(../memoir.cls
+Document Class: memoir ....-..-.. v... configurable book, report, article document class
+\onelineskip=\skip...
+\lxvchars=\skip...
+\xlvchars=\skip...
+\@memcnta=\count...
+\c@@memmarkcntra=\count...
+(../iftex.sty
+Package: iftex ....-..-.. v... TeX engine tests
+)
+\stockheight=\skip...
+\stockwidth=\skip...
+\trimtop=\skip...
+\trimedge=\skip...
+(../mem10.clo
+File: mem10.clo ....-..-.. v... memoir class 10pt size option
+)
+\binding=\skip...
+\spinemargin=\skip...
+\foremargin=\skip...
+\uppermargin=\skip...
+\lowermargin=\skip...
+\headdrop=\skip...
+\normalrulethickness=\skip...
+\mem at maxheadheight=\skip...
+\mem at maxfootheight=\skip...
+\headwidth=\skip...
+\c at storedpagenumber=\count...
+\memPD=\dimen...
+\m at mabparskip=\skip...
+\thanksmarkwidth=\skip...
+\thanksmarksep=\skip...
+\droptitle=\skip...
+\c at book=\count...
+\c at part=\count...
+\c at chapter=\count...
+\c at section=\count...
+\c at subsection=\count...
+\c at subsubsection=\count...
+\c at paragraph=\count...
+\c at subparagraph=\count...
+\beforechapskip=\skip...
+\midchapskip=\skip...
+\afterchapskip=\skip...
+\chapindent=\skip...
+\bottomsectionskip=\skip...
+\secindent=\skip...
+\beforesecskip=\skip...
+\aftersecskip=\skip...
+\subsecindent=\skip...
+\beforesubsecskip=\skip...
+\aftersubsecskip=\skip...
+\subsubsecindent=\skip...
+\beforesubsubsecskip=\skip...
+\aftersubsubsecskip=\skip...
+\paraindent=\skip...
+\beforeparaskip=\skip...
+\afterparaskip=\skip...
+\subparaindent=\skip...
+\beforesubparaskip=\skip...
+\aftersubparaskip=\skip...
+\pfbreakskip=\skip...
+\c@@ppsavesec=\count...
+\c@@ppsaveapp=\count...
+\ragrparindent=\dimen...
+\everylistparindent=\dimen...
+\parsepi=\skip...
+\topsepi=\skip...
+\itemsepi=\skip...
+\parsepii=\skip...
+\topsepii=\skip...
+\topsepiii=\skip...
+\itemsepii=\skip...
+\itemsepiii=\skip...
+\partopsepii=\skip...
+\partopsepiii=\skip...
+\m at msavetopsep=\skip...
+\m at msavepartopsep=\skip...
+\@enLab=\toks...
+\abstitleskip=\skip...
+\absleftindent=\skip...
+\abs at leftindent=\dimen...
+\absrightindent=\skip...
+\absparindent=\skip...
+\absparsep=\skip...
+\c at vslineno=\count...
+\c at poemline=\count...
+\c at modulo@vs=\count...
+\c at memfvsline=\count...
+\vleftskip=\skip...
+\vrightskip=\skip...
+\stanzaskip=\skip...
+\versewidth=\skip...
+\vgap=\skip...
+\vindent=\skip...
+\vleftmargin=\dimen...
+\c at verse=\count...
+\c at chrsinstr=\count...
+\beforepoemtitleskip=\skip...
+\afterpoemtitleskip=\skip...
+\c at poem=\count...
+\beforePoemTitleskip=\skip...
+\midPoemTitleskip=\skip...
+\afterPoemTitleskip=\skip...
+(array.sty
+Package: array ....-..-.. v... Tabular extension package (FMi)
+\col at sep=\dimen...
+\ar at mcellbox=\box...
+\extrarowheight=\dimen...
+\NC at list=\toks...
+\extratabsurround=\skip...
+\backup at length=\skip...
+\ar at cellbox=\box...
+)
+(dcolumn.sty
+Package: dcolumn ....-..-.. v... decimal alignment package (DPC)
+) (delarray.sty
+Package: delarray ....-..-.. v... array delimiter package (DPC)
+) (tabularx.sty
+Package: tabularx ....-..-.. v... `tabularx' package (DPC)
+\TX at col@width=\dimen...
+\TX at old@table=\dimen...
+\TX at old@col=\dimen...
+\TX at target=\dimen...
+\TX at delta=\dimen...
+\TX at cols=\count...
+\TX at ftn=\toks...
+)
+\heavyrulewidth=\dimen...
+\lightrulewidth=\dimen...
+\cmidrulewidth=\dimen...
+\belowrulesep=\dimen...
+\belowbottomsep=\dimen...
+\aboverulesep=\dimen...
+\abovetopsep=\dimen...
+\cmidrulesep=\dimen...
+\cmidrulekern=\dimen...
+\defaultaddspace=\dimen...
+\@cmidla=\count...
+\@cmidlb=\count...
+\@aboverulesep=\dimen...
+\@belowrulesep=\dimen...
+\@thisruleclass=\count...
+\@lastruleclass=\count...
+\@thisrulewidth=\dimen...
+\ctableftskip=\skip...
+\ctabrightskip=\skip...
+\abovecolumnspenalty=\count...
+\@linestogo=\count...
+\@cellstogo=\count...
+\@cellsincolumn=\count...
+\crtok=\toks...
+\@mincolumnwidth=\dimen...
+\c at newflo@tctr=\count...
+\mem at margin@floatbox=\box...
+\@contcwidth=\skip...
+\@contindw=\skip...
+\abovecaptionskip=\skip...
+\belowcaptionskip=\skip...
+\subfloattopskip=\skip...
+\subfloatcapskip=\skip...
+\subfloatcaptopadj=\skip...
+\subfloatbottomskip=\skip...
+\subfloatlabelskip=\skip...
+\subfloatcapmargin=\dimen...
+\c@@contsubnum=\count...
+\m at mscap@capbox=\box...
+\m at mscap@fbox=\box...
+\sidecapsep=\dimen...
+\sidecapwidth=\dimen...
+\m at m@tempdima=\dimen...
+\m at mscapraise=\dimen...
+\sidecapraise=\dimen...
+\m at mscapmainwidth=\dimen...
+\m at mscaplkern=\dimen...
+\beforeepigraphskip=\skip...
+\afterepigraphskip=\skip...
+\epigraphwidth=\skip...
+\epigraphrule=\skip...
+LaTeX Info: Redefining \em on input line ....
+LaTeX Info: Redefining \emph on input line ....
+\tocentryskip=\skip...
+\tocbaseline=\skip...
+\cftparskip=\skip...
+\cftbeforebookskip=\skip...
+\cftbookindent=\dimen...
+\cftbooknumwidth=\dimen...
+\cftbeforepartskip=\skip...
+\cftpartindent=\skip...
+\cftpartnumwidth=\skip...
+\cftbeforechapterskip=\skip...
+\cftchapterindent=\skip...
+\cftchapternumwidth=\skip...
+\cftbeforesectionskip=\skip...
+\cftsectionindent=\skip...
+\cftsectionnumwidth=\skip...
+\cftbeforesubsectionskip=\skip...
+\cftsubsectionindent=\skip...
+\cftsubsectionnumwidth=\skip...
+\cftbeforesubsubsectionskip=\skip...
+\cftsubsubsectionindent=\skip...
+\cftsubsubsectionnumwidth=\skip...
+\cftbeforeparagraphskip=\skip...
+\cftparagraphindent=\skip...
+\cftparagraphnumwidth=\skip...
+\cftbeforesubparagraphskip=\skip...
+\cftsubparagraphindent=\skip...
+\cftsubparagraphnumwidth=\skip...
+\prechapterprecisshift=\dimen...
+\c at maxsecnumdepth=\count...
+\bibindent=\dimen...
+\bibitemsep=\skip...
+\indexcolsep=\skip...
+\indexrule=\skip...
+\indexmarkstyle=\toks...
+\@indexbox=\insert...
+\glossarycolsep=\dimen...
+\glossaryrule=\dimen...
+\sideparvshift=\skip...
+\sideins=\insert...
+\sidebartopsep=\skip...
+\sidebarhsep=\skip...
+\sidebarvsep=\skip...
+\sidebarwidth=\skip...
+\footmarkwidth=\skip...
+\footmarksep=\skip...
+\footparindent=\skip...
+\footinsdim=\skip...
+\footinsv at r=\insert...
+\@mpfootinsv at r=\insert...
+\m at m@k=\count...
+\m at m@h=\dimen...
+\m at mipn@skip=\skip...
+\sidefootins=\insert...
+\sidefootadjust=\skip...
+\sidefootheight=\skip...
+\sidefoothsep=\skip...
+\sidefootvsep=\skip...
+\sidefootwidth=\skip...
+\m at mdownsf=\skip...
+\c at sidefootnote=\count...
+\sidefootmarkwidth=\skip...
+\sidefootmarksep=\skip...
+\sidefootparindent=\skip...
+\c at pagenote=\count...
+\c at pagenoteshadow=\count...
+\mem at pn@lastkern=\skip...
+\every at verbatim=\toks...
+\afterevery at verbatim=\toks...
+\verbatim at line=\toks...
+\tab at position=\count...
+\verbatim at in@stream=\read...
+\verbatimindent=\skip...
+\verbatim at out=\write...
+\bvboxsep=\skip...
+\c at memfbvline=\count...
+\c at bvlinectr=\count...
+\bvnumlength=\skip...
+\fb at frw=\dimen...
+\fb at frh=\dimen...
+\FrameRule=\dimen...
+\FrameSep=\dimen...
+\c at cp@cntr=\count...
+\c at ism@mctr=\count...
+\c at xsm@mctr=\count...
+\c at csm@mctr=\count...
+\c at ksm@mctr=\count...
+\c at xksm@mctr=\count...
+\c at cksm@mctr=\count...
+\c at msm@mctr=\count...
+\c at xmsm@mctr=\count...
+\c at cmsm@mctr=\count...
+\c at bsm@mctr=\count...
+\c at workm@mctr=\count...
+\c at sheetsequence=\count...
+\c at lastsheet=\count...
+\c at lastpage=\count...
+(../textcase.sty
+Package: textcase ....-..-.. v... Text only upper/lower case changing (DPC)
+)
+\c at figure=\count...
+\c at lofdepth=\count...
+\cftbeforefigureskip=\skip...
+\cftfigureindent=\skip...
+\cftfigurenumwidth=\skip...
+\c at table=\count...
+\c at lotdepth=\count...
+\cftbeforetableskip=\skip...
+\cfttableindent=\skip...
+\cfttablenumwidth=\skip...
+Package abstract [....-..-..] emulated by memoir.
+Package appendix [....-..-..] emulated by memoir.
+Package booktabs [....-..-..] emulated by memoir.
+Package ccaption [....-..-..] emulated by memoir.
+Package changepage [....-..-..] emulated by memoir.
+Package chngcntr [....-..-..] emulated by memoir.
+Package chngpage [....-..-..] emulated by memoir.
+Package crop emulated by memoir.
+Package enumerate [....-..-..] emulated by memoir.
+Package epigraph [....-..-..] emulated by memoir.
+Package ifmtarg [....-..-..] emulated by memoir.
+Package index [....-..-..] emulated by memoir.
+Package makeidx [....-..-..] emulated by memoir.
+Package moreverb [....-..-..] emulated by memoir.
+Package mparhack [....-..-..] emulated by memoir.
+Package needspace [....-..-..] emulated by memoir.
+Package newfile [....-..-..] emulated by memoir.
+Package nextpage [....-..-..] emulated by memoir.
+Package pagenote [....-..-..] emulated by memoir.
+Package parskip [....-..-..] emulated by memoir.
+Package patchcmd [....-..-..] emulated by memoir.
+Package setspace [....-..-..] emulated by memoir.
+Package shortvrb [....-..-..] emulated by memoir.
+Package showidx [....-..-..] emulated by memoir.
+Package titleref [....-..-..] emulated by memoir.
+Package titling [....-..-..] emulated by memoir.
+Package tocbibind [....-..-..] emulated by memoir.
+Package tocloft [....-..-..] emulated by memoir.
+Package tocvsec2 [....-..-..] emulated by memoir.
+Package verbatim [....-..-..] emulated by memoir.
+Package verse [....-..-..] emulated by memoir.
+)
+LaTeX Font Info: External font `cmex10' loaded for size
+(Font) <7> on input line ....
+LaTeX Font Info: External font `cmex10' loaded for size
+(Font) <5> on input line ....
+LaTeX Warning: Reference `A' on page 1 undefined on input line ....
+[1
+] (firstaid-memoir.aux)
+LaTeX Warning: There were undefined references.
diff --git a/required/firstaid/testfiles/firstaid-scrreport.lvt b/required/firstaid/testfiles/firstaid-scrreport.lvt
new file mode 100644
index 00000000..b18b6521
--- /dev/null
+++ b/required/firstaid/testfiles/firstaid-scrreport.lvt
@@ -0,0 +1,17 @@
+\RequirePackage{expl3} % make sure the backend files are loaded early
+
+
+\input{regression-test}
+
+\START
+
+\documentclass{scrreport}
+
+
+\OMIT
+\begin{document}
+\TIMO
+
+Test\footref{A}
+
+\end{document}
diff --git a/required/firstaid/testfiles/firstaid-scrreport.tlg b/required/firstaid/testfiles/firstaid-scrreport.tlg
new file mode 100644
index 00000000..7a6ef62b
--- /dev/null
+++ b/required/firstaid/testfiles/firstaid-scrreport.tlg
@@ -0,0 +1,121 @@
+This is a generated file for the l3build validation system.
+Don't change this file in any respect.
+(../scrreport.cls
+Document Class: scrreport ....-..-.. v... KOMA-Script document class (report)
+(../scrreprt.cls
+Document Class: scrreprt ....-..-.. v... KOMA-Script document class (report)
+(../scrkbase.sty
+Package: scrkbase ....-..-.. v... KOMA-Script package (KOMA-Script-dependent basics and keyval usage)
+(../scrbase.sty
+Package: scrbase ....-..-.. v... KOMA-Script package (KOMA-Script-independent basics and keyval usage)
+(../scrlfile.sty
+Package: scrlfile ....-..-.. v... KOMA-Script package (file load hooks)
+(../scrlfile-hook.sty
+Package: scrlfile-hook ....-..-.. v... KOMA-Script package (using LaTeX hooks)
+(../scrlogo.sty
+Package: scrlogo ....-..-.. v... KOMA-Script package (logo)
+)))
+(keyval.sty
+Package: keyval ....-..-.. v... key=value parser (DPC)
+\KV at toks@=\toks...
+)))
+(../tocbasic.sty
+Package: tocbasic ....-..-.. v... KOMA-Script package (handling toc-files)
+\scr at dte@tocline at numberwidth=\skip...
+\scr at dte@tocline at numbox=\box...
+)
+Package tocbasic Info: babel extension for `toc' omitted
+(tocbasic) because of missing \bbl at set@language on input line ...
+Class scrreprt Info: File `scrsize11pt.clo' used instead of
+(scrreprt) file `scrsize11.clo' to setup font sizes on input line ....
+(../scrsize11pt.clo
+File: scrsize11pt.clo ....-..-.. v... KOMA-Script font size class option (11pt)
+)
+(../typearea.sty
+Package: typearea ....-..-.. v... KOMA-Script package (type area)
+\ta at bcor=\skip...
+\ta at div=\count...
+\ta at hblk=\skip...
+\ta at vblk=\skip...
+\ta at temp=\skip...
+\footheight=\skip...
+Package typearea Info: These are the values describing the layout:
+(typearea) DIV = 10
+(typearea) BCOR = 0.0pt
+(typearea) \paperwidth = 597.50793pt
+(typearea) \textwidth = 418.25555pt
+(typearea) DIV departure = -6%
+(typearea) \evensidemargin = 17.3562pt
+(typearea) \oddsidemargin = 17.3562pt
+(typearea) \paperheight = 845.04694pt
+(typearea) \textheight = 595.80026pt
+(typearea) \topmargin = -25.16531pt
+(typearea) \headheight = 17.0pt
+(typearea) \headsep = 20.40001pt
+(typearea) \topskip = 11.0pt
+(typearea) \footskip = 47.6pt
+(typearea) \baselineskip = 13.6pt
+(typearea) on input line ....
+)
+\c at part=\count...
+\c at chapter=\count...
+\c at section=\count...
+\c at subsection=\count...
+\c at subsubsection=\count...
+\c at paragraph=\count...
+\c at subparagraph=\count...
+\scr at dte@chapter at maxnumwidth=\skip...
+Class scrreprt Info: using compatibility default `afterindent=bysign'
+(scrreprt) for `\chapter on input line ....
+\scr at dte@section at maxnumwidth=\skip...
+Class scrreprt Info: using compatibility default `runin=bysign'
+(scrreprt) for `\section on input line ....
+Class scrreprt Info: using compatibility default `afterindent=bysign'
+(scrreprt) for `\section on input line ....
+\scr at dte@part at maxnumwidth=\skip...
+Class scrreprt Info: using compatibility default `afterindent=true'
+(scrreprt) for `\part on input line ....
+\scr at dte@subsection at maxnumwidth=\skip...
+Class scrreprt Info: using compatibility default `runin=bysign'
+(scrreprt) for `\subsection on input line ....
+Class scrreprt Info: using compatibility default `afterindent=bysign'
+(scrreprt) for `\subsection on input line ....
+\scr at dte@subsubsection at maxnumwidth=\skip...
+Class scrreprt Info: using compatibility default `runin=bysign'
+(scrreprt) for `\subsubsection on input line ....
+Class scrreprt Info: using compatibility default `afterindent=bysign'
+(scrreprt) for `\subsubsection on input line ....
+\scr at dte@paragraph at maxnumwidth=\skip...
+Class scrreprt Info: using compatibility default `runin=bysign'
+(scrreprt) for `\paragraph on input line ....
+Class scrreprt Info: using compatibility default `afterindent=bysign'
+(scrreprt) for `\paragraph on input line ....
+\scr at dte@subparagraph at maxnumwidth=\skip...
+Class scrreprt Info: using compatibility default `runin=bysign'
+(scrreprt) for `\subparagraph on input line ....
+Class scrreprt Info: using compatibility default `afterindent=bysign'
+(scrreprt) for `\subparagraph on input line ....
+\abovecaptionskip=\skip...
+\belowcaptionskip=\skip...
+\c at pti@nb at sid@b at x=\box...
+Package tocbasic Info: babel extension for `lof' omitted
+(tocbasic) because of missing \bbl at set@language on input line ...
+\scr at dte@figure at maxnumwidth=\skip...
+\c at figure=\count...
+Package tocbasic Info: babel extension for `lot' omitted
+(tocbasic) because of missing \bbl at set@language on input line ...
+\scr at dte@table at maxnumwidth=\skip...
+\c at table=\count...
+Class scrreprt Info: Redefining `\numberline' on input line ....
+\bibindent=\dimen...
+))
+LaTeX Font Info: External font `cmex10' loaded for size
+(Font) <10.95> on input line ....
+LaTeX Font Info: External font `cmex10' loaded for size
+(Font) <8> on input line ....
+LaTeX Font Info: External font `cmex10' loaded for size
+(Font) <6> on input line ....
+LaTeX Warning: Reference `A' on page 1 undefined on input line ....
+[1
+] (firstaid-scrreport.aux)
+LaTeX Warning: There were undefined references.
More information about the latex3-commits
mailing list.