texlive[60842] Master/texmf-dist: latex-dev (22oct21)

commits+karl at tug.org commits+karl at tug.org
Fri Oct 22 23:41:03 CEST 2021


Revision: 60842
          http://tug.org/svn/texlive?view=revision&revision=60842
Author:   karl
Date:     2021-10-22 23:41:02 +0200 (Fri, 22 Oct 2021)
Log Message:
-----------
latex-dev (22oct21)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex-dev/amsmath/README.md
    trunk/Master/texmf-dist/doc/latex-dev/amsmath/amsbsy.pdf
    trunk/Master/texmf-dist/doc/latex-dev/amsmath/amscd.pdf
    trunk/Master/texmf-dist/doc/latex-dev/amsmath/amsgen.pdf
    trunk/Master/texmf-dist/doc/latex-dev/amsmath/amsldoc.pdf
    trunk/Master/texmf-dist/doc/latex-dev/amsmath/amsmath.pdf
    trunk/Master/texmf-dist/doc/latex-dev/amsmath/amsopn.pdf
    trunk/Master/texmf-dist/doc/latex-dev/amsmath/amstext.pdf
    trunk/Master/texmf-dist/doc/latex-dev/amsmath/amsxtra.pdf
    trunk/Master/texmf-dist/doc/latex-dev/amsmath/changes.txt
    trunk/Master/texmf-dist/doc/latex-dev/amsmath/subeqn.pdf
    trunk/Master/texmf-dist/doc/latex-dev/amsmath/technote.pdf
    trunk/Master/texmf-dist/doc/latex-dev/amsmath/testmath.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/README.md
    trunk/Master/texmf-dist/doc/latex-dev/base/alltt.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/cfgguide.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/changes.txt
    trunk/Master/texmf-dist/doc/latex-dev/base/classes.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/clsguide.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/cmfonts.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/cyrguide.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/doc.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/docstrip.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/encguide.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/exscale.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/fix-cm.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/fntguide.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/graphpap.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ifthen.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/inputenc.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/lamport-manual.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/latexchanges.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/latexrelease.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/latexsym.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/lb2.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/letter.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/lgc2.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/lppl.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltcmdhooks-code.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltcmdhooks-doc.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltfilehook-code.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltfilehook-doc.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/lthooks-code.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/lthooks-doc.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltluatex.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews01.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews02.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews02.tex
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews03.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews03.tex
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews04.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews04.tex
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews05.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews05.tex
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews06.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews06.tex
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews07.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews07.tex
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews08.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews08.tex
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews09.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews09.tex
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews10.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews10.tex
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews11.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews12.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews12.tex
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews13.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews13.tex
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews14.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews14.tex
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews15.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews15.tex
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews16.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews16.tex
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews17.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews17.tex
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews18.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews19.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews19.tex
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews20.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews20.tex
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews21.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews21.tex
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews22.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews22.tex
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews23.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews23.tex
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews24.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews24.tex
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews25.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews25.tex
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews26.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews26.tex
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews27.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews27.tex
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews28.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews28.tex
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews29.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews29.tex
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews30.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews30.tex
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews31.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews31.tex
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews32.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews32.tex
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews33.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews33.tex
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews34.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltnews34.tex
    trunk/Master/texmf-dist/doc/latex-dev/base/ltpara-code.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltpara-doc.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltshipout-code.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltshipout-doc.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltx3info.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/ltxdoc.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/makeindx.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/modguide.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/nfssfont.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/proc.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/slides.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/slifonts.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/source2e.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/syntonly.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/tlc2.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/tulm.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/usrguide.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/usrguide3.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/utf8ienc.pdf
    trunk/Master/texmf-dist/doc/latex-dev/base/webcomp.pdf
    trunk/Master/texmf-dist/doc/latex-dev/graphics/README.md
    trunk/Master/texmf-dist/doc/latex-dev/graphics/changes.txt
    trunk/Master/texmf-dist/doc/latex-dev/graphics/color.pdf
    trunk/Master/texmf-dist/doc/latex-dev/graphics/drivers.pdf
    trunk/Master/texmf-dist/doc/latex-dev/graphics/epsfig.pdf
    trunk/Master/texmf-dist/doc/latex-dev/graphics/graphics.pdf
    trunk/Master/texmf-dist/doc/latex-dev/graphics/graphicx.pdf
    trunk/Master/texmf-dist/doc/latex-dev/graphics/grfguide.pdf
    trunk/Master/texmf-dist/doc/latex-dev/graphics/keyval.pdf
    trunk/Master/texmf-dist/doc/latex-dev/graphics/lscape.pdf
    trunk/Master/texmf-dist/doc/latex-dev/graphics/rotating.pdf
    trunk/Master/texmf-dist/doc/latex-dev/graphics/rotex.pdf
    trunk/Master/texmf-dist/doc/latex-dev/graphics/trig.pdf
    trunk/Master/texmf-dist/doc/latex-dev/tools/README.md
    trunk/Master/texmf-dist/doc/latex-dev/tools/afterpage.pdf
    trunk/Master/texmf-dist/doc/latex-dev/tools/array.pdf
    trunk/Master/texmf-dist/doc/latex-dev/tools/bm.pdf
    trunk/Master/texmf-dist/doc/latex-dev/tools/calc.pdf
    trunk/Master/texmf-dist/doc/latex-dev/tools/changes.txt
    trunk/Master/texmf-dist/doc/latex-dev/tools/dcolumn.pdf
    trunk/Master/texmf-dist/doc/latex-dev/tools/delarray.pdf
    trunk/Master/texmf-dist/doc/latex-dev/tools/enumerate.pdf
    trunk/Master/texmf-dist/doc/latex-dev/tools/fileerr.pdf
    trunk/Master/texmf-dist/doc/latex-dev/tools/fontsmpl.pdf
    trunk/Master/texmf-dist/doc/latex-dev/tools/ftnright.pdf
    trunk/Master/texmf-dist/doc/latex-dev/tools/hhline.pdf
    trunk/Master/texmf-dist/doc/latex-dev/tools/indentfirst.pdf
    trunk/Master/texmf-dist/doc/latex-dev/tools/layout.pdf
    trunk/Master/texmf-dist/doc/latex-dev/tools/longtable.pdf
    trunk/Master/texmf-dist/doc/latex-dev/tools/multicol.pdf
    trunk/Master/texmf-dist/doc/latex-dev/tools/rawfonts.pdf
    trunk/Master/texmf-dist/doc/latex-dev/tools/shellesc.pdf
    trunk/Master/texmf-dist/doc/latex-dev/tools/showkeys.pdf
    trunk/Master/texmf-dist/doc/latex-dev/tools/somedefs.pdf
    trunk/Master/texmf-dist/doc/latex-dev/tools/tabularx.pdf
    trunk/Master/texmf-dist/doc/latex-dev/tools/theorem.pdf
    trunk/Master/texmf-dist/doc/latex-dev/tools/tools-overview.pdf
    trunk/Master/texmf-dist/doc/latex-dev/tools/trace.pdf
    trunk/Master/texmf-dist/doc/latex-dev/tools/varioref.pdf
    trunk/Master/texmf-dist/doc/latex-dev/tools/verbatim.pdf
    trunk/Master/texmf-dist/doc/latex-dev/tools/xr.pdf
    trunk/Master/texmf-dist/doc/latex-dev/tools/xspace.pdf
    trunk/Master/texmf-dist/source/latex-dev/amsmath/amsmath.dtx
    trunk/Master/texmf-dist/source/latex-dev/base/classes.dtx
    trunk/Master/texmf-dist/source/latex-dev/base/doc.dtx
    trunk/Master/texmf-dist/source/latex-dev/base/ltboxes.dtx
    trunk/Master/texmf-dist/source/latex-dev/base/ltcmdhooks.dtx
    trunk/Master/texmf-dist/source/latex-dev/base/ltfiles.dtx
    trunk/Master/texmf-dist/source/latex-dev/base/ltfinal.dtx
    trunk/Master/texmf-dist/source/latex-dev/base/ltfloat.dtx
    trunk/Master/texmf-dist/source/latex-dev/base/ltfssdcl.dtx
    trunk/Master/texmf-dist/source/latex-dev/base/lthooks.dtx
    trunk/Master/texmf-dist/source/latex-dev/base/ltluatex.dtx
    trunk/Master/texmf-dist/source/latex-dev/base/ltmath.dtx
    trunk/Master/texmf-dist/source/latex-dev/base/ltoutenc.dtx
    trunk/Master/texmf-dist/source/latex-dev/base/ltpara.dtx
    trunk/Master/texmf-dist/source/latex-dev/base/ltvers.dtx
    trunk/Master/texmf-dist/source/latex-dev/base/makeindx.dtx
    trunk/Master/texmf-dist/source/latex-dev/base/preload.dtx
    trunk/Master/texmf-dist/source/latex-dev/base/slides.dtx
    trunk/Master/texmf-dist/source/latex-dev/graphics/color.dtx
    trunk/Master/texmf-dist/source/latex-dev/graphics/graphics.dtx
    trunk/Master/texmf-dist/source/latex-dev/tools/array.dtx
    trunk/Master/texmf-dist/source/latex-dev/tools/multicol.dtx
    trunk/Master/texmf-dist/tex/latex-dev/amsmath/amsmath.sty
    trunk/Master/texmf-dist/tex/latex-dev/base/article.cls
    trunk/Master/texmf-dist/tex/latex-dev/base/bk10.clo
    trunk/Master/texmf-dist/tex/latex-dev/base/bk11.clo
    trunk/Master/texmf-dist/tex/latex-dev/base/bk12.clo
    trunk/Master/texmf-dist/tex/latex-dev/base/book.cls
    trunk/Master/texmf-dist/tex/latex-dev/base/doc.sty
    trunk/Master/texmf-dist/tex/latex-dev/base/fleqn.clo
    trunk/Master/texmf-dist/tex/latex-dev/base/latex.ltx
    trunk/Master/texmf-dist/tex/latex-dev/base/latexrelease.sty
    trunk/Master/texmf-dist/tex/latex-dev/base/ltluatex.lua
    trunk/Master/texmf-dist/tex/latex-dev/base/ltluatex.tex
    trunk/Master/texmf-dist/tex/latex-dev/base/makeidx.sty
    trunk/Master/texmf-dist/tex/latex-dev/base/preload.ltx
    trunk/Master/texmf-dist/tex/latex-dev/base/report.cls
    trunk/Master/texmf-dist/tex/latex-dev/base/shortvrb.sty
    trunk/Master/texmf-dist/tex/latex-dev/base/showidx.sty
    trunk/Master/texmf-dist/tex/latex-dev/base/size10.clo
    trunk/Master/texmf-dist/tex/latex-dev/base/size11.clo
    trunk/Master/texmf-dist/tex/latex-dev/base/size12.clo
    trunk/Master/texmf-dist/tex/latex-dev/base/slides.cls
    trunk/Master/texmf-dist/tex/latex-dev/base/slides.def
    trunk/Master/texmf-dist/tex/latex-dev/base/source2edoc.cls
    trunk/Master/texmf-dist/tex/latex-dev/graphics/color.sty
    trunk/Master/texmf-dist/tex/latex-dev/tools/array.sty
    trunk/Master/texmf-dist/tex/latex-dev/tools/multicol.sty

Modified: trunk/Master/texmf-dist/doc/latex-dev/amsmath/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/amsmath/README.md	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/amsmath/README.md	2021-10-22 21:41:02 UTC (rev 60842)
@@ -1,7 +1,7 @@
 The amsmath bundle for LaTeX
 ============================
 
-Release 2021-11-15 pre-release 2
+Release 2021-11-15 pre-release 3
 
 Overview
 --------
@@ -39,7 +39,7 @@
 
 which are included in the collection.  All of these can be accessed
 easily with most distributions by entering `texdoc` *filename* at the
-command line, or via [TeXdoc Online](http://texdoc.net).
+command line, or via [TeXdoc Online](https://texdoc.org).
 
 Change logs
 -----------
@@ -61,7 +61,7 @@
 a short, self-contained document that shows the problem. This should
 include the `latexbug` package, which will warn if your test file is
 not suitable for one or the other reason. See the [CONTRIBUTING
-guide](https://github.com/latex3/latex2e/blob/master/CONTRIBUTING.md)
+guide](https://github.com/latex3/latex2e/blob/main/CONTRIBUTING.md)
 for further details, or if you need to obtain the `latexbug` package.
 
 If the bug turns out to be with third-party software then please

Modified: trunk/Master/texmf-dist/doc/latex-dev/amsmath/amsbsy.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/amsmath/amscd.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/amsmath/amsgen.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/amsmath/amsldoc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/amsmath/amsmath.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/amsmath/amsopn.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/amsmath/amstext.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/amsmath/amsxtra.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/amsmath/changes.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/amsmath/changes.txt	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/amsmath/changes.txt	2021-10-22 21:41:02 UTC (rev 60842)
@@ -2,10 +2,15 @@
 All changes above are only part of the development branch for the next release.
 ================================================================================
 
+2021-10-15  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
+
+	* amsmath.dtx (subsection{Implementing tags and labels}):
+	Explicitly set \@currentcounter (gh/687)
+
 2021-08-24 Ulrike Fischer <Ulrike.Fischer at latex-project.org>
 	* amsmath.dtx (subsection{Implementing tags and labels}):
 	move \incr at eqnum inside the equation if fleqn isn't used and guard
-    it with a mathopen for better compability with hyperref, issue gh/652
+	it with a mathopen for better compability with hyperref (gh/652)
 
 #########################
 # 2021-06-01 Release

Modified: trunk/Master/texmf-dist/doc/latex-dev/amsmath/subeqn.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/amsmath/technote.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/amsmath/testmath.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/base/README.md	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/base/README.md	2021-10-22 21:41:02 UTC (rev 60842)
@@ -1,7 +1,7 @@
 The LaTeX kernel
 ================
 
-Release 2021-11-15 pre-release 2
+Release 2021-11-15 pre-release 3
 
 Overview
 --------

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/alltt.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/cfgguide.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/changes.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/base/changes.txt	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/base/changes.txt	2021-10-22 21:41:02 UTC (rev 60842)
@@ -6,6 +6,62 @@
 are not part of the distribution.
 ================================================================================
 
+2021-10-20 Phelype Oleinik  <phelype.oleinik at latex-project.org>
+
+	* ltcmdhooks.dtx (subsubsection{Patching by expansion and redefinition}):
+	Fix patching of commands that contain parameter tokens (gh/697)
+
+2021-10-19  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
+
+	* ltpara.dtx (subsection{The error messages}):
+	Remove content from \tex_everypar:D (aka \everypar) on rollback.
+	Without it rollback is not functioning in all cases (gh/695).
+
+2021-10-16  David Carlisle  <David.Carlisle at latex-project.org>
+
+	* ltoutenc.dtx: guard spacefactor setting in accents gh/643
+
+2021-10-15  Marcel Krüger  <Marcel.Krueger at latex-project.org>
+
+	* ltluatex.dtx:
+	Added missing callback process_charproc_data
+
+2021-10-14  David Carlisle  <David.Carlisle at latex-project.org>
+
+	* ltfiles.dtx: Warn if \include is used before \begin{document}
+	and do not try to write to the aux file (which is not open) gh/645
+
+2021-10-14  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
+
+	* ltfloat.dtx (subsection{Footnotes}):
+	* ltboxes.dtx (section{\LaTeX\ Box commands}):
+	* ltmath.dtx (two places}):
+	Explicitly set \@currentcounter when not automatically done
+	through \refstepcounter (gh/687)
+
+2021-10-04  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
+
+	* classes.dtx, doc.dtx, makeindx.dtx, preload.dtx, slides.dtx, array.dtx
+	Removed old references to latex.tex or latex.dtx (gh/685)
+
+2021-09-28 Phelype Oleinik  <phelype.oleinik at latex-project.org>
+
+	* ltcmdhooks.dtx (subsection{Patching commands}):
+	Make patching of commands with generic cmd hooks a global operation (gh/674)
+
+2021-09-28  Phelype Oleinik  <phelype.oleinik at latex-project.org>
+
+	* lthooks.dtx (subsection{Adding or removing hook code}):
+	Correct usage of older \@@_if_file_hook:wTF (gh/675).
+
+2021-09-27  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
+
+	* ltfssdcl.dtx (section{Interface Commands}):
+	Provide counter "localmathalphabets" to keep that many alphabets
+	from being permanently allocated after use. This allows
+	some flexibility if many math alphabets are needed but not needed
+	all in the same formula. (gh/676)
+
 2021-09-18  David Carlisle  <David.Carlisle at latex-project.org>
 
 	* ltpara.dtx: use a \hskip rather than \kern as the guard to

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/classes.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/clsguide.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/cmfonts.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/cyrguide.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/docstrip.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/encguide.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/exscale.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/fix-cm.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/fntguide.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/graphpap.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ifthen.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/inputenc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/lamport-manual.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/latexchanges.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/latexrelease.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/latexsym.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/lb2.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/letter.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/lgc2.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/lppl.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltcmdhooks-code.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltcmdhooks-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltfilehook-code.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltfilehook-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/lthooks-code.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/lthooks-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltluatex.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews01.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews02.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews02.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/base/ltnews02.tex	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/base/ltnews02.tex	2021-10-22 21:41:02 UTC (rev 60842)
@@ -38,6 +38,12 @@
 \publicationyear{1994}
 \publicationissue{2}
 
+\providecommand\pkg[1]{\texttt{#1}}
+\providecommand\cls[1]{\texttt{#1}}
+\providecommand\option[1]{\texttt{#1}}
+\providecommand\env[1]{\texttt{#1}}
+\providecommand\file[1]{\texttt{#1}}
+
 \begin{document}
 
 \maketitle
@@ -64,7 +70,7 @@
 (\verb|changes.txt|) for more details.
 
 However, there are two important new packages available for \LaTeX:
-\texttt{inputenc} and AMS-\LaTeX.
+\pkg{inputenc} and AMS-\LaTeX.
 
 \section{Accented input}
 
@@ -110,17 +116,17 @@
  It will be divided into two bundles:
  \begin{itemize}
 
- \item the \verb|amsfonts| packages, which give access to
+ \item the \pkg{amsfonts} packages, which give access to
     hundreds of new mathematical symbols, and new math fonts
     such as blackboard bold and fraktur.
 
- \item the \verb|amsmath| packages, which provide finer control over
+ \item the \pkg{amsmath} packages, which provide finer control over
     mathematical typesetting, such as multi-line subscripts,
     enhanced theorem and proof environments,
     and improved displayed equations,
 
  \end{itemize}
- For compatibility with older documents, an \verb|amstex| package will be
+ For compatibility with older documents, an \pkg{amstex} package will be
  provided.
 
 \section{\LaTeX{} on the internet}

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews03.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews03.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/base/ltnews03.tex	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/base/ltnews03.tex	2021-10-22 21:41:02 UTC (rev 60842)
@@ -38,6 +38,14 @@
 \publicationyear{1995}
 \publicationissue{3}
 
+
+\providecommand\pkg[1]{\texttt{#1}}
+\providecommand\cls[1]{\texttt{#1}}
+\providecommand\option[1]{\texttt{#1}}
+\providecommand\env[1]{\texttt{#1}}
+\providecommand\file[1]{\texttt{#1}}
+
+
 \begin{document}
 
 \maketitle
@@ -61,20 +69,20 @@
 \section{Additional input encodings}
 
 In the last release of \LaTeX{} we distributed a test version of the
-\texttt{inputenc} package which allows the use of input characters
+\pkg{inputenc} package which allows the use of input characters
 other than just a--z and A--Z.  The package has proved to be robust,
 so we are now distributing an expanded version.
 The new release comes with a number of input encodings:
 
 \begin{itemize}
-\item \texttt{ascii} the standard encoding,
-\item \texttt{latin1} the ISO Western European alphabet,
-\item \texttt{latin2} the ISO Eastern European alphabet,
-\item \texttt{cp437} the IBM codepage 437,
-\item \texttt{cp850} the IBM codepage 850, and
-\item \texttt{applemac} the Apple Macintosh encoding.
+\item \option{ascii} the standard encoding,
+\item \option{latin1} the ISO Western European alphabet,
+\item \option{latin2} the ISO Eastern European alphabet,
+\item \option{cp437} the IBM codepage 437,
+\item \option{cp850} the IBM codepage 850, and
+\item \option{applemac} the Apple Macintosh encoding.
 \end{itemize}
-These can be used by specifying an option to the \texttt{inputenc}
+These can be used by specifying an option to the \pkg{inputenc}
 package, for example:
 \begin{verbatim}
    \usepackage[latin1]{inputenc}
@@ -95,10 +103,10 @@
 
 We are currently experimenting with other ways of reducing the size of
 \LaTeX.  For example, we are experimenting with an option to remove
-the \texttt{picture} and \texttt{tabbing} environments from the
+the \env{picture} and \env{tabbing} environments from the
 \LaTeX{} kernel, and to load them from a file the first time they are
 used.  This should help \LaTeX{} to run on machines with limited
-memory.  See \texttt{autoload.txt} for details.
+memory.  See \file{autoload.txt} for details.
 
 \section{Distribution and modification}
 
@@ -110,7 +118,7 @@
 
 The modification conditions are currently under discussion, and we
 would like to hear from anyone interested.  Please read
-\texttt{modguide.tex} for more information.
+\file{modguide.tex} for more information.
 
 \section{AMS-\LaTeX\ full release}
 
@@ -118,7 +126,7 @@
 release of \LaTeX, and the full release came out in January 1995.
 
 AMS-\LaTeX\ is described in the \emph{User's Guide}
-(\texttt{amsldoc.tex}) and in \emph{The \LaTeX{} Companion}.
+(\file{amsldoc.tex}) and in \emph{The \LaTeX{} Companion}.
 
 \section{PostScript fonts}
 

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews04.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews04.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/base/ltnews04.tex	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/base/ltnews04.tex	2021-10-22 21:41:02 UTC (rev 60842)
@@ -39,6 +39,12 @@
 \publicationyear{1995}
 \publicationissue{4}
 
+\providecommand\pkg[1]{\texttt{#1}}
+\providecommand\cls[1]{\texttt{#1}}
+\providecommand\option[1]{\texttt{#1}}
+\providecommand\env[1]{\texttt{#1}}
+\providecommand\file[1]{\texttt{#1}}
+
 \begin{document}
 
 \maketitle
@@ -56,7 +62,7 @@
 The last release in June started a trend of \LaTeX\ becoming
 smaller, we are pleased to announce that this has continued with this
 release. In particular the experimental `autoload' version described in
-\texttt{autoload.txt} is much smaller as more parts of \LaTeX\ are
+\file{autoload.txt} is much smaller as more parts of \LaTeX\ are
 autoloaded.
 
 \section{New `concurrent' docstrip}
@@ -80,7 +86,7 @@
 many other ways. It is strongly recommended that you upgrade as soon as
 possible if currently you are using the old dc fonts, release 1.1 or
 earlier. The new fonts are available from the CTAN archives, in
-\texttt{tex-archive/fonts/dc}.
+\file{tex-archive/fonts/dc}.
 
 The names of the font files are \emph{different}. This does not affect
 \LaTeX\ documents but \emph{does} affect the installation procedure as
@@ -89,7 +95,7 @@
 then, after unpacking the distribution, you \emph{must}
 \verb|latex olddc.ins| to produce `fd' files for the old dc fonts.
 This must be done \emph{before} the format is made. Running the test
-document at \texttt{ltxcheck.tex} the end of the installation will
+document at \file{ltxcheck.tex} the end of the installation will
 inform you if the wrong set of `fd' files has been installed.
 
 Note that this change does not affect the standard `OT1' Computer
@@ -113,21 +119,21 @@
 options that were specified to the extension class.  This is now
 provided by the new command \verb|\LoadClassWithOptions|. A similar
 command \verb|\RequirePackageWithOptions| is provided for package use.
-More details of this feature are provided in \texttt{clsguide.tex} and
-\texttt{ltclass.dtx}.
+More details of this feature are provided in \file{clsguide.tex} and
+\file{ltclass.dtx}.
 
 \section{More Input Encodings}
 
-The experimental \texttt{inputenc} package allows a more natural style
+The experimental \pkg{inputenc} package allows a more natural style
 of input of accented and other characters.
 
 Three new input encodings are now supported.
 \begin{itemize}
-\item \texttt{ansinew} the Windows ansi encoding,
+\item \option{ansinew} the Windows ansi encoding,
                        as used in Microsoft Windows 3.x.
-\item \texttt{cp437de} a variant of \texttt{cp437}, which uses \ss\
+\item \option{cp437de} a variant of \option{cp437}, which uses \ss\
   rather than $\beta$  in the appropriate slot.
-\item \texttt{next} the encoding used on Next computers.
+\item \option{next} the encoding used on Next computers.
 \end{itemize}
 
 \section{Further information}

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews05.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews05.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/base/ltnews05.tex	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/base/ltnews05.tex	2021-10-22 21:41:02 UTC (rev 60842)
@@ -40,6 +40,10 @@
 \publicationyear{1996}
 \publicationissue{5}
 
+\providecommand\pkg[1]{\texttt{#1}}
+\providecommand\cls[1]{\texttt{#1}}
+\providecommand\option[1]{\texttt{#1}}
+
 \begin{document}
 
 \maketitle
@@ -51,7 +55,7 @@
 \section{Extra possibilities for section headings}
 Most \LaTeX\ sectioning commands are defined using
 \verb|\@startsection|.
-For example, the \textsf{article} class defines:
+For example, the \cls{article} class defines:
 \begin{small}
 \begin{verbatim}
 \newcommand\section{\@startsection
@@ -75,13 +79,13 @@
 \end{verbatim}
 \end{small}
 to produce section headings using uppercase medium weight text, rather
-than the bold text used by \textsf{article}. Note that, like the font
+than the bold text used by \cls{article}. Note that, like the font
 choice, the uppercasing applies only to the actual heading (including
 any automatically generated section number), not to the text as it may
 appear in the running head or table of contents.
 
 \section{The `openany' option in the `book' class}
-The \textsf{openany} option allows chapter and similar openings to
+The \option{openany} option allows chapter and similar openings to
 occur on left hand pages. Previously this option only affected
 \verb|\chapter| and \verb|\backmatter|. It now also affects
 \verb|\part|, \verb|\frontmatter| and \verb|\mainmatter|.
@@ -89,7 +93,7 @@
 \section{More font (output) encodings}
 The font encoding name \texttt{T3} has been allocated to the encoding
 used in the new 256-character \textsc{IPA} fonts (for the phonetic
-alphabet) produced by Rei Fukui. His package, \textsf{tipa},
+alphabet) produced by Rei Fukui. His package, \pkg{tipa},
 gives access to these fonts and should soon be available.  (The
 encoding named \texttt{OT3} is the 128-character encoding used in the
 \textsc{IPA} fonts produced by Washington State University.)
@@ -97,11 +101,11 @@
 
 
 \section{More input encodings supported}
-The \textsf{inputenc} package now supports the IBM codepage~852 used
+The \pkg{inputenc} package now supports the IBM codepage~852 used
 in Eastern Europe, with the option~\texttt{[cp852]} contributed by
 Petr~Sojka.
 
-Also, the \textsf{inputenc} package now activates most `control codes'
+Also, the \pkg{inputenc} package now activates most `control codes'
 with \textsc{ascii} values below 32.
 Currently none of the encodings in the standard distribution makes use
 of these positions.
@@ -135,7 +139,7 @@
 
 \begin{itemize}
 \item
-  The \textsf{longtable} package now uses a modified algorithm,
+  The \pkg{longtable} package now uses a modified algorithm,
   contributed by David Kastrup, to align the `chunks' of a table.
   It is now unnecessary to edit the document to add
   \verb|\setlongtables| before the final run of \LaTeX.
@@ -144,7 +148,7 @@
   price of extra passes through \LaTeX).
 
 \item
-  The \textsf{dcolumn} package now has the extra possibility of
+  The \pkg{dcolumn} package now has the extra possibility of
   specifying the number of digits both \emph{before} and after the
   `decimal point'. This makes it easy to centre the column of numbers
   under a wide heading.

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews06.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews06.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/base/ltnews06.tex	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/base/ltnews06.tex	2021-10-22 21:41:02 UTC (rev 60842)
@@ -40,6 +40,12 @@
 \publicationyear{1996}
 \publicationissue{6}
 
+\providecommand\pkg[1]{\texttt{#1}}
+\providecommand\cls[1]{\texttt{#1}}
+\providecommand\option[1]{\texttt{#1}}
+\providecommand\env[1]{\texttt{#1}}
+\providecommand\file[1]{\texttt{#1}}
+
 \begin{document}
 
 \maketitle
@@ -50,12 +56,12 @@
 
 \section{Mono-case file names}
 Previously \LaTeX\ has used some files with `mixed-case' file names
-such as \texttt{T1cmr.fd} and \texttt{T1enc.def}.
+such as \file{T1cmr.fd} and \file{T1enc.def}.
 
 These file names cause problems on some systems (in particular they
 are illegal on the ISO 9660 CDROM format) and so in this release
 all file names have been made lowercase (for example
-\texttt{t1cmr.fd} and \texttt{t1enc.def}).
+\file{t1cmr.fd} and \file{t1enc.def}).
 
 This change should \emph{not} affect any document. Within \LaTeX,
 encodings still have the usual uppercase names in uses such as
@@ -68,17 +74,17 @@
 
 The change \emph{does} affect the configuration files that may be used
 to make the \LaTeX\ format with initex. For example, the file
-\texttt{fonttext.ltx} previously specified \verb|\input{T1cmr.fd}|.
+\file{fonttext.ltx} previously specified \verb|\input{T1cmr.fd}|.
 It now has \verb|\input{t1cmr.fd}|.
-If you use a local file \texttt{fonttext.cfg}
+If you use a local file \file{fonttext.cfg}
 you will need to make similar changes, as \verb|\input{T1cmr.fd}|
-will not work as \texttt{T1cmr.fd} is no longer in the distribution.
+will not work as \file{T1cmr.fd} is no longer in the distribution.
 
 The files affected by this change all have names of the form
 \verb|*.fd| or \verb|*enc.def|.
 
 \section{Another input encoding}
-Thanks to work by S\o ren Sandmann, the \textsf{inputenc} package now
+Thanks to work by S\o ren Sandmann, the \pkg{inputenc} package now
 supports the IBM codepage~865 used in Scandinavia.
 
 \section{Better user-defined math display environments}
@@ -109,7 +115,7 @@
 \end{verbatim}
 
 \section{Docstrip improvements}
-The \textsf{docstrip} program that is used to unpack the \LaTeX\
+The \pkg{docstrip} program that is used to unpack the \LaTeX\
 sources has undergone further development. The new version should be
 able to process all old `batchfiles' but it allows a simpler syntax in
 new `batchfiles' (no need to define \verb|\def\batchfile{|\ldots).
@@ -116,8 +122,8 @@
 
 It also allows `target' directories to be specified when writing
 files.  This directory support is disabled by default unless activated
-in a local \texttt{docstrip.cfg} configuration file.
-See \texttt{docstrip.dtx} for details.
+in a local \file{docstrip.cfg} configuration file.
+See \file{docstrip.dtx} for details.
 
 \section{AMS \LaTeX\ update}
 Since the last \LaTeX\ release in June, the American Mathematical
@@ -137,11 +143,11 @@
 as its T1 encoded fonts. By default it will
 use the `dc' fonts if the T1 encoding is requested.
 
-As noted in \texttt{install.txt} you may run \TeX\ on the install file
-\texttt{ec.ins} \emph{after} unpacking the base distribution but
+As noted in \file{install.txt} you may run \TeX\ on the install file
+\file{ec.ins} \emph{after} unpacking the base distribution but
 \emph{before} making the \LaTeX\ format. This will produce
 suitable `fd' files making \LaTeX\ (including, for the first time, the
-\textsf{slides} class) use the `ec' fonts as the default T1 encoded
+\cls{slides} class) use the `ec' fonts as the default T1 encoded
 font set.
 
 

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews07.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews07.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/base/ltnews07.tex	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/base/ltnews07.tex	2021-10-22 21:41:02 UTC (rev 60842)
@@ -40,6 +40,12 @@
 \publicationyear{1997}
 \publicationissue{7}
 
+\providecommand\pkg[1]{\texttt{#1}}
+\providecommand\cls[1]{\texttt{#1}}
+\providecommand\option[1]{\texttt{#1}}
+\providecommand\env[1]{\texttt{#1}}
+\providecommand\file[1]{\texttt{#1}}
+
 \begin{document}
 
 \maketitle
@@ -48,15 +54,15 @@
 As in the last release the base \LaTeX\ distribution contains
 three different sets of `fd' files for T1 encoded fonts.
 
-In this release the default installation uses \texttt{ec.ins}
+In this release the default installation uses \file{ec.ins}
 and so installs files suitable for the current `EC fonts'
 distribution. If you have still not updated to the EC fonts and
 are using the earlier test versions, known as DC then you should
-unpack \texttt{newdc.ins} (for DC release 1.2 or later) or
-\texttt{olddc.ins} (for the original releases of the DC fonts).
-This should be done after unpacking \texttt{unpack.ins} but
-before making the format by running ini\TeX{} on \texttt{latex.ltx}.
-There are further details in \texttt{install.txt}.
+unpack \file{newdc.ins} (for DC release 1.2 or later) or
+\file{olddc.ins} (for the original releases of the DC fonts).
+This should be done after unpacking \file{unpack.ins} but
+before making the format by running ini\TeX{} on \file{latex.ltx}.
+There are further details in \file{install.txt}.
 
 
 \section{T1 encoded Concrete fonts}
@@ -63,15 +69,15 @@
 The Metafont sources for T1 encoded `Concrete' fonts have been
 removed from the \textsf{mfnss} distribution as they were based
 on the now obsolete DC fonts release 1.1. Similarly the
-\textsf{cmextra.ins} install file in the \textsf{base} distribution no
+\file{cmextra.ins} install file in the \textsf{base} distribution no
 longer generates fd files for the `Concrete' fonts.
 To use these fonts in either T1 or OT1 encoding it is
-recommended that you obtain Walter Schmidt's \textsf{ccfonts} package
-and fonts from CTAN \texttt{macros/latex/contrib/supported/ccfonts}.
+recommended that you obtain Walter Schmidt's \pkg{ccfonts} package
+and fonts from CTAN \file{macros/latex/contrib/supported/ccfonts}.
 
 
 \section{Further input encodings}
-Two more \textsf{inputenc} packages have been added: for latin5,
+Two more \pkg{inputenc} packages have been added: for latin5,
 thanks to H. Turgut Uyar; and for latin3, thanks to J\"org Knappen.
 
 
@@ -83,18 +89,18 @@
 always (in all known \TeX\ formats) been potentially incorrect if the
 page break happens while a local setting of the space codes (for
 instance by the command \verb|\frenchspacing|) is in effect. A common
-example of this happening in \LaTeX\ is in the \textsf{verbatim}
+example of this happening in \LaTeX\ is in the \env{verbatim}
 environment.
 
 
 \section{Accessing Bold Math Symbols}
-The \textsf{tools} distribution contains a new package, \textsf{bm},
+The \textsf{tools} distribution contains a new package, \pkg{bm},
 which defines a command \verb|\bm| that allows individual bold symbols
 to be accessed within a math expression (in contrast to
 \verb|\boldmath| which makes whole math expressions default to bold
-fonts). It is more general than the existing \textsf{amsbsy} package;
+fonts). It is more general than the existing \pkg{amsbsy} package;
 however, to ease the translation of documents between these two
-packages, \textsf{bm} makes \verb|\boldsymbol| an alias for
+packages, \pkg{bm} makes \verb|\boldsymbol| an alias for
 \verb|\bm|.
 
 This package was previously made available from the `contrib' area of

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews08.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews08.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/base/ltnews08.tex	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/base/ltnews08.tex	2021-10-22 21:41:02 UTC (rev 60842)
@@ -40,6 +40,12 @@
 \publicationyear{1997}
 \publicationissue{8}
 
+\providecommand\pkg[1]{\texttt{#1}}
+\providecommand\cls[1]{\texttt{#1}}
+\providecommand\option[1]{\texttt{#1}}
+\providecommand\env[1]{\texttt{#1}}
+\providecommand\file[1]{\texttt{#1}}
+
 \begin{document}
 
 \maketitle
@@ -46,7 +52,7 @@
 
 \section{New supported font encodings}
 
-Two new font encodings are supported as options to the \textsf{fontenc}
+Two new font encodings are supported as options to the \pkg{fontenc}
 package:
 \begin{description}
 \item [OT4]
@@ -59,7 +65,7 @@
 fonts.  A subset of the glyphs in this encoding is supported by
 virtual fonts distributed with the PostScript font metrics on the
 \textsc{ctan} archives. (This is the `8c' encoding in Karl Berry's
-fontname scheme.)  The \textsf{textcomp} package provides access to
+fontname scheme.)  The \pkg{textcomp} package provides access to
 this encoding but here is a warning to current users of that package:
 some of the internal names for the characters have changed.
 \end{description}
@@ -67,17 +73,17 @@
 
 \section{New input encodings}
 
-These additions to the \textsf{inputenc} package are
-\texttt{decmulti} (the DEC Multinational
+These additions to the \pkg{inputenc} package are
+\option{decmulti} (the DEC Multinational
 Character Set,  contributed by M.~Y.~Chartoire)
-and \texttt{cp1250} (an MS-Windows encoding for Central and Eastern
+and \option{cp1250} (an MS-Windows encoding for Central and Eastern
 Europe, contributed by Marcin Woli\'nski).  There is also a
-\texttt{cp1252} encoding that is identical to \texttt{ansinew}.
+\option{cp1252} encoding that is identical to \option{ansinew}.
 
 
 \section{Tools}
 
-The \textsf{calc} package (used in many examples in \emph{The \LaTeX\
+The \pkg{calc} package (used in many examples in \emph{The \LaTeX\
 Companion}) has been contributed to this distribution by Kresten Krab
 Thorup and Frank Jensen. This is essentially the same as the version
 that has been available from the \textsc{ctan} archives for some time,
@@ -91,10 +97,10 @@
 \end{verbatim}
 
 There have also been some improvements to several other packages in
-this collection.  In particular, \textsf{bm} now works correctly with
+this collection.  In particular, \pkg{bm} now works correctly with
 constructions such as \verb|\bm{f'}| involving \texttt{'} or other
 characters which use \TeX's special ``\verb|\mathcode"8000|''
-feature.  Also, \textsf{multicol} sets the length \verb|\columnwidth|
+feature.  Also, \pkg{multicol} sets the length \verb|\columnwidth|
 to an appropriate value; this enables it to work with classes that
 support two-column setting, e.g.,~the AMS classes.
 
@@ -105,10 +111,10 @@
 support has been merged with dvips, following advice from
 Andrew Trevorrow about Oz\TeX~3.x.
 
-The \textsf{keyval} package has had some internal improvements: to
+The \pkg{keyval} package has had some internal improvements: to
 use \LaTeX\ format error messages; and to avoid `\verb|#| doubling'.
 This latter change means that the \verb|command| key for the
-\textsf{graphicx} version of \verb|\includegraphics| should now be used
+\pkg{graphicx} version of \verb|\includegraphics| should now be used
 with one \verb|#| rather than two. For example, \verb|command = `gunzip #1|.
 Fortunately this key is almost never used in practice, so few if any
 documents should be affected by this change.
@@ -129,7 +135,7 @@
 The documentation of this material is as follows: individual package
 files provide outline, draft documentation; there is an article that
 gives an overview of the syntax and related concepts; there is a
-\texttt{readme.txt} file containing a brief description of the
+\file{readme.txt} file containing a brief description of the
 collection.
 
 All aspects of these packages are liable, indeed likely, to change.
@@ -146,8 +152,5 @@
   subscribe LATEX-L <<first-name>> <<second-name>>
 \end{verbatim}
 
-% Revert to this if gets too full.
-% See \texttt{modguide.tex} for
-% information on how to subscribe to \texttt{LaTeX-L}.
 
 \end{document}

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews09.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews09.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/base/ltnews09.tex	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/base/ltnews09.tex	2021-10-22 21:41:02 UTC (rev 60842)
@@ -40,6 +40,12 @@
 \publicationyear{1998}
 \publicationissue{9}
 
+\providecommand\pkg[1]{\texttt{#1}}
+\providecommand\cls[1]{\texttt{#1}}
+\providecommand\option[1]{\texttt{#1}}
+\providecommand\env[1]{\texttt{#1}}
+\providecommand\file[1]{\texttt{#1}}
+
 \begin{document}
 
 \maketitle
@@ -93,19 +99,19 @@
 
 \section{Tools distribution}
 
-The \texttt{multicol} package now supports the production of multiple
+The \pkg{multicol} package now supports the production of multiple
 columns without balancing the last page. To get this effect use the
-\texttt{multicols*} environment.
+\env{multicols*} environment.
 
-The \texttt{layout} package was partly recoded by Hideo Umeki to
+The \pkg{layout} package was partly recoded by Hideo Umeki to
 display page layout effects in a better way.
 
-As suggested by Donald Arseneau, the \texttt{calc} package was extended
+As suggested by Donald Arseneau, the \pkg{calc} package was extended
 to support the new commands \verb|\widthof{<text>}|,
 \verb|\heightof{<text>}|, and \verb|\depthof{<text>}| within a
-\texttt{calc}-expression.  At the same time we modified a few kernel
-commands so that \texttt{calc}-expressions can now be used in various
-useful places such as the dimension arguments to the \texttt{tabular}
+\pkg{calc}-expression.  At the same time we modified a few kernel
+commands so that \pkg{calc}-expressions can now be used in various
+useful places such as the dimension arguments to the \env{tabular}
 environment and the \verb|\rule| command. For many other standard
 \LaTeX{} commands this was already possible.
 
@@ -118,10 +124,10 @@
 
 Test versions of the `LH' fonts for these Cyrillic encodings, based on
 the Computer Modern design, are available from CTAN archives in the
-directory \texttt{fonts/cyrillic/lh-test}.  The \LaTeX\ support files
+directory \file{fonts/cyrillic/lh-test}.  The \LaTeX\ support files
 (by Werner Lemberg and Vladimir Volovich) are also available from CTAN
 archives in\\
- \texttt{macros/latex/contrib/supported/t2}
+ \file{macros/latex/contrib/supported/t2}
 
 
 \section{Default docstrip header}
@@ -135,7 +141,7 @@
 stripped files to be distributed in ready-to-run installations such as
 the \TeX{}Live CD\@.  If you use the default header for distributing
 your files you should check that the new copyright text is acceptable
-to you.  The file \texttt{docstrip.dtx} explains how to produce your own
+to you.  The file \file{docstrip.dtx} explains how to produce your own
 header if you wish to do so.
 
 

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews10.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews10.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/base/ltnews10.tex	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/base/ltnews10.tex	2021-10-22 21:41:02 UTC (rev 60842)
@@ -40,6 +40,12 @@
 \publicationyear{1998}
 \publicationissue{10}
 
+\providecommand\pkg[1]{\texttt{#1}}
+\providecommand\cls[1]{\texttt{#1}}
+\providecommand\option[1]{\texttt{#1}}
+\providecommand\env[1]{\texttt{#1}}
+\providecommand\file[1]{\texttt{#1}}
+
 \begin{document}
 
 \maketitle
@@ -77,21 +83,21 @@
   need not supply them).
 
   As a first small step towards this definition, we shall replace the
-  \texttt{latex/packages} subdirectory on \ctan{}.
+  \file{latex/packages} subdirectory on \ctan{}.
   This directory was a curious mixture of the important, such as the
-  \LaTeX{} \texttt{tools}, that any self-respecting \LaTeX{}
+  \LaTeX{} \textsf{tools}, that any self-respecting \LaTeX{}
   installation ought to have, and the esoteric or experimental.
 
-  The esoterica from \texttt{packages} will be moved to
+  The esoterica from \textsf{packages} will be moved to
   new locations, as follows:
   \begin{quote}
-    \texttt{expl3}  to \texttt{latex/exptl/project}\\
-    \texttt{mfnfss} to \texttt{latex/contrib/supported/mfnfss}
+    \textsf{expl3}  to \file{latex/exptl/project}\\
+    \textsf{mfnfss} to \file{latex/contrib/supported/mfnfss}
   \end{quote}
 
-  The subdirectory that replaces \texttt{packages} will be called
-  \texttt{latex/required}; all the other sub-directories of
-  \texttt{packages} will be moved there.
+  The subdirectory that replaces \textsf{packages} will be called
+  \file{latex/required}; all the other sub-directories of
+  \file{packages} will be moved there.
 
 \vspace{17pt}
 \pagebreak
@@ -107,14 +113,14 @@
 
 Several people have requested an easy mechanism for the distribution
 of \LaTeX\ packages and other software ``under the same conditions as
-\LaTeX''.  The old \texttt{legal.txt} file was unsuitable as a general
+\LaTeX''.  The old \file{legal.txt} file was unsuitable as a general
 licence as it referred to specific \LaTeX\ authors, and to specific
 files.
 
-Therefore, in this release \texttt{legal.txt} contains just the
+Therefore, in this release \file{legal.txt} contains just the
 copyright notice and a reference to the new \emph{\LaTeX\ Project
 Public License} (LPPL) for the distribution and modification
-conditions. The \texttt{tools}, \texttt{graphics}, and \texttt{mfnfss}
+conditions. The \textsf{tools}, \textsf{graphics}, and \textsf{mfnfss}
 packages also now refer to this license in their distribution notices.
 
   \section{Support for Cyrillic encodings}
@@ -130,11 +136,11 @@
 sophisticated basic support for high-quality typesetting in various
 Cyrillic-based languages.
 
-For further information see the file \texttt{cyrguide.tex}.
+For further information see the file \file{cyrguide.tex}.
 
 \section{Tools distribution}
 
-The \texttt{varioref} package has been extended to support textual
+The \pkg{varioref} package has been extended to support textual
 page references to a range of objects: e.g.,~if \texttt{eq-first}
 and \texttt{eq-last} are the label names for the first and last
 equation in a sequence, then you can now write

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews11.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews12.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews12.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/base/ltnews12.tex	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/base/ltnews12.tex	2021-10-22 21:41:02 UTC (rev 60842)
@@ -42,6 +42,12 @@
 
 \providecommand{\acro}[1]{\textsc{\MakeLowercase{#1}}}
 
+\providecommand\pkg[1]{\texttt{#1}}
+\providecommand\cls[1]{\texttt{#1}}
+\providecommand\option[1]{\texttt{#1}}
+\providecommand\env[1]{\texttt{#1}}
+\providecommand\file[1]{\texttt{#1}}
+
 \begin{document}
 
 \maketitle
@@ -100,9 +106,9 @@
   documentation.
 
  \item[template] Prototype implementation of the template interface
-  (needs parts of \texttt{xparse}).
+  (needs parts of \pkg{xparse}).
 
-  The file \texttt{template.dtx} in that directory has a large section
+  The file \file{template.dtx} in that directory has a large section
   of documentation at the front describing the commands in the
   interface and giving a `worked example' building up some templates
   for caption formatting.
@@ -112,7 +118,7 @@
   \texttt{latex-l} list.
 
  \item[xfootnote] Working examples for generating footnotes,
-  etc. Needs \texttt{xparse} and \texttt{template}.
+  etc. Needs \pkg{xparse} and \pkg{template}.
 
  \end{description}
 All examples are organised in subdirectories and additionally

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews13.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews13.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/base/ltnews13.tex	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/base/ltnews13.tex	2021-10-22 21:41:02 UTC (rev 60842)
@@ -40,6 +40,11 @@
 \publicationyear{2000}
 \publicationissue{13}
 
+\providecommand\pkg[1]{\texttt{#1}}
+\providecommand\cls[1]{\texttt{#1}}
+\providecommand\option[1]{\texttt{#1}}
+\providecommand\env[1]{\texttt{#1}}
+\providecommand\file[1]{\texttt{#1}}
 
 \begin{document}
 
@@ -78,7 +83,7 @@
 \noindent
 The \PSNFSS{} material, which supports the use\latex{\\}
 of common PostScript fonts with \LaTeX{}, has been thoroughly updated.
-Most noticeably, the \package{mathpple} package, which used to be
+Most noticeably, the \pkg{mathpple} package, which used to be
 distributed separately, is now part of the basic \PSNFSS{} bundle;
 this package provides mathematical typesetting with the Palatino
 typeface family.  In addition, numerous bugs and flaws have been fixed
@@ -130,9 +135,9 @@
 changes and address some common questions.
 
 The primary documentation files remain \file{amsldoc.tex}, for the
-\package{amsmath} package, and \file{instr-l.tex}, for the AMS
+\pkg{amsmath} package, and \file{instr-l.tex}, for the AMS
 document classes.\latex{\\}
-The documentation for the \package{amsthm} package,\latex{\\}
+The documentation for the \pkg{amsthm} package,\latex{\\}
 however, has been moved from \file{amsldoc.tex}\latex{\\}
 to a separate document \file{amsthdoc.tex}.
 
@@ -140,10 +145,10 @@
   \vfill
 \end{latexonly}
 
-\section{New input encoding \package{latin4}}
+\section{New input encoding \texttt{latin4}}
 
-The package \package{inputenc} has, thanks to Hana Skoumalov\'a,
-been extended to cover the \package{latin4} input encoding; this
+The package \pkg{inputenc} has, thanks to Hana Skoumalov\'a,
+been extended to cover the \option{latin4} input encoding; this
 covers Baltic and Scandinavian languages as well as Greenland
 Inuit and Lappish.
 
@@ -187,11 +192,11 @@
  \item[galley] Prototype implementation of the interface\latex{\\}
    for manipulating vertical material in galleys.
  \item[xinitials] Prototype implementation of the interface\latex{\\}
-   for paragraph initials (needs the \texttt{galley} package.
- \item[xtheorem] Contributed example using the \texttt{template}
+   for paragraph initials (needs the \pkg{galley} package.
+ \item[xtheorem] Contributed example using the \pkg{template}
    package to provide a designer interface for theorem environments.
  \item[xoutput] A prototype implementation of the new output routine
-   as described in the \texttt{xo-pfloat.pdf} paper. Expected
+   as described in the \file{xo-pfloat.pdf} paper. Expected
    availability: at or shortly after\latex{\\}
    the TUG\,2000 conference.
 \end{description}

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews14.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews14.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/base/ltnews14.tex	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/base/ltnews14.tex	2021-10-22 21:41:02 UTC (rev 60842)
@@ -40,6 +40,11 @@
 \publicationyear{2001}
 \publicationissue{14}
 
+\providecommand\pkg[1]{\texttt{#1}}
+\providecommand\cls[1]{\texttt{#1}}
+\providecommand\option[1]{\texttt{#1}}
+\providecommand\env[1]{\texttt{#1}}
+\providecommand\file[1]{\texttt{#1}}
 
 \begin{document}
 
@@ -69,14 +74,14 @@
 
 One of the bugs that got fixed in this release deals with how labels
 are handled by \LaTeX{}.  Because this part of the kernel is modified
-by \textsf{babel}, the relevant changes need to be coordinated.
-Therefore to use \textsf{Babel} with this release of \LaTeX{} you will
-need to update your version of \textsf{babel} to at least 3.7.
+by \pkg{babel}, the relevant changes need to be coordinated.
+Therefore to use \pkg{Babel} with this release of \LaTeX{} you will
+need to update your version of \pkg{babel} to at least 3.7.
 
-\section{New input encoding \package{latin9}}
+\section{New input encoding \option{latin9}}
 
-The package \package{inputenc} has, thanks to Karsten Tinnefeld, been
-extended to cover the \package{latin9} input encoding.  The
+The package \pkg{inputenc} has, thanks to Karsten Tinnefeld, been
+extended to cover the \option{latin9} input encoding.  The
 ISO-Latin~9 encoding is a useful modern replacement for ISO-Latin~1
 that contains a few characters needed for French and Finnish. Of wider
 interest, it also contains the euro currency sign; this could be the
@@ -87,11 +92,11 @@
 French, Frisian, Galician, German, Greenlandic, Icelandic, Irish
 Gaelic, Italian, Latin, Luxembourgish, Norwegian, Portuguese,
 Rhaeto-Romanic, Scottish Gaelic, Spanish and Swedish.\\
-The characters added in \package{latin9} are (in \LaTeX{} notation):\\
+The characters added in \option{latin9} are (in \LaTeX{} notation):\\
 \begin{small}
 \verb| \texteuro  \v S  \v s  \v Z  \v z  \OE  \oe  \" Y |
 \end{small}\\
-They displace the following characters from \package{latin1}:\\
+They displace the following characters from \option{latin1}:\\
 \begin{small}
 \verb| \textcurrency  \textbrokenbar  \"{}   \'{}   \c{} |\\
 \verb| \textonequarter  \textonehalf  \textthreequarters |
@@ -100,7 +105,7 @@
 
 \section{New tools}
 
-The new package \package{trace} provides many commands to control
+The new package \pkg{trace} provides many commands to control
 \LaTeX{}'s tracing and debugging output, including the excellent new
 information available with \eTeX{} such as the extremely useful
 tracing of local assignments.  You will find it in the tools
@@ -112,7 +117,7 @@
 also offers \verb|\traceoff| to \ldots\ guess what!  Full details are
 in the documented source file, \file{trace.dtx}.
 
-In the base \package{ifthen} package we have added
+In the base \pkg{ifthen} package we have added
 the uppercase synonyms \verb|\NOT| \verb|\AND| and \verb|\OR|.
 
 \section{New experimental code}
@@ -157,11 +162,11 @@
  \item[galley] Prototype implementation of the interface\latex{\\}
    for manipulating vertical material in galleys.
  \item[xinitials] Prototype implementation of the interface\latex{\\}
-   for paragraph initials (needs the \texttt{galley} package).
- \item[xtheorem] Contributed example using the \texttt{template}
+   for paragraph initials (needs the \pkg{galley} package).
+ \item[xtheorem] Contributed example using the \pkg{template}
    package to provide a designer interface for theorem environments.
  \item[xor] A prototype implementation of the new output routine
-   as described in the \texttt{xo-pfloat.pdf} paper.
+   as described in the \file{xo-pfloat.pdf} paper.
  \item[xfrontm] A prototype version of
    the new font matter interface.
 \end{description}

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews15.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews15.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/base/ltnews15.tex	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/base/ltnews15.tex	2021-10-22 21:41:02 UTC (rev 60842)
@@ -40,6 +40,12 @@
 \publicationyear{2003}
 \publicationissue{15}
 
+\providecommand\pkg[1]{\texttt{#1}}
+\providecommand\cls[1]{\texttt{#1}}
+\providecommand\option[1]{\texttt{#1}}
+\providecommand\env[1]{\texttt{#1}}
+\providecommand\file[1]{\texttt{#1}}
+
 \begin{document}
 
 \maketitle
@@ -87,7 +93,7 @@
 (an incompatible change).  There are other extensions
 such as \verb|\labelformat|, \verb|\Ref|, \verb|\Vref| and \verb|\vpagerefnum|.
 Some Dutch text has also been changed and two\newline
-new options added: \package{slovak} and \package{slovene}.
+new options added: \option{slovak} and \option{slovene}.
 
 
 \section{New and more robust commands}
@@ -94,7 +100,7 @@
 
 Many of the math mode commands for compound symbols have been made
 robust and a new robust command has been added: \verb|\nobreakdashes|.
-This last is a low-level command, borrowed from the \package{amsmath}
+This last is a low-level command, borrowed from the \pkg{amsmath}
 package, for use only before hyphens or dashes.  It prevents the line
 break that is normally allowed\newline
 after the following sequence of dashes.
@@ -102,7 +108,7 @@
 
 \section{Fixing font sizes}
 
-The new \package{fix-cm} package, by Walter Schmidt, changes the CM font
+The new \pkg{fix-cm} package, by Walter Schmidt, changes the CM font
 definition (\texttt{.fd}) files so that similar design sizes are used
 in both the \texttt{OT1} and \texttt{T1} encodings.
 
@@ -109,13 +115,13 @@
 
 \section{Font encodings}
 
-A number of options have been added to the \package{textcomp} package,
+A number of options have been added to the \pkg{textcomp} package,
 enabling only available glyphs to be used.
 Also, the `NFSS font families' are now divided into five different groups
 according to the subset of glyphs each provides from the full
 collection of symbols in the TS1 encoding.
 Given sufficient information about a font family
-\package{textcomp} will use this in order to limit the\newline
+\pkg{textcomp} will use this in order to limit the\newline
 typesetting to those glyphs that are available.
 
 Use of this mechanism has also enhanced \verb|\oldstylenums|
@@ -124,7 +130,7 @@
 
 \section{Displaying font tables}
 
-With the \package{nfssfont} package you can now
+With the \pkg{nfssfont} package you can now
 specify the font to display by giving its `NFSS classification',
 rather than needing to know its external font file's name.
 It is also now possible to generate large collections of font
@@ -133,25 +139,25 @@
 
 \section{New input encodings}
 
-The \package{inputenc} package has been extended as follows:
-\package{macce} input encoding
+The \pkg{inputenc} package has been extended as follows:
+\option{macce} input encoding
 (Apple Central European),
-thanks to Radek Tryc and Marcin Wolinski; \package{cp1257}\newline
+thanks to Radek Tryc and Marcin Wolinski; \option{cp1257}\newline
 for Baltic languages; \package{latin10},
 thanks to Ionel Ciob\^{i}c\u{a}.\newline
 The euro symbol has by
 now been added to several encodings:
-\package{ansinew}, \package{cp1250}
-and \package{cp1252} (which also\newline
-has another addition), whilst \package{cp858}
-adds it to \package{cp850}.
+\option{ansinew}, \option{cp1250}
+and \option{cp1252} (which also\newline
+has another addition), whilst \option{cp858}
+adds it to \option{cp850}.
 
 
 \section{Unicode input}
 
 Partial, experimental support for text files that use the Unicode
-encoding form UTF-8 is now provided by the option \package{utf8} for
-the \package{inputenc} package.
+encoding form UTF-8 is now provided by the option \option{utf8} for
+the \pkg{inputenc} package.
 
 The only Unicode text file characters supported by the current version
 are those based on the most common inputs for glyphs from the small

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews16.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews16.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/base/ltnews16.tex	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/base/ltnews16.tex	2021-10-22 21:41:02 UTC (rev 60842)
@@ -127,7 +127,7 @@
 \section{End of `autoload' support}
 
 As computer systems generally grow in capacity, requirements change
-and so we believe that the \package{autoload} variant of \LaTeX{} is
+and so we believe that the \texttt{autoload} variant of \LaTeX{} is
 no longer required.  Thus, although the code remains it is no longer
 supported.  We hope this does not cause any problems.
 

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews17.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews17.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/base/ltnews17.tex	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/base/ltnews17.tex	2021-10-22 21:41:02 UTC (rev 60842)
@@ -41,6 +41,12 @@
 \publicationyear{2005}
 \publicationissue{17}
 
+\providecommand\pkg[1]{\texttt{#1}}
+\providecommand\cls[1]{\texttt{#1}}
+\providecommand\option[1]{\texttt{#1}}
+\providecommand\env[1]{\texttt{#1}}
+\providecommand\file[1]{\texttt{#1}}
+
 \begin{document}
 
 \maketitle
@@ -76,7 +82,7 @@
 Internal Character Representation) for characters supported by the
 encodings \texttt{OT1} and \texttt{T1}.
 
-When the file \texttt{encguide.tex} is processed by \LaTeX{}, it will
+When the file \file{encguide.tex} is processed by \LaTeX{}, it will
 attempt to typeset an encoding table for each encoding it describes.
 For this to be possible, \LaTeX{} must be able to find \texttt{.tfm}
 files for a representative example font for each encoding.  If
@@ -100,21 +106,21 @@
 
 \section{Updates of required packages}
 
-Several of the packages in the \package{tools} bundle have been updated
+Several of the packages in the \textsf{tools} bundle have been updated
 for this release.
 
-The \package{xspace} package has some new features.  One is an
+The \pkg{xspace} package has some new features.  One is an
 interface for adding and removing the exceptions it knows about and
 another is that it works with active characters. These remove problems
-of incompatibility with the \package{babel} system.
+of incompatibility with the \pkg{babel} system.
 
 In \textit{\LaTeX\ News~16} we announced that some packages might
 begin to take advantage of \eTeX{} extensions on systems where these
-are available: and the latest version of \package{xspace} does just
-that.  Note also that \package{fixltx2e} will make use of the
+are available: and the latest version of \pkg{xspace} does just
+that.  Note also that \pkg{fixltx2e} will make use of the
 facilities in \eTeX{} whenever these are present (see below).
 
-The \package{calc} package has also been given an update with a few
+The \pkg{calc} package has also been given an update with a few
 extra commands.
 The commands \verb|\maxof| and \verb|\minof|, each with two
 brace-delimited arguments, provide the usual numeric $\max$ and $\min$
@@ -121,21 +127,21 @@
 operations. The commands \verb|\settototalheight| and
 \verb|\totalheightof| work like \verb|\settoheight| and
 \verb|\heightof|.  There are also some internal improvements to make
-\package{calc} work with some more primitive \TeX\ constructs, such as
+\pkg{calc} work with some more primitive \TeX\ constructs, such as
 \verb|\ifcase|.
 
-The \package{varioref} package has acquired a few more default
+The \pkg{varioref} package has acquired a few more default
 strings but there are still a number of languages for
 which good strings are still missing.
 
-The \package{showkeys} package has also been updated slightly to work
-with more recent developments in \package{varioref}. Also, it now
+The \pkg{showkeys} package has also been updated slightly to work
+with more recent developments in \pkg{varioref}. Also, it now
 provides an easy way to define the look of the printed labels with
 the command \verb|\showkeyslabelformat|.
 
 \section{Work on \LaTeX{} fixes}
 
-The package known as \package{fixltx2e} has three new additions. A new
+The package known as \pkg{fixltx2e} has three new additions. A new
 command \verb|\textsubscript| has been added as a complement to the
 command \verb|\textsuperscript| in the kernel.  Secondly, a new form of
 \verb|\DeclareMathSizes| that allows all of its arguments to have a
@@ -153,7 +159,7 @@
 when the \eTeX{} extensions are available, it does not
 destroy kerning between previous letters and the text to be typeset.
 The command is also used
-internally in \package{fixltx2e} to resolve a problem with
+internally in \pkg{fixltx2e} to resolve a problem with
 \verb|\fnsymbol|.
 
 Also, further work has been done on reimplementing
@@ -162,14 +168,14 @@
 
 \section{The graphics bundle}
 
-The \package{graphics} bundle now supports the
-\package{dvipdfmx} post-processor and Jonathan Kew's XE\TeX\
+The \textsf{graphics} bundle now supports the
+\texttt{dvipdfmx} post-processor and Jonathan Kew's XE\TeX\
 program. By support we mean that the graphics packages recognize the
-new options \texttt{xetex} and \texttt{dvipdfmx} but we do not
+new options \option{xetex} and \option{dvipdfmx} but we do not
 distribute the respective driver files.
 
 This leads elegantly to a description of the
-new policy concerning such driver files in the \package{graphics} bundle.
+new policy concerning such driver files in the \textsf{graphics} bundle.
 Most driver files for our graphics packages are maintained by the
 developers of the associated post-processor or \TeX\ programs.
 The teams developing these packages are working very hard: their rapid
@@ -178,7 +184,7 @@
 for the \LaTeX\ Team to be responsible for distributing the
 latest versions of these driver files.
 
-Therefore the installation files for \package{graphics} have been
+Therefore the installation files for \pkg{graphics} have been
 split: there is now \file{graphics.ins} to install the package files and
 \file{graphics-drivers.ins} for the driver files (located in
 \file{drivers.dtx}).
@@ -186,8 +192,8 @@
 to install all those provided in the file \file{drivers.dtx}.
 
 Please also note that, as requested by the maintainers of
-\package{PStricks}, we have removed the package \package{pstcol} as
-current versions of \package{PSTricks} make it obsolete.
+\textsf{PStricks}, we have removed the package \pkg{pstcol} as
+current versions of \textsf{PSTricks} make it obsolete.
 
 %%
 \newpage
@@ -197,12 +203,12 @@
 \section{Future development}
 
 The title of this section is a little misleading as it actually
-describes \emph{current} development. In 1998 the \package{expl3}
+describes \emph{current} development. In 1998 the \textsf{expl3}
 bundle of packages was put on \ctan\ to demonstrate a possible \LaTeX3
 programming environment. These packages have been lying dormant for some
 time while the \LaTeX\ Project Team were preoccupied by other things
-such as developing the experimental packages \package{xor},
-\package{template}, etc., (and also writing that indispensable
+such as developing the experimental packages \pkg{xor},
+\pkg{template}, etc., (and also writing that indispensable
 and encyclopaedic volume,\\
 The \LaTeX{} Companion -- 2nd edition).
 
@@ -215,12 +221,12 @@
 \item Extending the
   kernel code of \LaTeX3.
 \item Converting the experimental packages
-  such as \package{xor}, \package{template} to use the new
+  such as \pkg{xor}, \pkg{template} to use the new
   syntax internally.
 \end{itemize}
 
 Beware! Development of
-\package{expl3} is happening so fast that the descriptions above might
+\textsf{expl3} is happening so fast that the descriptions above might
 be out of date when you read this! If you wish to see what's going on
 then go to
 \url{http://www.latex-project.org/code.html} where you can download

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews18.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews19.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews19.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/base/ltnews19.tex	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/base/ltnews19.tex	2021-10-22 21:41:02 UTC (rev 60842)
@@ -54,7 +54,7 @@
 release and introduces no new features. A number of small changes have
 been made to correct minor bugs in the kernel, slightly extend the Unicode
 support, and improve various
-aspects of some of the \texttt{tools} packages.
+aspects of some of the \textsf{tools} packages.
 
 \section{New code repository}
 

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews20.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews20.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/base/ltnews20.tex	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/base/ltnews20.tex	2021-10-22 21:41:02 UTC (rev 60842)
@@ -41,6 +41,12 @@
 
 \publicationissue{20}
 
+\providecommand\pkg[1]{\texttt{#1}}
+\providecommand\cls[1]{\texttt{#1}}
+\providecommand\option[1]{\texttt{#1}}
+\providecommand\env[1]{\texttt{#1}}
+\providecommand\file[1]{\texttt{#1}}
+
 \begin{document}
 
 \maketitle
@@ -57,15 +63,32 @@
 
 \section{Continued development}
 
-The \LaTeXe\ program is no longer being actively developed, as any non-negligible changes now could have dramatic backwards compatibility issues with old documents. Similarly, new features cannot be added to the kernel since any new documents written now would then be incompatible with legacy versions of \LaTeX.
+The \LaTeXe\ program is no longer being actively developed, as any
+non-negligible changes now could have dramatic backwards compatibility
+issues with old documents. Similarly, new features cannot be added to
+the kernel since any new documents written now would then be
+incompatible with legacy versions of \LaTeX.
 
-The situation on the package level is quite different though. While most of us have stopped developing packages for \LaTeXe{} there are many contributing developers that continue to enrich \LaTeXe{} by providing or extending add-on packages with new or better functionality.
+The situation on the package level is quite different though. While
+most of us have stopped developing packages for \LaTeXe{} there are
+many contributing developers that continue to enrich \LaTeXe{} by
+providing or extending add-on packages with new or better
+functionality.
 
-However, the \LaTeX\ team certainly recognises that there are improvements to be made to the kernel code; over the last few years we have been working on building, expanding, and solidifying the \textsf{expl3} programming layer for future \LaTeX\ development. We are using \textsf{expl3} to build new interfaces for package development and tools for document design. Progress here is continuing.
+However, the \LaTeX\ team certainly recognises that there are
+improvements to be made to the kernel code; over the last few years we
+have been working on building, expanding, and solidifying the
+\textsf{expl3} programming layer for future \LaTeX\ development. We
+are using \textsf{expl3} to build new interfaces for package
+development and tools for document design. Progress here is
+continuing.
 
 \section{Release notes}
 
-In addition to a few small documentation fixes, the following changes have been made to the \LaTeXe\ code; in accordance with the philosophy of minimising forwards and backwards compatibility problems, most of these will not be noticeable to the regular \LaTeX\ user.
+In addition to a few small documentation fixes, the following changes
+have been made to the \LaTeXe\ code; in accordance with the philosophy
+of minimising forwards and backwards compatibility problems, most of
+these will not be noticeable to the regular \LaTeX\ user.
 
 \paragraph{Font subsets covered by Latin Modern and \TeX\ Gyre}
 
@@ -79,28 +102,32 @@
 }
 
 Information about their symbol coverage in the \verb|TS1| encoding is now included
-in \texttt{textcomp}'s default font definitions.
+in \pkg{textcomp}'s default font definitions.
 
-% \paragraph{Private conditional switch in italic correction}
-% negligible improvement/only useful to LaTeX programmers: not worth documenting I think?
 
-% \paragraph{Improve formatting in \texttt{doc} for filenames with some punctuation}
-% negligible improvement, again?
-
 \paragraph{Redefinition of \cs{enddocument}}
 
-Inside the definition of \verb=\end{document}= the \texttt{.aux} file is read back in to resolve cross-references and build the table of contents etc. From 2.09 days this was done using \verb=\input= without any surrounding braces which could lead to some issues in boundary cases, especially if \verb=\input= was redefined by some package. It was therefore changed to use \LaTeXe{}'s internal name for this function. As a result, packages that modify \verb=\enddocument= other than through the officially provided hooks may need to get updated.
+Inside the definition of \verb=\end{document}= the \texttt{.aux} file
+is read back in to resolve cross-references and build the table of
+contents etc. From 2.09 days this was done using \verb=\input= without
+any surrounding braces which could lead to some issues in boundary
+cases, especially if \verb=\input= was redefined by some package. It
+was therefore changed to use \LaTeXe{}'s internal name for this
+function. As a result, packages that modify \verb=\enddocument= other
+than through the officially provided hooks may need to get updated.
 
-\paragraph{Small improvement with split footnotes in \texttt{ftnright}}
+\paragraph{Small improvement with split footnotes in \pkg{ftnright}}
 
-If in the first column there is more than a full column worth of footnote
-material the material will be split resulting in footnotes out of
-order. This issue is now at least detected and generates an error but the algorithm used by the package is
-unable to gracefully handle it in an automated fashion (some alternatives for resolving the problem if it happens are given in the package documentation).
+If in the first column there is more than a full column worth of
+footnote material the material will be split resulting in footnotes
+out of order. This issue is now at least detected and generates an
+error but the algorithm used by the package is unable to gracefully
+handle it in an automated fashion (some alternatives for resolving the
+problem if it happens are given in the package documentation).
 
-\paragraph{Improvement in \texttt{xspace} and font-switching}
+\paragraph{Improvement in \file{xspace} and font-switching}
 
-The \texttt{xspace} package provides the command \verb|\xspace|
+The \file{xspace} package provides the command \verb|\xspace|
 which attempts to be clever about inserting spaces automatically
 after user-defined control sequences.
 An important bug fix has been made to this command to correct its
@@ -116,11 +143,12 @@
 both cases; this has now been corrected.
 
 
-\paragraph{RTL in \texttt{multicol}}
+\paragraph{RTL in \file{multicol}}
 
-  The 1.7 release of \texttt{multicol} adds support for languages that are typeset
-  right-to-left. For those languages the order of the columns on the page
-  also needs to be reversed---something that wasn't possible in earlier releases.
+ The 1.7 release of \file{multicol} adds support for languages that
+ are typeset right-to-left. For those languages the order of the
+ columns on the page also needs to be reversed---something that wasn't
+ possible in earlier releases.
 
 The new feature is supported through the
 commands \verb|\RLmulticolcolumns| (switching to right-to-left typesetting)
@@ -127,16 +155,19 @@
 and \verb|\LRmulticolcolumns| (switching to left-to-right typesetting) the
 latter being the default.
 
-\paragraph{Improve French \texttt{babel} interaction with \texttt{varioref}}
+\paragraph{Improve French \file{babel} interaction with \file{varioref}}
 
- Extracting and saving the page number turned out to be a source of subtle
- bugs. Initially it was done through an \verb"\edef" with a bunch of
-\verb"\expandafter" commands inside. This posed a problem if the page number
- itself contained code which needed protection (e.g., pr/4080) so this got
- changed in the last release to use \verb"\protected at edef". However, that in turn failed with Babel
-(bug report/4093)   if the label contained active characters, e.g., a ``:'' in French. So now
-we use (after one failed attempt pr/4159) even more \verb"\expandafter" commands and \verb"\romannumeral" trickery to avoid any expansion other
- than what is absolutely  required---making the code in that space absolutely unreadable.
+ Extracting and saving the page number turned out to be a source of
+ subtle bugs. Initially it was done through an \verb"\edef" with a
+ bunch of \verb"\expandafter" commands inside. This posed a problem if
+ the page number itself contained code which needed protection (e.g.,
+ pr/4080) so this got changed in the last release to use
+ \verb"\protected at edef". However, that in turn failed with Babel (bug
+ report/4093) if the label contained active characters, e.g., a ``:''
+ in French. So now we use (after one failed attempt pr/4159) even more
+ \verb"\expandafter" commands and \verb"\romannumeral" trickery to
+ avoid any expansion other than what is absolutely required---making
+ the code in that space absolutely unreadable.
 \begin{verbatim}
   \expandafter\def\expandafter#1\expandafter{%
   \romannumeral
@@ -148,6 +179,8 @@
   \z@
   \csname r@#2\endcsname\@nil}%
 \end{verbatim}
-Code like this nicely demonstrates the limitations in the programming layer of \LaTeXe{} and the advantages that  \textsf{expl3} will offer on this level.
+Code like this nicely demonstrates the limitations in the programming
+layer of \LaTeXe{} and the advantages that \textsf{expl3} will offer
+on this level.
 
 \end{document}

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews21.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews21.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/base/ltnews21.tex	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/base/ltnews21.tex	2021-10-22 21:41:02 UTC (rev 60842)
@@ -41,6 +41,12 @@
 
 \publicationissue{21}
 
+\providecommand\pkg[1]{\texttt{#1}}
+\providecommand\cls[1]{\texttt{#1}}
+\providecommand\option[1]{\texttt{#1}}
+\providecommand\env[1]{\texttt{#1}}
+\providecommand\file[1]{\texttt{#1}}
+
 \begin{document}
 
 \maketitle
@@ -73,7 +79,7 @@
 
 \let\paragraph\subsubsection
 
-\paragraph{\textsf{fixltx2e} updates}
+\paragraph{\pkg{fixltx2e} updates}
 
 
 
@@ -86,7 +92,7 @@
 too many existing documents.
 
 The corrections for these types of bug have therefore been collected together
-in a package that can be loaded only when needed; its name is \textsf{fixltx2e}.
+in a package that can be loaded only when needed; its name is \pkg{fixltx2e}.
 For this release we made the following changes to this package:
 \begin{itemize}
 \item
@@ -97,7 +103,7 @@
 \item
    \LaTeX's float handling algorithm can get out of sync if you mix
    single and double-column floats (as they are placed independently
-   of each other). This was corrected in \textsf{fixltx2e} a few years ago
+   of each other). This was corrected in \pkg{fixltx2e} a few years ago
    but the fix was not perfect as one situation using
    \verb=\enlargethispage= generated a low-level \TeX{} error.
    This behaviour of the package is now improved.
@@ -106,12 +112,12 @@
 
 
 
-\paragraph{New \textsf{fltrace} package}
+\paragraph{New \pkg{fltrace} package}
 
-For years the file \texttt{ltoutput.dtx} contained some hidden code to
+For years the file \file{ltoutput.dtx} contained some hidden code to
 trace the detailed behaviour of the float placement algorithm of
 \LaTeX. Prompted by questions on StackExchange we now extract this
-code into a new \textsf{fltrace} package. To see the float algorithm
+code into a new \pkg{fltrace} package. To see the float algorithm
 in action (or to understand why it decides to place all your floats at
 the very end of the document) use
 \begin{verbatim}
@@ -122,13 +128,13 @@
 parameters use \verb=\tracefloatvals=. As the package is identical to
 the kernel code with tracing added, it may or may not work if you load any
 other package that manipulates that part of the kernel code. In such a
-case your best bet is to load \textsf{fltrace} first.
+case your best bet is to load \pkg{fltrace} first.
 
-\paragraph{\textsf{inputenc} package updates}
+\paragraph{\pkg{inputenc} package updates}
 
-The \textsf{inputenc} package allows different input encodings for
+The \pkg{inputenc} package allows different input encodings for
 \LaTeX\ documents to be specified including the important
-\texttt{utf8} option used to specify the Unicode UTF-8 encoding. A
+\option{utf8} option used to specify the Unicode UTF-8 encoding. A
 common mistake in documents has been to also include this option when
 using the Unicode-based \TeX\ engines \hologo{LuaTeX} and \hologo{XeTeX}
 producing strange errors as these engines natively deal with UTF-8
@@ -135,20 +141,20 @@
 characters.
 
 If a document stored in an 8bit encoding is processed by
-\hologo{pdfTeX}, it needs the \textsf{inputenc} package to work
+\hologo{pdfTeX}, it needs the \pkg{inputenc} package to work
 correctly. However, if such a document is processed unchanged by
 \hologo{LuaTeX} or \hologo{XeTeX}, then accented characters may
 silently get dropped from the output.
 
 The package has been modified so that if used with \hologo{LuaTeX} or
-\hologo{XeTeX}, then it just issues a warning if \texttt{utf8} or
-\texttt{ascii} is specified, and stops with an error for any other
+\hologo{XeTeX}, then it just issues a warning if \option{utf8} or
+\option{ascii} is specified, and stops with an error for any other
 encoding requested.
 
 
 
 One further improvement has been made to the encoding definition files
-(\texttt{.def}) used by \textsf{inputenc}: the catcode of \texttt{@}
+(\texttt{.def}) used by \pkg{inputenc}: the catcode of \texttt{@}
 is now saved and restored when reading them instead of always using
 \verb=\makeatother= inside the files (latex/4192).
 
@@ -163,9 +169,9 @@
 packages that are likely to require updates outside a major
 \LaTeX{} release.
 
-\paragraph{\textsf{multicol} updates}
+\paragraph{\pkg{multicol} updates}
 
-Version 1.8 of \textsf{multicol} implements some improvements/fixes
+Version 1.8 of \pkg{multicol} implements some improvements/fixes
 and one extension. In the past the balancing algorithm enlarged the
 column height until it found a solution that satisfied all
 constraints. If there were insufficient break points then the final
@@ -182,43 +188,43 @@
 command is executed. See the documentation for details.
 
 Bug fixes: the new version fixes both a color leak that could happen
-in certain situations and the problem that \texttt{multicols} could
+in certain situations and the problem that \pkg{multicols} could
 mess up the positioning of \verb=\marginpar=s that followed the
 environment.
 
 
-\paragraph{\textsf{tabularx} updates}
+\paragraph{\pkg{tabularx} updates}
 
 The restrictions on embedding \verb|\tabularx| \verb|\endtabularx|
 into the definition of a new environment have been relaxed
 slightly. See the package documentation for details.
 
-\paragraph{\textsf{showkeys} updates}
+\paragraph{\pkg{showkeys} updates}
 
-The \textsf{showkeys} package has been updated to fix problems if used
+The \pkg{showkeys} package has been updated to fix problems if used
 at the start of list items, and to work if brace groups (\verb|{| and
 \verb|}|) are used in the optional argument of
 \verb|\cite|. (tools/4162, tools/4173)
 
 
-\paragraph{\textsf{color} updates}
+\paragraph{\pkg{color} updates}
 
 The \verb|\nopagecolor| command suggested by Heiko Oberdiek,
-available for some years in the \textsf{pdftex} option, has been
+available for some years in the \option{pdftex} option, has been
 added to the core package as suggested in graphics/3873. Currently
 this is supported in the driver files for \textsf{dvips} and
 \textsf{pdftex}.  Patches to support other drivers are welcome.
 
- \paragraph{\textsf{graphicx} updates}
+ \paragraph{\pkg{graphicx} updates}
 
-The \textsf{graphicx} version of \verb|\rotatebox| now allows
+The \pkg{graphicx} version of \verb|\rotatebox| now allows
 \verb|\par| (and blank lines) in values, to match the change made
-to the \textsf{graphics} version some years ago. See graphics/4296.
+to the \pkg{graphics} version some years ago. See graphics/4296.
 
 
-\paragraph{\textsf{keyval} updates}
+\paragraph{\pkg{keyval} updates}
 
-All parsing used in the \textsf{keyval} package has been changed
+All parsing used in the \pkg{keyval} package has been changed
 to allow \verb|\par| (and blank lines) in values.
 (A second change, to parsing of brace groups
 in a construct such as \texttt{key=\{\{\{value\}\}\}}, was reverted in v1.15.)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews22.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews22.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/base/ltnews22.tex	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/base/ltnews22.tex	2021-10-22 21:41:02 UTC (rev 60842)
@@ -40,6 +40,12 @@
 
 \publicationissue{22}
 
+\providecommand\pkg[1]{\texttt{#1}}
+\providecommand\cls[1]{\texttt{#1}}
+\providecommand\option[1]{\texttt{#1}}
+\providecommand\env[1]{\texttt{#1}}
+\providecommand\file[1]{\texttt{#1}}
+
 \begin{document}
 
 \maketitle
@@ -49,7 +55,7 @@
 \subsection{Introduction}
 
 For some years we have supplied bug fixes to the \LaTeXe\ kernel via the
-\textsf{fixltx2e} package. This
+\pkg{fixltx2e} package. This
 kept the kernel stable, but at the expense of meaning that most users did not
 benefit from bug fixes, and that some compromises
 which were made to save space in the
@@ -56,22 +62,22 @@
 machines of the time are still affecting most users today.
 
 In this release we have started a new update policy. All the fixes previously
-available via \textsf{fixltx2e} are now enabled \emph{by default} in the
+available via \pkg{fixltx2e} are now enabled \emph{by default} in the
 format, as are some further extensions for extended \TeX\ engines, \eTeX,
 \hologo{XeTeX} and \hologo{LuaTeX}. Compatibility and stability are still
 important considerations, and while most users will not notice these
-improvements, or will want to benefit from them, a new \textsf{latexrelease}
+improvements, or will want to benefit from them, a new \pkg{latexrelease}
 package is provided that will revert all the changes and re-instate the
 definitions from earlier releases. The package can also be used with older
 releases to effectively \emph{update} the kernel to be equivalent to this 2015
 release.
 
-A new document, \textsf{latexchanges}, is distributed with the release
+A new document, \file{latexchanges}, is distributed with the release
 that documents all the changes to documented commands since the 2014
 \LaTeX\ release, and will be updated in future releases if further
 changes have been made.
 
-\subsection{The \textsf{latexrelease} package}
+\subsection{The \pkg{latexrelease} package}
 
 As noted above a new package is available to manage differences between \LaTeX\
 releases. If you wish to revert all changes back to the definitions as they
@@ -86,13 +92,13 @@
 \RequirePackage[2015/01/01]{latexrelease}
 \documentclass{article}
 \end{verbatim}
-Then the version of \textsf{latexrelease} distributed with any future \LaTeX\
+Then the version of \pkg{latexrelease} distributed with any future \LaTeX\
 release will revert any changes made in that format, and revert to the
 definitions as they where at the beginning of 2015.
 
 If you wish to share a document using the latest features with a
 user restricted to using an older
-format, you may use the form above and make the \textsf{latexrelease} package
+format, you may use the form above and make the \pkg{latexrelease} package
 available on the older installation.  The package will then update the format
 definitions as needed to enable the older format to work as if dated on the date
 specified in the package option.
@@ -99,8 +105,8 @@
 
 \subsection{The \cs{IncludeInRelease} command}
 
-The mechanism used in the \textsf{latexrelease} package is available for use in
-package code. If in your \textsf{zzz} package you have
+The mechanism used in the \pkg{latexrelease} package is available for use in
+package code. If in your \pkg{zzz} package you have
 \begin{verbatim}
 \RequirePackage{latexrelease}
 \IncludeInRelease{2015/06/01}
@@ -116,7 +122,7 @@
 will be used, and for documents being processed with an older format, the
 ``original'' code will be used. Note the format date here may be the original
 format date as shown at the start of every \LaTeX\ run, or a format date
-specified as a package option to the \textsf{latexrelease} package.
+specified as a package option to the \pkg{latexrelease} package.
 
 So if the document has
 \begin{verbatim}
@@ -132,7 +138,7 @@
 
 The new concept provides full backward and forward compatibility for
 the \LaTeX{} format, i.e., with the help of a current
-\textsf{latexrelease} package the kernel can emulate all released
+\pkg{latexrelease} package the kernel can emulate all released
 formats (starting with 2014/06/01\footnote{Patching an older format
   most likely works too, given that the changes in the past have been
   minimal, though this isn't guaranteed and hasn't been tested.}).
@@ -155,10 +161,10 @@
 
 \section{Updates to the kernel}
 
-\subsection{Updates incorporated from \textsf{fixltx2e}}
+\subsection{Updates incorporated from \pkg{fixltx2e}}
 
-The detailed list of changes incorporated from \textsf{fixltx2e} is
-available in the new \textsf{latexchanges} document that is
+The detailed list of changes incorporated from \pkg{fixltx2e} is
+available in the new \file{latexchanges} document that is
 distributed with this release. The main changes are that $2$-column
 floats are kept in sequence with one column floats, corrections are
 made to the \verb|\mark| system to ensure correct page headings in
@@ -170,18 +176,18 @@
 that allocated registers in the range $0$--$255$. Almost all distributions have
 for some years used \eTeX\ based formats (or \hologo{XeTeX} or \hologo{LuaTeX})
 which have $2^{15}$ registers of each type ($2^{16}$ in the case of
-\hologo{LuaTeX}). The \textsf{etex} package has been available to provided an
+\hologo{LuaTeX}). The \pkg{etex} package has been available to provided an
 allocation mechanism for these extended registers but now the format will by
 default allocate in a range suitable for the engine being used. The new
-allocation mechanism is different than the \textsf{etex} package mechanism, and
+allocation mechanism is different than the \pkg{etex} package mechanism, and
 supports \hologo{LuaTeX}'s full range and an allocation mechanism for \LaTeX\
 floats as described below.
 
 On \eTeX\ based engines, an additional command, \verb|\newmarks| is available
-(as with the \textsf{etex} package) that allocates extended \eTeX\ marks, and
+(as with the \pkg{etex} package) that allocates extended \eTeX\ marks, and
 similarly if \hologo{XeTeX} is detected a new command
 \verb|\newXeTeXintercharclass| is available, this is similar to the command
-previously defined in the \texttt{xelatex.ini} file used to build the
+previously defined in the \file{xelatex.ini} file used to build the
 \texttt{xelatex} format.
 
 \subsection{Additional \LaTeX{} float storage}
@@ -189,7 +195,7 @@
 \LaTeX's float placement algorithm needs to store floats (figures and tables)
 until it finds a suitable page to output them. It allocates $18$ registers for
 this storage, but this can often be insufficient.
- The contributed \textsf{morefloats} package has
+ The contributed \pkg{morefloats} package has
 been available to extend this list; however, it also only allocates from the
 standard range $0$--$255$ so cannot take advantage of the extended registers.
 The new allocation mechanism in this release incorporates a new command
@@ -203,11 +209,11 @@
 
 The kernel sources now detect the engine being used and adjust definitions
 accordingly, this reduces the need for the ``\texttt{.ini}'' files used to make
-the formats to patch definitions defined in \texttt{latex.ltx}.
+the formats to patch definitions defined in \file{latex.ltx}.
 
 As noted above the format now includes extended allocation routines.
 
-The distribution includes a file \textsf{unicode-letters.def} derived from the
+The distribution includes a file \file{unicode-letters.def} derived from the
 Unicode Consortium's Unicode Character Data files that details the upper and
 lower case transformation data for the full Unicode range. This is used to set
 the \verb|lccode| and \verb|uccode| values if a Unicode engine is being used,
@@ -235,7 +241,7 @@
 what gets released to \textsc{ctan}. Taking inspiration from Heiko Oberdiek's
 \textsf{latex-tds} bundle, the PDF documentation provided now includes
 hyperlinks where appropriate. This has been done without modifying the sources
-such that users without \textsf{hyperref} available can still typeset the
+such that users without \pkg{hyperref} available can still typeset the
 documentation using only the core distribution. At the same time, the release
 now includes ready-to-install TDS-style zip files. This will be of principal
 interest to \TeX\ system maintainers, but end users with older machines who

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews23.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews23.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/base/ltnews23.tex	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/base/ltnews23.tex	2021-10-22 21:41:02 UTC (rev 60842)
@@ -54,6 +54,12 @@
 
 \publicationissue{23}
 
+\providecommand\pkg[1]{\texttt{#1}}
+\providecommand\cls[1]{\texttt{#1}}
+\providecommand\option[1]{\texttt{#1}}
+\providecommand\env[1]{\texttt{#1}}
+\providecommand\file[1]{\texttt{#1}}
+
 \begin{document}
 
 \maketitle
@@ -77,17 +83,17 @@
 allocators for \hologo{LuaTeX}-provided features, such as Lua
 functions, bytecode registers, catcode tables and Lua callbacks.
 Previously these features have been provided by the contributed
-\package{luatex} (Heiko Oberdiek) and \package{luatexbase}
+\pkg{luatex} (Heiko Oberdiek) and \pkg{luatexbase}
 (\'{E}lie Roux,
   Manuel P\'{e}gouri\'{e}-Gonnard and Philipp Gesang)
 packages. However, just as
-noted with the \package{etex} package in the previous release, it is
+noted with the \pkg{etex} package in the previous release, it is
 better if allocation is handled by the format to avoid problems with
 conflicts between different allocation schemes, or definitions made
 before a package-defined allocation scheme is enabled.
 
 The facilities incorporated into the format with this release, and
-described below, are closely modelled on the \package{luatexbase}
+described below, are closely modelled on the \pkg{luatexbase}
 package and we thank the authors, and especially \'{E}lie Roux, for
 help in arranging this transition.
 
@@ -94,18 +100,18 @@
 The implementation of these \hologo{LuaTeX} features has been
 redesigned to match the allocation system introduced in the 2015/01/01
 \LaTeX\ release, and there are some other differences from the previous
-\package{luatexbase} package. However, as noted below,
-\package{luatexbase} is being updated in line with this \LaTeX\ release
+\pkg{luatexbase} package. However, as noted below,
+\pkg{luatexbase} is being updated in line with this \LaTeX\ release
 to provide the previous interface as a wrapper around the new
 implementation, so we expect the majority of documents using
-\package{luatexbase} to work without change.
+\pkg{luatexbase} to work without change.
 
 \subsection{Names of \hologo{LuaTeX} primitive commands}
 
 The 2015/01/01 \LaTeX\ release for the first time initialised
-\hologo{LuaTeX} in \textsf{latex.ltx} if \hologo{LuaTeX} is being
+\hologo{LuaTeX} in \file{latex.ltx} if \hologo{LuaTeX} is being
 used. Following the convention used in the contributed
-\textsf{lualatex.ini} file used to set up the format for earlier
+\file{lualatex.ini} file used to set up the format for earlier
 releases, most \hologo{LuaTeX}-specific primitives were defined with
 names prefixed by \texttt{luatex}. This was designed to minimize name
 clashes but had the disadvantage that names did not match the
@@ -136,7 +142,7 @@
 \end{verbatim}
 to your document.
 
-Note the compatibility layer offered by the \package{luatexbase} package
+Note the compatibility layer offered by the \pkg{luatexbase} package
 described below makes several commands available under both names.
 
 As always, this change can be reverted using:\\
@@ -147,8 +153,8 @@
 
 \subsection{\TeX\ commands for allocation in \hologo{LuaTeX}}
 For detailed descriptions of the new allocation commands see the
-documented sources in \textsf{ltluatex.dtx} or chapter N of
-\textsf{source2e}; however, the following new allocation commands are
+documented sources in \file{ltluatex.dtx} or chapter N of
+\file{source2e}; however, the following new allocation commands are
 defined by default in \hologo{LuaTeX}:
 \verb|\newattribute|,
 \verb|\newcatcodetable|,
@@ -165,13 +171,13 @@
 
 \subsection{Predefined Lua functions}
 If used with \hologo{LuaTeX}, \LaTeX\ will initialise a Lua table,
-\textsf{luatexbase}, with functions supporting allocation and also
+\texttt{luatexbase}, with functions supporting allocation and also
 the registering of Lua callback functions.
 
 \subsection{Support for older releases and plain \TeX}
 The \hologo{LuaTeX} allocation functionality made available in this
 release is also available in plain \TeX\ and older \LaTeX\ releases
-in the files \textsf{ltluatex.tex} and \textsf{ltluatex.lua} which may be
+in the files \file{ltluatex.tex} and \file{ltluatex.lua} which may be
 used simply by including the \TeX\ file: \verb|\input{ltluatex}|.
 An alternative for old \LaTeX\ releases is to use:\\
 \verb|\RequirePackage[2015/10/01]{latexrelease}|\\
@@ -181,11 +187,11 @@
 \subsection{Additional \hologo{LuaTeX} support packages}
 In addition to the base \LaTeX\ release two packages have been
 contributed to the \textsf{contrib} area on CTAN. The
-\package{ctablestack} package offers some commands to help package
-writers control the \hologo{LuaTeX} \textsf{catcodetable}
-functionality, and the \package{luatexbase} package replaces the
+\pkg{ctablestack} package offers some commands to help package
+writers control the \hologo{LuaTeX} \texttt{catcodetable}
+functionality, and the \pkg{luatexbase} package replaces the
 previously available package of the same name, providing a compatible
-interface but implemented over the \package{ltluatex} code.
+interface but implemented over the \pkg{ltluatex} code.
 
 \section{More Floats and Inserts}
 If \hologo{eTeX} is available, the number of registers allocated in
@@ -192,10 +198,10 @@
 the format to hold floats such as figures is increased from 18 to 52.
 
 The extended allocation system introduced in 2015/01/01 means that in
-most cases it is no longer necessary to load the \package{etex}
+most cases it is no longer necessary to load the \pkg{etex}
 package. Many classes and packages that previously loaded this package
 no longer do so. Unfortunately in some circumstances where a package
-or class previously used the \package{etex} \verb|\reserveinserts|
+or class previously used the \pkg{etex} \verb|\reserveinserts|
 command, it is possible for a document that previously worked to
 generate an error ``no room for a new insert''. In practice this error
 can always be avoided by declaring inserts earlier, before the
@@ -213,7 +219,7 @@
 \section{Updated Unicode data}
 
 
-The file \textsf{unicode-letters.def} recording catcodes, upper and
+The file \file{unicode-letters.def} recording catcodes, upper and
 lower case mappings and other properties for Unicode characters has
 been regenerated using the data files from Unicode~8.0.0.
 
@@ -223,8 +229,8 @@
 \textcommabelow{S}\textcommabelow{s}\textcommabelow{T}\textcommabelow{t}.
 This was requested in latex/4414 in the \LaTeX\ bug tracker.
 
-\section{Extended \package{inputenc}}
-The \texttt{utf8} option for \package{inputenc} has been extended to support
+\section{Extended \pkg{inputenc}}
+The \option{utf8} option for \pkg{inputenc} has been extended to support
 the letters s and t with comma accent,
 U+0218\,--\,U+021b. Similarly circumflex w and y U+0174\,--\,U+0177 are defined.
 Also U+00a0 and U+00ad are declared by default, and defined to be
@@ -250,8 +256,8 @@
 
 \section{Updates in tools}
 
-The \package{multicol} package has been updated to fix the interaction
+The \pkg{multicol} package has been updated to fix the interaction
 with ``here'' floats that land on the same page as the start or end of
-a \textsf{multicols} environment.
+a \env{multicols} environment.
 
 \end{document}

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews24.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews24.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/base/ltnews24.tex	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/base/ltnews24.tex	2021-10-22 21:41:02 UTC (rev 60842)
@@ -67,6 +67,12 @@
 
 \publicationissue{24}
 
+\providecommand\pkg[1]{\texttt{#1}}
+\providecommand\cls[1]{\texttt{#1}}
+\providecommand\option[1]{\texttt{#1}}
+\providecommand\env[1]{\texttt{#1}}
+\providecommand\file[1]{\texttt{#1}}
+
 \begin{document}
 
 \maketitle
@@ -77,7 +83,7 @@
 
 This release refines the \hologo{LuaTeX} support introduced in the
 2015/10/01 release. A number of patches have been added to improve the
-behavior of \package{ltluatex} (thanks largely to code review by Philipp Gesang).
+behavior of \pkg{ltluatex} (thanks largely to code review by Philipp Gesang).
 The kernel code has been adjusted to
 allow for changes in \hologo{LuaTeX} v0.85--v0.88. Most notably, newer
 \hologo{LuaTeX} releases allow more than $16$ write streams and these are now
@@ -94,10 +100,10 @@
 \texttt{.ini} files used by \TeX{} Live and similar distributions to
 set up the format files. These changes in the  \hologo{LuaTeX} engine
 will affect any packages using these back end commands (packages such
-as \package{graphics},  \package{color},  \package{hyperref}, etc.).
+as \pkg{graphics},  \pkg{color},  \pkg{hyperref}, etc.).
 Until all contributed packages are updated to the new syntax users may
 need to add aliases for the old \hologo{pdfTeX} commands. A new
-\package{luapdftexalias} package has been contributed to CTAN (not part of the
+\pkg{luapdftexalias} package has been contributed to CTAN (not part of the
 core \LaTeX\ release) that may be used for this purpose.
 
 See also the sections below for related changes in the
@@ -118,7 +124,7 @@
 between the Unicode Consortium files and \TeX{} data structures is non-trivial and still
 being explored. As such, it is preferable to directly parse the original
 (\verb|.txt|) files at point of use. The team has therefore ``spun-out'' both
-the data and the loading to a new generic package, \package{unicode-data}. This
+the data and the loading to a new generic package, \pkg{unicode-data}. This
 package makes the original Unicode Consortium data files available in the
 \verb|texmf| tree (in \verb|tex/generic/unicode-data|) and provides generic
 loaders suitable for reading this data into the plain, \LaTeXe{}, and other,
@@ -133,7 +139,7 @@
   \item \verb|SpecialCasing.txt|
   \item \verb|UnicodeData.txt|
 \end{itemize}
-These files are used either by \LaTeXe{} or by \package{expl3}
+These files are used either by \LaTeXe{} or by \textsf{expl3}
 (i.e.~they represent the set currently required by the team). The
 Unicode Consortium provides various other data files and we would be happy to add
 these to the generic package, as it is intended to provide a single place
@@ -155,8 +161,8 @@
 loaded into the format. The values which were previously inherited from
 the plain \hologo{XeTeX} setup files are \emph{not} suitable for properly
 typesetting East Asian text. There are third-party packages addressing this
-area well, notably those in the \package{CTeX} bundle. Third-party packages
-may need adjustment to load the data themselves; see the \textsf{unicode-data}
+area well, notably those in the \textsf{CTeX} bundle. Third-party packages
+may need adjustment to load the data themselves; see the \pkg{unicode-data}
 package for one possible loader.
 
 \section{More support for east European accents}
@@ -174,7 +180,7 @@
 declared to use the comma below accent rather than cedilla to match the
 conventional use of these letters.
 
-The UTF-8 \texttt{inputenc} option \texttt{utf8} has been extended to
+The UTF-8 \pkg{inputenc} option \option{utf8} has been extended to
 support all latin combinations that can be reasonably constructed with a
 (single) accent command an a base character for the T1 encoding so
 \textcommaabove{g}, \k{u} and similar characters may be directly input
@@ -182,24 +188,24 @@
 
 \section{Changes in Graphics}
 
-The changes in \hologo{LuaTeX}~v0.87 mean that the \package{color} and
-\package{graphics} packages no longer share the \texttt{pdftex.def} file
+The changes in \hologo{LuaTeX}~v0.87 mean that the \pkg{color} and
+\pkg{graphics} packages no longer share the \file{pdftex.def} file
 between \hologo{LuaTeX} and \hologo{pdfTeX}. A separate file
-\texttt{luatex.def} (distributed separately) has been produced, and
-distributions are encouraged to modify \texttt{graphics.cfg} and
-\texttt{color.cfg} configuration files to default to the \texttt{luatex}
+\file{luatex.def} (distributed separately) has been produced, and
+distributions are encouraged to modify \file{graphics.cfg} and
+\file{color.cfg} configuration files to default to the \option{luatex}
 option if \hologo{LuaTeX}~v0.87 or later is being used. The team has
 contributed suitable \texttt{.cfg} files to CTAN to be used
 as models.
 
-Normally it is best to let the local \texttt{graphics.cfg}
+Normally it is best to let the local \file{graphics.cfg}
 automatically supply the right option depending on the \TeX\ engine
-being used; however the \package{color} and \package{graphics} (and so
-\package{graphicx}) packages have been extended to have an explicit
-\texttt{luatex} option comparable to the existing \texttt{pdftex} and
-\texttt{xetex} options.
+being used; however the \pkg{color} and \pkg{graphics} (and so
+\pkg{graphicx}) packages have been extended to have an explicit
+\option{luatex} option comparable to the existing \option{pdftex} and
+\option{xetex} options.
 
-The \package{trig} package has been updated so that pre-computed values
+The \pkg{trig} package has been updated so that pre-computed values
 such as $\sin(90)$ now expand to digits (\texttt{1} rather than the
 internal token \verb|\@one| in this case). This allows them to be used
 directly in PDF literal strings.
@@ -208,7 +214,7 @@
 
 \hologo{LuaTeX} from version v0.87 no longer supports the
 \verb|\write18| syntax to access system commands. A new package
-\package{shellesc} has been added to \textsf{tools} that defines a new
+\pkg{shellesc} has been added to \textsf{tools} that defines a new
 command \verb|\ShellEscape| that may be used in all \TeX\ variants to
 provide a consistent access to system commands. The package also
 defines \verb|\write18| in  \hologo{LuaTeX} so that it continues to access
@@ -233,12 +239,12 @@
 The default font setup in \LaTeXe{} at present is to use the \texttt{OT1}
 encoding. This assumes that hyphenation patterns have been read using
 appropriate codes: the \texttt{T1} encoding is assumed. The commonly-used
-hyphenation patterns today, \package{hyph-utf8}, are set up in this
+hyphenation patterns today, \texttt{hyph-utf8}, are set up in this
 way for $8$-bit engines (\hologo{pdfTeX}) but for Unicode engines use
 Unicode code points. This means that hyphenation will be incorrect
 with Unicode engines unless a Unicode font is loaded. This requires
 a concept of a Unicode font encoding, which is currently provided by
-the \package{fontspec} package in two versions, \texttt{EU1} and
+the \pkg{fontspec} package in two versions, \texttt{EU1} and
 \texttt{EU2}. The team is working to fully understand what is meant
 by a ``Unicode font encoding'', as unlike a classical \TeX{} encoding
 it is essentially impossible to know what glyphs will be provided

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews25.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews25.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/base/ltnews25.tex	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/base/ltnews25.tex	2021-10-22 21:41:02 UTC (rev 60842)
@@ -41,6 +41,12 @@
 
 \publicationissue{25}
 
+\providecommand\pkg[1]{\texttt{#1}}
+\providecommand\cls[1]{\texttt{#1}}
+\providecommand\option[1]{\texttt{#1}}
+\providecommand\env[1]{\texttt{#1}}
+\providecommand\file[1]{\texttt{#1}}
+
 \begin{document}
 
 \maketitle
@@ -55,13 +61,13 @@
 in Lua\TeX\ version 0.90.
 
 These changes have also required updates in \textsf{tools}
-and \textsf{amsmath} as described below.
+and \pkg{amsmath} as described below.
 
 This is the first release of \LaTeX\ for which the test suite reports
 no failures when used with Lua\TeX.
 
 \section{Documentation checksums}
-The \package{doc} package has always provided two mechanisms that were
+The \pkg{doc} package has always provided two mechanisms that were
 mainly intended to guard against file truncation or corruption when
 files were commonly distributed by email through unreliable mail
 gateways: a Character Table of the ASCII character set could be
@@ -69,69 +75,69 @@
 backslashes in the code sections) could be checked.  These features
 are not really needed with modern distribution mechanisms and can be a
 distraction when reading the source code and so have been removed. The
-\package{doc} package has been updated so that if you use a
+\pkg{doc} package has been updated so that if you use a
 \verb|\CheckSum| command then, as before, the number is checked;
 however, if you omit the command then no error or warning is given.
 
 
-\section{Updates to \package{inputenc}}
+\section{Updates to \pkg{inputenc}}
 
-The UTF-8 support in \package{inputenc} has been further extended with
+The UTF-8 support in \pkg{inputenc} has been further extended with
 support for non-breaking hyphens and more dashes.
 
 \section{Updates in Tools}
 
-The \package{varioref} package has been updated with improved
+The \pkg{varioref} package has been updated with improved
 documentation of multi\-lingual support, and avoiding unnecessary warnings in
 some cases with \verb|\reftextfaraway|.
 
-The \package{tabularx} package's handling of \verb|\endtabularx| in
+The \pkg{tabularx} package's handling of \verb|\endtabularx| in
 environment definitions has been fixed to again match its documentation.
 
-The \package{bm} package has been updated as required by the changes
+The \pkg{bm} package has been updated as required by the changes
 to \verb|\mathchardef| in Lua\TeX.
 
 
 \section{amsmath}
 
-Since the launch of \LaTeXe\ in 1993, the \textsf{amsmath} bundle has
+Since the launch of \LaTeXe\ in 1993, the \pkg{amsmath} bundle has
 been part of the \emph{required} packages in the core \LaTeX\
 distribution, with bug reports handled by the \LaTeX\ bug database at
 \url{https://latex-project.org/bugs-upload.html}.
 
-The \textsf{amsmath} packages and the \textsf{amscls} classes have
+The \pkg{amsmath} packages and the \cls{amscls} classes have
 been maintained by the American Mathematical Society.
 
 With this release a new arrangement has been agreed between the
 American Mathematical Society and the \LaTeX3 project. The \LaTeX3
-project will take over maintenance of the \textsf{amsmath} bundle,
+project will take over maintenance of the \pkg{amsmath} bundle,
 with the American Mathematical Society retaining maintenance of
-\textsf{amscls}.
+\cls{amscls}.
 
 The recommended installation of these files in the \TeX\ directory
 structure remains unchanged as \path|tex/latex/amsmath| and
 \path|tex/latex/amscls| respectively.
 
-This release of \package{amsmath} includes several updates so that
-\package{amsmath} does not generate errors when math is used with
+This release of \pkg{amsmath} includes several updates so that
+\pkg{amsmath} does not generate errors when math is used with
 Lua\TeX\ v0.87+, which has changes to \verb|\mathchardef| that are
-incompatible with the previous version of \package{amsmath}. It also
+incompatible with the previous version of \pkg{amsmath}. It also
 improves \verb|\dots| handling so that \verb|\long| macros are
 correctly handled (for example, \verb|\dots \Rightarrow| now
 uses centered dots), as well as commands expanding to character tokens
 (for example, \verb|\times \dots \times| will use centered dots with
-\verb|\times| defined as in the \package{unicode-math} package).
+\verb|\times| defined as in the \pkg{unicode-math} package).
 
 \section{Related updates}
 In addition to the updates in the core \LaTeX\ release, some files in
 the CTAN ``contrib'' area have also been updated. Notably there have
-been further updates to the \textsf{unicode-data} files; also, the
+been further updates to the \file{unicode-data} files; also, the
 files required to build plain and \LaTeX\ formats have now been
-submitted to CTAN as \textsf{tex-ini-files}. The
-addition of a new \texttt{luatex} option for \textsf{graphics}-related
-packages (\textsf{luatex-def} on CTAN) has required updates to the
+submitted to CTAN as \file{tex-ini-files}. The
+addition of a new \option{luatex} option for \textsf{graphics}-related
+packages (\file{luatex-def} on CTAN) has required updates to the
 configuration files to select a
 default option and these have similarly been uploaded to CTAN as
-\textsf{graphics-cfg}. (Previously these files were maintained
+\file{graphics-cfg}. (Previously these files were maintained
 directly in the \TeX\ Live repository, and were not available on CTAN.)
 \end{document}

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews26.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews26.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/base/ltnews26.tex	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/base/ltnews26.tex	2021-10-22 21:41:02 UTC (rev 60842)
@@ -40,6 +40,12 @@
 
 \publicationissue{26}
 
+\providecommand\pkg[1]{\texttt{#1}}
+\providecommand\cls[1]{\texttt{#1}}
+\providecommand\option[1]{\texttt{#1}}
+\providecommand\env[1]{\texttt{#1}}
+\providecommand\file[1]{\texttt{#1}}
+
 \begin{document}
 
 \maketitle
@@ -82,7 +88,7 @@
 \hologo{XeLaTeX} as in the major distributions this is built with
 Unicode based hyphenation patterns in the format.  In practice this has
 not been a major problem as documents use the contributed
-\textsf{fontspec} package in order to switch to a
+\pkg{fontspec} package in order to switch to a
 Unicode encoded font.
 
 In this release we are adding \texttt{TU} as a new supported
@@ -89,25 +95,25 @@
 encoding in addition to the previously supported encodings such as \texttt{OT1}
 and \texttt{T1}. This denotes a Unicode based font encoding. It is essentially
 the same as the \texttt{TU} encoding that has been on trial with the
-experimental \texttt{tuenc} option to \textsf{fontspec} for the past
+experimental \option{tuenc} option to \pkg{fontspec} for the past
 year.
 
 The \hologo{XeLaTeX} and \hologo{LuaLaTeX} formats will now default
 to \texttt{TU} encoding and \texttt{lmr} (Latin Modern) family. In the
-case of \hologo{LuaLaTeX} the contributed \textsf{luaotfload} Lua
+case of \hologo{LuaLaTeX} the contributed \texttt{luaotfload} Lua
 module will be loaded at the start of each run to enable the loading
 of OpenType fonts.
 
-The \textsf{fontspec} package is being adjusted in a companion release
+The \pkg{fontspec} package is being adjusted in a companion release
 to recognise the new encoding default arrangements.
 
 Note that in practice no font supports the full Unicode range, and so
 \texttt{TU} encoded fonts, unlike fonts specified for \texttt{T1}, may be
 expected to be incomplete in various ways. In the current release the file
-\texttt{tuenc.def} that implements the \texttt{TU} encoding-specific commands
+\file{tuenc.def} that implements the \texttt{TU} encoding-specific commands
 has made some basic assumptions for (for example) default handling of
 accent commands, and the set of command names is derived from the
-command names used for the UTF-8 support in the \textsf{inputenc} package,
+command names used for the UTF-8 support in the \pkg{inputenc} package,
 restricted roughly to the character ranges classically provided by
 the \texttt{T1} and \texttt{TS1} encodings, but is part of a longer term plan
 seen over recent releases to increase support for Unicode based \TeX\ engines
@@ -130,54 +136,54 @@
 \section{\cs{showhyphens} in \hologo{XeLaTeX}}
 Due to the way \hologo{XeLaTeX} interfaces to font libraries, the
 standard definition of \cs{showhyphens} does not work.  A variant
-definition has been available in the contributed \textsf{xltxtra}
+definition has been available in the contributed \pkg{xltxtra}
 package, however a (slightly different) definition for \cs{showhyphens}
 is now included in \hologo{XeLaTeX} by default. As usual
 this change will be undone if an earlier
-release is specified using the \textsf{latexrelease} package.
+release is specified using the \pkg{latexrelease} package.
 
-\section{The \textsf{fixltx2e} package}
-As described in \LaTeX{} News~22, the \textsf{fixltx2e} package has become
+\section{The \pkg{fixltx2e} package}
+As described in \LaTeX{} News~22, the \pkg{fixltx2e} package has become
 obsolete with the new update policy. Since 2015 it has just made a
 warning and exited.  In this release we have re-introduced all
 the code from the original fixes in the 2014 \LaTeX\ but guarded by
 \verb|\IncludeInRelease{2015/01/01}|.
-So for current releases \textsf{fixltx2e} still just displays a warning
+So for current releases \pkg{fixltx2e} still just displays a warning
 but for old releases, whether that is an old format, or a format with
-the version date reset via  the \textsf{latexrelease} package, the
-fixes in the original \textsf{fixltx2e} will be applied.
+the version date reset via  the \pkg{latexrelease} package, the
+fixes in the original \pkg{fixltx2e} will be applied.
 
 This improves the ability to run old documents in a way that is compatible
 with contemporary formats. If you have a 2014 document that used
 \verb|\usepackage{fixltx2e}| and you add
 \verb|\RequirePackage[2014/01/01]{latexrelease}| and process it with the
-current format then \textsf{latexrelease} will undo most changes made
-since 2014, but now when the document includes \textsf{fixltx2e} it
+current format then \pkg{latexrelease} will undo most changes made
+since 2014, but now when the document includes \pkg{fixltx2e} it
 will act like a 2014 version of the package and apply the code fixes,
 not just give a warning that the package is obsolete.
 
-\section{The \textsf{latexbug} package}
+\section{The \pkg{latexbug} package}
 
 As explained in more detail
 at the \LaTeX\ Project
   website\footnote{\url{https://www.latex-project.org/bugs/}}
-a new package, \textsf{latexbug}, has been produced to help produce
+a new package, \pkg{latexbug}, has been produced to help produce
 test files to accompany bug reports on the core \LaTeX\ distribution.
 This is being published separately to CTAN at the same time as this
-release. By using the \textsf{latexbug} package you can easily check
+release. By using the \pkg{latexbug} package you can easily check
 that the packages involved in the test are all part of the core
 release. The \LaTeX\ project cannot handle bug reports on contributed
 packages, which should be directed to the package maintainer as given
 in the package documentation.
 
-\section{Updates to \textsf{amsmath}}
-The \textsf{amsmath} package has two updates at this release.
+\section{Updates to \pkg{amsmath}}
+The \pkg{amsmath} package has two updates at this release.
 \begin{itemize}
-\item The spacing to the left of the \texttt{aligned} and
-  \texttt{gathered} environments has been fixed: the spurious thin
+\item The spacing to the left of the \env{aligned} and
+  \env{gathered} environments has been fixed: the spurious thin
   space is no longer added by default. Package options control this
   to revert to the original behaviour where required; see the
-  \textsf{amsldoc} guide for further details.
+  \file{amsldoc} guide for further details.
 \item The large delimiters around generalised fractions (for example
   in the \cs{binom} construct) did not work in previous releases if
   using \hologo{LuaTeX} or \hologo{XeTeX} with OpenType math fonts. This is
@@ -193,12 +199,12 @@
 \end{itemize}
 
 \section{Updates to \textsf{tools}}
-The \textsf{array} package has been updated to fix a longstanding but
+The \pkg{array} package has been updated to fix a longstanding but
 previously unreported issue with unwanted interactions between tables
 in the page head or foot and the body of the page, as reported in
 \href{http://www.latex-project.org/cgi-bin/ltxbugs2html?pr=tools/4488}{PR
   tools/4488}.
-There is also an update to the \hologo{LuaTeX} support in \textsf{bm}.
+There is also an update to the \hologo{LuaTeX} support in \pkg{bm}.
 
 \section{An addendum to the release changes in 2015:  page breaks and vertical spacing}
 
@@ -205,15 +211,15 @@
 In 2015 we announced the introduction of the roll-back\slash
 roll-forward concept to manage bug fixes and additions to core
 \LaTeX{} in a manageable way. We also announced at that time
-that we now incorporate all fixes from \textsf{fixltx2e} into the
+that we now incorporate all fixes from \pkg{fixltx2e} into the
 kernel (as the old mechanism produced problems instead of improving
 the situation). Refer to
-\href{https://www.latex-project.org/news/latex2e-news/ltnews22.pdf}{\texttt{ltnews22.pdf}}
+\href{https://www.latex-project.org/news/latex2e-news/ltnews22.pdf}{\file{ltnews22.pdf}}
 for details.
 
-One of the fixes from \textsf{fixltx2e} was for a glaring bug in
+One of the fixes from \pkg{fixltx2e} was for a glaring bug in
 \cs{addvspace} that was originally detected in the mid-nineties and
-back then added to the \textsf{fixltx2e} support package. In certain
+back then added to the \pkg{fixltx2e} support package. In certain
 situations \cs{addvspace} would result in a page/column break below
 the baseline of the last line. As a result documents using
 \cs{flushbottom} would show a clear misalignment (even more prominent
@@ -220,7 +226,7 @@
 when typesetting in two-column mode).
 
 Starting with release 2015/01/01 this is now finally corrected already
-in the kernel and not only in \textsf{fixltx2e}.  In nearly all
+in the kernel and not only in \pkg{fixltx2e}.  In nearly all
 circumstances this will either make no difference to existing
 documents, or it will locally improve the visual appearance of that
 document without changing anything on other pages.  However, by the

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews27.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews27.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/base/ltnews27.tex	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/base/ltnews27.tex	2021-10-22 21:41:02 UTC (rev 60842)
@@ -40,6 +40,12 @@
 
 \publicationissue{27}
 
+\providecommand\pkg[1]{\texttt{#1}}
+\providecommand\cls[1]{\texttt{#1}}
+\providecommand\option[1]{\texttt{#1}}
+\providecommand\env[1]{\texttt{#1}}
+\providecommand\file[1]{\texttt{#1}}
+
 \begin{document}
 
 \maketitle
@@ -65,9 +71,9 @@
 date argument of \verb|\ProvidesPackage|, \verb|\usepackage|, etc.
 Currently we recommend that you do not use this format in any packages
 that need to work with older \LaTeX\ releases;
-the \textsf{latexrelease} package may be used with older releases to
+the \pkg{latexrelease} package may be used with older releases to
  add this functionality. This change is handled in a special way  by
- \textsf{latexrelease}: The package always adds support for ISO dates
+ \pkg{latexrelease}: The package always adds support for ISO dates
 whatever format date is requested; this is required so that the
 necessary date comparisons may be made.
 
@@ -92,10 +98,10 @@
 
 The format ensures that  a language has been allocated with this name.
 For most users this will in fact be no change as the standard
-\textsf{babel} language has for a long time allocated a language with
+\pkg{babel} language has for a long time allocated a language with
 this name.
 
-In order that page breaks in \texttt{verbatim} do not influence the
+In order that page breaks in \env{verbatim} do not influence the
 language used in the page head and foot, the format now normalises the
 language used in the output routine to a default language as described
 below.
@@ -103,7 +109,7 @@
 \section{Discretionary hyphenation}
 The \LaTeX\ definition of \verb|\-| has been adjusted so that it will
 insert the current font's \verb|\hyphenchar|, as would the
-\TeX\ primitive. A comment in \textsf{source2e} has given
+\TeX\ primitive. A comment in \file{source2e} has given
 this new definition since the first releases of \LaTeXe, and in this
 release we finally acted upon this comment. Previously \verb|\-|
 always inserted a \texttt{-} at a break point even if a different
@@ -118,7 +124,7 @@
   handling of the default color, and is used in a similar way to
   normalise the settings for page head and foot as described above.
 Users should not normally need to set this explicitly but it is expected that
-language packages such as \textsf{babel} may set this if the default
+language packages such as \pkg{babel} may set this if the default
 behaviour is not suitable.
 
 \section{Line spacing in parboxes}
@@ -129,7 +135,7 @@
 with \emph{closer} line spacing than lines without. This can easily
 happen if you use a \verb|\parbox| in an AMS alignment, as they use a
 relatively large value of \verb|\lineskiplimit|.
-As usual, the \textsf{latexrelease} package may be used to
+As usual, the \pkg{latexrelease} package may be used to
 force the older behavior.
 
 \end{document}

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews28.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews28.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/base/ltnews28.tex	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/base/ltnews28.tex	2021-10-22 21:41:02 UTC (rev 60842)
@@ -44,6 +44,12 @@
 
 \publicationissue{28}
 
+\providecommand\pkg[1]{\texttt{#1}}
+\providecommand\cls[1]{\texttt{#1}}
+\providecommand\option[1]{\texttt{#1}}
+\providecommand\env[1]{\texttt{#1}}
+\providecommand\file[1]{\texttt{#1}}
+
 \begin{document}
 
 \maketitle
@@ -125,7 +131,7 @@
 a \LaTeX{} version usable across the world) had to provide a solution
 to this issue.
 
-The \LaTeXe{} answer was the introduction of the \package{inputenc}
+The \LaTeXe{} answer was the introduction of the \pkg{inputenc}
 package~\cite{Mittelbach:Brno95} through which it is possible to
 provide support for multiple encodings. It also allows to correctly
 process a file written in one encoding on a computer using a different
@@ -135,10 +141,10 @@
 Since the first release of \LaTeXe{} in 1994, \LaTeX{} documents that
 used any characters outside \acro{ascii} in the source (i.e. any
 characters in the range of 128--255) were supposed to load
-\package{inputenc} and specify in which file encoding they were
+\pkg{inputenc} and specify in which file encoding they were
 written and stored.
 %
-If the \package{inputenc} package was not loaded then \LaTeX{} used a
+If the \pkg{inputenc} package was not loaded then \LaTeX{} used a
 ``raw'' encoding which essentially took each byte from the input file
 and typeset the glyph that happened to be in that position in the
 current font---something that sometimes produces the right result but
@@ -171,7 +177,7 @@
 
 The \hologo{LuaTeX} and \hologo{XeTeX} engines always supported the
 UTF-8 encoding as their native (and only) input encoding, so with
-these engines \package{inputenc} was always a no-op.
+these engines \pkg{inputenc} was always a no-op.
 
 This means that with new documents one can assume UTF-8 input and it
 is no longer required to always specify
@@ -186,14 +192,14 @@
 \item documents using only \acro{ascii} in the input file and
   accessing accented characters via commands;
 \item documents that specified the encoding of their file via an
-  option to the \package{inputenc} package and then used 8-bit
+  option to the \pkg{inputenc} package and then used 8-bit
   characters in that encoding;
 \item documents that already had been stored in UTF-8 (whether or not
-  specifying this via \package{inputenc}).
+  specifying this via \pkg{inputenc}).
 \end{itemize}
 Only documents that have been stored in a legacy encoding and used
 accented letters from the keyboard \emph{without} loading
-\package{inputenc} (relying on the similarities between the input used
+\pkg{inputenc} (relying on the similarities between the input used
 and the T1 font encoding) are affected.
 
 These documents will now generate an error that they contain invalid
@@ -215,12 +221,12 @@
 \verb=  \usepackage[=\meta{encoding}\verb=]{inputenc}=
 \end{flushleft}
 to the preamble specifying the \meta{encoding} that fits the file
-encoding.  In many cases this will be \texttt{latin1} or
-\texttt{cp1252}. For other encoding names and their meaning see the
-\package{inputenc} documentation.
+encoding.  In many cases this will be \option{latin1} or
+\option{cp1252}. For other encoding names and their meaning see the
+\pkg{inputenc} documentation.
 
 As usual, this change may also be reverted via the more general
-\package{latexrelease} package mechanism, by speciying a release date
+\pkg{latexrelease} package mechanism, by speciying a release date
 earlier than this release.
 
 
@@ -291,7 +297,7 @@
 \verb|\let\|\meta{command}\verb|\relax|.
 
 
-\section{Changes to packages in the tools category}
+\section{Changes to packages in the \pkg{tools} category}
 
 \subsection{\LaTeX{} table columns with fixed widths}
 
@@ -317,7 +323,7 @@
 needs adjustment.
 
 
-\section{Changes to packages in the amsmath category}
+\section{Changes to packages in the \pkg{amsmath} category}
 
 With this release of \LaTeX{} a few minor issues with \pkg{amsmath}
 have been corrected.
@@ -324,7 +330,7 @@
 
 \subsection{Updated user's guide}
 
-Furthermore, \texttt{amsldoc.pdf}, the AMS user's
+Furthermore, \file{amsldoc.pdf}, the AMS user's
 guide for the \pkg{amsmath} package~\cite{amsldoc}, has been updated
 from version~2.0 to~2.1 to incorporate changes and corrections made
 between 2016 and 2018.
@@ -354,7 +360,7 @@
   \url{https://www.latex-project.org/publications/}
 
 \bibitem{amsldoc} American Mathematical Society and The \LaTeX\ Project:
-  \emph{User's Guide for the \texttt{amsmath} package} (Version 2.1).
+  \emph{User's Guide for the \pkg{amsmath} package} (Version 2.1).
   April 2018.
   Available from
   \url{https://www.ctan.org}

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews29.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews29.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/base/ltnews29.tex	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/base/ltnews29.tex	2021-10-22 21:41:02 UTC (rev 60842)
@@ -61,7 +61,7 @@
      \mbox{\small\slshape(\url{https://tex.stackexchange.com/#1})}\par}
 
 \let\cls\pkg
-\newcommand\env[1]{\texttt{#1}}
+\providecommand\env[1]{\texttt{#1}}
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \iffalse % only for TUB production
@@ -438,7 +438,7 @@
 %
 \githubissue{72}
 
-\subsection{Support fragile commands in \texttt{array} or \texttt{tabular} column templates}
+\subsection{Support fragile commands in \env{array} or \env{tabular} column templates}
 
 The preamble specifiers \texttt{p}, \texttt{m} and \texttt{b} each receives
 a user supplied argument: the width of the paragraph column. Normally
@@ -451,7 +451,7 @@
 
 
 
-\section{Changes to packages in the amsmath category}
+\section{Changes to packages in the \pkg{amsmath} category}
 
 The changes in the kernel made for \cs{thinspace}, \cs{smash},
 etc.\ (see above) have been reflected in the \pkg{amsmath} package

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews30.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews30.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/base/ltnews30.tex	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/base/ltnews30.tex	2021-10-22 21:41:02 UTC (rev 60842)
@@ -283,7 +283,7 @@
 already existing file;
  by default nothing is written if a file with the given name
 exists anywhere in the search tree. An alternative name for this
-option is \texttt{force}.
+option is \option{force}.
 Even then the environment will refuse to write
 to \cs{jobname}\texttt{.tex} to avoid clobbering its own input
 file. However, if you use a different extension on your input file you
@@ -327,7 +327,7 @@
 standard mechanism with \cs{DeclareRobustCommand} doesn't work here,
 at least not for \cs{end} as that needs to expand during typesetting
 without generating a \cs{relax} (from the \cs{protect}). Such a token
-would start a new row in table environments, such as \texttt{tabular},
+would start a new row in table environments, such as \env{tabular},
 etc. Furthermore, some packages try to look into the definition of
 \cs{end} by expanding it several times. Thus expansion with
 \cs{expandafter} had to produce exactly the same result as before. But
@@ -406,8 +406,8 @@
 \begin{verbatim}
 \InputIfFileExists{foo}{\input{bar}}{}
 \end{verbatim}
-would not load the files \texttt{foo.tex} and \texttt{bar.tex} but
-would load \texttt{bar.tex} twice. This has been corrected.
+would not load the files \file{foo.tex} and \file{bar.tex} but
+would load \file{bar.tex} twice. This has been corrected.
 
 \githubissue{109}
 
@@ -477,7 +477,7 @@
 
 \subsection{\pkg{nfssfont}: Make font table generation the default action}
 
-With the small file \texttt{nfssfont.tex} it is possible to produce
+With the small file \file{nfssfont.tex} it is possible to produce
 font tables and other font tests
 in the style set up by Don Knuth.
 In nearly all cases
@@ -512,7 +512,7 @@
 \subsection{\pkg{array}: Warn if primitive column specifiers are overwritten}
 
 With \cs{newcolumntype} it is possible to define your own column
-specifiers for a \texttt{tabular} preamble; it is also possible to
+specifiers for a \env{tabular} preamble; it is also possible to
 change existing ones. However, doing that for a primitive column
 specifier, such as \texttt{c}, is seldom a good idea, since then its
 functionality becomes unavailable.
@@ -625,15 +625,15 @@
 are now producing the standard codes again.
 
 
-\subsection{\LaTeX{} \texttt{base} and \texttt{doc} distribution reunited}
+\subsection{\LaTeX{} \textsf{base} and \textsf{doc} distribution reunited}
 
 For a long time the \LaTeX{} distribution available from \CTAN{} was
 split into several parts to allow them to be uploaded or downloaded
 separately. As this is these days more confusing than helpful we have
 recombined the base part with the documentation part (as both are
-anyway always updated together). Thus the package \texttt{latex-doc}
+anyway always updated together). Thus the package \textsf{latex-doc}
 is no longer separately available from \CTAN{} but contained in the
-\texttt{latex-base} distribution.
+\textsf{latex-base} distribution.
 
 
 \begin{thebibliography}{9}

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews31.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews31.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/base/ltnews31.tex	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/base/ltnews31.tex	2021-10-22 21:41:02 UTC (rev 60842)
@@ -43,6 +43,8 @@
 \providecommand\meta[1]{$\langle$\textit{#1}$\rangle$}
 \providecommand\option[1]{\texttt{#1}}
 \providecommand\env[1]{\texttt{#1}}
+\providecommand\file[1]{\texttt{#1}}
+\providecommand\pkg[1]{\texttt{#1}}
 
 
 \providecommand\XeTeX{\hologo{XeTeX}}
@@ -251,7 +253,7 @@
 customizable and extensible if there is ever a need for this. The
 mappings
 are defined through \cs{DeclareFontShapeChangeRule} and the
-details for developers are documented in \texttt{source2e.pdf}.
+details for developers are documented in \file{source2e.pdf}.
 
 The ideas for this interface extension have been pioneered in
 \pkg{fontspec} by Will Robertson for Unicode engines, and in
@@ -318,7 +320,7 @@
 The ways in which the different series values combine with each other is not
 hardwired but is again customizable and extensible. The mappings are
 defined through \cs{DeclareFontSeriesChangeRule} and the details for
-developers are documented in \texttt{source2e.pdf}.
+developers are documented in \file{source2e.pdf}.
 
 
 \subsection{Font series defaults per document family}
@@ -457,11 +459,11 @@
 no longer necessary to load the \pkg{textcomp} package, but for
 backwards compatibility this package will remain available.  There is,
 however, one use case where it remains useful: if you load the package
-with the option \texttt{error} or \texttt{warn} then substitutions
+with the option \option{error} or \option{warn} then substitutions
 will change their behavior and result in a \LaTeX{} error or a
 \LaTeX{} warning (on the terminal), respectively. Without the package
 the substitution information only appears in the \texttt{.log}
-file. If you use the option \texttt{quiet}, then even the information in
+file. If you use the option \option{quiet}, then even the information in
 the transcript is suppressed (which is not really recommended).
 
 
@@ -468,7 +470,6 @@
 
 \subsection{New \texttt{alias} size function for use in \texttt{.fd} files}
 
-% These are really called ``size functions'' in NFSS, a bit weird I know
 
 Most of the newer fonts supported in \TeX{} have been set up with the
 \texttt{autoinst} tool by Marc Penninga. In the past, this program
@@ -565,7 +566,7 @@
 \githubissue{251}
 
 
-\subsection{Allow more write streams with \texttt{filecontents} in \LuaTeX}
+\subsection{Allow more write streams with \env{filecontents} in \LuaTeX}
 
 Most \TeX{} engines only support a maximum of sixteen concurrently
 open write streams, and when those have been used up, then
@@ -576,7 +577,7 @@
 %
 \githubissue{238}
 
-\subsection{Allow spaces in \texttt{filecontents} option list}
+\subsection{Allow spaces in \env{filecontents} option list}
 
 Leaving spaces or newlines in the option list prevented the options
 from being correctly recognized. This\\
@@ -609,9 +610,9 @@
 
 \section{Changes to packages in the \pkg{tools} category}
 
-\subsection{Fixed column depth in boxed \texttt{multicols}}
+\subsection{Fixed column depth in boxed \env{multicols}}
 
-The \texttt{multicols} environment was setting \cs{maxdepth} when
+The \env{multicols} environment was setting \cs{maxdepth} when
 splitting boxes; but, due to the way the internal interfaces of \LaTeX{} are
 designed, it should have used \cs{@maxdepth} instead. As a result,
 balanced boxed multicols sometimes ended up having different heights
@@ -620,9 +621,9 @@
 \githubissue{190}
 
 
-\subsection{Ensure that \texttt{multicols} does not lose text}
+\subsection{Ensure that \env{multicols} does not lose text}
 
-The \texttt{multicols} environment needs a set of consecutively numbered boxes to
+The \env{multicols} environment needs a set of consecutively numbered boxes to
 collect column material. The way those got allocated could result in
 disaster if other packages allocated most boxes below box~255 (which
 \TeX{} always uses for the output page).  In the original
@@ -641,13 +642,13 @@
 \subsection{Allow spaces in \cs{hhline} arguments}
 
 The \verb|\hhline| command, which allows the
-specification of rule segments in \texttt{tabular} environments, now
+specification of rule segments in \env{tabular} environments, now
 allows (but ignores) spaces between its tokens: so
 \verb|\hhline{: = : =}| is now allowed and is equivalent to
 \verb|\hhline{:=:=}|. This matches similar token arguments in \LaTeX{}
 such as the \verb|[h t p]| argument on floats.  A similar change has
 been made to the extended \verb|\hhline| command in the
-\texttt{colortbl} package.
+\pkg{colortbl} package.
 %
 \githubissue{242}
 

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews32.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews32.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/base/ltnews32.tex	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/base/ltnews32.tex	2021-10-22 21:41:02 UTC (rev 60842)
@@ -43,6 +43,7 @@
 \providecommand\meta[1]{$\langle$\textrm{\itshape#1}$\rangle$}
 \providecommand\option[1]{\texttt{#1}}
 \providecommand\env[1]{\texttt{#1}}
+\providecommand\file[1]{\texttt{#1}}
 \providecommand\Arg[1]{\texttt\{\meta{#1}\texttt\}}
 
 
@@ -177,11 +178,11 @@
 available (if we discount \pkg{xparse} which has already been available for
 a long time as a separate package).
 
-The file \texttt{lthooks.dtx} holds the core management code for hooks
+The file \file{lthooks.dtx} holds the core management code for hooks
 and defines basic hooks for environments (as previously offered by
-\pkg{etoolbox}), \texttt{ltshipout.dtx} provides kernel hooks into the
+\pkg{etoolbox}), \file{ltshipout.dtx} provides kernel hooks into the
 shipout process (making packages like \pkg{atbegshi},
-etc., unnecessary) and the file \texttt{ltfilehook.dtx} holds
+etc., unnecessary) and the file \file{ltfilehook.dtx} holds
 redefinitions for commands like \cs{input} or \cs{usepackage} so that
 they offer hooks in a similar fashion to what is provided by the
 \pkg{filehook} package.
@@ -192,16 +193,16 @@
 final form either and you have to read through three different
 documents:
 \begin{description}
-  \item[\texttt{lthooks-doc.pdf}] Core management interface and basic
+  \item[\file{lthooks-doc.pdf}] Core management interface and basic
     hooks for environments provided by the kernel.
 
-  \item[\texttt{ltshipout-doc.pdf}] Hooks accessible while a page is
+  \item[\file{ltshipout-doc.pdf}] Hooks accessible while a page is
     being shipped out.
 
-  \item[\texttt{ltfilehook-doc.pdf}] Hooks used when reading a file.
+  \item[\file{ltfilehook-doc.pdf}] Hooks used when reading a file.
 \end{description}
 For those who wish to also study the code, replace \texttt{-doc} with
-\texttt{-code}, e.g., \texttt{lthooks-code.pdf}. All documents should
+\texttt{-code}, e.g., \file{lthooks-code.pdf}. All documents should
 be accessible via \texttt{texdoc}, e.g.,
 \begin{verbatim}
   texdoc lthooks-doc
@@ -270,12 +271,12 @@
 %
 \githubissue{152}
 
-\subsection{Support \eTeX\ length expressions in \texttt{picture} coordinates}
+\subsection{Support \eTeX\ length expressions in \env{picture} coordinates}
 
 Picture mode coordinates specified with \texttt{(\_,\_)} previously
 accepted multiples of \cs{unitlength}. They now also allow \eTeX\ length
 expressions (as used by the \cs{glueexpr} primitive although all uses
-in \texttt{picture} mode are non-stretchy).
+in \env{picture} mode are non-stretchy).
 
 So, valid uses include \verb|\put(2,2)| as previously,
  but now also uses such as\tubcommand\\ \verb|\put(\textwidth-5cm,0.4\textheight)|.
@@ -321,7 +322,7 @@
 \subsection{Spacing issues when using \cs{linethickness}}
 
 In some circumstances the use of \cs{linethickness} introduced a
-spurious space that shifted objects in a \texttt{picture} environment
+spurious space that shifted objects in a \env{picture} environment
 to the right. This has been corrected.
 %
 \githubissue{274}
@@ -403,16 +404,16 @@
 \githubissue{22}
 
 
-\subsection{Adjusting \texttt{fleqn}}
+\subsection{Adjusting \option{fleqn}}
 
 In \pkg{amsmath} the \cs{mathindent} parameter used with the
-\texttt{fleqn} design is a rubber length parameter allowing for setting
+\option{fleqn} design is a rubber length parameter allowing for setting
 it to a value such as \texttt{1em minus 1em}, i.e., so that the normal
 indentation can be reduced in case of very wide math displays.
 This is now also supported by the \LaTeX{} standard classes.
 
 In addition a compressible space between formula and equation number
-in the \texttt{equation} environment got added when the \texttt{fleqn}
+in the \env{equation} environment got added when the \option{fleqn}
 option is used so that a very wide formula doesn't bump into the
 equation number.
 %
@@ -561,7 +562,7 @@
 
 \subsection{Support vertical typesetting with \pkg{doc}}
 
-The \texttt{macrocode} environment uses a \texttt{trivlist} internally
+The \env{macrocode} environment uses a \env{trivlist} internally
 and as part of this sets up the \cs{@labels} box to contain some
 horizontal skips, but that box is never used. As a result this
 generates an issue in some circumstances if the typesetting direction
@@ -603,7 +604,7 @@
 \subsection{Spacing commands moved from \pkg{amsmath} to the kernel}
 Originally \LaTeX{} only provided a small set of spacing commands
 for use in text and math; some of the commands like \cs{;} were
-only supported in math mode. \texttt{amsmath} normalized  and
+only supported in math mode. \pkg{amsmath} normalized  and
 provided all of them in text and math. This code has now been
 moved to the kernel so that it is generally available.
 \begin{center}
@@ -690,9 +691,9 @@
 \githubissue{286}
 
 \subsection{Files with multiple parts}
-Sometimes one has a graphics file, say, \texttt{file.svg}, and converts
+Sometimes one has a graphics file, say, \file{file.svg}, and converts
 it to another format to include it in \LaTeX{} and ends up with a file
-named \texttt{file.svg.png}.  In previous releases, if the user did
+named \file{file.svg.png}.  In previous releases, if the user did
 \verb|\includegraphics{file.svg}|, an error would be raised and the
 graphics inclusion would fail due to the unknown \verb|.svg| extension.
 The \pkg{graphics} package now checks if the given extension is known, and if
@@ -746,7 +747,7 @@
 
 \subsection{\pkg{varioref}: Support Japanese as a language option}
 
-The package now recognizes \texttt{japanese} as a language option.
+The package now recognizes \option{japanese} as a language option.
 The extra complication is that for grammatical reasons \cs{vref},
 \cs{Vref}, \cs{vrefrange} and \cs{fullref} need a structure different
 from all other languages currently supported. To accommodate this,
@@ -778,9 +779,9 @@
 %
 \githubissue{126}
 
-\subsection{Fixes to \texttt{aligned} and \texttt{gathered}}
+\subsection{Fixes to \env{aligned} and \env{gathered}}
 
-The environments \texttt{aligned} and \texttt{gathered} have a
+The environments \env{aligned} and \env{gathered} have a
 trailing optional argument to specify the vertical position of the
 environment with respect to the rest of the line. Allowed values are
 \texttt{t}, \texttt{b} and \texttt{c} but the code only tested for
@@ -804,7 +805,7 @@
 \subsection{Use Lua\TeX{} primitives where applicable}
 
 For a number of years \pkg{lualatex-math} patched \cs{frac},
-\cs{genfrac} and the \texttt{subarray} environment to make use of new
+\cs{genfrac} and the \env{subarray} environment to make use of new
 lua\TeX{} primitives. This code has now been integrated into
 \pkg{amsmath}.
 

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews33.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews33.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/base/ltnews33.tex	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/base/ltnews33.tex	2021-10-22 21:41:02 UTC (rev 60842)
@@ -141,7 +141,7 @@
 
 Subsequent sections describe quite a number of recent smaller
 enhancements and fixes.  As usual, more detail on individual changes
-can be found in the \texttt{changes.txt} files in the distribution
+can be found in the \file{changes.txt} files in the distribution
 and, of course, in the documented sources~\cite{33:source2e}.
 
 
@@ -186,7 +186,7 @@
 \hook{cmd/.../after}, hooks may fail with commands that are too
 complex to be automatically patched, breaking if the hook contains any
 code.  These restrictions are documented in
-\texttt{ltcmdhooks-doc.pdf}.
+\file{ltcmdhooks-doc.pdf}.
 %   
 However, given that these hooks are mainly meant for developers who
 wish to provide better interoperability between different packages,
@@ -354,7 +354,7 @@
 \subsection{Improved copy\,\&\,paste for \pdfTeX{} documents}
 
 When compiling with \pdfTeX{}, additional information
-(from the file \texttt{glyphtounicode.tex}) is now added automatically
+(from the file \file{glyphtounicode.tex}) is now added automatically
 to the PDF file in order to improve copying from, and searching in,
 text.
 
@@ -586,7 +586,7 @@
 the referenced \cs{footnote} and referencing this label by using the
 new command \cs{footref}.  This means that footnote marks can be
 generated to refer to arbitrary footnotes (including those in
-\texttt{minipage}s).
+\env{minipage}s).
 
 This \cs{footref} command has previously been available, but only when
 using certain classes or the \pkg{footmisc} package.
@@ -859,7 +859,7 @@
 
 \subsection{\pkg{layout}: Added language options}
 
-This package now recognizes \texttt{japanese} and \texttt{romanian} as
+This package now recognizes \option{japanese} and \option{romanian} as
 language options.
 %
 \githubissue[s]{353 and 529}

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews34.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltnews34.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/base/ltnews34.tex	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/base/ltnews34.tex	2021-10-22 21:41:02 UTC (rev 60842)
@@ -5,7 +5,7 @@
 % in this file.
 %
 % This file is part of the LaTeX base system.
-% -------------------------------------------
+% -——————————————
 %
 % It may be distributed and/or modified under the
 % conditions of the LaTeX Project Public License, either version 1.3c
@@ -34,14 +34,12 @@
 
 \documentclass{ltnews}
 
-%%CCC  Temporary definitions:
-\providecommand\Dash {\unskip ---}
+%%  Temporary definition for Chris' inadequate system:  CCC
+\providecommand\Dash {\unskip \textemdash}
 
-
-
 %% NOTE:  Chris' preferred hyphens!
 %%\showhyphens{parameters}
-\hyphenation{because parameters parameter}
+%%  \hyphenation{because parameters parameter}
 
 \usepackage[T1]{fontenc}
 
@@ -72,6 +70,8 @@
           	    {github issue#1 #2}%
            )}%
      \par\smallskip}
+%% But Chris has to mostly disable \href for his TEXPAD app:  CCC
+\def\href #1{} 
 
 % simple solution right now (just link to the first issue if there are more)
 \def\getfirstgithubissue#1 #2\relax{#1}
@@ -117,7 +117,8 @@
 \tubcommand{\input{tubltmac}}
 
 \publicationmonth{November}
-\publicationyear{2021 --- Draft Version (with many unfinished blocks)} 
+\publicationyear{2021 \Dash Third Draft Version, 
+                     not quite complete, eg needs Intro?)} %% CCC
 
 \publicationissue{34}
 
@@ -136,66 +137,76 @@
 
 \section{Introduction}
 
-\emph{write}
+\emph{TO BE COMPOSED, PROBABLY}
 
-\section{???}
+%%
+%  \subsection{???}
+%
+%  \emph{write} ?? 
+%%
 
-\emph{write}
 
 
-
-
 \section{Hook business}
 
-After the introduction of the hook management system in the 2020
-release of \LaTeX{}~\cite{34:ltnews32} package developers have started
-to make more and more use of the new functionality. This resulted in a
-number of queries showing that some of the documentation was not
-precise enough and that one or the other clarification was
-needed. This has now been addressed in the documentation. The extended
-usage also showed a small number of deficiencies that we thought
-should be corrected now while the adoption rate is still relatively
-small. These are addressed in this release and documented below.
+Since the introduction of the hook management system in the 2020
+release of \LaTeX{}~\cite{34:ltnews32} package 
+developers have started
+to make more and more use of this new functionality. One result 
+of this increased activity has been a
+number of queries which show that some of the documentation was not
+precise enough and that some clarifications were needed; these 
+deficiencies have now been addressed in the documentation. 
+%
+The increased usage has also shown up a small number of 
+errors that we thought
+should be corrected now, while the adoption rate is still relatively
+small; the following problems have therefore been addressed in this release.
 
 
-\subsection{Providing \cs{ActivateGenericHook}}
+\subsection{Provide \cs{ActivateGenericHook}}
 
 The hook management system offers a number of generic hooks, i.e.,
-hooks whose names contain a variable component, for example the name
-of an environment. Predeclaring such hooks as not really feasible
-which is why these hooks use a different mechanism: they are
-implicitly available end spring into life the moment a package or the
-user in the preamble adds code to them using \cs{AddToHook}.  The
-kernel offers such hooks for environments \texttt{env/...}, commands
-\texttt{cmd/...}, and files, package or classes, \texttt{file/...},
-\texttt{include/...}, \texttt{package/...}, and \texttt{class/...}.
+hooks whose names contain a variable component such as the name
+of an environment. Predeclaring such hooks is not really feasible, 
+so these hooks use a different mechanism: they are
+implicitly available, springing into life the moment a package, or 
+the document preamble, adds any code to one by using \cs{AddToHook}.  
+%
+The kernel offers such hooks for environments
+ (\texttt{env/...}) and commands (\texttt{cmd/...}), and for files, 
+ packages or classes (\texttt{file/...},
+\texttt{include/...}, \texttt{package/...}, \texttt{class/...}).
 
-It is possible to offer generic hooks in packages, e.g., if you have
-hooks that depend on the current language and therefore need the
-language name as part of the hook name and you don't know all possible
-names beforehand.
+It is also possible to offer such generic hooks in 
+packages if, for example, hooks are needed that depend on the 
+current language and therefore need the
+language name as part of the hook name (but you probably 
+don't know beforehand all the necessary names).
 
-If you want to offer your generic hooks you do this by using
+If you want to offer such generic hooks, you can now 
+do this by using
 \cs{UseHook} or \cs{UseOneTimeHook} in your (package) code, but
-\emph{without declaring the hook} with \cs{NewHook}. Without any
-further work a call to \cs{UseHook} with an undeclared hook name does
-nothing. So as an additional setup step, it is necessary to explicitly
-activate the generic hook with \cs{ActivateGenericHook}.\footnote{Note
+\emph{without declaring the hook} with \cs{NewHook}. But without 
+further work, a call to \cs{UseHook} with an undeclared hook name 
+will do 
+nothing; so, as an additional setup step, it is necessary to explicitly
+activate the generic hook by using \cs{ActivateGenericHook}.\footnote{Note
   that in the previous release we offered \cs{ProvideHook} as a means
   to achieve this effect, but the name was badly chosen so we decided
-  to deprecate it and now offer \cs{ActivateGenericHook} instead
-  because that is what it is meant for.}
+  to deprecate it and now offer \cs{ActivateGenericHook} instead.}
 
 Assuming
-that you don't know all the different hook names up front it will
+that you don't know all the different hook names up front, it will
 remain the task of the users of your package to activate the hook
 themselves before adding code to it. For example, Babel offers hooks
-such as \texttt{babel/afterextras/\meta{language}} enabling the user
-to add language specific declarations there. They can then write
+such as \hook{babel/\meta{language}/afterextras} 
+that enable a user
+to add language specific declarations to these \enquote{extras}.  One can then write
 \begin{verbatim}
-\ActivateGenericHook
-          {babel/afterextras/ngerman}
-\AddToHook{babel/afterextras/ngerman}
+   \ActivateGenericHook
+          {babel/ngerman/afterextras}
+   \AddToHook{babel/ngerman/afterextras}
           {\color{blue}}
 \end{verbatim}
 after which all German words would be colored blue in the text.
@@ -202,74 +213,31 @@
 
 Note that a generic hook produced in this way is always a normal hook.
 
+\subsection{Standardized names for the generic hooks}
 
-
-
-\subsection{Clear extra hook code for next invocation}
-
-There are a few use cases where it would be helpful if one can cancel
-an earlier use of \cs{AddToHookNext}, for example, when a page is
-discarded with \cs{DiscardShipoutBox} because only some pages of the
-document are printed. For such situations the new command
-\cs{ClearHookNext} is provided.
+The initial set of generic hooks provided by the kernel had
+two patterns of names:\\
+ones like
+\verb|env/|\meta{name}\verb|/after|, 
+with the variable (\meta{name})
+part in the middle position;\\
+and ones like
+\verb|file/after/|\meta{name}, with the 
+variable part in the third
+position.  
 %
-\githubissue{565}
+The coexistence of these two types caused confusion because
+the user had to remember in which position the variable part was
+supposed to go; and it also made the code more complicated and slower.
 
-
-
-\subsection{Clean up after \cs{UseOneTimeHook}}
-
-Some hooks are meant to be used only once in a document, and any
-further attempt to add code to them causes the code to be executed
-immediately instead of being added to the hook.  The initial implementation of
-this concept was very simple and didn't anticipate that packages may try to
-execute a one-time hook several times resulting in the hook code
-being executed repeatedly.  Thus, the implementation was fine for
-simple usages (e.g., the \hook{begindocument} hook), but caused
-trouble if the one-time hook was intended, for example, as an
-initialization hook that is used once when a command is first
-called, but then ignored in further calls.
-
-This deficiency has been addressed, and now a one-time hook will only be executed once
-and the hook code is removed after usage to free up the memory.
-%
-\githubissue{565}
-
-
-
-\subsection{Class, package, and include hook improvements}
-
-Classes, packages and include files can only be loaded once in a
-\LaTeX{} document. For that reasons hooks that are specific to such
-files have been made one-time hooks. Beside being more efficient this
-supports the following important use case
-\begin{verbatim}
-\AddToHook{package/varioref/after}
-  { ... apply my customizations if the package
-      gets loaded (or was loaded already) ... }
-\end{verbatim}
-without the need to first test if the package was already loaded
-before.
-%
-\githubissue{623}
-
-
-\subsection{Standardizing generic hook names}
-
-The initial set of generic hooks provided by the \LaTeXe{} kernel had
-two patterns of hook names:  ones like
-\verb|env/|\meta{name}\verb|/after|, with the variable (\meta{name})
-part in the middle position, and ones like
-\verb|file/after/|\meta{name}, with the variable part in the third
-position.  The coexistence of these two types caused confusion, because
-the user had to remember in which position was the variable part
-supposed to go, and made the code more complicated and slower.
-
-The file-related hooks have been renamed so that the variable part of
-their is in the middle, as with other hooks.  The changes were:
+The file-related hooks have therefore been renamed 
+so that the variable part of
+the name is in the middle, as with all other hooks.  
+The changes are listed here:
+\smallskip
 \begin{center}
   \small\ttfamily
-  \begin{tabular}{l@{\;$\rightarrow$\;}l}
+  \begin{tabular}{l@{$\;\rightarrow\;$}l}
     \hline
     \multicolumn{1}{l}{Old name} & \rmfamily New name \\
     \hline
@@ -285,265 +253,430 @@
     \hline
   \end{tabular}
 \end{center}
-
+\smallskip
 Since this is a breaking change, the old names will still work for a
-while, so that users and package authors have enough time to adjust, and
-a warning will be issued when the old names are used.  Eventually the
-deprecated names will be turned into errors and then removed completely.
+while so that users and package authors have enough time to adjust; 
+but a warning will be issued when the old names are used.  
+Eventually the deprecated names will be turned into errors and 
+then removed completely.
 %
 \githubissue{648}
 
 
+\subsection{Some file hooks made one-time}
 
-\subsection{Changed how \cs{RemoveFromHook} treats code that isn't in the hook}
+Classes, packages and included files can only be loaded once in a
+\LaTeX{} document. For this reason, the hooks that are specific to loading such
+files have been made one-time hooks. Beside being more efficient, this
+supports the following important use case
+\begin{verbatim}
+  \AddToHook{package/varioref/after}
+   {... apply when the package gets loaded, 
+    or apply now (if it is already loaded) ...}
+\end{verbatim}
+without the need to first test whether the package is already loaded.
+%
+\githubissue{623}
 
-In the first version of \cs{RemoveFromHook}, in case the code label
-being removed didn't exist in the hook, a ``removal order'' would be
-queued, and the next time something tried to add that label to the hook,
-the \cs{AddToHook} would be cancelled by the removal order, and no code
-would be added that once.  This was so that in principle package loading
-order wouldn't matter.  However this implementation didn't work quite as
-intended, because while two \cs{AddToHook} to a given label would be
-removed by a single \cs{RemoveFromHook}, one \cs{RemoveFromHook} could
-not cancel two \cs{AddToHook} to that label, and this asymmetry caused
-confusion and was a recipe for further problems.
 
-The implementation was changed and now \cs{RemoveFromHook} only removes
-labels that already exist in a hook, and will display a warning if they
-don't.  For usage across packages, for removing code in a hook, the
-\texttt{voids} relation should be used instead:  this relation is
-non-destructive (meaning it can be later reverted with another one), and
-it is truly independent of package loading order, so it should be
-preferred.
+\subsection{Clearing extra hook code for the next invocation}
+
+There are a few use cases where it is helpful if one can cancel
+an earlier use of \cs{AddToHookNext}: for example, when a page is
+discarded with \cs{DiscardShipoutBox} because only some pages of the
+document are printed. For such situations the new command
+\cs{ClearHookNext} is now provided.
 %
-\githubissue{625}
+\githubissue{565}
 
 
 
+\subsection{Cleaning up after \cs{UseOneTimeHook}}
 
-\subsection{???}
+Some hooks are meant to be used only once in a document, and any
+further attempt to add code to one of these will 
+cause the code to be executed
+immediately instead of being added to the hook.  
+%
+The initial implementation of
+this concept was very simple and didn't anticipate that packages may try to
+execute a one-time hook several times, resulting in the hook code
+being executed repeatedly.  Thus the implementation was fine for
+simple cases (such as the \hook{begindocument} hook) but it causes
+trouble if the one-time hook was intended, for example, as an
+initialization hook that is used just once (when a command is first
+called) but is then ignored in further calls.
 
+This deficiency has been addressed, and now a one-time 
+hook will only be executed once, with
+its code being removed after use to free up some memory.
 %
-\githubissue{000}
+\githubissue{565}
 
 
+\subsection{\cs{RemoveFromHook} with a missing code label}
 
+In the first version of \cs{RemoveFromHook}, when the code label
+to be removed didn't exist in the hook a ``removal order'' would be
+queued; and then, the next time something tried to add that label to the hook,
+this \cs{AddToHook} action would be cancelled by the removal order, so that no code
+would be added that one time.  This was so that, in principle, package loading
+order wouldn't matter.  
+%
+However, this implementation didn't work as
+intended because, while two \cs{AddToHook} actions with a given label would be
+removed by a single \cs{RemoveFromHook}, one \cs{RemoveFromHook} could
+not cancel two \cs{AddToHook} actions for that label; this caused
+confusion and also led to further problems.
 
-\section{New or improved commands}
+The implementation has now been changed, so that 
+\cs{RemoveFromHook} removes only code
+labels that already exist in a hook: it will display a 
+warning if there is no such code label.
 
+Note that, whereas when working with a single package
+you should use \cs{RemoveFromHook} to remove a code label, 
+when working with more than one package, the
+\texttt{voids} relation should preferably be used.  
+%
+This is best because this relation is non-destructive 
+(meaning that it can be later reverted by using another relation), 
+and it is also truly independent of package loading order. 
+%
+\githubissue{625}
 
-\subsection{Added \cs{PackageNote} and \cs{ClassNote}}
+\subsection{Patching commands that contain parameter tokens}
 
-\LaTeX{} offers \cs{PackageError} to signal errors that stop
-processing, \cs{PackageWarning} that generates a warning message on the
-terminal, but continues with the processing and also \cs{PackageInfo}
-to provide some information that is only written to the \texttt{.log}
-file. What hasn't existed up to now is a way to provide some
-information on the terminal that is identifying itself as coming from
-a specific package but which isn't claiming to be a warning. Thus,
-packages that wanted to write to the terminal used \cs{PackageWarning}
-even though the information wasn't really warning the user.  For this
-we now have \cs{PackageNote} and \cs{PackageNoteNoLine}, that identify
-themselves as \enquote{informational}, but still go to the terminal and
-not only to the transcript.
-
-Similar commands exist for classes and there we have added the missing
-\cs{ClassNote} and \cs{ClassNoteNoLine} as well.
+In the last release, \LaTeX's hook mechanism was extended to add
+support for hooking into commands using generic \hook{cmd} hooks
+(see~\cite{34:ltnews33}).  That version of the extension had a bug: the
+patching of some commands that contained a parameter token
+(normally \verb|#|) in
+their definition would fail with a low-level \TeX{} error.  This has now
+been fixed so that patching now works for those commands as well.
 %
-\githubissue{613}
+\githubissue{697}
 
 
-\subsection{New implementation for \cs{counterwithin}}
 
-New implementation for \cs{counterwithout} and \cs{counterwithin} with
-an additional optional arg so it becomes a drop-in replacement for
-amsmath \cs{numberwithin}.
+\section{New or improved commands}
 
-\emph{write appropriate description}
 
+\subsection{\cs{PackageNote} and \cs{ClassNote} added}
 
+\LaTeX{} offers these three commands:\cs{PackageError} to signal errors that 
+stop the processing; \cs{PackageWarning} to generate a warning message on the
+terminal but continue with the processing; and \cs{PackageInfo}
+to provide some information that is only written to the \texttt{.log}
+file but not sent to the terminal.
+%
+What has not existed up to now is a way to provide 
+information on the terminal that identifies itself as coming from
+a specific package but which does not claim to be a warning. 
+(Packages that wanted to write to the terminal used \cs{PackageWarning}
+even though the information wasn't really a warning.)  
 
-\subsection{New default for \cs{tracinglostchars}}
+We have therefore now added \cs{PackageNote} (and the closely 
+related \cs{PackageNoteNoLine}): these identify
+themselves as \enquote{informational}, but they still go to the terminal and
+not only to the  \texttt{.log} file.
+%
+Similar commands exist for classes and so there too we have 
+new commands: \cs{ClassNote} and \cs{ClassNoteNoLine}.
+%
+\githubissue{613}
 
-In 2021 the \TeX{} engines got enhanced so that \cs{tracinglostchars}
-is now also supporting the value \texttt{3}, turning missing
-characters into errors and not just warnings. This change made us
-realize that \LaTeX{} should use a better default for this parameter
-(so far the warning was only written to the transcript file).
-Using the now available \texttt{3} would really be the best, but for
-compatibility reasons we only set it to \texttt{2} in the kernel.
-However, we recommend adding \cs{tracinglostchars}\texttt{=3} to the
-preamble of documents, because missing glyphs in the output are an
-error and should therefore be properly looked at.
 
+\subsection{New \cs{ShowFloat} command}
 
+The package \pkg{fltrace} offers a (fairly low-level but very
+detailed) way to trace \LaTeX's float mechanism. This can help in
+understanding why a certain float is placed into a certain 
+region, or why it shows up unexpectedly on a later page.  
+\LaTeX{} stores floats in registers named \cs{bx at A}, \cs{bx at B}, etc., 
+and these names show up in the tracing information.
 
+To display the contents of a float register, you can now say
+\verb=\ShowFloat{=\textit{identifier}\verb=}= where
+\textit{identifier} is the uppercase letter (or letters) after
+\texttt{bx@} in the register name shown in the tracing.  
+If additional
+registers have been allocated (with \cs{extrafloats}), the
+\textit{identifier} can also be a number. The command is generally
+available, whether or not you have loaded \pkg{fltrace}, because 
+it is also useful when interpreting the tracing output of the
+\pkg{fewerfloatpages} package.
 
 
+\subsection{New argument for \cs{counterwithin/without}}
 
-\subsection{Provide tests for package and class loading}
+The commands \cs{counterwithout} and \cs{counterwithin} each now has
+an additional optional argument, similar to that for the command 
+ \cs{numberwithin} from \pkg{amsmath}, 
+for which these are now the preferred replacements.
+This optional argument 
+specifies the format of the counter, such as \cs{roman}, 
+the default value being \cs{arabic}.
 
-To test if a package was loaded you can now use \cs{IfPackageLoadedTF}
-\Arg{package} \Arg{true} \Arg{false} and based on the result execute
-different code. It is also possible to check if the package was loaded
+
+\subsection{Tests for package and class loading}
+
+To test whether a package has been loaded you can now use \cs{IfPackageLoadedTF}
+\Arg{package} \Arg{true} \Arg{false} and, based on the result, execute
+different code. It is also possible to check whether the package was loaded
 with certain options. This is done with
 \cs{IfPackageLoadedWithOptionsTF}. It takes four arguments:
-\Arg{package}\Arg{option-list}\Arg{true}\Arg{false}. It uses the
-\meta{false} code if at least one option in the \meta{option-list} has
-not been used during loading or if the package hasn't been loaded at
-all.
+\Arg{package}\Arg{option-list}\Arg{true}\Arg{false}. 
 %
-Both commands can be used anywhere in the document, i.e., they are not
-restricted to the preamble.\footnote{This is now also true for the
+It uses the \meta{false} code if at least one option in 
+the \meta{option-list} was 
+not specified when loading the package, or if the package 
+has never been.
+%
+Both commands can be used anywhere in the document, i.e., 
+they are not restricted to the preamble.%
+\footnote{This is now also true for the
   corresponding internal commands, e.g., \cs{@ifpackageloaded}, that
   had this restriction in the past.}
 
-For classes similar commands (\texttt{Package} replaced by
+For classes, similar commands (with \texttt{Package} replaced by
 \texttt{Class} in the name) are provided.
 %
 \githubissue{621}
 
 
+\subsection{\cs{NewCommandCopy}, \cs{ShowCommand} now in \pkg{ltcmd}}
 
+Since the 2020-10-01 release (see~\cite{34:ltnews32}), \LaTeX{} 
+has provided \cs{NewCommandCopy} to copy robust commands, 
+and \cs{ShowCommand} to show their definitions on the terminal.  
+%
+In that same release, the \pkg{xparse} package was integrated 
+into the kernel (as \pkg{ltcmd}).  
+%
+However, the extended support for \cs{NewCommandCopy} and
+\cs{ShowCommand} was not implemented in \pkg{ltcmd}.  The present
+\LaTeX{} release implements this support, so now commands
+defined with \pkg{xparse}/\pkg{ltcmd} can be copied, and their definitions
+can be easily shown on the terminal without the need for ``\cs{csname} gymnastics''.
+%
+\githubissue{569}
 
 
+\subsection{Undo math alphabet allocations if necessary}
 
+\TeX{}, or more exactly the 8-bit versions of \TeX, such as \pdfTeX{}
+have a hard limit of 16 on the number of different math font groups
+(\cs{fam} or \cs{mathgroup}) that can be used in a single formula. For each symbol font
+declared (by a package or in the preamble) an extra math group is allocated, 
+and the same happens for each math alphabet, (such as \cs{mathbf}) that
+gets used anywhere in the document. Up to now, these math
+alphabet allocations were permanent, even if they were 
+used only once;
+the result was that in complex documents you
+could easily run out of available math font groups. 
+The only remedy for this was to
+define your own math version, which is a complicated and cumbersome process.
 
+This situation has now been improved by the introduction of a new counter
+\texttt{localmathalphabets}: this counter governs how many of 
+the math group slots are assigned only locally when a new math 
+alphabet (and a new math group) is needed.  
+%
+Once the current formula is finished, every such further (local) 
+allocation is undone, giving you a fighting chance of being 
+able to use different new math alphabets in the next formula. 
 
+The default value of \texttt{localmathalphabets} is 2,
+but if you need more local alphabets because of the complexity of your
+document, you can set this to a higher value such as 4 or 5. 
+Setting it even higher is possible, but this would seldom 
+be useful because many group slots will be taken up by 
+symbol fonts and such slots are always permanently allocated,
+whether used or not.
+%
+\githubissue{676}
 
-\subsection{New \cs{ShowFloat} command}
 
-The package \pkg{fltrace} offers a (fairly low-level but very
-detailed) way to trace \LaTeX's float mechanism. This can help to
-understand why a certain float is placed into a certain region or why
-it shows up unexpectedly on a later page.  \LaTeX{} stores floats in
-registers named \cs{bx at A}, \cs{bx at B}, etc., and these names show up in
-the tracing information.
+\subsection{Better handling for a misuse of \cs{include}}
+
+The command \cs{include} is by now getting used quite often, but 
+erroneously, to input a variety files in the preamble of the document  
+(before \verb|\begin{document}|).
 %
-To display their contents you can now say
-\verb=\ShowFloat{=\textit{identifier}\verb=}= where
-\textit{identifier} is the uppercase letter (or letters) after
-\texttt{bx@} in the register name shown in the tracing.  If additional
-registers have been allocated with \cs{extrafloats}, the
-\textit{identifier} can also be a number. The command is generally
-available, whether or not you have loaded \pkg{fltrace}, because it is
-also useful when interpreting the tracing output of the
-\pkg{fewerfloatpages} package.
+Therefore \LaTeX\ now warns about such bad use of \cs{include}.
+As a recovery action it will nevertheless input the specified file 
+if it exists (this is as before).  Note, however, that this is now done 
+without any adjustments to the \texttt{.aux} file settings and 
+without running the \cs{include} file hooks (only the generic 
+file hooks from \cs{InputIfFileExists} are run).
+% 
+\githubissue{645}
 
 
-\subsection{Add \pkg{ltcmd} support for \cs{NewCommandCopy} and \cs{ShowCommand}}
+\subsection{New default value for \cs{tracinglostchars}}
 
-Since the 2020-10-01 release (see~\cite{34:ltnews32}), \LaTeX{} provides
-\cs{NewCommandCopy} to copy robust commands, and \cs{ShowCommand} to
-show their definition in the terminal.  In the same release, the
-\pkg{xparse} package was integrated in the kernel (now called
-\pkg{ltcmd}).  However, the extended support for \cs{NewCommandCopy} and
-\cs{ShowCommand} was not implemented in \pkg{ltcmd}.  The present
-\LaTeX{} release ships with that support implemented, so now commands
-defined with \pkg{xparse}/\pkg{ltcmd} can be copied and their definition
-can be easily shown in the terminal without \cs{csname} gymnastics.
+In 2021 all \TeX{} engines were enhanced so that \cs{tracinglostchars} 
+supported the extra value \texttt{3}, that turns missing
+characters into errors and not just warnings. 
 %
-\githubissue{569}
+This engine change made us
+realize that \LaTeX{} should set a better default value for this parameter
+(previously, the warning was written only to the transcript file).
+Using the now available value of \texttt{3} as the default
+would really be best, but for
+compatibility reasons we have only increased it to \texttt{2} in the kernel.
+%
+However, we recommend setting \cs{tracinglostchars}\texttt{=3}, 
+in either a package or the
+preamble of your documents: this is because having missing glyphs 
+in the output is definitely an error and should therefore be 
+flagged as such (to ensure that it gets proper attention).
+Further reasons, related especially to Unicode engines, for making 
+this recommended change can be found later in this newsletter 
+(in connection with the misuse of text accents in mathmode).
 
 
+\section{Code improvements}
 
 
+\subsection{Use OpenType version of Latin Modern Upright Italic font}
+When a Latin Modern font is used with the TU encoding under \XeTeX\ or \LuaTeX\
+and fontshape \texttt{ui} is requested, \LaTeX\ now uses the OpenType
+version of the font instead of substituting the (T1-encoded) Type 1 version.
 
-\subsection{???}
 
+\subsection{Additional Extended Latin characters predefined}
+More characters, such as \'k (U+1E131), are now pre-defined and
+do not need a \verb|\DeclareUnicodeCharacter| declaration.
 %
-\githubissue{000}
+\githubissue{593}
 
 
+\subsection{Check \cs{endfoo} in \cs{NewDocumentEnvironment}}
 
+The \cs{newenvironment} command has always checked that neither \cs{foo} nor
+\cs{endfoo} exists before creating a \texttt{foo} environment. 
+In contrast (for historical reasons) the more recently introduced
+command \cs{NewDocumentEnvironment} 
+checked only for \cs{foo}.
+%
+The behavior of \cs{NewDocumentEnvironment} now aligns with that 
+of \cs{newenvironment}, except that it gives distinct errors
+concerning the existence of \cs{foo} and \cs{endfoo}.
 
-\section{Code improvements}
 
-\subsection{Detect ``\cs{endfoo}'' when using \cs{NewDocumentEnvironment}}
+\subsection{Improve the error 
+     message \texttt{\textup{\cs{begin} ended by \textellipsis}}}
 
-The \cs{newenvironment} command has always checked that both \cs{foo} and
-\cs{endfoo} do not exist before creating a \texttt{foo} environment. In
-contrast, \cs{NewDocumentEnvironment} has only to date checked for \cs{foo};
-this reflects the fact that historically the code was designed around the
-target of an entirely new format. The behavior of \cs{NewDocumentEnvironment}
-now aligns with \cs{newenvironment}, except that it gives separate errors
-for the existence of \cs{foo} and \cs{endfoo}.
-
-\subsection{Improve ``\cs{begin} ended by'' error message}
-
-In the past it was possible to get an error message stating something
+In the past it was possible to get an error message something
 like \verb=\begin{foo} ended by \end{foo}=. This could happen when the
-environment name was partly hidden inside a macro, because the test was
-comparing the literal strings while the error message expanded the
-strings fully. This has now been changed to show a more sensible error
+environment name was partly hidden inside a macro. It happened because 
+the test was comparing the literal strings, whereas in the error message 
+these got fully expanded. 
+%
+This has now been changed to show a more sensible error
 message in this instance.
 %
 \githubissue{587}
 
 
-
-\subsection{Additional Extended Latin characters predefined}
-Some additional characters such as \'k (U+1E131) are now pre-defined and
-will work without needing \verb|\DeclareUnicodeCharacter| declarations.
-%
-\githubissue{593}
-
-
-\subsection{Use OpenType version of Latin Modern Upright Italic}
-When Latin Modern is used with the TU encoding under \XeTeX\ or \LuaTeX\
-and fontshape \texttt{ui} is requested, \LaTeX\ now uses the OpenType
-version instead of substituting the (T1 encoded) Type 1 version.
-
-
 \subsection{Pick up all arguments to \cs{contentsline}}
 
-The \cs{contentsline} commands in the TOC file are always followed by
-four arguments, the last one being empty by default and only used by
-\pkg{hyperref}. The \cs{contentsline} command itself only used the
-first three arguments and relied on the fourth being empty (and thus
-doing no harm). But this assumption is not always correct, e.g., if
-you use \pkg{hyperref} and then remove it from the preamble.
-
-So now we pick up all four arguments and save the last one away, so
-that it can be used by \pkg{hyperref}.
+A \cs{contentsline} command in the TOC file is always followed by
+four arguments, the last one being empty except when using the
+\pkg{hyperref} package. The \cs{contentsline} command itself only used the
+first three arguments and it relied on the fourth being empty (and thus
+doing no harm). 
 %
+But this assumption is not always correct: e.g., if
+you at first decide to load \pkg{hyperref} but then later you remove 
+this loading from the preamble.
+%
+So now all four arguments ate picked up, with the 
+fourth being saved away so that it can be used by \pkg{hyperref}.
+%
 \githubissue{633}
 
 
-\subsection{Fix dropping math lists in \LuaTeX\ callbacks}
+\subsection{Allow dropping a math list in \LuaTeX\ callback}
 
 The \LuaTeX\ callbacks \texttt{pre\_mlist\_to\_hlist\_filter}
-and \texttt{post\_mlist\_to\_hlist\_filter} no longer create an error if
-the callback handler indicates to remove the entire math block.
+and \texttt{post\_mlist\_to\_hlist\_filter} no longer create an error when 
+the callback handler indicates removal of the entire math list.
 %
 \githubissue{644}
 
+\subsection{Extended label handling in package code}
 
+Since 2020, as noted in \LaTeX News 32~\cite{34:ltnews32}, \LaTeX\ has
+recorded the name of the counter associated with the current label in
+the internal command \cs{@currentcounter}.  This facility (originally
+from the \pkg{zref} package of Heiko Oberdiek) can be used to generate
+prefixes such as \enquote{Figure} before the reference text.  
+%
+In the most 
+common cases the current label is set by \cs{refstepcounter}, which
+automatically stores the counter name; but some constructs (alignments
+and footnotes) may need to store the current label directly and so for 
+these it is useful to update additionally \cs{@currentcounter} so as to 
+store this counter name.
 
+In this release both the footnote command in the kernel and 
+also some of the environments in the \pkg{amsmath} package 
+have been updated in this way.  
+%
+We encourage the maintainers of any class or
+package files that defines \cs{@currentlabel} to also set
+\cs{@currentcounter} at the same point.
+%
+\githubissue{300, 687}
 
-\subsection{???}
 
+\subsection{Better message if text accent used in mathmode}
+
+Using text accents like \verb|\^| in math does not work 
+(and \TeX{} explicitly provides math accents such as \cs{hat} 
+for accessing such symbols in mathmode). Therefore LaTeX issued a 
+warning when such a wrongly placed accent was encountered 
+and this was often followed by a strange, and apparently 
+unrelated, low-level error.  
 %
-\githubissue{000}
+This has now been changed so that the message from this 
+error is at least about accents, which we hope is less puzzling. 
 
+Discussion of such warnings or errors reminds us to reinforce 
+here a recommendation from earlier in this newsletter, as part 
+of the item on the value of \cs{tracinglostchars}.
+%
+Using \TeX\ implementations from 2020 onwards, any warning that 
+concerns missing characters can be
+converted to an error by setting \cs{tracinglostchars} to 3; we therefore 
+now recommend changing this setting to 3, especially for 
+Unicode engines where such missing characters are common (because 
+no font supports the full Unicode range).
+%
+\githubissue{643}
 
 
-
 \section{Bug fixes}
 
-\subsection{Replicate argument processors for all embellishments}
+\subsection[Replicate argument processors for all
+     embellishments in command declarations]
+           {Replicate argument processors for all \\ 
+     \mbox{}\qquad embellishments in command declarations}
 
-There was a bug in \pkg{ltcmd} (former \pkg{xparse}) that caused
+There was a bug in \pkg{ltcmd} (formerly \pkg{xparse}) that caused
 commands to misbehave if they were defined with embellishments and
 argument processors.  In that case, only one (possibly void) argument
 processor would be added to the full set of embellishment arguments,
-resulting in too few processors in some cases, leading to unpredictable
+resulting in too few processors in some cases and thus leading to unpredictable
 behavior.  This bug has been fixed by applying the same argument
-processors to all the embellishments in a set, so a declaration like:
+processors to all the embellishments in a set, so that a declaration like:
 \begin{verbatim}
-\NewDocumentCommand\foo{>{\TrimSpaces}e{_^}}
-  {(#1)[#2]}
-\foo^{ a }_{ b }
+  \NewDocumentCommand\foo{>{\TrimSpaces}e{_^}}
+                              {(#1)[#2]}
+      \foo^{ a }_{ b }
 \end{verbatim}
 will now correctly apply \cs{TrimSpaces} to both arguments.
 %
@@ -551,12 +684,13 @@
 
 
 
-\subsection{Correct case changes for \cs{ij} and \cs{IJ}}
+\subsection{Correct case changing of \cs{ij} and \cs{IJ}}
 
 
 The ligatures \enquote{\ij} and \enquote{\IJ}, as used in Dutch,
-are only available in most \TeX{} fonts, if the commands \cs{ij} or
-\cs{IJ} are used or when you enter them as UTF-8 characters U+0133 or
+are available (for most \TeX{} fonts) only 
+when the commands \cs{ij} or
+\cs{IJ} are used, or when you enter them as the Unicode characters U+0133 or
 U+0132.
 %
 However, when using \texttt{OT1} or \texttt{T1} encoded fonts in
@@ -563,132 +697,135 @@
 \pdfTeX, the upper or lower casing with \cs{MakeUppercase} and
 \cs{MakeLowercase} would always fail regardless of the input method.
 This has now been corrected. At the same time we improved the
-hyphenation results for words containing this ligature (when
-typesetting is done in \texttt{OT1} encoding).
+hyphenation results for words containing this ligature (when using the \texttt{OT1} encoding).
 %
 \githubissue{658}
 
 
 
-\subsection{Improve handling of legacy \cs{bfdefault} changes}
+\subsection{Legacy font series default changes}
 
 In the past, changes to the font series defaults were made by directly
 altering \cs{bfdefault} or \cs{mddefault}.  Since 2020 there is now
-\cs{DeclareFontSeriesDefault} that allows more granular control,
-i.e., with that declaration you can alter the default for individual meta
-font families, for example, by only altering the bold settings for the
-sans serif family without changing it for \cs{rmfamily} or \cs{ttfamily}.
+\cs{DeclareFontSeriesDefault} that allows more granular control: 
+with this declaration you can alter the default for individual meta
+font families by, for example, changing the bold setting only for the
+sans serif family, without changing it for \cs{rmfamily} or \cs{ttfamily}.
 See~\cite{34:ltnews31} for more details.
 
 For backwards compatibility, changing \cs{bfdefault} with
-\cs{renewcommand} remained possible. If used, it alters the setting
-for all meta families in one go. This cannot be done when the
-\cs{renewcommand} happens and was therefore delayed until the next
+\cs{renewcommand} remained possible: if used, this alters the setting
+for all meta families in one go. This alteration cannot be done when the
+\cs{renewcommand} happens and it was therefore delayed until the next
 time \cs{bfseries} or \cs{mdseries} was executed.
-
+%
 However, the problem with that
-approach was that any call to \cs{DeclareFontSeriesDefault} that
-happened in the mean time was overwritten---the two approaches didn't
-work well side by side.  This is a problem because older font packages
+approach was that any call to \cs{DeclareFontSeriesDefault} in 
+the meantime was overwritten, thus these two approaches didn't
+work well side by side.  
+There was a problem because older font packages
 use the legacy method while newer ones use
-\cs{DeclareFontSeriesDefault}. This has now been corrected by changing
+\cs{DeclareFontSeriesDefault}. 
+
+This has now been resolved by changing
 \cs{DeclareFontSeriesDefault} to do any necessary resetting prior to
-setting new defaults.
+setting the new defaults.
 %
 \githubissue{663}
 
 
-\subsection{Use of \# in \cs{textbf} and similar commands}
-Previously you could not use the macro parameter character \# in inline functions
-in the argument of \cs{texbf} and similar text font commands.
+\subsection{Use of \texttt{\textup{\#}} in \cs{textbf} and similar commands}
+Previously you could not use the macro parameter character \texttt{\#}
+in inline functions
+within the argument of \cs{texbf} or similar text font commands.
 An internal definition is now guarded with \cs{unexpanded}
-so that \# does not generate an error.
+so that the use of \texttt{\#} here no longer generates an error.
 %
 \githubissue{665}
 
 
-\subsection{???}
 
-%
-\githubissue{000}
-
-
-
-
-
-
 \section{Changes to packages in the \pkg{graphics} category}
 
 
-\subsection{Key for alt text}
-A new key \texttt{alt} has been added to \verb|\includegraphics| allowing specification
-of an alternative text for accessibility.
-This is unused by default but may be used by extension packages and possible future use.
+\subsection{\pkg{graphicx}: New key, for alt text}
+A new key, \texttt{alt}, has been added to \cs{includegraphics} to support the addition of descriptive text that is important for accessibility.
+This key is unused by default; it can be deployed by extension packages and it will provide useful support for other future possibilities.
 %
 \githubissue{651}
 
 
-
 \section{Changes to packages in the \pkg{tools} category}
 
-\subsection{\pkg{varioref}: Improve missing label handling}
+\subsection{\pkg{array}: No \cs{mathsurround} around a \env{tabular}}
 
-If an undefined label is referenced, \pkg{varioref} makes a default
-definition so that later processing finds the right structure (two
-brace groups inside \cs{r@}\meta{label}) However, if \pkg{nameref} or
-\pkg{hyperref} is loaded, the data structure changes to five
-arguments, resulting in low-evel errors in some cases. The code has
-been changed to avoid these errors.
+A \env{tabular} environment is typeset (internally) as an \env{array}
+environment with special settings, and it therefore uses (hidden) math mode. 
+Since it is not in fact a math formula, 
+no extra space from \cs{mathsuround} should be added 
+(the spacing around the \env{tabular} should not get changed). 
 %
-\sxissue{603948}
-
-
-\subsection{\pkg{array}: Cancel  \cs{mathsurround} for \env{tabular}}
-
-A \env{tabular} environment is internally typeset as an \env{array}
-environment with special settings and therefore in math mode. This
-math group should not get any \cs{mathsuround} added as it isn't a
-real formula because otherwise the spacing around the \env{tabular}
-changes. This bug has been there forever (which means not many people
-use \cs{mathsurround} or noticed the difference). Anyhow, this now got
-fixed.
+Note that this bug has been present ``forever'', which shows that  \cs{mathsurround} 
+is never used, or at least its use is never noticed.  
+Anyhow, this bug has now finally gotten fixed.
 %
 \githubissue{614}
 
-\subsection{\pkg{longtable}: Improve behavior after a section heading}
-The \env{longtable} environment now sets the \cs{@nobreakfalse} flag so that
-spacing and indentation changes after a section heading are not triggered by
-a paragraph which follows a table which starts a section. Similarly a test for
-\cs{if at noskipsec} added so that a table follows a run-in heading
-rather than appearing before it.
+
+\subsection{\pkg{longtable}: Improvements after a section heading}
+The \env{longtable} environment now sets the \cs{@nobreakfalse} flag 
+to correct the typesetting when a table immediately follows a heading. 
+Previously the spacing and indentation changes that are required 
+immediately after a section heading were incorrectly triggered 
+within the next paragraph (if any)
+following the table.  
 %
+A similar test for
+\cs{if at noskipsec} has been added, so that a table is correctly placed after 
+a run-in heading rather than appearing before that heading.
+%
 \githubissue[s]{131 and 173}
 
-\subsection{???}
 
+\subsection{\pkg{multicol}: Better column break control}
+
+From version 1.9 onwards \cs{columnbreak} accepts an optional
+argument (like \cs{pagebreak}) in which you can specify the
+desirability of breaking the column after the current line: supported values are
+\texttt{1} to \texttt{4}, with higher numbers indicating increased desirability.
+This version also adds \cs{newcolumn},
+which forces a break but runs the column short (comparable to
+\cs{newpage} for pages). 
 %
-\githubissue{000}
+\githubissue{682}
 
 
-\section{Changes to packages in the \pkg{amsmath} category}
-\subsection{Improve compability with hyperref}
+\subsection{\pkg{varioref}: Improved handling of missing labels}
 
-When \pkg{hyperref} is used, incrementing a counter creates anchors and this can affect spacing.
-For a long time \pkg{hyperref} patched the \env{equation} environment to 
-avoid some of the side effects. This patch has now been moved directly into \pkg{amsmath}.
-Additionally,
-a \cs{mathopen} has been added to avoid that the anchor affects a following unary symbol.
+If an undefined label is referenced, \pkg{varioref} makes a default
+definition so that later processing finds the right structure (two
+brace groups inside \cs{r@}\meta{label}) However, if \pkg{nameref} or
+\pkg{hyperref} is loaded this data structure changes to having five
+arguments; this could cause low-evel errors in some cases. 
+The code has therefore now been changed to avoid these errors.
 %
-\githubissue{652}
+\sxissue{603948}
 
-\subsection{???}
 
+\section{Changes to packages in the \pkg{amsmath} category}
+\subsection{Improved compatibility with \pkg{hyperref}}
+
+This change in amsmath fixes a spacing problem caused by the
+method used in \pkg{hyperref} to change the \env{equation} environment.
 %
-\githubissue{000}
+For simplicity, an explicit, low-level (hence possibly temporary) 
+patch has been added to \pkg{amsmath}: this consists 
+of an extra, empty (hence invisible)
+\cs{mathopen} atom (with no mathematical meaning) at the start of the 
+environment's mathematical content.
+%
+\githubissue{652}
 
-
-
-
 \medskip
 
 \begin{thebibliography}{9}
@@ -711,8 +848,14 @@
   \emph{\LaTeXe{} news 32}.\\
   \url{https://latex-project.org/news/latex2e-news/ltnews32.pdf}
 
+\bibitem{34:ltnews33} \LaTeX{} Project Team:
+  \emph{\LaTeXe{} news 33}.\\
+  \url{https://latex-project.org/news/latex2e-news/ltnews33.pdf}
+
 \end{thebibliography}
 
 
 
 \end{document}
+
+

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltpara-code.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltpara-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltshipout-code.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltshipout-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltx3info.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/ltxdoc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/makeindx.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/modguide.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/nfssfont.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/proc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/slides.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/slifonts.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/source2e.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/syntonly.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/tlc2.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/tulm.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/usrguide.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/usrguide3.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/utf8ienc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/base/webcomp.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/graphics/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/graphics/README.md	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/graphics/README.md	2021-10-22 21:41:02 UTC (rev 60842)
@@ -1,7 +1,7 @@
 The LaTeX `graphics` bundle
 ===========================
 
-Release 2021-11-15 pre-release 2
+Release 2021-11-15 pre-release 3
 
 Overview
 --------
@@ -40,7 +40,7 @@
 a short, self-contained document that shows the problem. This should
 include the `latexbug` package, which will warn if your test file is
 not suitable for one or the other reason. See the [CONTRIBUTING
-guide](https://github.com/latex3/latex2e/blob/master/CONTRIBUTING.md)
+guide](https://github.com/latex3/latex2e/blob/main/CONTRIBUTING.md)
 for further details, or if you need to obtain the `latexbug` package.
 
 If the bug turns out to be with third-party software then please

Modified: trunk/Master/texmf-dist/doc/latex-dev/graphics/changes.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/graphics/changes.txt	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/graphics/changes.txt	2021-10-22 21:41:02 UTC (rev 60842)
@@ -4,6 +4,12 @@
 are not part of the distribution.
 =======================================================================
 
+2021-09-27  David Carlisle  <David.Carlisle at latex-project.org>
+
+	* color.dtx: use \@backslashchar color rather than \string\color to
+	generate internal csnames, to avoid relying on the current setting
+	of \escapechar
+
 2021-09-16  David Carlisle  <David.Carlisle at latex-project.org>
 
 	* graphicx.dtx: Add an alt key to \includegraphics gh/651

Modified: trunk/Master/texmf-dist/doc/latex-dev/graphics/color.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/graphics/drivers.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/graphics/epsfig.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/graphics/graphics.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/graphics/graphicx.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/graphics/grfguide.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/graphics/keyval.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/graphics/lscape.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/graphics/rotating.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/graphics/rotex.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/graphics/trig.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/tools/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/tools/README.md	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/tools/README.md	2021-10-22 21:41:02 UTC (rev 60842)
@@ -1,7 +1,7 @@
 The LaTeX `tools` bundle
 ========================
 
-Release 2021-11-15 pre-release 2
+Release 2021-11-15 pre-release 3
 
 Overview
 --------
@@ -30,7 +30,7 @@
 a short, self-contained document that shows the problem. This should
 include the `latexbug` package, which will warn if your test file is
 not suitable for one or the other reason. See the [CONTRIBUTING
-guide](https://github.com/latex3/latex2e/blob/master/CONTRIBUTING.md)
+guide](https://github.com/latex3/latex2e/blob/main/CONTRIBUTING.md)
 for further details, or if you need to obtain the `latexbug` package.
 
 If the bug turns out to be with third-party software then please

Modified: trunk/Master/texmf-dist/doc/latex-dev/tools/afterpage.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/tools/array.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/tools/bm.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/tools/calc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/tools/changes.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/tools/changes.txt	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/doc/latex-dev/tools/changes.txt	2021-10-22 21:41:02 UTC (rev 60842)
@@ -5,9 +5,14 @@
 are not part of the distribution.
 =======================================================================
 
+2021-10-08  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
+
+	* multicol.dtx:
+	Added optional argument to \columnbreak and implemented \newcolumn (gh/682)
+
 2021-09-01  David Carlisle  <David.Carlisle at latex-project.org>
 
-	* longtable.dtx: add \@nobreakfalse for github/173 and \if at noskipsec for gh/131
+	* longtable.dtx: add \@nobreakfalse for github/173 and \if at noskipsec for (gh/131)
 
 2021-07-12  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
 
@@ -38,7 +43,7 @@
 2021-05-07  David Carlisle  <David.Carlisle at latex-project.org>
 
 	* longtable.dtx: write lists of tables entry to the file with
-	extension \ext at table, not force .lot github/561
+	extension \ext at table, not force .lot (github/561)
 
 2021-04-25  David Carlisle  <David.Carlisle at latex-project.org>
 

Modified: trunk/Master/texmf-dist/doc/latex-dev/tools/dcolumn.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/tools/delarray.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/tools/enumerate.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/tools/fileerr.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/tools/fontsmpl.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/tools/ftnright.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/tools/hhline.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/tools/indentfirst.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/tools/layout.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/tools/longtable.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/tools/multicol.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/tools/rawfonts.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/tools/shellesc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/tools/showkeys.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/tools/somedefs.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/tools/tabularx.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/tools/theorem.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/tools/tools-overview.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/tools/trace.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/tools/varioref.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/tools/verbatim.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/tools/xr.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex-dev/tools/xspace.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex-dev/amsmath/amsmath.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex-dev/amsmath/amsmath.dtx	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/source/latex-dev/amsmath/amsmath.dtx	2021-10-22 21:41:02 UTC (rev 60842)
@@ -86,7 +86,7 @@
 %    \end{macrocode}
 %
 %    \begin{macrocode}
-\ProvidesPackage{amsmath}[2021/08/28 v2.17k AMS math features]
+\ProvidesPackage{amsmath}[2021/10/15 v2.17l AMS math features]
 %    \end{macrocode}
 %
 % \section{Catcode defenses}
@@ -3012,8 +3012,14 @@
 %    the \cs{maketag@@} macro above.
 %    \begin{macrocode}
 \let\df at tag\@empty
-\def\make at df@tag{\@ifstar\make at df@tag@@\make at df@tag@@@}
+\def\make at df@tag{%
 %    \end{macrocode}
+%    We set \cs{@currentcounter} here so that it applies to both branches.
+%\changes{v2.17l}{2021/10/15}{Explicitly set \cs{@currentcounter} (gh/687)}
+%    \begin{macrocode}
+  \def\@currentcounter{equation}%
+  \@ifstar\make at df@tag@@\make at df@tag@@@}
+%    \end{macrocode}
 %    \cs{make at df@tag} sets \cs{@currentlabel} and defines
 %    \cs{df at tag} appropriately.
 %

Modified: trunk/Master/texmf-dist/source/latex-dev/base/classes.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex-dev/base/classes.dtx	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/source/latex-dev/base/classes.dtx	2021-10-22 21:41:02 UTC (rev 60842)
@@ -53,7 +53,7 @@
 %<*driver>
 \ProvidesFile{classes.drv}
 %</driver>
-              [2021/09/11 v1.4n
+              [2021/10/04 v1.4n
 %<article|report|book> Standard LaTeX document class]
 %<10pt|11pt|12pt>      Standard LaTeX file (size option)]
 %    \end{macrocode}
@@ -1622,7 +1622,7 @@
 % \label{sec:classes:pagestyle}
 %
 %    The pagestyles \pstyle{empty} and \pstyle{plain} are defined in
-%    \file{latex.dtx}.
+%    the \LaTeX{} format.
 %
 % \begin{macro}{\ps at headings}
 %    The definition of the page style \pstyle{headings} has to be
@@ -1771,7 +1771,7 @@
 % \begin{macro}{\title}
 % \begin{macro}{\author}
 % \begin{macro}{\date}
-%    These three macros are provided by \file{latex.dtx} to provide
+%    These three macros are provided by the \LaTeX{} format to provide
 %    information about the title, author(s) and date of the document.
 %    The information is stored away in internal control sequences.
 %    It is the task of the |\maketitle| command to use the
@@ -2056,7 +2056,7 @@
 %    Default initializations of |\...mark| commands.  These commands
 %    are used in the definition of the page styles (see
 %    section~\ref{sec:classes:pagestyle}) Most of them are already defined by
-%    \file{latex.dtx}, so they are only shown here.
+%    the \LaTeX{} format, so they are only shown here.
 %
 %    \begin{macrocode}
 %<!article>\newcommand*\chaptermark[1]{}
@@ -2891,7 +2891,7 @@
 % \begin{macro}{\theenumii}
 % \begin{macro}{\theenumiii}
 % \begin{macro}{\theenumiv}
-%    The counters are already defined in \file{latex.dtx}, but their
+%    The counters are already defined in the \LaTeX{} format, but their
 %    representation is changed here.
 %
 %    \begin{macrocode}
@@ -2990,7 +2990,7 @@
 %
 % \begin{environment}{description}
 %    The description environment is defined here -- while the itemize
-%    and enumerate environments are defined in \file{latex.dtx}.
+%    and enumerate environments are defined in the \LaTeX{} format.
 %
 %    \begin{macrocode}
 \newenvironment{description}
@@ -3123,7 +3123,7 @@
 % \subsubsection{Theorem}
 %
 %    This document class does not define it's own theorem environments,
-%    the defaults, supplied by \file{latex.dtx} are available.
+%    the defaults, supplied by the \LaTeX{} format are available.
 %
 % \subsubsection{Titlepage}
 %
@@ -3365,7 +3365,7 @@
 %
 % \subsection{Floating objects}
 %
-%    The file \file{latex.dtx} only defines a number of tools with
+%    The \LaTeX{} format only defines a number of tools with
 %    which floating objects can be defined. This is done in the
 %    document class. It needs to define the following macros for each
 %    floating object of type \texttt{TYPE} (e.g., \texttt{TYPE} =
@@ -3402,7 +3402,7 @@
 %
 %    The actual environment that implements a floating object such as
 %    a figure is defined using the macros |\@float| and |\end at float|,
-%    which are defined in \file{latex.dtx}.
+%    which are defined in the \LaTeX{} format.
 %
 %    An environment that implements a single-column floating object is
 %    started with |\@float{|\texttt{TYPE}|}[|\meta{placement}|]| of type
@@ -4194,7 +4194,7 @@
 %
 % \begin{macro}{\@biblabel}
 %    The label for a |\bibitem[...]| command is produced by this
-%    macro. The default from \file{latex.dtx} is used.
+%    macro. The default from the \LaTeX{} format is used.
 %    \begin{macrocode}
 % \renewcommand*{\@biblabel}[1]{[#1]\hfill}
 %    \end{macrocode}
@@ -4202,7 +4202,7 @@
 %
 % \begin{macro}{\@cite}
 %    The output of the |\cite| command is produced by this macro. The
-%    default from \file{latex.dtx} is used.
+%    default from the \LaTeX{} format is used.
 %    \begin{macrocode}
 % \renewcommand*{\@cite}[1]{[#1]}
 %    \end{macrocode}

Modified: trunk/Master/texmf-dist/source/latex-dev/base/doc.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex-dev/base/doc.dtx	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/source/latex-dev/base/doc.dtx	2021-10-22 21:41:02 UTC (rev 60842)
@@ -35,7 +35,7 @@
 %<+package|shortvrb>\NeedsTeXFormat{LaTeX2e}[1994/12/01]
 %<+package> \ProvidesPackage{doc}
 %<+shortvrb>\ProvidesPackage{shortvrb}
-%<+package|shortvrb>  [2021/05/28 v2.1n
+%<+package|shortvrb>  [2021/10/04 v2.1n
 %<+package|shortvrb>   Standard LaTeX documentation package (FMi)]
 %\catcode`\<=12
 %
@@ -885,7 +885,7 @@
 % We provide macros for logos such as \Web, \AmSTeX, \BibTeX,
 % \SliTeX{} and \PlainTeX. Just type |\Web|, |\AmSTeX|,
 % |\BibTeX|, |\SliTeX| or |\PlainTeX|, respectively.
-% \LaTeX{} and \TeX{} are already defined in \texttt{latex.tex}.
+% \LaTeX{} and \TeX{} are already defined in the \LaTeX{} format.
 %
 % \DescribeMacro\meta
 % Another useful macro is |\meta| which has one argument and
@@ -938,7 +938,8 @@
 % argument and produces a verbatim listing of the file, indexing every
 % command as it goes along.  This might be handy, if you want to learn
 % something about macros without enough documentation.  I used this
-% feature to cross-reference \texttt{latex.tex} getting a verbatim
+% feature to cross-reference \texttt{latex.tex} (these days
+% called \texttt{latex.ltx}) getting a verbatim
 % copy with about 15 pages index.\footnote{It took quite a long time
 % and the resulting \texttt{.idx} file was longer than the
 % \texttt{.dvi} file.  Actually too long to be handled by the
@@ -2031,7 +2032,7 @@
 % \begin{macro}{\@verbatim}
 %    Additionally we redefine the |\@verbatim| macro so that it
 %    suppresses |%| characters at the beginning of the line.  The
-%    first lines are copied literally from \texttt{latex.tex}.
+%    first lines are copied literally from the \LaTeX{} format.
 % \changes{v1.7i}{1992/07/12}{Added \cs{@@par} to clear possible
 %                             \cs{parshape}.}
 %    \begin{macrocode}
@@ -2055,7 +2056,7 @@
 %    \begin{macrocode}
    \check at percent}%
 %    \end{macrocode}
-%    The rest is again copied literally from \texttt{latex.tex} (less
+%    The rest is again copied literally from the \LaTeX{} format (less
 %    "\tt").
 % \changes{v1.7a}{1992/02/26}{Removed redundant \cs{tt}.}
 % \changes{v1.8b}{1993/09/21}{Changed to conform to new LaTeX verbatim,

Modified: trunk/Master/texmf-dist/source/latex-dev/base/ltboxes.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex-dev/base/ltboxes.dtx	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/source/latex-dev/base/ltboxes.dtx	2021-10-22 21:41:02 UTC (rev 60842)
@@ -33,7 +33,7 @@
 %<*driver>
 % \fi
 \ProvidesFile{ltboxes.dtx}
-             [2021/02/10 v1.4b LaTeX Kernel (Box Commands)]
+             [2021/10/14 v1.4c LaTeX Kernel (Box Commands)]
 % \iffalse
 \documentclass{ltxdoc}
 \GetFileInfo{ltboxes.dtx}
@@ -1137,10 +1137,12 @@
 %     {Color groups restored here.}
 % \changes{v1.4b}{2021/02/10}
 %         {Explicitly run \cs{par} in support for paragraph tagging}
+% \changes{v1.4c}{2021/10/14}
+%         {Explicitly set \cs{@currentcounter} (gh/687)}
 %    \begin{macrocode}
 %</2ekernel>
 %<*2ekernel|latexrelease>
-%<latexrelease>\IncludeInRelease{2021/06/01}%
+%<latexrelease>\IncludeInRelease{2021/11/15}%
 %<latexrelease>                 {\@mpfootnotetext}{footnotetext tagging}%
 \long\def\@mpfootnotetext#1{%
   \global\setbox\@mpfootins\vbox{%
@@ -1148,6 +1150,7 @@
     \reset at font\footnotesize
     \hsize\columnwidth
     \@parboxrestore
+    \def\@currentcounter{mpfootnote}%
     \protected at edef\@currentlabel
          {\csname p at mpfootnote\endcsname\@thefnmark}%
     \color at begingroup
@@ -1158,6 +1161,24 @@
 %</2ekernel|latexrelease>
 %<latexrelease>\EndIncludeInRelease
 %    \end{macrocode}
+%    \begin{macrocode}
+%<latexrelease>\IncludeInRelease{2021/06/01}%
+%<latexrelease>                 {\@mpfootnotetext}{footnotetext tagging}%
+%<latexrelease>\long\def\@mpfootnotetext#1{%
+%<latexrelease>  \global\setbox\@mpfootins\vbox{%
+%<latexrelease>    \unvbox\@mpfootins
+%<latexrelease>    \reset at font\footnotesize
+%<latexrelease>    \hsize\columnwidth
+%<latexrelease>    \@parboxrestore
+%<latexrelease>    \protected at edef\@currentlabel
+%<latexrelease>         {\csname p at mpfootnote\endcsname\@thefnmark}%
+%<latexrelease>    \color at begingroup
+%<latexrelease>      \@makefntext{%
+%<latexrelease>        \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}%
+%<latexrelease>    \par
+%<latexrelease>    \color at endgroup}}
+%<latexrelease>\EndIncludeInRelease
+%    \end{macrocode}
 %
 %    \begin{macrocode}
 %<latexrelease>\IncludeInRelease{0000/00/00}%

Modified: trunk/Master/texmf-dist/source/latex-dev/base/ltcmdhooks.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex-dev/base/ltcmdhooks.dtx	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/source/latex-dev/base/ltcmdhooks.dtx	2021-10-22 21:41:02 UTC (rev 60842)
@@ -13,8 +13,8 @@
 %
 %%% From File: ltcmdhooks.dtx
 %
-\def\ltcmdhooksversion{v1.0d}
-\def\ltcmdhooksdate{2021/08/25}
+\def\ltcmdhooksversion{v1.0f}
+\def\ltcmdhooksdate{2021/10/20}
 %
 %
 %
@@ -21,13 +21,6 @@
 %<*driver>
 \documentclass{l3doc}
 %\usepackage{ltcmdhooks}
-\makeatletter
-\providecommand\footref[1]{%
-  \begingroup
-    \unrestored at protected@xdef\@thefnmark{\ref{#1}}%
-  \endgroup
-  \@footnotemark}
-\makeatother
 \EnableCrossrefs
 \CodelineIndex
 \begin{document}
@@ -360,19 +353,46 @@
 % \end{macro}
 %
 % \begin{macro}{\l_@@_patch_prefixes_tl}
-% \begin{macro}{\l_@@_patch_param_text_tl}
-% \begin{macro}{\l_@@_patch_replacement_tl}
+% \begin{macro}{\l_@@_param_text_tl}
+% \begin{macro}{\l_@@_replace_text_tl}
 %   The prefixes and parameters of the definition for the macro being
 %   patched.
 %    \begin{macrocode}
 \tl_new:N \l_@@_patch_prefixes_tl
-\tl_new:N \l_@@_patch_param_text_tl
-\tl_new:N \l_@@_patch_replacement_tl
+\tl_new:N \l_@@_param_text_tl
+\tl_new:N \l_@@_replace_text_tl
 %    \end{macrocode}
 % \end{macro}
 % \end{macro}
 % \end{macro}
 %
+% \begin{macro}{\c_@@_hash_tl}
+%   A constant token list that contains two parameter tokens.
+%    \begin{macrocode}
+\tl_const:Nn \c_@@_hash_tl { # # }
+%    \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\@@_exp_not:NN}
+% \begin{macro}{\@@_def_cmd:w}
+%   Two temporary macros that change depending on the macro being
+%   patched.
+%    \begin{macrocode}
+\cs_new_eq:NN \@@_exp_not:NN ?
+\cs_new_eq:NN \@@_def_cmd:w ?
+%    \end{macrocode}
+% \end{macro}
+% \end{macro}
+%
+% \begin{macro}{\q_@@_recursion_tail,\q_@@_recursion_stop}
+%   Internal quarks for recursion:  they can't appear in any macro being
+%   patched.
+%    \begin{macrocode}
+\quark_new:N \q_@@_recursion_tail
+\quark_new:N \q_@@_recursion_stop
+%    \end{macrocode}
+% \end{macro}
+%
 % \begin{macro}{\g_@@_delayed_patches_prop}
 %   A list containing the patches delayed to |\begin{document}|, so that
 %   patching is not attempted twice.
@@ -670,13 +690,71 @@
 %
 %
 %
+%
 % \begin{macro}{\@@_patch_expand_redefine:NNnn}
+% \begin{macro}{\@@_redefine_with_hooks:Nnnn}
 % \begin{macro}[EXP]{\@@_make_prefixes:w}
 %   Now the real action begins.  Here we have in |#1| a boolean
-%   indicating if the command has a |[|\ldots|]|-delimited argument, in
-%   |#2| the command control sequence, in |#3| the name of the command
-%   (note that |#1|${}\ne{}$|\csname#2\endcsname| at this point!), and
-%   in |#4| the hook position, either |before| or |after|.
+%   indicating if the command has a leading |[|\ldots|]|-delimited
+%   argument, in |#2| the command control sequence, in |#3| the name of
+%   the command (note that |#1|${}\ne{}$|\csname#2\endcsname| at this
+%   point!), and in |#4| the hook position, either |before| or |after|.
+%
+% \changes{v1.0f}{2021/10/20}
+%         {Correct patching by expansion+redefinition when the macro
+%          contains a parameter tokens (gh/697).}
+%   Patching with expansion+redefinition is trickier than it looks like
+%   at first glance.  Suppose the simple definition:
+% \begin{verbatim}
+%   \def\foo#1{#1##2}
+% \end{verbatim}
+%   When defined, its \meta{replacement text} will be a token list
+%   containing:
+%   \begin{quote}
+%     \itshape
+%     out\_param |1|, mac\_param |#|, character |2|
+%   \end{quote}
+%
+%   Then, after expanding \cs{foo}|{##1}| (here |##| denotes a single
+%   |#|$_6$) we end up with a token list with \textit{out\_param}~|1|
+%   replaced:
+%   \begin{quote}
+%     \itshape
+%     mac\_param |#|, character |1|, mac\_param |#|, character |2|
+%   \end{quote}
+%   that is, the definition would be:
+% \begin{verbatim}
+%   \def\foo#1{#1#2}
+% \end{verbatim}
+%   which obviously fails, because the original input in the definition
+%   was |##| but \TeX{} reduced that to a single parameter token |#|$_6$
+%   when carrying out the definition.  That leaves no room for a clever
+%   solution with (say) \cs{unexpanded}, because anything that would
+%   double the second |#|$_6$, would also (incorrectly) double the
+%   first, so there's not much to do other than a manual solution.
+%
+%   There are three cases we can distinguish to make things hopefully
+%   faster on simpler cases:
+%   \begin{enumerate}
+%     \item a macro with no parameters;
+%     \item a macro with no parameter tokens in its definition;
+%     \item a macro with parameters \emph{and} parameter tokens.
+%   \end{enumerate}
+%
+%   The first case is trivial:  if the macro has no parameters, we can
+%   just use \cs{unexpanded} around it, and if there is a parameter
+%   token in it, it is handled correctly (the macro can be treated as a
+%   |tl| variable).
+%
+%   The second case requires looking at the \meta{replacement text} of
+%   the macro to see if it has a parameter token in there.  If it does
+%   not, then there is no worry, and the macro can be redefined normally
+%   (without \cs{unexpanded}).
+%
+%   The third case, as usual, is the devious one.  Here we'll have to
+%   loop through the definition token by token, and double every
+%   parameter token, so that this case can be handled like the previous
+%   one.
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_patch_expand_redefine:NNnn #1 #2 #3 #4
   {
@@ -696,36 +774,93 @@
 %    \end{macrocode}
 %   Now build two token lists:
 %   \begin{description}
-%     \item[\cs{l_@@_patch_param_text_tl}] will contain the
+%     \item[\cs{l_@@_param_text_tl}] will contain the
 %       \meta{parameter text} to be used when redefining the macro.  It
 %       should be identical to the \meta{parameter text} used when
 %       originally defining that macro.
-%     \item[\cs{l_@@_patch_replacement_tl}] will contain braced pairs of
-%       |#|$_{12}$\meta{num} to feed to the macro when expanded.  This
-%       token list as well as the previous will have the first item
+%     \item[\cs{l_@@_replace_text_tl}] will contain braced pairs of
+%       \cs{c_@@_hash_tl}\meta{num} to feed to the macro when expanded.
+%       This token list as well as the previous will have the first item
 %       surrounded by |[|\ldots|]| in the case of an optional argument.
 %   \end{description}
+%
+%   The use of \cs{c_@@_hash_tl} here is to differentiate actual
+%   parameters in the macro from parameter tokens in the original
+%   definition of the macro.  Later on, \cs{c_@@_hash_tl} is either
+%   replaced by actual parameter tokens, or expanded into them.
 %    \begin{macrocode}
     \int_compare:nNnTF { \l_@@_patch_num_args_int } > { \c_zero_int }
       {
-        \tl_set:Nx \l_@@_patch_param_text_tl
-          { \bool_if:NTF #1 { [####1] } {  ####1  } }
-        \tl_set:Nx \l_@@_patch_replacement_tl
-          { \bool_if:NTF #1 { [####1] } { {####1} } }
+%    \end{macrocode}
+%   We'll first check if the command has any parameter token in its
+%   definition (feeding it empty arguments), and set \cs{@@_exp_not:n}
+%   accordingly.  \cs{@@_exp_not:n} will be used later to either leave
+%   \cs{c_@@_hash_tl} or expand it, and also to remember the result of
+%   \cs{@@_if_has_hash:nTF} to avoid testing twice (the test can be
+%   rather slow).
+%    \begin{macrocode}
+        \tl_set:Nx \l_@@_tmpa_tl { \bool_if:NTF #1 { [ ] } { { } } }
         \int_step_inline:nnn { 2 } { \l_@@_patch_num_args_int }
+          { \tl_put_right:Nn \l_@@_tmpa_tl { { } } }
+        \exp_args:NNo \exp_args:No \@@_if_has_hash:nTF
+            { \exp_after:wN #2 \l_@@_tmpa_tl }
+          { \cs_set_eq:NN \@@_exp_not:n \exp_not:n }
+          { \cs_set_eq:NN \@@_exp_not:n \use:n }
+        \cs_set_protected:Npn \@@_tmp:w ##1 ##2
           {
-            \tl_put_right:Nn \l_@@_patch_param_text_tl    { ## ####1 }
-            \tl_put_right:Nn \l_@@_patch_replacement_tl { { ## ####1 } }
+            ##1 \l_@@_param_text_tl   { \use:n ##2 }
+            ##1 \l_@@_replace_text_tl { \@@_exp_not:n {##2} }
           }
+%    \end{macrocode}
+%   Here we'll conditionally add |[|\ldots|]| around the first
+%   parameter:
+%    \begin{macrocode}
+        \bool_if:NTF #1
+          { \@@_tmp:w \tl_set:Nx { [ \c_@@_hash_tl 1 ] } }
+          { \@@_tmp:w \tl_set:Nx { { \c_@@_hash_tl 1 } } }
+%    \end{macrocode}
+%   Then, for every parameter from the second, just add it normally:
+%    \begin{macrocode}
+        \int_step_inline:nnn { 2 } { \l_@@_patch_num_args_int }
+          { \@@_tmp:w \tl_put_right:Nx { { \c_@@_hash_tl ##1 } } }
+%    \end{macrocode}
+%   Now, if the command has any parameter token in its definition
+%   (then \cs{@@_exp_not:n} is \cs{exp_not:n}), call
+%   \cs{@@_double_hashes:n} to double them, and replace every
+%   \cs{c_@@_hash_tl} by |#|:
+%    \begin{macrocode}
+        \tl_set:Nx \l_@@_replace_text_tl
+          { \exp_not:N #2 \exp_not:V \l_@@_replace_text_tl }
+        \tl_set:Nx \l_@@_replace_text_tl
+          {
+            \token_if_eq_meaning:NNTF \@@_exp_not:n \exp_not:n
+              { \exp_args:NNV \exp_args:No \@@_double_hashes:n }
+              { \exp_args:NV \exp_not:o }
+                  \l_@@_replace_text_tl
+          }
+%    \end{macrocode}
+%   And now, set a few auxiliaries for the case that the macro has
+%   parameters, so it won't be passed through \cs{unexpanded} (twice):
+%    \begin{macrocode}
+        \cs_set_eq:NN \@@_def_cmd:w \tex_gdef:D
+        \cs_set_eq:NN \@@_exp_not:NN \prg_do_nothing:
       }
       {
-        \tl_clear:N \l_@@_patch_param_text_tl
-        \tl_clear:N \l_@@_patch_replacement_tl
+%    \end{macrocode}
+%   In the case the macro has no parameters, we'll treat it as a token
+%   list and things are much simpler (expansion control looks a bit
+%   complicated, but it's just a pair of \cs{exp_not:N} preventing
+%   another \cs{exp_not:n} from expanding):
+%    \begin{macrocode}
+        \tl_clear:N \l_@@_param_text_tl
+        \tl_set_eq:NN \l_@@_replace_text_tl #2
+        \cs_set_eq:NN \@@_def_cmd:w \tex_xdef:D
+        \cs_set:Npn \@@_exp_not:NN ##1 { \exp_not:N ##1 \exp_not:N }
       }
 %    \end{macrocode}
-%   Finally, before redefining, we need to also get the prefixes used
-%   when defining the command.  Here we ensure that the \tn{escapechar}
-%   is printable, otherwise a macro defined with prefixes
+%   Before redefining, we need to also get the prefixes used when
+%   defining the command.  Here we ensure that the \tn{escapechar} is
+%   printable, otherwise a macro defined with prefixes
 %   |\protected \long| will have it \tn{meaning} printed as
 %   |protectedlong|, making life unnecessarily complicated.  Here the
 %   \tn{escapechar} is changed to |/|, then we loop between pairs of
@@ -740,34 +875,47 @@
       { \exp_not:N \@@_make_prefixes:w \cs_prefix_spec:N #2 / / }
         }
 %    \end{macrocode}
-%   Now that all the needed tools are ready, without further ado we'll
-%   redefine the command |#2|.  The definition uses the prefixes
-%   gathered in \cs{l_@@_patch_prefixes_tl}, a primitive \cs{tex_def:D}
-%   to avoid adding extra prefixes, and the \meta{parameter text} from
-%   \cs{l_@@_patch_param_text_tl}.
-%
-%   Then finally, in the body of the definition, we insert
-%   \hook{cmd/\#3/before} if |#4| is |before|, the code of the
-%   command expanded once grabbing the parameters in
-%   \cs{l_@@_patch_replacement_tl}, and \hook{cmd/\#3/after} if |#4| is
-%   |after|.
+%   Finally, call \cs{@@_redefine_with_hooks:Nnnn} with the macro being
+%   redefined in |#1|, then \cs{UseHook}|{cmd/<name>/before}| in |#2| or
+%   \cs{UseHook}|{cmd/<name>/after}| in |#3| (one is always empty), and
+%   in |#4| the \meta{replacement text} of the macro.
 %    \begin{macrocode}
     \use:x
       {
-        \l_@@_patch_prefixes_tl \tex_def:D
-            \exp_not:N #2 \exp_not:V \l_@@_patch_param_text_tl
-          {
-            \str_if_eq:nnT {#4} { before }
-              { \exp_not:N \UseHook { cmd / #3 / #4 } }
-            \exp_args:No \exp_not:o
-              { \exp_after:wN #2 \l_@@_patch_replacement_tl }
-            \str_if_eq:nnT {#4} { after }
-              { \exp_not:N \UseHook { cmd / #3 / #4 } }
-          }
+        \@@_redefine_with_hooks:Nnnn \exp_not:N #2
+        \str_if_eq:nnTF {#4} { after }
+          { \use_ii_i:nn }
+          { \use:nn }
+            { { \@@_exp_not:NN \exp_not:N \UseHook { cmd / #3 / #4 } } }
+            { { } }
+            { \@@_exp_not:NN \exp_not:V \l_@@_replace_text_tl }
       }
   }
 %    \end{macrocode}
 %
+%   Now that all the needed tools are ready, without further ado we'll
+%   redefine the command.  The definition uses the prefixes gathered in
+%   \cs{l_@@_patch_prefixes_tl}, a primitive \cs{@@_def_cmd:w} (which is
+%   \cs{tex_gdef:D} or \cs{tex_xdef:D}) to avoid adding extra prefixes,
+%   and the \meta{parameter text} from \cs{l_@@_param_text_tl}.
+%
+%   Then finally, in the body of the definition, we insert |#2|, which
+%   is \hook{cmd/\#1/before} or empty, |#4| which is the
+%   \meta{replacement text}, and |#3| which is \hook{cmd/\#1/after} or
+%   empty.
+%
+% \changes{v1.0e}{2021/09/28}
+%                {Make patching of commands a global operation (gh/674)}
+%    \begin{macrocode}
+\cs_new_protected:Npn \@@_redefine_with_hooks:Nnnn #1 #2 #3 #4
+  {
+    \l_@@_patch_prefixes_tl
+      \exp_after:wN \@@_def_cmd:w
+        \exp_after:wN #1 \l_@@_param_text_tl
+      { #2  #4  #3 }
+  }
+%    \end{macrocode}
+%
 %   Here's the auxiliary that makes the prefix control sequences for the
 %   redefinition.  Each item has to be \cs{tl_trim_spaces:n}'d because
 %   the last item (and not any other) has a trailing space.
@@ -783,12 +931,126 @@
 %    \end{macrocode}
 % \end{macro}
 % \end{macro}
+% \end{macro}
 %
 %
+% Here are some auxiliaries for the contraption above.
 %
+% \begin{macro}[pTF]{\@@_if_has_hash:n}
+% \begin{macro}{\@@_if_has_hash:w,\@@_if_has_hash_check:w}
+%   \cs{@@_if_has_hash:nTF} searches the token list |#1| for a catcode~6
+%   token, and if any is found, it returns |true|, and |false|
+%   otherwise.  The searching doesn't care about preserving groups or
+%   spaces:  we can ignore those safely (braces are removed) so that
+%   searching is as fast as possible.
+%    \begin{macrocode}
+\prg_new_conditional:Npnn \@@_if_has_hash:n #1 { TF }
+  { \@@_if_has_hash:w #1 ## \s_@@_mark }
+\cs_new:Npn \@@_if_has_hash:w #1
+  {
+    \tl_if_single_token:nTF {#1}
+      {
+        \token_if_eq_catcode:NNTF ## #1
+          { \@@_if_has_hash_check:w }
+          { \@@_if_has_hash:w }
+      }
+      { \@@_if_has_hash:w #1 }
+  }
+\cs_new:Npn \@@_if_has_hash_check:w #1 \s_@@_mark
+  { \tl_if_empty:nTF {#1} { \prg_return_false: } { \prg_return_true: } }
+%    \end{macrocode}
+% \end{macro}
+% \end{macro}
 %
 %
+% \begin{macro}[rEXP]{\@@_double_hashes:n}
+% \begin{macro}[rEXP]{
+%     \@@_double_hashes:w,
+%     \@@_double_hashes_output:N,
+%     \@@_double_hashes_stop:w,
+%     \@@_double_hashes_group:n,
+%     \@@_double_hashes_space:w,
+%   }
+%   \cs{@@_double_hashes:n} loops through the token list |#1| and
+%   duplicates any catcode~6 token, and expands tokens \cs{ifx}-equal to
+%   \cs{c_@@_hash_tl}, and leaves all other tokens \cs{notexpanded} with
+%   \cs{exp_not:N}.  Unfortunately pairs of explicit catcode~1 and
+%   catcode~2 character tokens are normalised to |{|$_1$ and |}|$_1$
+%   because it's not feasible to expandably detect the character code
+%   (\emph{maybe} it could be done using something along the lines of
+%   \url{https://tex.stackexchange.com/a/527538}, but it's far too much
+%   work for close to zero benefit).
 %
+%   \cs{@@_double_hashes:w} is the tail-recursive loop macro, that tests
+%   which of the three types of item is in the head of the token list.
+%    \begin{macrocode}
+\cs_new:Npn \@@_double_hashes:n #1
+  { \@@_double_hashes:w #1 \q_@@_recursion_tail \q_@@_recursion_stop }
+\cs_new:Npn \@@_double_hashes:w #1 \q_@@_recursion_stop
+  {
+    \tl_if_head_is_N_type:nTF {#1}
+      { \@@_double_hashes_output:N }
+      {
+        \tl_if_head_is_group:nTF {#1}
+          { \@@_double_hashes_group:n }
+          { \@@_double_hashes_space:w }
+      }
+    #1 \q_@@_recursion_stop
+  }
+%    \end{macrocode}
+%
+%   \cs{@@_double_hashes_output:N} checks for the end of the token list,
+%   then checks if the token is \cs{c_@@_hash_tl}, and if so just leaves
+%   it.
+%    \begin{macrocode}
+\cs_new:Npn \@@_double_hashes_output:N #1
+  {
+    \if_meaning:w \q_@@_recursion_tail #1
+      \@@_double_hashes_stop:w
+    \fi:
+    \if_meaning:w \c_@@_hash_tl #1
+%    \end{macrocode}
+%   (this \cs{use_i:nnnn} uses \cs{fi:} and consumes \cs{use:n}, the
+%   whole \cs{if_catcode:w} block, and the \cs{exp_not:N}, leaving just
+%   |#1| which is \cs{c_@@_hash_tl}.)
+%    \begin{macrocode}
+      \use_i:nnnn
+    \fi:
+    \use:n
+      {
+%    \end{macrocode}
+%   If |#1| is not \cs{c_@@_hash_tl}, then check if its catcode is~6,
+%   and if so, leave it doubled in \cs{exp_not:n} and consume the
+%   following |\exp_not:N #1|.
+%    \begin{macrocode}
+        \if_catcode:w ## \exp_not:N #1
+          \exp_after:wN \use_ii:nnnn
+        \fi:
+        \use_none:n
+          { \exp_not:n { #1 #1 } }
+      }
+%    \end{macrocode}
+%   If both previous tests returned |false|, then leave the token
+%   unexpanded and resume the loop.
+%    \begin{macrocode}
+    \exp_not:N #1
+    \@@_double_hashes:w
+  }
+\cs_new:Npn \@@_double_hashes_stop:w #1 \q_@@_recursion_stop { \fi: }
+%    \end{macrocode}
+%
+%   Dealing with spaces and grouped tokens is trivial:
+%    \begin{macrocode}
+\cs_new:Npn \@@_double_hashes_group:n #1
+  { { \@@_double_hashes:n {#1} } \@@_double_hashes:w }
+\exp_last_unbraced:NNo
+\cs_new:Npn \@@_double_hashes_space:w \c_space_tl
+  { ~ \@@_double_hashes:w }
+%    \end{macrocode}
+% \end{macro}
+% \end{macro}
+%
+%
 % \subsubsection{Patching by retokenization}
 %
 % At this point we've drained the possibilities of patching a command by
@@ -1061,8 +1323,11 @@
 %    \end{macrocode}
 %   And to close, copy the newly-defined command into the old name and
 %   the patching is finally completed:
+%
+% \changes{v1.0e}{2021/09/28}
+%                {Make patching of commands a global operation (gh/674)}
 %    \begin{macrocode}
-    \cs_set_eq:NN #1 \kerneltmpDoNotUse
+    \cs_gset_eq:NN #1 \kerneltmpDoNotUse
   }
 %    \end{macrocode}
 % \end{macro}

Modified: trunk/Master/texmf-dist/source/latex-dev/base/ltfiles.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex-dev/base/ltfiles.dtx	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/source/latex-dev/base/ltfiles.dtx	2021-10-22 21:41:02 UTC (rev 60842)
@@ -32,7 +32,7 @@
 %<*driver>
 % \fi
 \ProvidesFile{ltfiles.dtx}
-             [2021/08/25 v1.2o LaTeX Kernel (File Handling)]
+             [2021/10/14 v1.2p LaTeX Kernel (File Handling)]
 % \iffalse
 \documentclass{ltxdoc}
 \GetFileInfo{ltfiles.dtx}
@@ -823,8 +823,16 @@
 %    
 % \changes{v1.2j}{2020/10/04}{Quotes around the aux file name removed,
 %                       they are not needed and upset BibTeX (gh/400)}
+% \changes{v1.2p}{2021/10/14}{Warn about use in preamble}
 %    \begin{macrocode}
 \def\@include#1 {%
+%    \end{macrocode}
+%
+%    \begin{macrocode}
+\ifx\@nodocument\relax
+%    \end{macrocode}
+%
+%    \begin{macrocode}
   \clearpage
   \if at filesw
     \immediate\write\@mainaux{\string\@input{#1.aux}}%
@@ -892,9 +900,17 @@
     \deadcycles\z@
     \@nameuse{cp@#1}%
   \fi
-  \let\@auxout\@mainaux}
+  \let\@auxout\@mainaux
 %    \end{macrocode}
 %
+%    \begin{macrocode}
+\else
+\@latex at warning{%
+  \noexpand\include should only be used after \string\begin{document}}%
+\@input@{#1}%
+\fi}
+%    \end{macrocode}
+%
 % \changes{v1.2o}{2021/08/25}{Declare non-generic include hooks}
 %   Now declare the non-generic \hook{include} hooks used above:
 %    \begin{macrocode}

Modified: trunk/Master/texmf-dist/source/latex-dev/base/ltfinal.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex-dev/base/ltfinal.dtx	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/source/latex-dev/base/ltfinal.dtx	2021-10-22 21:41:02 UTC (rev 60842)
@@ -1246,32 +1246,33 @@
 % \end{macro}
 % \end{macro}
 %
-%  \subsection{Prepare for supporting PDF management in backends}
+%  \subsection{Preparation for supporting PDF in backends}
 %
-%    At the current point in time support for PDF management in
-%    backends is not part of \LaTeX{} core but provided by external
+%    At the current point in time, basic support for PDF in
+%    backends is not part of \LaTeX{} core; it is provided by external
 %    packages. At some time in the future that work will be placed
 %    into the kernel but for now it is separate and has to be
 %    explicitly loaded in the document.
 %
-%    There is a command \cs{IfPDFManagementActiveTF} in that code
-%    which checks if the PDF management code is activated, which can
-%    be used by packages to execute different code branches depending
-%    on the state.
+%    In that code there is a command \cs{IfPDFManagementActiveTF} 
+%    which can be used by packages in order to execute different 
+%    code depending on the whether this basic backend support is loaded.
 %
-%    To make this also work properly if the external package is not
-%    loaded at all this command is already made available in the
-%    kernel (with a trivial definition) so that other packages can
-%    query the state in all circumstances.  Once the PDF management
-%    support moves to the kernel this definition here will vanish
-%    again or rather will be replaced by a real test.
+%    To make this also work properly when this external package is not
+%    loaded at all, we here add this command already in the
+%    kernel (with a trivial definition); thus any package can
+%    query this loading state in all circumstances.  
+%    Once this basic PDF backend
+%    support gets moved to the kernel, this definition will vanish
+%    again from here or, rather, it will be replaced by a real test.
 %
-% 
 %  \begin{macro}{\IfPDFManagementActiveTF}
-%    While the PDF management code is not loaded, the test will
-%    always return the false branch. Once this code is loaded, it
-%    is replaced by a real test (as then it is possible that the
-%    management code is activate or not activated).
+%    So long as the code for the basic backend support for PDF is not 
+%    loaded, the test that is implicit here will
+%    always return the false branch. 
+%    Once this code is loaded, this definition will get
+%    replaced by a real test (as it is then possible that the
+%    management code is either activated or not activated).
 % \changes{v2.2p}{2021/08/08}{Default definition added (gh/640)}
 %    \begin{macrocode}
 \let \IfPDFManagementActiveTF \@secondoftwo

Modified: trunk/Master/texmf-dist/source/latex-dev/base/ltfloat.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex-dev/base/ltfloat.dtx	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/source/latex-dev/base/ltfloat.dtx	2021-10-22 21:41:02 UTC (rev 60842)
@@ -31,7 +31,7 @@
 %
 %<*driver>
 % \fi
-\ProvidesFile{ltfloat.dtx}[2021/03/03 v1.2f LaTeX Kernel (Floats)]
+\ProvidesFile{ltfloat.dtx}[2021/10/14 v1.2g LaTeX Kernel (Floats)]
 % \iffalse
 \documentclass{ltxdoc}
 \GetFileInfo{ltfloat.dtx}
@@ -1510,10 +1510,12 @@
 %         {Missing percent, again}
 % \changes{v1.2e}{2021/02/10}{Explicitly run \cs{par} at the end of footnote text
 %      in preparation for paragraph hooks}
+% \changes{v1.2g}{2021/10/14}
+%         {Explicitly set \cs{@currentcounter} (gh/687)}
 %    \begin{macrocode}
 %</2ekernel>
 %<*2ekernel|latexrelease>
-%<latexrelease>\IncludeInRelease{2021/06/01}%
+%<latexrelease>\IncludeInRelease{2021/11/15}%
 %<latexrelease>                 {\@footnotetext}{footnotetext tagging}%
 \long\def\@footnotetext#1{\insert\footins{%
     \reset at font\footnotesize
@@ -1521,6 +1523,7 @@
     \splittopskip\footnotesep
     \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
     \hsize\columnwidth \@parboxrestore
+    \def\@currentcounter{footnote}%
     \protected at edef\@currentlabel{%
        \csname p at footnote\endcsname\@thefnmark
     }%
@@ -1534,6 +1537,26 @@
 %    \end{macrocode}
 %
 %    \begin{macrocode}
+%<latexrelease>\IncludeInRelease{2021/06/01}%
+%<latexrelease>                 {\@footnotetext}{footnotetext tagging}%
+%<latexrelease>\long\def\@footnotetext#1{\insert\footins{%
+%<latexrelease>    \reset at font\footnotesize
+%<latexrelease>    \interlinepenalty\interfootnotelinepenalty
+%<latexrelease>    \splittopskip\footnotesep
+%<latexrelease>    \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
+%<latexrelease>    \hsize\columnwidth \@parboxrestore
+%<latexrelease>    \protected at edef\@currentlabel{%
+%<latexrelease>       \csname p at footnote\endcsname\@thefnmark
+%<latexrelease>    }%
+%<latexrelease>    \color at begingroup
+%<latexrelease>      \@makefntext{%
+%<latexrelease>        \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}%
+%<latexrelease>    \par
+%<latexrelease>    \color at endgroup}}%
+%<latexrelease>\EndIncludeInRelease
+%    \end{macrocode}
+%    
+%    \begin{macrocode}
 %<latexrelease>\IncludeInRelease{0000/00/00}%
 %<latexrelease>                 {\@footnotetext}{footnotetext tagging}%
 %<latexrelease>

Modified: trunk/Master/texmf-dist/source/latex-dev/base/ltfssdcl.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex-dev/base/ltfssdcl.dtx	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/source/latex-dev/base/ltfssdcl.dtx	2021-10-22 21:41:02 UTC (rev 60842)
@@ -36,7 +36,7 @@
 %
 %
 \ProvidesFile{ltfssdcl.dtx}
-            [2021/02/15 v3.0w LaTeX Kernel (NFSS Declarative Interface)]
+            [2021/10/15 v3.0y LaTeX Kernel (NFSS Declarative Interface)]
 % \iffalse
 \documentclass{ltxdoc}
 \begin{document}
@@ -454,25 +454,88 @@
 %    \end{macrocode}
 % \end{macro}
 %
+%
+%
+%
+%  \begin{macro}{\c at localalphabets}
+% \changes{v3.0x}{2021/09/26}{Counter added for (gh/676)}
+%    To avoid hitting the ``no more math fams available'' limit of 16, we
+%    keep a defined number of math alphabets flexible/local. If we have to
+%    allocate any of those we roll back the allocation after the
+%    formula has ended, so the next formula can use other alphabets in
+%    the slot(s). This makes the processing a bit slower if you are
+%    working at the limit, but that is better than dying with ``out of memory''.
+%    \begin{macrocode}
+%</2ekernel>
+%<latexrelease>\IncludeInRelease{2021/11/15}
+%<latexrelease>  {\document at select@group}{\document at select@group}%
+%<*2ekernel|latexrelease>
+%    \end{macrocode}
+%    We don't really undo the declaration on rollback (as that would
+%    be hard to maintain), so rolling
+%    forward needs to check if the declaration was already made.
+%    \begin{macrocode}
+\ifx\c at localmathalphabets\@undefined
+%    \end{macrocode}
+%    There is no need to have this counter as part of the include
+%    checkpoints, given that it makes little sense to alter its
+%    settings mid document. All we want is the ability to change it
+%    using the \cs{setcounter} interface.
+%
+%    By default we keep two math fams flexible.
+%    \begin{macrocode}
+  \newcount\c at localmathalphabets
+  \setcounter{localmathalphabets}{2}
+\fi
+%    \end{macrocode}
+%  \end{macro}
+%
+%
+%
+%
+%
 % \begin{macro}{\document at select@group}
-%    We surround |\select at group| with braces so that functions using it
-%    can be used directly after |_| or |^|.
-% \changes{v2.1p}{1994/12/10}{Surround with braces (add fourth arg)}
-% \changes{v2.1q}{1995/04/02}{fix problem for pr/1275}
+%    The \cs{document at select@group} command is the version of
+%    \cs{select at group} (inside math versions) that is used in the
+%    document body to set up math alphabets (if used).
+%
 % \changes{v3.0g}{1997/11/20}
 %      {(DPC) inline use of \cs{stepcounter} (faster, and saves a csname
 %       per math version as no reset list)}
 % \changes{v3.0q}{2015/03/18}{Introduce \cs{e at mathgroup@top}}
 %    \begin{macrocode}
-%</2ekernel>
-%<latexrelease>\IncludeInRelease{2020/10/01}
-%<latexrelease>  {\document at select@group}{\document at select@group}%
-%<*2ekernel|latexrelease>
 \def\document at select@group#1#2#3#4{%
  \ifx\math at bgroup\bgroup\else\relax\expandafter\@firstofone\fi
  {%
  \ifmmode
+%    \end{macrocode}
+%    We first check if there is still room for allocating another
+%    mathgroup. If there is, we check if it can be globally allocated
+%    or if we have reached the limit which is given by
+%    \cs{e at mathgroup@top} with \cs{c at localmathalphabets} subtracted.
+% 
+% \changes{v3.0x}{2021/09/26}{Test if we should freeze the version (gh/676)}
+%    \begin{macrocode}
    \ifnum\csname c at mv@\math at version\endcsname<\e at mathgroup@top
+     \ifnum \numexpr\e at mathgroup@top-\c at localmathalphabets
+              >\csname c at mv@\math at version\endcsname
+     \else
+%    \end{macrocode}
+%    If we are past this point we freeze the current state of the math
+%    version so that we can return to it after the formula has
+%    ended. Of course, that should be done only once, so we check if
+%    \cs{mv@\meta{version}@frozen} already exists.
+%    \begin{macrocode}
+       \ifcsname mv@\math at version @frozen\endcsname \else
+%    \end{macrocode}
+%    We have to pass the current value of \cs{math at version} not the
+%    macro itself, because some of the processing is delayed to a
+%    point where the value may have changed again---not doing this
+%    caused a puzzling error in one setup.
+%    \begin{macrocode}
+         \expandafter\freeze at math@version\expandafter{\math at version}%
+       \fi
+     \fi
      \begingroup
        \escapechar\m at ne
        \getanddefine at fonts{\csname c at mv@\math at version\endcsname}#3%
@@ -486,16 +549,21 @@
      \global\advance\csname c at mv@\math at version\endcsname\@ne
    \else
      \let#1\relax
-     \@latex at error{Too many math alphabets used
-                   in version \math at version}%
+     \@latex at error{Too many math alphabets used in
+                   version \math at version}%
         \@eha
   \fi
 %    \end{macrocode}
-% extra \cs{expandafter} to remove the \cs{expandafter} added below
-% \changes{v3.0w}{2021/02/115}{fix for (gh/501)}
+%    Extra \cs{expandafter} to remove the \cs{expandafter} added below
+% \changes{v3.0w}{2021/02/15}{fix for (gh/501)}
 %    \begin{macrocode}
  \else \expandafter\expandafter\expandafter\non at alpherr\fi
 %    \end{macrocode}
+%    We surround |\select at group| with braces so that functions using it
+%    can be used directly after |_| or |^|.
+% \changes{v2.1p}{1994/12/10}{Surround with braces (add fourth arg)}
+% \changes{v2.1q}{1995/04/02}{fix problem for pr/1275}
+%
 %    If the legacy interface is used, e.g., \verb=$\sf -1$= the math
 %    alphabet \verb=#1= does not take an argument so we better do not
 %    surround \verb=#4= with braces, because then we get
@@ -507,8 +575,142 @@
  \expandafter#1\ifx\math at bgroup\bgroup{#4}\else#4\fi
  }%
 }
+%    \end{macrocode}
+%
+%
+%
+%  \begin{macro}{\freeze at math@version}
+% \changes{v3.0x}{2021/09/26}{Macro added for (gh/676)}
+%    This command stores the current state of the math version and sets
+%    things up to return to it after each formula from now on. We use
+%    L3 programming layer code to set it up.
+%    \begin{macrocode}
+\ExplSyntaxOn
+\cs_new_protected:Npn\freeze at math@version #1 {
+%    \end{macrocode}
+%    Save the current \cs{mv@\meta{version}} code and the number of
+%    allocated mathgroups inside.
+%    \begin{macrocode}
+  \@font at info{Freeze~ math~ alphabet~ allocation~ in~ version~
+              #1.\MessageBreak
+              Allocated~math~groups:~\int_use:c{ c at mv@ #1 }~ 
+              (local:~  \int_use:N\c at localmathalphabets)      }
+  \cs_gset_eq:cc { mv@#1 at frozen }{ mv@#1 }
+  \tl_gset:cx { g__nfss_frozen_mv_ #1 _tl }{ \int_use:c { c at mv@#1 } }
+%    \end{macrocode}
+%    Doing the reset the first time, we wait until we are out of
+%    math mode, so we use some recursive \cs{group_insert_after:N} for this
+%    before we execute \cs{mv@\meta{version}@reset}.
+%    \begin{macrocode}
+  \group_insert_after:N \__nfss_init_mv_freeze:N \exp_after:wN
+    \group_insert_after:N \cs:w mv@#1 at reset \cs_end:
+%    \end{macrocode}
+%    The \cs{check at mathfonts} is called at the very beginning of each
+%    math formula, so it is a good way to hook in the resetting.
+%    Again that has to happen after the formula has ended, but we know
+%    because of the place where \cs{check at mathfonts} is used
+%    that a single \cs{aftergoup} is sufficient.
+%    \begin{macrocode}
+  \tl_gput_right:No \check at mathfonts 
+       {
+         \exp_after:wN \group_insert_after:N \cs:w mv@#1 at reset \cs_end:
+       }
+%    \end{macrocode}
+%    Here is the definition of \cs{mv@\meta{version}@reset}. If there
+%    has been no new math alphabet allocation, doing a reset would
+%    just cause a lot of unnecessary processing, so we do a quick
+%    check upfront for this.
+%    \begin{macrocode}
+  \cs_gset:cpn{mv@#1 at reset}
+     {
+         \int_compare:nNnTF { \int_use:c{c at mv@#1} } > 
+                            { \tl_use:c{g__nfss_frozen_mv_ #1 _tl} }
+             {
+               \@font at info{Undo~ math~ alphabet~ allocation~ in~ version~ #1}
+%    \end{macrocode}
+%    If the undo is necessary, we restore the \cs{mv@\meta{version}} code.
+%    \begin{macrocode}
+               \cs_gset_eq:cc { mv@#1 }{ mv@#1 at frozen }
+               \int_gset:cn { c at mv@#1 }{ \tl_use:c {g__nfss_frozen_mv_ #1 _tl} }
+%    \end{macrocode}
+%    But we also should undo changes to the math alphabet
+%    definitions. We therefore run this code with a modified
+%    definition for \cs{getanddefine at fonts} because there is no need
+%    to do anything to the symbol fonts that are permanently allocated.
+%    \begin{macrocode}
+               \group_begin:
+                 \cs_set_eq:NN \getanddefine at fonts \use_none:nn
+                 \use:c {mv@#1}
+               \group_end:
+             }
+             {
+%    \end{macrocode}
+%    If there was no change, we report that in the log (but this
+%    branch could go completely).
+%    \begin{macrocode}
+               \@font at info{No~ math~ alphabet~ change~ to~ frozen~ version~ #1}
+             }
+    }
+}
+%    \end{macrocode}
+%  \end{macro}
+%
+%
+%  \begin{macro}{\__nfss_init_mv_freeze:N}
+% \changes{v3.0x}{2021/09/26}{Macro added for (gh/676)}
+%    To do the initial freeze in a safe place, we check if we are in
+%    math mode and if so try again after the group has ended by pushing
+%    the command and its  single token argument with two
+%    \cs{group_insert_after:N}s after the current group. If we are no longer in
+%    math mode we bypass the
+%    conditional and so the next token is our argument
+%    which is then finally executed.
+%    \begin{macrocode}
+\cs_new_protected:Npn \__nfss_init_mv_freeze:N #1 {%
+  \mode_if_math:T { \group_insert_after:N \__nfss_init_mv_freeze:N
+                    \group_insert_after:N } #1
+}
+%    \end{macrocode}
+%  \end{macro}
+%
+%
+%    \begin{macrocode}
+\ExplSyntaxOff 
+%    \end{macrocode}
+%
+%    \begin{macrocode}
 %</2ekernel|latexrelease>
 %<latexrelease>\EndIncludeInRelease
+%<latexrelease>\IncludeInRelease{2020/10/01}
+%<latexrelease>  {\document at select@group}{\document at select@group}%
+%<latexrelease>
+%<latexrelease>\def\document at select@group#1#2#3#4{%
+%<latexrelease> \ifx\math at bgroup\bgroup\else\relax\expandafter\@firstofone\fi
+%<latexrelease> {%
+%<latexrelease> \ifmmode
+%<latexrelease>   \ifnum\csname c at mv@\math at version\endcsname<\e at mathgroup@top
+%<latexrelease>     \begingroup
+%<latexrelease>       \escapechar\m at ne
+%<latexrelease>       \getanddefine at fonts{\csname c at mv@\math at version\endcsname}#3%
+%<latexrelease>       \globaldefs\@ne  \math at fonts
+%<latexrelease>     \endgroup
+%<latexrelease>     \expandafter\extract at alph@from at version
+%<latexrelease>         \csname mv@\math at version\expandafter\endcsname
+%<latexrelease>         \expandafter{\number\csname
+%<latexrelease>                       c at mv@\math at version\endcsname}%
+%<latexrelease>          #1%
+%<latexrelease>     \global\advance\csname c at mv@\math at version\endcsname\@ne
+%<latexrelease>   \else
+%<latexrelease>     \let#1\relax
+%<latexrelease>     \@latex at error{Too many math alphabets used
+%<latexrelease>                   in version \math at version}%
+%<latexrelease>        \@eha
+%<latexrelease>  \fi
+%<latexrelease> \else \expandafter\expandafter\expandafter\non at alpherr\fi
+%<latexrelease> \expandafter#1\ifx\math at bgroup\bgroup{#4}\else#4\fi
+%<latexrelease> }%
+%<latexrelease>}
+%<latexrelease>\EndIncludeInRelease
 %<latexrelease>\IncludeInRelease{2015/01/01}
 %<latexrelease>  {\document at select@group}{\document at select@group}%
 %<latexrelease>
@@ -653,10 +855,37 @@
 %
 % \begin{macro}{\DeclareMathVersion}
 %    \begin{macrocode}
+%</2ekernel>
+%<*2ekernel|latexrelease>
+%<latexrelease>\IncludeInRelease{2021/11/15}%
+%<latexrelease>                 {\DeclareMathVersion}{local alphabets}%
 \def\DeclareMathVersion#1{%
+%    \end{macrocode}
+%    When declaring a new math version we need to instantiate an L3
+%    variable that is used when we freeze the version, because too many
+%    alphabets got allocated. If we don't do this, L3 programming layer
+%    complains if it is run in checking mode.
+% \changes{v3.0y}{2021/10/15}{Initialize variable for freezing
+%       math version (gh/676)}
+%    \begin{macrocode}
+  \@namedef{g__nfss_frozen_mv_#1_tl}{}%
+%    \end{macrocode}
+%
+%    \begin{macrocode}
   \expandafter\new at mathversion\csname mv@#1\endcsname}
 \@onlypreamble\DeclareMathVersion
+%</2ekernel|latexrelease>
+%<latexrelease>\EndIncludeInRelease
 %    \end{macrocode}
+%    
+%    \begin{macrocode}
+%<latexrelease>\IncludeInRelease{0000/00/00}%
+%<latexrelease>                 {\DeclareMathVersion}{local alphabets}%
+%<latexrelease>\def\DeclareMathVersion#1{%
+%<latexrelease>  \expandafter\new at mathversion\csname mv@#1\endcsname}
+%<latexrelease>\EndIncludeInRelease
+%<*2ekernel>
+%    \end{macrocode}
 % \end{macro}
 %
 % \begin{macro}{\new at mathversion}

Modified: trunk/Master/texmf-dist/source/latex-dev/base/lthooks.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex-dev/base/lthooks.dtx	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/source/latex-dev/base/lthooks.dtx	2021-10-22 21:41:02 UTC (rev 60842)
@@ -31,8 +31,8 @@
 %%% From File: lthooks.dtx
 %
 %    \begin{macrocode}
-\def\lthooksversion{v1.0r}
-\def\lthooksdate{2021/09/06}
+\def\lthooksversion{v1.0s}
+\def\lthooksdate{2021/09/28}
 %    \end{macrocode}
 %
 %<*driver>
@@ -959,13 +959,14 @@
 %   \begin{syntax}
 %     \cs{hook_activate_generic:n} \Arg{hook}
 %   \end{syntax}
-%    Like \cs{hook_new:n} but does nothing if the hook was previously
-%    declared with \cs{hook_new:n}.  This declaration should only be used
-%    in special situations, e.g., when a command of another package
-%    needs to be altered and it is not clear if for that command a
-%    generic \hook{cmd} hook was already explicitly declared before.
+%    This is like \cs{hook_new:n} but it does nothing if the hook was previously
+%    declared with \cs{hook_new:n}.  This declaration should be used
+%    only in special situations, e.g., when a command from another package
+%    needs to be altered and it is not clear whether a
+%    generic \hook{cmd} hook (for that command) has been previously 
+%    explicitly declared.
 %
-%    Normally \cs{hook_new:n} should be used instead.
+%    Normally \cs{hook_new:n} should be used instead of this.
 % \end{function}
 %
 %
@@ -3138,10 +3139,13 @@
 %   component to see if we have to make a reversed hook.  In either case
 %   the function returns \meta{true} for a generic hook and \meta{false}
 %   in other cases.
+%
+% \changes{v1.0s}{2021/09/28}
+%                {Correct usage of older \cs{@@_if_file_hook:wTF} (gh/675)}
 %    \begin{macrocode}
 %<latexrelease>\cs_new_protected:Npn \@@_try_declaring_generic_hook:nNNnn #1
 %<latexrelease>  {
-%<latexrelease>    \@@_if_file_hook:wTF #1 / \s_@@_mark {#1}
+%<latexrelease>    \@@_if_file_hook:wTF #1 / \s_@@_mark
 %<latexrelease>      {
 %<latexrelease>        \exp_args:Ne \@@_try_declaring_generic_hook_split:nNNnn
 %<latexrelease>          { \exp_args:Ne \@@_file_hook_normalize:n {#1} }
@@ -4777,10 +4781,12 @@
 %<latexrelease>  }
 %    \end{macrocode}
 %
+% \changes{v1.0s}{2021/09/28}
+%                {Correct usage of older \cs{@@_if_file_hook:wTF} (gh/675)}
 %    \begin{macrocode}
 %<latexrelease>\cs_new_protected:Npn \@@_try_file_hook:n #1
 %<latexrelease>  {
-%<latexrelease>    \@@_if_file_hook:wTF #1 / \s_@@_mark {#1}
+%<latexrelease>    \@@_if_file_hook:wTF #1 / \s_@@_mark
 %<latexrelease>      {
 %<latexrelease>        \exp_args:Ne \@@_if_usable_use:n
 %<latexrelease>          { \exp_args:Ne \@@_file_hook_normalize:n {#1} }

Modified: trunk/Master/texmf-dist/source/latex-dev/base/ltluatex.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex-dev/base/ltluatex.dtx	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/source/latex-dev/base/ltluatex.dtx	2021-10-22 21:41:02 UTC (rev 60842)
@@ -28,7 +28,7 @@
 \ProvidesFile{ltluatex.dtx}
 %</driver>
 %<*tex>
-[2021/08/11 v1.1u
+[2021/10/15 v1.1v
 %</tex>
 %<plain>  LuaTeX support for plain TeX (core)
 %<*tex>
@@ -1415,6 +1415,7 @@
 % \changes{v1.1j}{2019/06/18}{font\_descriptor\_objnum\_provider added}
 % \changes{v1.1l}{2020/02/02}{glyph\_info added}
 % \changes{v1.1t}{2021/04/18}{input\_level\_string added}
+% \changes{v1.1v}{2021/10/15}{provide\_charproc\_data added}
 %    \begin{macrocode}
   define_font                     = exclusive,
   glyph_info                      = exclusive,
@@ -1423,6 +1424,7 @@
   make_extensible                 = exclusive,
   font_descriptor_objnum_provider = exclusive,
   input_level_string              = exclusive,
+  provide_charproc_data           = exclusive,
 %    \end{macrocode}
 % \changes{v1.0m}{2016/02/11}{pdf\_stream\_filter\_callback removed}
 %    \begin{macrocode}

Modified: trunk/Master/texmf-dist/source/latex-dev/base/ltmath.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex-dev/base/ltmath.dtx	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/source/latex-dev/base/ltmath.dtx	2021-10-22 21:41:02 UTC (rev 60842)
@@ -38,7 +38,7 @@
 %<*driver>
 % \fi
 \ProvidesFile{ltmath.dtx}
-              [2021/04/20 v1.2i LaTeX Kernel (Math Setup)]
+              [2021/10/14 v1.2j LaTeX Kernel (Math Setup)]
 % \iffalse
 %</driver>
 %
@@ -915,10 +915,13 @@
 %    whole display. Note that we can't use \cs{refstepcounter} as this
 %    results in |\@currentlabel| getting restored at the wrong and
 %    thus always writing the first label to the \texttt{.aux} file.
+% \changes{v1.2j}{2021/10/14}
+%         {Explicitly set \cs{@currentcounter} (gh/687)}
 %    \begin{macrocode}
 \def\eqnarray{%
    \stepcounter{equation}%
    \def\@currentlabel{\p at equation\theequation}%
+   \def\@currentcounter{equation}%
    \global\@eqnswtrue
    \m at th
    \global\@eqcnt\z@
@@ -1231,10 +1234,13 @@
 %
 % \begin{environment}{eqnarray}
 %    The \textsf{eqnarray} environment
+% \changes{v1.2j}{2021/10/14}
+%         {Explicitly set \cs{@currentcounter} (gh/687)}
 %    \begin{macrocode}
 \renewenvironment{eqnarray}{%
     \stepcounter{equation}%
     \def\@currentlabel{\p at equation\theequation}%
+    \def\@currentcounter{equation}%
     \global\@eqnswtrue\m at th
     \global\@eqcnt\z@
     \tabskip\mathindent

Modified: trunk/Master/texmf-dist/source/latex-dev/base/ltoutenc.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex-dev/base/ltoutenc.dtx	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/source/latex-dev/base/ltoutenc.dtx	2021-10-22 21:41:02 UTC (rev 60842)
@@ -44,7 +44,7 @@
 %<*driver>
 % \fi
 \ProvidesFile{ltoutenc.dtx}
-             [2021/09/12 v2.0w LaTeX Kernel (font encodings)]
+             [2021/10/16 v2.0x LaTeX Kernel (font encodings)]
 % \iffalse
 \documentclass{ltxdoc}
 \GetFileInfo{ltoutenc.dtx}
@@ -199,7 +199,7 @@
 %    commands, such as accents.  It also contains the code for some of
 %    the encoding files, including |omlenc.def|,
 %    |omsenc.def|, |t1enc.def| and |ot1enc.def| files, which define
-%    the |OLM|,
+%    the |OML|,
 %    |OMS|, |T1| and |OT1| encodings, and the |fontenc| package
 %    for selecting encodings.
 %
@@ -845,10 +845,11 @@
 %    We also ignore \cs{ignorespaces} which has the same issue and may
 %    show up as part of \cs{normalfont} if that is used.
 % \changes{v2.0m}{2019/12/18}{Avoid code that breaks \cs{accent}}
+% \changes{v2.0x}{2021/10/16}{Dont set \cs{spacefactor in math mode gh/643}}
 %    \begin{macrocode}
    \let\maybe at load@fontshape\relax
    \let\ignorespaces\relax
-   \accent#1 #2\egroup\spacefactor\accent at spacefactor}
+   \accent#1 #2\egroup\ifmmode\else\spacefactor\accent at spacefactor\fi}
 %    \end{macrocode}
 %
 %

Modified: trunk/Master/texmf-dist/source/latex-dev/base/ltpara.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex-dev/base/ltpara.dtx	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/source/latex-dev/base/ltpara.dtx	2021-10-22 21:41:02 UTC (rev 60842)
@@ -14,8 +14,8 @@
 %%% From File: ltpara.dtx
 %
 %    \begin{macrocode}
-\def\ltparaversion{v1.0j}
-\def\ltparadate{2021/09/18}
+\def\ltparaversion{v1.0k}
+\def\ltparadate{2021/10/19}
 %    \end{macrocode}
 %<*driver>
 \documentclass{l3doc}
@@ -122,8 +122,8 @@
 %    \verb=\hbox{a\par b}= is ignored, but \verb=$a\par b$= would complain.
 %
 %    If this primitive ends the paragraph it does some special
-%    \enquote{end of horizontal list} processing, then calls \TeX{} paragraph
-%    builder that breaks the horizontal list into lines then these
+%    \enquote{end of horizontal list} processing, then calls \TeX{}’s paragraph
+%    builder; this breaks the horizontal list into lines and then these
 %    lines are added as boxes to the enclosing vertical list and
 %    \TeX{} returns to vertical mode.
 %
@@ -133,13 +133,14 @@
 %    automatically changed to a \cs{par} command which is then
 %    executed. The other possibility is that \TeX{} encounters a
 %    command which is incompatible with horizontal processing, e.g.,
-%    \cs{vskip} (a request for adding vertical space). In such case it
+%    \cs{vskip} (a request for adding vertical space). In such cases it
 %    silently backs up, and inserts a \cs{par} in the hope that this
-%    gets it out of horizontal mode and makes the offending command
+%    gets it out of horizontal mode and makes the vertical command
 %    acceptable.
 
 %    The important point to note here is that \TeX{} really inserts
-%    the command \cs{par} which can be redefined. Thus, it may not have
+%    the command with the name \cs{par}, which can be redefined. 
+%    Thus, it may not have
 %    its original \enquote{primitive} meaning and therefore may not end the
 %    horizontal list and call the paragraph builder. This approach
 %    offers some flexibility but also allows you  to easily produce a
@@ -151,14 +152,14 @@
 %    then sees \cs{vskip} and inserts \cs{par} to end the
 %    paragraph. But this now only runs \cs{relax} so nothing changes
 %    and \cs{vskip} is read again, issues a \cs{par} which \ldots. In
-%    short, it takes a plain \TeX{} document with five tokens to run
-%    forever (as not even memory is consumed and therefore eventually
+%    short, it only takes a plain \TeX{} document with five tokens to run
+%    forever (since no memory is consumed and therefore eventually
 %    exhausted).
 %
-%    There are no other ways than changing \cs{par} to gain control at
+%    There is no way other than changing \cs{par} to gain control at
 %    the end of a paragraph, i.e., there is no token list like
-%    \cs{everypar} that is inserted, i.e., the only way to change the
-%    default behavior is to modify the action that \cs{par} executes
+%    \cs{everypar} that is inserted.  Hence the only way to change the
+%    default behavior is to modify the action that \cs{par} executes,
 %    with similar issues as outlined before: different processes need
 %    to ensure that they do not overwrite their modifications or
 %    worse, think that the \cs{par} in front of them is the engine
@@ -165,17 +166,16 @@
 %    primitive while in fact it has already been changed by other
 %    code.
 %
-%
 %    To make matters slightly worse there are a few places where
 %    \TeX{} handles the situation differently (most likely for speed
 %    reasons back when computers were much slower). If \TeX{} finds
 %    itself in unrestricted horizontal mode at the end of building a
-%    vertical box (or an \cs{insert}, \cs{vadjust} or at the end of
+%    vertical box (for an \cs{insert}, \cs{vadjust} or 
 %    executing the output routine code), it will finish the horizontal
 %    list not by issuing a \cs{par} command (which would be consistent
-%    with all other places, but by simply executing the primitive version
-%    of \cs{par} regardless of the definition that \cs{par} has at the
-%    time.
+%    with all other places) but by simply executing the primitive meaning
+%    of \cs{par}, regardless of the actual definition that \cs{par} 
+%    has at the time.
 %
 %    Thus, if you have carefully crafted a redefined \cs{par} to execute
 %    some special actions at the end of a paragraph and you write
@@ -183,14 +183,14 @@
 %\begin{verbatim}
 %   \vbox{Some paragraph ... text.}
 %\end{verbatim}
-%    you will find that your code has never run for the last paragraph
+%    you will find that your code does not get run for the last paragraph
 %    in that box. \LaTeX{} avoids this problem, by making sure that
-%    all its boxes (such as \cs{parbox} or the \env{minipage}
+%    its boxes (such as \cs{parbox} or the \env{minipage}
 %    environment, etc.) all internally add an explicit \cs{par} at the
 %    end so that such code is run and \TeX{} finds itself in vertical
 %    mode already without the need to start up the paragraph builder
 %    internally. But, of course, this only works for boxes under direct
-%    control of the \LaTeX{} kernel, if some package uses low-level
+%    control of the \LaTeX{} kernel; if some package uses low-level
 %    \cs{vbox}es without adding this precaution the \TeX{}
 %    optimization kicks in and no special \cs{par} code is executed.
 %
@@ -197,13 +197,14 @@
 %    And there is another optimization that is painful: if a paragraph
 %    is interrupted by a mathematical display, e.g., \verb=\[...\]= in
 %    \LaTeX{} or \verb=$$...$$= in plain \TeX{}, then \TeX{} will
-%    resume horizontal mode afterward, i.e., build a new horizontal
-%    list (without inserting an indentation box or \cs{everypar} at
-%    that point). However, if that list immediately ends with an
+%    resume horizontal mode afterward, i.e., it will start to build 
+%    a new horizontal
+%    list without inserting an indentation box or \cs{everypar} at
+%    that point.  However, if that list immediately ends with an
 %    explicit or implicit \cs{par} then \TeX{} will simply throw away
 %    this \enquote{null} paragraph and not do its usual \enquote{end
-%    of horizontal list} processing, so this special case need to be
-%    accounted for when introducing some extended processing.
+%    of horizontal list} processing, so this special case also needs to be
+%    accounted for when introducing any extended processing.
 %
 %
 %
@@ -214,8 +215,8 @@
 %    the start and end of the paragraph processing. The public hooks
 %    can be used by packages (or by the user in the preamble or
 %    within the document) and using the hook mechanisms it is possible
-%    to reorder or arrange code from different packages in a way that
-%    it can safely coexist.
+%    to reorder or arrange code from different packages in such a way that
+%    these can safely coexist.
 %
 %    To make that happen we have to make use of the basic
 %    functionality that is offered by \TeX{}, e.g., we install
@@ -248,7 +249,7 @@
 %    Fortunately, \LaTeX{} has already redefined \cs{par} for its own
 %    purposes. As a result there aren't many packages that attempt to
 %    change \cs{par}, because without a lot of extra care that would
-%    fail miserably. But bottom line, if you load a package that
+%    fail miserably. But the bottom line is that, if you load a package that
 %    alters \cs{par} then the end of paragraph hooks are most likely
 %    not executing while that redefinition is
 %    active.\footnote{Similarly to the \cs{everypar} situation, the
@@ -326,7 +327,7 @@
 %
 %      This hook is executed at the end of a paragraph when \TeX{} is
 %      ready to return to vertical mode and after it has removed the
-%      last horizontal glue (but not kern) placed on the horizontal
+%      last horizontal glue (but not any kerns) placed on the horizontal
 %      list. The code is still executed in horizontal mode so it is
 %      possible to add further horizontal material at this point, but
 %      it should not alter the mode (even a temporary exit from
@@ -415,11 +416,11 @@
 % \subsection{Altered and newly provided commands}
 %
 % \begin{function}{\par,\endgraf,\para_end:}
-%    An explicit request for ending a paragraph is known in plain
-%    \TeX{} under the name \cs{endgraf} where it simply calls the
-%    paragraph primitive (regardless of what \cs{par} may have as its
-%    current definition). In \LaTeX{} \cs{endgraf} with that behavior
-%    was also made available.
+%    An explicit request for ending a paragraph is provided in plain
+%    \TeX{} under the name \cs{endgraf}, which simply uses the
+%    primitive meaning (regardless of what \cs{par} may have as its
+%    current definition). In \LaTeX{} \cs{endgraf} (with that behavior)
+%    was originally also available.
 %
 %    With the new paragraph handling in \LaTeX{}, ending a paragraph
 %    means a bit more than just calling the engine's paragraph
@@ -426,9 +427,19 @@
 %    builder: the process also has to add any hook code for the end of
 %    a paragraph. Thus
 %    \cs{endgraf} was changed to provide this additional functionality
-%    (and so by extension \cs{par} subject to its current meaning).
+%    (along with \cs{par} remaining subject to its current meaning).
 %
-%    The \pkg{expl3} name for the functionality is \cs{para_end:}.
+%    TEMP NOTE: Maybe endgraf should not be changed by LaTeX as it is 
+%    essentially not at all a part of LaTeX.  
+%    If it is too dangerous to leave it as 
+%    a synonym for the primitive, then we could just disable it.
+%    [FMi:]
+%     not in my opinion. It is used in many places and the redefinition is safe and does the right thing.
+%     disabling it just means it breaks a lot of stuff for no reason.
+%    [FMi:]
+%    Note that the 2e kernel has been completely purged of endgrafs.
+%
+%    The \pkg{expl3} name for this functionality is \cs{para_end:}.
 % \end{function}
 %
 % \begin{quote}
@@ -538,7 +549,7 @@
 %    sequence numbers. This is most easily done using \pkg{expl3}
 %    functions, so we switch over. This is not a very general
 %    implementation, just enough for what we need and a bit of
-%    \LaTeXe{} thrown in as well. When popping the result gets stored
+%    \LaTeXe{} thrown in as well. When popping, the result gets stored
 %    in \cs{paracntvalue} and the \cs{ERROR}  should never happen
 %    because it means we have tried to pop from an empty stack.
 %\begin{verbatim}
@@ -629,7 +640,7 @@
 % \subsubsection{Glue items between paragraphs (found with \pkg{fancypar})}
 %
 %    In the past \LaTeX{} placed two glue items between two
-%    consecutive paragraph, e.g.,
+%    consecutive paragraphs, e.g.,
 %\begin{verbatim}
 %   text1 \par text2 \par
 %\end{verbatim}
@@ -644,12 +655,12 @@
 % \glue(\parskip) 0.0
 % \glue(\baselineskip) 5.16669
 %\end{verbatim}
-%    The reason is that we generate a \enquote{fake}'' paragraph to
+%    The reason is that we generate a \enquote{fake} paragraph to
 %    gain control and safely add the early hooks, but this generates
 %    an additional glue item. That item doesn't contribute anything
-%    vertically but ifsomebody writes code the unravels a constructed
+%    vertically but if somebody writes code that unravels a constructed
 %    list using \cs{lastbox}, \cs{unskip} and \cs{unpenalty} then the
-%    code has to remove one additional glue item  or else will fail.
+%    code has to remove one additional glue item  or else it will fail.
 
 %
 % ^^A \subsubsection{}
@@ -828,8 +839,8 @@
 %
 %    But if we have already replaced it by a token register then all
 %    they do is to give that token register a new name. Thus our code
-%    in \cs{tex_everypar:D} would call \cs{everypar} (which is their
-%    now token register) and the code that they added ends up in our
+%    in \cs{tex_everypar:D} would call \cs{everypar} (which is now their
+%    token register) and the code that they added ends up in our
 %    token register which is then never used at all. A bit mind
 %    boggling I guess.
 %
@@ -927,7 +938,7 @@
 %    \end{itemize}
 %
 %    Unfortunately, \TeX{} has some (these days) unnecessary
-%    optimization: if a \cs{vbox} ends and \TeX{} is still in
+%    optimizations: if a \cs{vbox} ends and \TeX{} is still in
 %    horizontal mode it simply exercises the paragraph builder instead
 %    of issuing a \cs{par}. It is therefore necessary for \LaTeX{} to
 %    ensure that this case doesn't happen and all boxes internally
@@ -940,11 +951,12 @@
 %    \texttt{latex.ltx}.  For this \LaTeXe{} code has the following
 %    conventions: \cs{@@@@par} and \cs{endgraf} both refer to the
 %    default meaning (in the past this was the initex primitive) while
-%    \cs{par} is the current meaning which may does something else.
+%    \cs{par} is the current meaning which maybe does something else.
 %
+%    TEMP NOTE: See earlier note re endgraf.
 %
-%    We are now going to change this default meaning to run
-%    \cs{para_end:} instead, which ultimately executes the initex
+%    We are now going to change this default meaning to instead run
+%    \cs{para_end:}, which ultimately executes the initex
 %    primitive but additionally adds our hooks when appropriate.
 %    This way the change is again transparent to the legacy \LaTeXe{}
 %    code.
@@ -953,22 +965,24 @@
 %    primitive and we achieve this by simply expanding it to the
 %    primitive which is available to us as \cs{tex_par:D}. This way we
 %    don't have to care about whether \TeX{} just does nothing (e.g.,
-%    if in vertical mode already) or generate an error, etc.
+%    if in vertical mode already) or generates an error, etc.
 %    \begin{macrocode}
 \cs_new_protected:Npn \para_end: {
 %    \end{macrocode}
 %
+%    TEMP NOTE: What should happen if in outer hmode with an empty hlist? 
+%
 %    The only case we care about is when we are in horizontal mode
 %    (i.e., doing typesetting) and not also in inner mode (i.e.,
 %    making paragraphs and not building an \cs{hbox}.
-%    \begin{macrocode}
+%\begin{verbatim}
 %  \bool_lazy_and:nnT
 %       { \mode_if_horizontal_p: }
 %       { \bool_not_p:n { \mode_if_inner_p: } }
 %       { ...
-%    \end{macrocode}
+%\end{verbatim}
 %    Since this is executed for each and every paragraph in a document
-%    we try to stay a fast as possible, So we are aren't using the
+%    we try to stay as fast as possible, so we do not use the
 %    above construct but two conditionals instead. Using low-level
 %    \cs{if_mode...} conditions would be even faster but has the
 %    danger to conflict with conditionals in the user hooks.
@@ -981,17 +995,18 @@
 %   \afterassignment\lst at vskip\@tempskipa \z@ \par
 %\end{verbatim}
 %    If \TeX{} is in hmode while that assignment happens then the
-%    \cs{par} is seen in hmode (because in the above case the
-%    assignment isn't finished (one should have used \cs{z at skip} and
+%    \cs{par} is seen in hmode because in the above case the
+%    assignment may not be finished (one should have used \cs{z at skip}) and
 %    the \cs{lst at vskip} will get inserted into the middle of the
 %    conditional. The \cs{lst at vskip} then changes to vmode and you get
 %    a surprising error about the \texttt{para/end} hook having
-%    changed modes even if you don't have any hook code because it is
-%    the instered \cs{lst at vskip} that is causing it. That happened
+%    changed modes even if you don't have any hook code(!): it is
+%    the inserted \cs{lst at vskip} that is actually causing the change of 
+%    mode.This is what happened
 %    when the output routines got started while a \texttt{lstlisting}
 %    environment (that redefines \cs{vskip} in this way) was
 %    active. This is really faulty coding, but we try to be proactive
-%    and guard the conditional so thatany scanning is stopped before it:
+%    and guard the conditional so that any scanning is first stopped, thus:
 %    \begin{macrocode}
   \scan_stop:
 %    \end{macrocode}
@@ -1001,18 +1016,27 @@
     \mode_if_inner:F {
 %    \end{macrocode}
 %    In that case the action of the primitive would be to remove the
-%    last glue (not kern) from the horizontal list constructed to form
-%    a paragraph then append the a penalty of 10000 and the
-%    \cs{parfillskip} at the end and pass the whole list to the
-%    paragraph builder which breaks it into lines and \TeX{} then
+%    last glue (but no kerns) from the horizontal list (constructed to form
+%    a paragraph) and then to append a penalty of 10000 and the
+%    \cs{parfillskip}; it then passes the whole list to the
+%    paragraph builder, which breaks it into lines and \TeX{} then
 %    returns to vertical mode.
 %
-%    What we want to do instead is to add our hook code at the end of
-%    the horizontal list before that happens and the code is passed to
-%    the paragraph builder. If there was a glue item at the end then
+%    What we want to do is to add this hook code at the end of
+%    the horizontal list before any of the above happens. 
+%    If there was a glue item at the end of the list then
 %    it should get removed before the hook code gets added so we have
-%    to arrange for its removal ourselves.
+%    to arrange for this removal.  
 %
+%    TEMP NOTE: maybe a ‘nobreak’ should also be added?
+%
+%    [FMi:]
+%      sounds wrong to me, why?  
+%      [CCC:] See email: because the hook may add some material,
+%                such as glue that might produce an unintended linebreak. 
+%    [FMi:]
+%
+%
 %    There is not much point in checking if there was really a glue
 %    item at the end of the horizontal list, instead we simply try to
 %    remove one using \cs{tex_unskip:D}, if there wasn't one this will
@@ -1020,12 +1044,12 @@
 %    \begin{macrocode}
          \tex_unskip:D
 %    \end{macrocode}
-%    The we execute the public hook (which may add final typesetting
-%    material) followed by the kernel hook we need for adding tagging
+%    We then execute the public hook (which may add some final typeset
+%    material) followed by the kernel hook that we need for adding tagging
 %    support. None of this is supposed to change the mode---at the
 %    moment we make only a very simple test for this, more devious
-%      changes go unnoticed, but too bad, that will then probably
-%      badly backfire.
+%      changes go unnoticed, but too bad as they will then probably
+%      backfire badly.
 %    \begin{macrocode}
          \hook_use:n{para/end}
          \@kernel at after@para at end
@@ -1032,13 +1056,13 @@
          \mode_if_horizontal:TF {
 %    \end{macrocode}
 %    The final action (before getting to the point where
-%    \cs{tex_par:D} is called) is to add a glue item so that the
-%    primitive is prevented from removing glue (if there was some). If
-%      we don't do this and the
-%    horizontal list ended in several glue items we would end up  with
-%    removing two instead of just the last one, which would be wrong.
-%    We use glue (rather than a kern) as that will be removed by the primitive
-%    par.
+%    \cs{tex_par:D} is called) is to add an extra glue item so that the
+%    primitive is prevented from removing intended glue
+%    (if there was some). If we don't do this and the
+%    horizontal list ends in several glue items we would end up removing 
+%    two glue items instead of just the last one, which would be wrong.  
+%    We use glue (rather than a kern) as that will be removed by the 
+%    primitive.
 %
 %    There is however one other \TeX{} optimization that hurts: in a
 %    sequence like this \verb=$$ ... $$ \par=  \TeX{} will be in
@@ -1045,13 +1069,19 @@
 %    horizontal mode after the display, ready to receive further
 %    paragraph text, but since the \cs{par} follows immediately there
 %    is a ``null'' paragraph at the end and \TeX{} simply throws that
-%    away. The space between \verb=$$= and \cs{par} got already
+%    away. 
+%    The space between \verb=$$= and \cs{par} got already
 %    dropped during the display processing so the \cs{par} is not
 %    removing any space and appending \cs{parfillskip}, instead it
-%    simply goes silently to vmode. Now if we would have added something (to
+%    simply goes silently to vmode. 
+%
+%    TEMP NOTE: Is this actually how it works? 
+%       For any current definition of par?
+%
+%    Now if we would have added something (to
 %    prevent glue removal) that would look to \TeX{} like material
 %    after the display and so we would end up with an empty paragraph
-%    just containing \cs{parfillskip}.
+%    just containing a penalty and \cs{parfillskip}.
 %
 %    We therefore check if the current hlist does end in glue
 %    (\cs{tex_lastnodetype:D} has the value \texttt{11}) and
@@ -1066,7 +1096,7 @@
 %    To run the \hook{para/after} hook we first end the
 %    paragraph. This means that the \cs{tex_par:D} at the very end is
 %    unnecessary but executing it there unnecessarily is better than
-%    having code that test for all the different mode possibilities.
+%    having code that tests for all the different mode possibilities.
 %    \begin{macrocode}
            \tex_par:D
            \hook_use:n{para/after}
@@ -1073,8 +1103,9 @@
            \@kernel at after@para at after
          }
 %    \end{macrocode}
-%    If we haven't been in horizontal mode then the earlier hook
-%    \hook{para/end} is at fault and we report that.
+%    If we were not horizontal mode (the F case from above) 
+%    then the earlier hook
+%    \hook{para/end} must have been at fault, so we report that.
 %    \begin{macrocode}
          { \msg_error:nnnn { hooks }{ para-mode }{end}{horizontal} }
 %    \end{macrocode}
@@ -1083,7 +1114,7 @@
     }
   }
 %    \end{macrocode}
-%
+%     And then we can use the primitive to truly end the paragraph.
 %    \begin{macrocode}
   \tex_par:D
 }
@@ -1160,10 +1191,13 @@
 %  \begin{macro}[int]{\@@par}
 %
 %    Having the new default definition for \cs{par} we also have to
-%    set it up so that it gets used. This is needed in three places
+%    set it up so that it gets used. This involves three commands:
 %    \cs{par}, \cs{@@par} (to which \LaTeX{} resets \cs{par}
-%    occasionally) and \cs{endgraf} which is another name for the
+%    occasionally) and \cs{endgraf}, which is another name for the
 %    ``default'' action of \cs{par}.
+%
+%    TEMP NOTE: re endgraf again.
+%
 %    \begin{macrocode}
 \cs_set_eq:NN \par     \para_end:
 \cs_set_eq:NN \@@par   \para_end:
@@ -1235,6 +1269,16 @@
 %<latexrelease>\cs_set_eq:NN \@@par   \tex_par:D
 %<latexrelease>\cs_set_eq:NN \endgraf \tex_par:D
 %<latexrelease>
+%    \end{macrocode}
+%    We also need to clean up the primitive ``everypar'' as that
+%    should no longer execute any code by default. And, of course,
+%    make \cs{everypar} become the primitive again.
+% \changes{v1.0k}{2021/10/19}{Remove content from \cs{tex_everypar:D}
+%    on rollback}
+%    \begin{macrocode}
+%<latexrelease>\tex_everypar:D {}
+%<latexrelease>\cs_set_eq:NN \everypar \tex_everypar:D
+%<latexrelease>
 %<latexrelease>\EndModuleRelease
 \ExplSyntaxOff
 %</2ekernel|latexrelease>

Modified: trunk/Master/texmf-dist/source/latex-dev/base/ltvers.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex-dev/base/ltvers.dtx	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/source/latex-dev/base/ltvers.dtx	2021-10-22 21:41:02 UTC (rev 60842)
@@ -115,7 +115,7 @@
    {2021-11-15}
 %</2ekernel|latexrelease>
 %<*2ekernel>
-\def\patch at level{-2}
+\def\patch at level{-3}
 %    \end{macrocode}
 %
 % \begin{macro}{\development at branch@name}

Modified: trunk/Master/texmf-dist/source/latex-dev/base/makeindx.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex-dev/base/makeindx.dtx	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/source/latex-dev/base/makeindx.dtx	2021-10-22 21:41:02 UTC (rev 60842)
@@ -121,7 +121,7 @@
 %    \begin{macrocode}
 %<makeidx>\ProvidesPackage{makeidx}
 %<showidx>\ProvidesPackage{showidx}
-                [2014/09/29 v1.0m Standard LaTeX package]
+                [2021/10/04 v1.0m Standard LaTeX package]
 %    \end{macrocode}
 %
 % \subsection{Makeidx}
@@ -261,7 +261,7 @@
 %
 % \begin{macro}{\raggedbottom}
 % \begin{macro}{\flushbottom}
-%    The definition of these macros from \texttt{latex.dtx} is changed
+%    The definitions of these macros from the \LaTeX{} format are changed
 %    here to add the execution of |\@mkidx| to |\@texttop|, which is
 %    executed at the top of each page.
 %    \begin{macrocode}

Modified: trunk/Master/texmf-dist/source/latex-dev/base/preload.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex-dev/base/preload.dtx	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/source/latex-dev/base/preload.dtx	2021-10-22 21:41:02 UTC (rev 60842)
@@ -45,7 +45,7 @@
 %<+tex> \ProvidesFile{preload.ltx}
 % \fi
 %       \ProvidesFile{preload.dtx}
-         [2014/09/29 v2.1g LaTeX Kernel (Font Preloading)]
+         [2021/10/04 v2.1g LaTeX Kernel (Font Preloading)]
 %
 %
 %
@@ -179,7 +179,7 @@
 %    We begin by loading the math extension font (cmex10)
 %    and the \LaTeX{} line and circle fonts.
 %    It is necessary to do this explicitly since these are
-%    used by \texttt{lplain.tex} and \texttt{latex.tex}.
+%    used by the \LaTeX{} format.
 %    Since the internal font name contains |/| characters
 %    and digits we construct the name via |\csname|.
 %    These are the only fonts (!) that must be loaded in this file.

Modified: trunk/Master/texmf-dist/source/latex-dev/base/slides.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex-dev/base/slides.dtx	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/source/latex-dev/base/slides.dtx	2021-10-22 21:41:02 UTC (rev 60842)
@@ -53,7 +53,7 @@
 %<*driver>
        \ProvidesFile{slides.drv}
 %</driver>
-              [2020/11/23 v2.4b
+              [2021/10/04 v2.4b
 %<+class>               Standard LaTeX document class]
 %<+cmd>               SLiTeX definitions]
 %    \end{macrocode}
@@ -1342,7 +1342,7 @@
 %
 % \begin{environment}{description}
 %    The description environment is defined here -- while the itemize
-%    and enumerate environments are defined in \file{latex.dtx}.
+%    and enumerate environments are defined in the \LaTeX{} format.
 %
 %    \begin{macrocode}
 \newenvironment{description}{\list{}{\labelwidth\z@
@@ -1373,7 +1373,7 @@
 % \begin{macro}{\theenumii}
 % \begin{macro}{\theenumiii}
 % \begin{macro}{\theenumiv}
-%    The counters are already defined in \file{latex.dtx}, but their
+%    The counters are already defined in the \LaTeX{} format, but their
 %    representation is changed here.
 %
 %    \begin{macrocode}
@@ -2349,7 +2349,7 @@
 %
 % \changes{v2.2j}{1994/03/11}{Corrected \cs{@oval}, like previous
 % \changes{v2.4a}{2016/03/29}{Initialize in \cs{@oval}tests added for
-%    latex/4452} change to \file{latex.dtx}.}
+%    latex/4452} change to the \LaTeX{} format.}
 %    \begin{macrocode}
 \def\line(#1,#2)#3{\if at visible\@xarg #1\relax \@yarg #2\relax
 \@linelen #3\unitlength

Modified: trunk/Master/texmf-dist/source/latex-dev/graphics/color.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex-dev/graphics/color.dtx	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/source/latex-dev/graphics/color.dtx	2021-10-22 21:41:02 UTC (rev 60842)
@@ -21,7 +21,7 @@
 %<driver> \ProvidesFile{color.drv}
 % \fi
 %         \ProvidesFile{color.dtx}
-          [2020/02/24 v1.2b Standard LaTeX Color (DPC)]
+          [2021/10/11 v1.3b Standard LaTeX Color (DPC)]
 %
 % \iffalse
 %<*driver>
@@ -78,6 +78,9 @@
 % fixed values whilst this file is being read.
 % \changes{v0.3b}{1994/09/14}
 %     {Save and restore catcodes}
+% \changes{v1.3a}{2021/09/27}
+%     {Use \cs{@backslashchar} in preference to \cs{string} gh/659}
+%
 %    \begin{macrocode}
 \edef\Gin at codes{%
  \catcode`\noexpand\^^A\the\catcode`\^^A\relax
@@ -185,9 +188,11 @@
 % \begin{option}{dvipdfm}
 % \changes{v1.0h}{1999/01/13}
 %     {dvipdfm added}
-% Mark Wick's dvipdfm driver.
+% \changes{v1.3b}{2021/10/11}
+%     {make dvipdfm an alias for dvipdfmx}
+% Mark Wick's dvipdfm driver (now merged with xdvipdfmx).
 %    \begin{macrocode}
-\DeclareOption{dvipdfm}{\def\Gin at driver{dvipdfm.def}}
+\DeclareOption{dvipdfm}{\def\Gin at driver{dvipdfmx.def}}
 %    \end{macrocode}
 % \end{option}
 %
@@ -375,7 +380,7 @@
 %    \begin{macrocode}
 \DeclareOption{usenames}{%
   \def\c at lor@usename#1{%
-    \expandafter\color at named\csname\string\color @#1\endcsname{#1}}}
+    \expandafter\color at named\csname\@backslashchar color @#1\endcsname{#1}}}
 %    \end{macrocode}
 % \end{option}
 %
@@ -432,10 +437,10 @@
 % Finally call |\set at color| to effect the colour change.
 %    \begin{macrocode}
 \def\@declaredcolor#1{%
-  \@ifundefined{\string\color @#1}%
+  \@ifundefined{\@backslashchar color @#1}%
     {\c at lor@error{`#1'}}%
     {\expandafter\let\expandafter\current at color
-     \csname\string\color @#1\endcsname
+     \csname\@backslashchar color @#1\endcsname
      \set at color}%
   \ignorespaces}
 %    \end{macrocode}
@@ -506,7 +511,7 @@
 %    \begin{macrocode}
 \protected\def\nopagecolor{%
   \@ifundefined{no at page@color}{%
-    \PackageInfo{color}{\string\nopagecolor\space is not supported}%
+    \PackageInfo{color}{\@backslashchar nopagecolor\space is not supported}%
   }{%
     \no at page@color
   }%
@@ -545,10 +550,10 @@
 \protected\def\definecolor#1#2#3{%
   \@ifundefined{color@#2}%
     {\c at lor@error{model `#2'}}%
-    {\@ifundefined{\string\color @#1}{}%
+    {\@ifundefined{\@backslashchar color @#1}{}%
       {\PackageInfo{color}{Redefining color #1}}%
      \csname color@#2\expandafter\endcsname
-         \csname\string\color @#1\endcsname{#3}}}
+         \csname\@backslashchar color @#1\endcsname{#3}}}
 %    \end{macrocode}
 %  \end{macro}
 %

Modified: trunk/Master/texmf-dist/source/latex-dev/graphics/graphics.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex-dev/graphics/graphics.dtx	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/source/latex-dev/graphics/graphics.dtx	2021-10-22 21:41:02 UTC (rev 60842)
@@ -616,7 +616,7 @@
 %    \end{macrocode}
 % \end{option}
 %
-% \begin{option}{luatex}
+% \begin{option}{dvisvgm}
 % \changes{v1.0r}{2016/05/09}
 %     {dvisvgm added}
 %  dvisvgm driver.

Modified: trunk/Master/texmf-dist/source/latex-dev/tools/array.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex-dev/tools/array.dtx	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/source/latex-dev/tools/array.dtx	2021-10-22 21:41:02 UTC (rev 60842)
@@ -33,7 +33,7 @@
 %<+package>\DeclareCurrentRelease{}{2020-10-01}
 %<+package>
 %<+package>\ProvidesPackage{array}
-%<+package>         [2021/07/12 v2.5f Tabular extension package (FMi)]
+%<+package>         [2021/10/04 v2.5f Tabular extension package (FMi)]
 %
 % \fi
 %
@@ -927,12 +927,12 @@
 %    \textsf{token} is stored in the
 %    \textsf{count} register =\@lastchclass=.
 %    All of the mentioned registers are already allocated in
-%    \texttt{latex.tex},
+%    the \LaTeX{} format,
 %    which is the reason why the following three lines of code are
 %    commented out.
 %    Later throughout the text I will not mention it again explicitly
 %    whenever I use a =%= sign. These parts are already defined in
-%    \texttt{latex.tex}.
+%    the \LaTeX{} format.
 %    \begin{macrocode}
 % \newcount \@chclass
 % \newcount \@chnum

Modified: trunk/Master/texmf-dist/source/latex-dev/tools/multicol.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex-dev/tools/multicol.dtx	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/source/latex-dev/tools/multicol.dtx	2021-10-22 21:41:02 UTC (rev 60842)
@@ -98,7 +98,7 @@
 %<driver> \ProvidesFile{multicol.drv}
 % \fi
 %         \ProvidesFile{multicol.dtx}
-          [2021/07/06 v1.8z  multicolumn formatting (FMi)]
+          [2021/10/08 v1.9a  multicolumn formatting (FMi)]
 %
 %
 %%
@@ -564,6 +564,13 @@
 % forced into the second column  (resulting in some white
 % space between paragraphs in the first column).
 %
+% From version 1.9 onwards \cs{columnbreak} accepts an optional
+% argument (just like \cs{pagebreak}) in which you can specify the
+% desirability to break the column at that point: supported values are
+% \texttt{1} to \texttt{4}. This version also adds \cs{newcolumn}
+% which forces a column break but runs the column short (comparible to
+% \cs{newpage}). 
+%
 % \subsection{Floats inside a \mc{} environment}
 %
 % Within the \mc{} environment the usual star float commands are
@@ -981,7 +988,8 @@
 % \changes{v1.8x}{2019/10/15}{Use \cs{@maxdepth} not \cs{maxdepth} (gh/190)}
 %    \begin{macrocode}
 \let\mc at gridwarn\maxdimen
-\DeclareOption{grid}{\def\mc at gridwarn{\@maxdepth}}
+\DeclareOption{grid}
+    {\def\mc at gridwarn{\@maxdepth}}
 %    \end{macrocode}
 %
 % \changes{v1.8e}{2014/04/23}{Support \cs{docolaction}}
@@ -1071,7 +1079,8 @@
 % \changes{v1.6e}{2004/02/14}{Avoid self-referencing definition of
 %    \cs{@footnotetext} (pr/3618)}.
 %    \begin{macrocode}
-     \ifx\@footnotetext\mult at footnotetext\else
+     \ifx\@footnotetext\mult at footnotetext
+     \else
        \let\orig at footnotetext\@footnotetext
        \let\@footnotetext\mult at footnotetext
      \fi
@@ -1512,10 +1521,13 @@
    \def\clearpage{%
      \ifx\@deferlist\@empty\else
        \PackageError{multicol}%
-          {Deferred floats not cleared}%
-          {A \string\clearpage\space inside multicols acts like
-           \string\newpage\space and doesn't clear floats.\MessageBreak
-           Move it before the multicols environment if you need it.}%
+        {Deferred floats not cleared}%
+        {A \string\clearpage\space inside
+         multicols acts like
+         \string\newpage\space and doesn't
+         clear floats.\MessageBreak
+         Move it before the multicols
+         environment if you need it.}%
      \fi
     \newpage}%
 %    \end{macrocode}
@@ -1701,7 +1713,8 @@
 %   for later.
 % \changes{v1.8r}{2018/01/28}{Macro added}
 %    \begin{macrocode}
-\mathchardef\@Mvi=10006  % 10005 is \columnbreak
+\mathchardef\@Mvi=10006  % 10005 is
+                         % \columnbreak
 %    \end{macrocode}
 %  \end{macro}
 %
@@ -1724,7 +1737,8 @@
 % \changes{v1.8c}{2013/11/03}{Add \cs{color at endgroup} to prevent color leak}
 % \changes{v1.8f}{2014/06/19}{Discard spaces before adding \cs{color at endgroup}}
 %    \begin{macrocode}
-    \remove at discardable@items\color at endgroup\egroup
+    \remove at discardable@items
+    \color at endgroup\egroup
 %    \end{macrocode}
 %    Now we call |\balance at columns| the routine that balances material
 %    stored in the box |\mult at box|.
@@ -1754,7 +1768,7 @@
       {Restore kept marks to\MessageBreak
        first: \meaning\kept at firstmark
        \MessageBreak bot\space\space:
-                     \meaning\kept at botmark }%
+              \meaning\kept at botmark }%
 %</marktrace>
 %    \end{macrocode}
 %    This finishes the code for the ``boxed'' case.
@@ -2203,7 +2217,7 @@
 % \changes{v1.8x}{2019/10/15}{Use \cs{@maxdepth} not \cs{maxdepth} (gh/190)}
 %    \begin{macrocode}
 \def\vfilmaxdepth{\vskip \z@ \@plus .0001fil
-                           \@minus \@maxdepth}
+                         \@minus \@maxdepth}
 %    \end{macrocode}
 % \end{macro}
 %
@@ -2335,7 +2349,8 @@
             \setbox\count@
                  \vbox to\dimen@
                   {\unvbox\count@
-                   \ifshr at nking\vfilmaxdepth\fi}%
+                   \ifshr at nking
+                    \vfilmaxdepth\fi}%
            }%
 %    \end{macrocode}
 %    Then the last column follows.
@@ -2615,7 +2630,8 @@
 % \changes{v1.8r}{2018/01/28}{Handling end of env through special penalty}
 %    \begin{macrocode}
        \ifnum\outputpenalty = -\@Mvi
-         \mult at info\@ne{End penalty of multicols seen}%
+         \mult at info\@ne{End penalty of
+                        multicols seen}%
 %    \end{macrocode}
 %    If we are at this point then we have to run the balancing code
 %    (which was previously its own output routine). First we pretend
@@ -2626,7 +2642,9 @@
 %    in a better way; basically it is like this, because of the older
 %    code was using different ORs and I simply reused most of it.
 %    \begin{macrocode}
-         \outputpenalty\@M   % pretend we had a natural forced break
+         \outputpenalty\@M % pretend we had
+                           % a natural
+                           % forced break
          \balance at columns@out
        \else
 %    \end{macrocode}
@@ -2647,7 +2665,8 @@
 %    this is possible with |\xdef|.)
 % \changes{v1.2a}{1990/02/05}{Float boxes freed.}
 %    \begin{macrocode}
-        \xdef\@freelist{\@freelist\@currlist}%
+        \xdef\@freelist{\@freelist
+                        \@currlist}%
         \gdef\@currlist{}%
       \fi
     \fi
@@ -2822,8 +2841,9 @@
 %    |\enlargethispage| command.
 % \changes{v1.8a}{2011/12/20}{Support for \cs{enlargethispage}}
 %    \begin{macrocode}
-     \ifvbox\@kludgeins\insert\@kludgeins
-                        {\unvbox\@kludgeins}\fi
+     \ifvbox\@kludgeins
+        \insert\@kludgeins
+               {\unvbox\@kludgeins}\fi
 %    \end{macrocode}
 %    Then we |\unvbox| the |\partial at page| (which may be void if we
 %    are not processing the first page of this \mc{} environment.
@@ -2833,7 +2853,8 @@
 %    Then we return the first and bottom mark and the gathered
 %    material to the main vertical list.
 %    \begin{macrocode}
-     \return at nonemptymark{first}\kept at firstmark
+     \return at nonemptymark{first}%
+                         \kept at firstmark
      \return at nonemptymark{bot}\kept at botmark
      \page at sofar
 %    \end{macrocode}
@@ -2960,12 +2981,14 @@
 % \changes{v1.8w}{2019/03/01}{Provide minrows counter for balancing}
 %    \begin{macrocode}
    \@tempdima\dimexpr
-       \topskip +\c at minrows\baselineskip-\baselineskip\relax
+      \topskip +\c at minrows\baselineskip
+               -\baselineskip\relax
    \ifnum\dimen@<\@tempdima
      \mult at info\@ne
        {Start value
           \the\dimen@  \space ->
-          \the\@tempdima \space (corrected for minrows)}%
+          \the\@tempdima \space
+          (corrected for minrows)}%
      \dimen@\@tempdima
    \fi
 %    \end{macrocode}
@@ -3466,7 +3489,9 @@
 %    directly at the values of the allocation counters.
 % \changes{v1.8y}{2019/12/09}{Allow for 20 columns (gh/237)}
 %    \begin{macrocode}
-\ifnum\numexpr \count20-\count14-1<41   % = 2 * 20 + 1
+\ifnum\numexpr
+        \count20-\count14-1<41
+        % this is = 2 * 20 + 1
   \count14=\@cclv
 \fi
 %    \end{macrocode}
@@ -4071,34 +4096,65 @@
 %
 %  \begin{macro}{\columnbreak}
 % \changes{v1.5u}{1999/05/25}{Macro added}
+% \changes{v1.9a}{2021/10/08}{Added optional argument for conditional break}
 %    |\columnbreak| is modeled after |\pagebreak| except that we
 %    generate a penalty -10005.
 %    \begin{macrocode}
 \mathchardef\@Mv=10005
-\def\columnbreak{%
+\newcommand\columnbreak[1][4]{%
 %    \end{macrocode}
 %    We have to ensure that it is only used within a \mc{}
 %    environment since if that penalty would be seen by the unmodified
 %    \LaTeX{} output routine strange things would happen.
 %    \begin{macrocode}
- \ifnum\col at number<\tw@
-  \PackageError{multicol}%
-   {\noexpand\columnbreak outside multicols}%
-   {This command can only be used within
-    a multicols or multicols* environment.}%
- \else
-  \ifvmode
-    \penalty -\@Mv\relax
+   \ifnum\col at number<\tw@
+   \PackageError{multicol}%
+    {\noexpand\newcolumn outside multicols}%
+    {This command can only be used within
+     a multicols or multicols* environment.}%
+    \else
+%    \end{macrocode}
+%    Increasingly lower penalty based on argument value. This is like
+%    \cs{pagebreak} but we use other penalty values are the \LaTeX{}
+%    defaults aree rather pointless for pagination.
+%    \begin{macrocode}
+    \edef\mc at break@pen
+	{-\ifcase#1\@m\or 3333\or 6666\or 9999\else\@Mv\fi\relax}%
+    \ifvmode
+     \penalty \mc at break@pen
+   \else
+     \@bsphack
+     \vadjust{\penalty \mc at break@pen}%
+     \@esphack
+   \fi
+  \fi}
+%    \end{macrocode}
+%  \end{macro}
+%
+%
+%
+%  \begin{macro}{\newcolumn}
+% \changes{v1.9a}{2021/10/08}{Macro added}
+%    This is modeled after \cs{newpage} but for column breaks.
+%    \begin{macrocode}
+\newcommand\newcolumn{%
+   \ifnum\col at number<\tw@
+   \PackageError{multicol}%
+    {\noexpand\newcolumn outside multicols}%
+    {This command can only be used within
+     a multicols or multicols* environment.}%
   \else
-    \@bsphack
-    \vadjust{\penalty -\@Mv\relax}%
-    \@esphack
-  \fi
- \fi}
+    \ifvmode
+     \nobreak\vfill\penalty -\@Mv\relax
+   \else
+     \@bsphack
+     \vadjust{\nobreak\vfill\kern\z@\penalty -\@Mv\relax}%
+     \@esphack
+   \fi
+  \fi}
 %    \end{macrocode}
 %  \end{macro}
 %
-%
 %  \begin{macro}{\colbreak at box}
 % \changes{v1.5u}{1999/05/25}{Macro added}
 %    Need a box to collect the galley up to the column break.

Modified: trunk/Master/texmf-dist/tex/latex-dev/amsmath/amsmath.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex-dev/amsmath/amsmath.sty	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/tex/latex-dev/amsmath/amsmath.sty	2021-10-22 21:41:02 UTC (rev 60842)
@@ -27,7 +27,7 @@
 \providecommand\DeclareCurrentRelease[2]{}
 \DeclareRelease{}{2018-12-01}{amsmath-2018-12-01.sty}
 \DeclareCurrentRelease{}{2019-04-01}
-\ProvidesPackage{amsmath}[2021/08/28 v2.17k AMS math features]
+\ProvidesPackage{amsmath}[2021/10/15 v2.17l AMS math features]
 \edef\@temp{\catcode 96=\number\catcode 96 }
 \catcode\string `\`=12
 \def\do#1{\catcode\number`#1=\number\catcode`#1}
@@ -1209,7 +1209,9 @@
 \fi
 \newcommand{\thetag}{\leavevmode\tagform@}
 \let\df at tag\@empty
-\def\make at df@tag{\@ifstar\make at df@tag@@\make at df@tag@@@}
+\def\make at df@tag{%
+  \def\@currentcounter{equation}%
+  \@ifstar\make at df@tag@@\make at df@tag@@@}
 \def\make at df@tag@@#1{%
   \gdef\df at tag{\maketag@@@{#1}\def\@currentlabel{#1}}}
 \def\make at df@tag@@@#1{\gdef\df at tag{\tagform@{#1}%

Modified: trunk/Master/texmf-dist/tex/latex-dev/base/article.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex-dev/base/article.cls	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/tex/latex-dev/base/article.cls	2021-10-22 21:41:02 UTC (rev 60842)
@@ -43,7 +43,7 @@
 %% extension .ins) which are part of the distribution.
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 \ProvidesClass{article}
-              [2021/09/11 v1.4n
+              [2021/10/04 v1.4n
  Standard LaTeX document class]
 \newcommand\@ptsize{}
 \newif\if at restonecol

Modified: trunk/Master/texmf-dist/tex/latex-dev/base/bk10.clo
===================================================================
--- trunk/Master/texmf-dist/tex/latex-dev/base/bk10.clo	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/tex/latex-dev/base/bk10.clo	2021-10-22 21:41:02 UTC (rev 60842)
@@ -42,7 +42,7 @@
 %% and covered by LPPL is defined by the unpacking scripts (with
 %% extension .ins) which are part of the distribution.
 \ProvidesFile{bk10.clo}
-              [2021/09/11 v1.4n
+              [2021/10/04 v1.4n
       Standard LaTeX file (size option)]
 \renewcommand\normalsize{%
    \@setfontsize\normalsize\@xpt\@xiipt

Modified: trunk/Master/texmf-dist/tex/latex-dev/base/bk11.clo
===================================================================
--- trunk/Master/texmf-dist/tex/latex-dev/base/bk11.clo	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/tex/latex-dev/base/bk11.clo	2021-10-22 21:41:02 UTC (rev 60842)
@@ -42,7 +42,7 @@
 %% and covered by LPPL is defined by the unpacking scripts (with
 %% extension .ins) which are part of the distribution.
 \ProvidesFile{bk11.clo}
-              [2021/09/11 v1.4n
+              [2021/10/04 v1.4n
       Standard LaTeX file (size option)]
 \renewcommand\normalsize{%
    \@setfontsize\normalsize\@xipt{13.6}%

Modified: trunk/Master/texmf-dist/tex/latex-dev/base/bk12.clo
===================================================================
--- trunk/Master/texmf-dist/tex/latex-dev/base/bk12.clo	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/tex/latex-dev/base/bk12.clo	2021-10-22 21:41:02 UTC (rev 60842)
@@ -42,7 +42,7 @@
 %% and covered by LPPL is defined by the unpacking scripts (with
 %% extension .ins) which are part of the distribution.
 \ProvidesFile{bk12.clo}
-              [2021/09/11 v1.4n
+              [2021/10/04 v1.4n
       Standard LaTeX file (size option)]
 \renewcommand\normalsize{%
    \@setfontsize\normalsize\@xiipt{14.5}%

Modified: trunk/Master/texmf-dist/tex/latex-dev/base/book.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex-dev/base/book.cls	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/tex/latex-dev/base/book.cls	2021-10-22 21:41:02 UTC (rev 60842)
@@ -43,7 +43,7 @@
 %% extension .ins) which are part of the distribution.
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 \ProvidesClass{book}
-              [2021/09/11 v1.4n
+              [2021/10/04 v1.4n
  Standard LaTeX document class]
 \newcommand\@ptsize{}
 \newif\if at restonecol

Modified: trunk/Master/texmf-dist/tex/latex-dev/base/doc.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex-dev/base/doc.sty	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/tex/latex-dev/base/doc.sty	2021-10-22 21:41:02 UTC (rev 60842)
@@ -43,7 +43,7 @@
 %% extension .ins) which are part of the distribution.
 \NeedsTeXFormat{LaTeX2e}[1994/12/01]
  \ProvidesPackage{doc}
-  [2021/05/28 v2.1n
+  [2021/10/04 v2.1n
    Standard LaTeX documentation package (FMi)]
 %%
 %% Package `doc' to use with LaTeX 2e

Modified: trunk/Master/texmf-dist/tex/latex-dev/base/fleqn.clo
===================================================================
--- trunk/Master/texmf-dist/tex/latex-dev/base/fleqn.clo	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/tex/latex-dev/base/fleqn.clo	2021-10-22 21:41:02 UTC (rev 60842)
@@ -104,6 +104,7 @@
 \renewenvironment{eqnarray}{%
     \stepcounter{equation}%
     \def\@currentlabel{\p at equation\theequation}%
+    \def\@currentcounter{equation}%
     \global\@eqnswtrue\m at th
     \global\@eqcnt\z@
     \tabskip\mathindent

Modified: trunk/Master/texmf-dist/tex/latex-dev/base/latex.ltx
===================================================================
--- trunk/Master/texmf-dist/tex/latex-dev/base/latex.ltx	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/tex/latex-dev/base/latex.ltx	2021-10-22 21:41:02 UTC (rev 60842)
@@ -692,7 +692,7 @@
 \def\fmtname{LaTeX2e}
 \edef\fmtversion
    {2021-11-15}
-\def\patch at level{-2}
+\def\patch at level{-3}
 \edef\development at branch@name{develop \the\year-\the\month-\the\day}
 \iffalse
 \def\reserved at a#1/#2/#3\@nil{%
@@ -4305,8 +4305,8 @@
 \ExplSyntaxOff
 
 %%% From File: lthooks.dtx
-\def\lthooksversion{v1.0r}
-\def\lthooksdate{2021/09/06}
+\def\lthooksversion{v1.0s}
+\def\lthooksdate{2021/09/28}
 \ExplSyntaxOn
 \bool_new:N \g__hook_debug_bool
 \cs_new_eq:NN \__hook_debug:n \use_none:n
@@ -5587,14 +5587,19 @@
 %% File: ltcmdhooks.dtx (C) Copyright 2020-2021
 %%       Frank Mittelbach, Phelype Oleinik, LaTeX Team
 %%% From File: ltcmdhooks.dtx
-\def\ltcmdhooksversion{v1.0d}
-\def\ltcmdhooksdate{2021/08/25}
+\def\ltcmdhooksversion{v1.0f}
+\def\ltcmdhooksdate{2021/10/20}
 \ExplSyntaxOn
 \tl_new:N \g_hook_patch_action_list_tl
 \int_new:N \l__hook_patch_num_args_int
 \tl_new:N \l__hook_patch_prefixes_tl
-\tl_new:N \l__hook_patch_param_text_tl
-\tl_new:N \l__hook_patch_replacement_tl
+\tl_new:N \l__hook_param_text_tl
+\tl_new:N \l__hook_replace_text_tl
+\tl_const:Nn \c__hook_hash_tl { # # }
+\cs_new_eq:NN \__hook_exp_not:NN ?
+\cs_new_eq:NN \__hook_def_cmd:w ?
+\quark_new:N \q__hook_recursion_tail
+\quark_new:N \q__hook_recursion_stop
 \prop_new:N \g__hook_delayed_patches_prop
 \cs_new_protected:Npn \__hook_patch_debug:x #1
   { \__hook_debug:n { \iow_term:x { [lthooks]~#1 } } }
@@ -5725,19 +5730,40 @@
       }
     \int_compare:nNnTF { \l__hook_patch_num_args_int } > { \c_zero_int }
       {
-        \tl_set:Nx \l__hook_patch_param_text_tl
-          { \bool_if:NTF #1 { [####1] } {  ####1  } }
-        \tl_set:Nx \l__hook_patch_replacement_tl
-          { \bool_if:NTF #1 { [####1] } { {####1} } }
+        \tl_set:Nx \l__hook_tmpa_tl { \bool_if:NTF #1 { [ ] } { { } } }
         \int_step_inline:nnn { 2 } { \l__hook_patch_num_args_int }
+          { \tl_put_right:Nn \l__hook_tmpa_tl { { } } }
+        \exp_args:NNo \exp_args:No \__hook_if_has_hash:nTF
+            { \exp_after:wN #2 \l__hook_tmpa_tl }
+          { \cs_set_eq:NN \__hook_exp_not:n \exp_not:n }
+          { \cs_set_eq:NN \__hook_exp_not:n \use:n }
+        \cs_set_protected:Npn \__hook_tmp:w ##1 ##2
           {
-            \tl_put_right:Nn \l__hook_patch_param_text_tl    { ## ####1 }
-            \tl_put_right:Nn \l__hook_patch_replacement_tl { { ## ####1 } }
+            ##1 \l__hook_param_text_tl   { \use:n ##2 }
+            ##1 \l__hook_replace_text_tl { \__hook_exp_not:n {##2} }
           }
+        \bool_if:NTF #1
+          { \__hook_tmp:w \tl_set:Nx { [ \c__hook_hash_tl 1 ] } }
+          { \__hook_tmp:w \tl_set:Nx { { \c__hook_hash_tl 1 } } }
+        \int_step_inline:nnn { 2 } { \l__hook_patch_num_args_int }
+          { \__hook_tmp:w \tl_put_right:Nx { { \c__hook_hash_tl ##1 } } }
+        \tl_set:Nx \l__hook_replace_text_tl
+          { \exp_not:N #2 \exp_not:V \l__hook_replace_text_tl }
+        \tl_set:Nx \l__hook_replace_text_tl
+          {
+            \token_if_eq_meaning:NNTF \__hook_exp_not:n \exp_not:n
+              { \exp_args:NNV \exp_args:No \__hook_double_hashes:n }
+              { \exp_args:NV \exp_not:o }
+                  \l__hook_replace_text_tl
+          }
+        \cs_set_eq:NN \__hook_def_cmd:w \tex_gdef:D
+        \cs_set_eq:NN \__hook_exp_not:NN \prg_do_nothing:
       }
       {
-        \tl_clear:N \l__hook_patch_param_text_tl
-        \tl_clear:N \l__hook_patch_replacement_tl
+        \tl_clear:N \l__hook_param_text_tl
+        \tl_set_eq:NN \l__hook_replace_text_tl #2
+        \cs_set_eq:NN \__hook_def_cmd:w \tex_xdef:D
+        \cs_set:Npn \__hook_exp_not:NN ##1 { \exp_not:N ##1 \exp_not:N }
       }
     \group_begin:
       \int_set:Nn \tex_escapechar:D { `\/ }
@@ -5749,18 +5775,22 @@
         }
     \use:x
       {
-        \l__hook_patch_prefixes_tl \tex_def:D
-            \exp_not:N #2 \exp_not:V \l__hook_patch_param_text_tl
-          {
-            \str_if_eq:nnT {#4} { before }
-              { \exp_not:N \UseHook { cmd / #3 / #4 } }
-            \exp_args:No \exp_not:o
-              { \exp_after:wN #2 \l__hook_patch_replacement_tl }
-            \str_if_eq:nnT {#4} { after }
-              { \exp_not:N \UseHook { cmd / #3 / #4 } }
-          }
+        \__hook_redefine_with_hooks:Nnnn \exp_not:N #2
+        \str_if_eq:nnTF {#4} { after }
+          { \use_ii_i:nn }
+          { \use:nn }
+            { { \__hook_exp_not:NN \exp_not:N \UseHook { cmd / #3 / #4 } } }
+            { { } }
+            { \__hook_exp_not:NN \exp_not:V \l__hook_replace_text_tl }
       }
   }
+\cs_new_protected:Npn \__hook_redefine_with_hooks:Nnnn #1 #2 #3 #4
+  {
+    \l__hook_patch_prefixes_tl
+      \exp_after:wN \__hook_def_cmd:w
+        \exp_after:wN #1 \l__hook_param_text_tl
+      { #2  #4  #3 }
+  }
 \cs_new:Npn \__hook_make_prefixes:w / #1 /
   {
     \tl_if_empty:nF {#1}
@@ -5769,6 +5799,58 @@
         \__hook_make_prefixes:w /
       }
   }
+\prg_new_conditional:Npnn \__hook_if_has_hash:n #1 { TF }
+  { \__hook_if_has_hash:w #1 ## \s__hook_mark }
+\cs_new:Npn \__hook_if_has_hash:w #1
+  {
+    \tl_if_single_token:nTF {#1}
+      {
+        \token_if_eq_catcode:NNTF ## #1
+          { \__hook_if_has_hash_check:w }
+          { \__hook_if_has_hash:w }
+      }
+      { \__hook_if_has_hash:w #1 }
+  }
+\cs_new:Npn \__hook_if_has_hash_check:w #1 \s__hook_mark
+  { \tl_if_empty:nTF {#1} { \prg_return_false: } { \prg_return_true: } }
+\cs_new:Npn \__hook_double_hashes:n #1
+  { \__hook_double_hashes:w #1 \q__hook_recursion_tail \q__hook_recursion_stop }
+\cs_new:Npn \__hook_double_hashes:w #1 \q__hook_recursion_stop
+  {
+    \tl_if_head_is_N_type:nTF {#1}
+      { \__hook_double_hashes_output:N }
+      {
+        \tl_if_head_is_group:nTF {#1}
+          { \__hook_double_hashes_group:n }
+          { \__hook_double_hashes_space:w }
+      }
+    #1 \q__hook_recursion_stop
+  }
+\cs_new:Npn \__hook_double_hashes_output:N #1
+  {
+    \if_meaning:w \q__hook_recursion_tail #1
+      \__hook_double_hashes_stop:w
+    \fi:
+    \if_meaning:w \c__hook_hash_tl #1
+      \use_i:nnnn
+    \fi:
+    \use:n
+      {
+        \if_catcode:w ## \exp_not:N #1
+          \exp_after:wN \use_ii:nnnn
+        \fi:
+        \use_none:n
+          { \exp_not:n { #1 #1 } }
+      }
+    \exp_not:N #1
+    \__hook_double_hashes:w
+  }
+\cs_new:Npn \__hook_double_hashes_stop:w #1 \q__hook_recursion_stop { \fi: }
+\cs_new:Npn \__hook_double_hashes_group:n #1
+  { { \__hook_double_hashes:n {#1} } \__hook_double_hashes:w }
+\exp_last_unbraced:NNo
+\cs_new:Npn \__hook_double_hashes_space:w \c_space_tl
+  { ~ \__hook_double_hashes:w }
 \cs_new_protected:Npn \__hook_retokenize_patch:Nnn #1 #2 #3
   {
     \__hook_patch_debug:x { ..~command~can~only~be~patched~by~rescanning }
@@ -5869,7 +5951,7 @@
           { \exp_not:N \__hook_tmp:w \token_to_meaning:N #1 \s__hook_mark }
       }
     \tl_rescan:nV { #4 \__hook_patch_required_catcodes: } \l__hook_tmpa_tl
-    \cs_set_eq:NN #1 \kerneltmpDoNotUse
+    \cs_gset_eq:NN #1 \kerneltmpDoNotUse
   }
 \msg_new:nnnn { hooks } { cant-patch }
   {
@@ -6208,8 +6290,8 @@
 \def\@restorepar{\def\par{\@par}}
 %% File: ltpara.dtx (C) Copyright 2020-2021
 %%% From File: ltpara.dtx
-\def\ltparaversion{v1.0j}
-\def\ltparadate{2021/09/18}
+\def\ltparaversion{v1.0k}
+\def\ltparadate{2021/10/19}
 
 
 \ExplSyntaxOn
@@ -6709,6 +6791,7 @@
 \expandafter\reserved at a
 \expandafter{\detokenize{.tex}}
 \def\@include#1 {%
+\ifx\@nodocument\relax
   \clearpage
   \if at filesw
     \immediate\write\@mainaux{\string\@input{#1.aux}}%
@@ -6744,7 +6827,12 @@
     \deadcycles\z@
     \@nameuse{cp@#1}%
   \fi
-  \let\@auxout\@mainaux}
+  \let\@auxout\@mainaux
+\else
+\@latex at warning{%
+  \noexpand\include should only be used after \string\begin{document}}%
+\@input@{#1}%
+\fi}
 \NewHook{include/before}
 \NewReversedHook{include/end}
 \NewReversedHook{include/after}
@@ -6957,7 +7045,7 @@
       \global\mathchardef\accent at spacefactor\spacefactor}%
    \let\maybe at load@fontshape\relax
    \let\ignorespaces\relax
-   \accent#1 #2\egroup\spacefactor\accent at spacefactor}
+   \accent#1 #2\egroup\ifmmode\else\spacefactor\accent at spacefactor\fi}
 \let\accent at spacefactor\relax
 \def\hmode at bgroup{\leavevmode\bgroup}
 \def\DeclareTextCompositeCommand#1#2#3#4{%
@@ -8822,11 +8910,22 @@
     \endgroup
   \fi}%
 \@onlypreamble\dorestore at version
+\ifx\c at localmathalphabets\@undefined
+  \newcount\c at localmathalphabets
+  \setcounter{localmathalphabets}{2}
+\fi
 \def\document at select@group#1#2#3#4{%
  \ifx\math at bgroup\bgroup\else\relax\expandafter\@firstofone\fi
  {%
  \ifmmode
    \ifnum\csname c at mv@\math at version\endcsname<\e at mathgroup@top
+     \ifnum \numexpr\e at mathgroup@top-\c at localmathalphabets
+              >\csname c at mv@\math at version\endcsname
+     \else
+       \ifcsname mv@\math at version @frozen\endcsname \else
+         \expandafter\freeze at math@version\expandafter{\math at version}%
+       \fi
+     \fi
      \begingroup
        \escapechar\m at ne
        \getanddefine at fonts{\csname c at mv@\math at version\endcsname}#3%
@@ -8840,8 +8939,8 @@
      \global\advance\csname c at mv@\math at version\endcsname\@ne
    \else
      \let#1\relax
-     \@latex at error{Too many math alphabets used
-                   in version \math at version}%
+     \@latex at error{Too many math alphabets used in
+                   version \math at version}%
         \@eha
   \fi
  \else \expandafter\expandafter\expandafter\non at alpherr\fi
@@ -8848,6 +8947,43 @@
  \expandafter#1\ifx\math at bgroup\bgroup{#4}\else#4\fi
  }%
 }
+\ExplSyntaxOn
+\cs_new_protected:Npn\freeze at math@version #1 {
+  \@font at info{Freeze~ math~ alphabet~ allocation~ in~ version~
+              #1.\MessageBreak
+              Allocated~math~groups:~\int_use:c{ c at mv@ #1 }~
+              (local:~  \int_use:N\c at localmathalphabets)      }
+  \cs_gset_eq:cc { mv@#1 at frozen }{ mv@#1 }
+  \tl_gset:cx { g__nfss_frozen_mv_ #1 _tl }{ \int_use:c { c at mv@#1 } }
+  \group_insert_after:N \__nfss_init_mv_freeze:N \exp_after:wN
+    \group_insert_after:N \cs:w mv@#1 at reset \cs_end:
+  \tl_gput_right:No \check at mathfonts
+       {
+         \exp_after:wN \group_insert_after:N \cs:w mv@#1 at reset \cs_end:
+       }
+  \cs_gset:cpn{mv@#1 at reset}
+     {
+         \int_compare:nNnTF { \int_use:c{c at mv@#1} } >
+                            { \tl_use:c{g__nfss_frozen_mv_ #1 _tl} }
+             {
+               \@font at info{Undo~ math~ alphabet~ allocation~ in~ version~ #1}
+               \cs_gset_eq:cc { mv@#1 }{ mv@#1 at frozen }
+               \int_gset:cn { c at mv@#1 }{ \tl_use:c {g__nfss_frozen_mv_ #1 _tl} }
+               \group_begin:
+                 \cs_set_eq:NN \getanddefine at fonts \use_none:nn
+                 \use:c {mv@#1}
+               \group_end:
+             }
+             {
+               \@font at info{No~ math~ alphabet~ change~ to~ frozen~ version~ #1}
+             }
+    }
+}
+\cs_new_protected:Npn \__nfss_init_mv_freeze:N #1 {%
+  \mode_if_math:T { \group_insert_after:N \__nfss_init_mv_freeze:N
+                    \group_insert_after:N } #1
+}
+\ExplSyntaxOff
 \def\process at table{%
     \def\cdp at elt##1##2##3##4{%
         \@font at info{Checking defaults for
@@ -8893,6 +9029,7 @@
 }
 \@onlypreamble\process at table
 \def\DeclareMathVersion#1{%
+  \@namedef{g__nfss_frozen_mv_#1_tl}{}%
   \expandafter\new at mathversion\csname mv@#1\endcsname}
 \@onlypreamble\DeclareMathVersion
 \def\new at mathversion#1{%
@@ -11230,6 +11367,7 @@
 \def\eqnarray{%
    \stepcounter{equation}%
    \def\@currentlabel{\p at equation\theequation}%
+   \def\@currentcounter{equation}%
    \global\@eqnswtrue
    \m at th
    \global\@eqcnt\z@
@@ -11774,6 +11912,7 @@
     \reset at font\footnotesize
     \hsize\columnwidth
     \@parboxrestore
+    \def\@currentcounter{mpfootnote}%
     \protected at edef\@currentlabel
          {\csname p at mpfootnote\endcsname\@thefnmark}%
     \color at begingroup
@@ -13076,6 +13215,7 @@
     \splittopskip\footnotesep
     \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
     \hsize\columnwidth \@parboxrestore
+    \def\@currentcounter{footnote}%
     \protected at edef\@currentlabel{%
        \csname p at footnote\endcsname\@thefnmark
     }%

Modified: trunk/Master/texmf-dist/tex/latex-dev/base/latexrelease.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex-dev/base/latexrelease.sty	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/tex/latex-dev/base/latexrelease.sty	2021-10-22 21:41:02 UTC (rev 60842)
@@ -4441,8 +4441,8 @@
 \catcode`\^^@=\@latexrelease at catcode@null\relax
 
 %%% From File: lthooks.dtx
-\def\lthooksversion{v1.0r}
-\def\lthooksdate{2021/09/06}
+\def\lthooksversion{v1.0s}
+\def\lthooksdate{2021/09/28}
 \ExplSyntaxOn
 \NewModuleRelease{2020/10/01}{lthooks}
                  {The~hook~management~system}
@@ -4844,7 +4844,7 @@
   }
 \cs_new_protected:Npn \__hook_try_declaring_generic_hook:nNNnn #1
   {
-    \__hook_if_file_hook:wTF #1 / \s__hook_mark {#1}
+    \__hook_if_file_hook:wTF #1 / \s__hook_mark
       {
         \exp_args:Ne \__hook_try_declaring_generic_hook_split:nNNnn
           { \exp_args:Ne \__hook_file_hook_normalize:n {#1} }
@@ -5617,7 +5617,7 @@
   }
 \cs_new_protected:Npn \__hook_try_file_hook:n #1
   {
-    \__hook_if_file_hook:wTF #1 / \s__hook_mark {#1}
+    \__hook_if_file_hook:wTF #1 / \s__hook_mark
       {
         \exp_args:Ne \__hook_if_usable_use:n
           { \exp_args:Ne \__hook_file_hook_normalize:n {#1} }
@@ -5997,8 +5997,8 @@
 %% File: ltcmdhooks.dtx (C) Copyright 2020-2021
 %%       Frank Mittelbach, Phelype Oleinik, LaTeX Team
 %%% From File: ltcmdhooks.dtx
-\def\ltcmdhooksversion{v1.0d}
-\def\ltcmdhooksdate{2021/08/25}
+\def\ltcmdhooksversion{v1.0f}
+\def\ltcmdhooksdate{2021/10/20}
 \ExplSyntaxOn
 \NewModuleRelease{2021/06/01}{ltcmdhooks}
                  {The~hook~management~system~for~commands}
@@ -6005,8 +6005,13 @@
 \tl_new:N \g_hook_patch_action_list_tl
 \int_new:N \l__hook_patch_num_args_int
 \tl_new:N \l__hook_patch_prefixes_tl
-\tl_new:N \l__hook_patch_param_text_tl
-\tl_new:N \l__hook_patch_replacement_tl
+\tl_new:N \l__hook_param_text_tl
+\tl_new:N \l__hook_replace_text_tl
+\tl_const:Nn \c__hook_hash_tl { # # }
+\cs_new_eq:NN \__hook_exp_not:NN ?
+\cs_new_eq:NN \__hook_def_cmd:w ?
+\quark_new:N \q__hook_recursion_tail
+\quark_new:N \q__hook_recursion_stop
 \prop_new:N \g__hook_delayed_patches_prop
 \cs_new_protected:Npn \__hook_patch_debug:x #1
   { \__hook_debug:n { \iow_term:x { [lthooks]~#1 } } }
@@ -6154,19 +6159,40 @@
       }
     \int_compare:nNnTF { \l__hook_patch_num_args_int } > { \c_zero_int }
       {
-        \tl_set:Nx \l__hook_patch_param_text_tl
-          { \bool_if:NTF #1 { [####1] } {  ####1  } }
-        \tl_set:Nx \l__hook_patch_replacement_tl
-          { \bool_if:NTF #1 { [####1] } { {####1} } }
+        \tl_set:Nx \l__hook_tmpa_tl { \bool_if:NTF #1 { [ ] } { { } } }
         \int_step_inline:nnn { 2 } { \l__hook_patch_num_args_int }
+          { \tl_put_right:Nn \l__hook_tmpa_tl { { } } }
+        \exp_args:NNo \exp_args:No \__hook_if_has_hash:nTF
+            { \exp_after:wN #2 \l__hook_tmpa_tl }
+          { \cs_set_eq:NN \__hook_exp_not:n \exp_not:n }
+          { \cs_set_eq:NN \__hook_exp_not:n \use:n }
+        \cs_set_protected:Npn \__hook_tmp:w ##1 ##2
           {
-            \tl_put_right:Nn \l__hook_patch_param_text_tl    { ## ####1 }
-            \tl_put_right:Nn \l__hook_patch_replacement_tl { { ## ####1 } }
+            ##1 \l__hook_param_text_tl   { \use:n ##2 }
+            ##1 \l__hook_replace_text_tl { \__hook_exp_not:n {##2} }
           }
+        \bool_if:NTF #1
+          { \__hook_tmp:w \tl_set:Nx { [ \c__hook_hash_tl 1 ] } }
+          { \__hook_tmp:w \tl_set:Nx { { \c__hook_hash_tl 1 } } }
+        \int_step_inline:nnn { 2 } { \l__hook_patch_num_args_int }
+          { \__hook_tmp:w \tl_put_right:Nx { { \c__hook_hash_tl ##1 } } }
+        \tl_set:Nx \l__hook_replace_text_tl
+          { \exp_not:N #2 \exp_not:V \l__hook_replace_text_tl }
+        \tl_set:Nx \l__hook_replace_text_tl
+          {
+            \token_if_eq_meaning:NNTF \__hook_exp_not:n \exp_not:n
+              { \exp_args:NNV \exp_args:No \__hook_double_hashes:n }
+              { \exp_args:NV \exp_not:o }
+                  \l__hook_replace_text_tl
+          }
+        \cs_set_eq:NN \__hook_def_cmd:w \tex_gdef:D
+        \cs_set_eq:NN \__hook_exp_not:NN \prg_do_nothing:
       }
       {
-        \tl_clear:N \l__hook_patch_param_text_tl
-        \tl_clear:N \l__hook_patch_replacement_tl
+        \tl_clear:N \l__hook_param_text_tl
+        \tl_set_eq:NN \l__hook_replace_text_tl #2
+        \cs_set_eq:NN \__hook_def_cmd:w \tex_xdef:D
+        \cs_set:Npn \__hook_exp_not:NN ##1 { \exp_not:N ##1 \exp_not:N }
       }
     \group_begin:
       \int_set:Nn \tex_escapechar:D { `\/ }
@@ -6178,18 +6204,22 @@
         }
     \use:x
       {
-        \l__hook_patch_prefixes_tl \tex_def:D
-            \exp_not:N #2 \exp_not:V \l__hook_patch_param_text_tl
-          {
-            \str_if_eq:nnT {#4} { before }
-              { \exp_not:N \UseHook { cmd / #3 / #4 } }
-            \exp_args:No \exp_not:o
-              { \exp_after:wN #2 \l__hook_patch_replacement_tl }
-            \str_if_eq:nnT {#4} { after }
-              { \exp_not:N \UseHook { cmd / #3 / #4 } }
-          }
+        \__hook_redefine_with_hooks:Nnnn \exp_not:N #2
+        \str_if_eq:nnTF {#4} { after }
+          { \use_ii_i:nn }
+          { \use:nn }
+            { { \__hook_exp_not:NN \exp_not:N \UseHook { cmd / #3 / #4 } } }
+            { { } }
+            { \__hook_exp_not:NN \exp_not:V \l__hook_replace_text_tl }
       }
   }
+\cs_new_protected:Npn \__hook_redefine_with_hooks:Nnnn #1 #2 #3 #4
+  {
+    \l__hook_patch_prefixes_tl
+      \exp_after:wN \__hook_def_cmd:w
+        \exp_after:wN #1 \l__hook_param_text_tl
+      { #2  #4  #3 }
+  }
 \cs_new:Npn \__hook_make_prefixes:w / #1 /
   {
     \tl_if_empty:nF {#1}
@@ -6198,6 +6228,58 @@
         \__hook_make_prefixes:w /
       }
   }
+\prg_new_conditional:Npnn \__hook_if_has_hash:n #1 { TF }
+  { \__hook_if_has_hash:w #1 ## \s__hook_mark }
+\cs_new:Npn \__hook_if_has_hash:w #1
+  {
+    \tl_if_single_token:nTF {#1}
+      {
+        \token_if_eq_catcode:NNTF ## #1
+          { \__hook_if_has_hash_check:w }
+          { \__hook_if_has_hash:w }
+      }
+      { \__hook_if_has_hash:w #1 }
+  }
+\cs_new:Npn \__hook_if_has_hash_check:w #1 \s__hook_mark
+  { \tl_if_empty:nTF {#1} { \prg_return_false: } { \prg_return_true: } }
+\cs_new:Npn \__hook_double_hashes:n #1
+  { \__hook_double_hashes:w #1 \q__hook_recursion_tail \q__hook_recursion_stop }
+\cs_new:Npn \__hook_double_hashes:w #1 \q__hook_recursion_stop
+  {
+    \tl_if_head_is_N_type:nTF {#1}
+      { \__hook_double_hashes_output:N }
+      {
+        \tl_if_head_is_group:nTF {#1}
+          { \__hook_double_hashes_group:n }
+          { \__hook_double_hashes_space:w }
+      }
+    #1 \q__hook_recursion_stop
+  }
+\cs_new:Npn \__hook_double_hashes_output:N #1
+  {
+    \if_meaning:w \q__hook_recursion_tail #1
+      \__hook_double_hashes_stop:w
+    \fi:
+    \if_meaning:w \c__hook_hash_tl #1
+      \use_i:nnnn
+    \fi:
+    \use:n
+      {
+        \if_catcode:w ## \exp_not:N #1
+          \exp_after:wN \use_ii:nnnn
+        \fi:
+        \use_none:n
+          { \exp_not:n { #1 #1 } }
+      }
+    \exp_not:N #1
+    \__hook_double_hashes:w
+  }
+\cs_new:Npn \__hook_double_hashes_stop:w #1 \q__hook_recursion_stop { \fi: }
+\cs_new:Npn \__hook_double_hashes_group:n #1
+  { { \__hook_double_hashes:n {#1} } \__hook_double_hashes:w }
+\exp_last_unbraced:NNo
+\cs_new:Npn \__hook_double_hashes_space:w \c_space_tl
+  { ~ \__hook_double_hashes:w }
 \cs_new_protected:Npn \__hook_retokenize_patch:Nnn #1 #2 #3
   {
     \__hook_patch_debug:x { ..~command~can~only~be~patched~by~rescanning }
@@ -6298,7 +6380,7 @@
           { \exp_not:N \__hook_tmp:w \token_to_meaning:N #1 \s__hook_mark }
       }
     \tl_rescan:nV { #4 \__hook_patch_required_catcodes: } \l__hook_tmpa_tl
-    \cs_set_eq:NN #1 \kerneltmpDoNotUse
+    \cs_gset_eq:NN #1 \kerneltmpDoNotUse
   }
 \IncludeInRelease{2021/11/15}{wrong-cmd-hook}%
                  {Standardise~generic~hook~names}
@@ -6387,8 +6469,8 @@
 %%% From File: ltpar.dtx
 %% File: ltpara.dtx (C) Copyright 2020-2021
 %%% From File: ltpara.dtx
-\def\ltparaversion{v1.0j}
-\def\ltparadate{2021/09/18}
+\def\ltparaversion{v1.0k}
+\def\ltparadate{2021/10/19}
 
 
 \ExplSyntaxOn
@@ -6526,6 +6608,9 @@
 \cs_set_eq:NN \@@par   \tex_par:D
 \cs_set_eq:NN \endgraf \tex_par:D
 
+\tex_everypar:D {}
+\cs_set_eq:NN \everypar \tex_everypar:D
+
 \EndModuleRelease
 \ExplSyntaxOff
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -7118,6 +7203,7 @@
 \IncludeInRelease{2020/10/01}%
                  {\@include}{Spaces in file names and hooks}%
 \def\@include#1 {%
+\ifx\@nodocument\relax
   \clearpage
   \if at filesw
     \immediate\write\@mainaux{\string\@input{#1.aux}}%
@@ -7153,7 +7239,12 @@
     \deadcycles\z@
     \@nameuse{cp@#1}%
   \fi
-  \let\@auxout\@mainaux}
+  \let\@auxout\@mainaux
+\else
+\@latex at warning{%
+  \noexpand\include should only be used after \string\begin{document}}%
+\@input@{#1}%
+\fi}
 \NewHook{include/before}
 \NewReversedHook{include/end}
 \NewReversedHook{include/after}
@@ -8839,8 +8930,86 @@
  }%
 }
 \EndIncludeInRelease
+\IncludeInRelease{2021/11/15}
+  {\document at select@group}{\document at select@group}%
+\ifx\c at localmathalphabets\@undefined
+  \newcount\c at localmathalphabets
+  \setcounter{localmathalphabets}{2}
+\fi
+\def\document at select@group#1#2#3#4{%
+ \ifx\math at bgroup\bgroup\else\relax\expandafter\@firstofone\fi
+ {%
+ \ifmmode
+   \ifnum\csname c at mv@\math at version\endcsname<\e at mathgroup@top
+     \ifnum \numexpr\e at mathgroup@top-\c at localmathalphabets
+              >\csname c at mv@\math at version\endcsname
+     \else
+       \ifcsname mv@\math at version @frozen\endcsname \else
+         \expandafter\freeze at math@version\expandafter{\math at version}%
+       \fi
+     \fi
+     \begingroup
+       \escapechar\m at ne
+       \getanddefine at fonts{\csname c at mv@\math at version\endcsname}#3%
+       \globaldefs\@ne  \math at fonts
+     \endgroup
+     \expandafter\extract at alph@from at version
+         \csname mv@\math at version\expandafter\endcsname
+         \expandafter{\number\csname
+                       c at mv@\math at version\endcsname}%
+          #1%
+     \global\advance\csname c at mv@\math at version\endcsname\@ne
+   \else
+     \let#1\relax
+     \@latex at error{Too many math alphabets used in
+                   version \math at version}%
+        \@eha
+  \fi
+ \else \expandafter\expandafter\expandafter\non at alpherr\fi
+ \expandafter#1\ifx\math at bgroup\bgroup{#4}\else#4\fi
+ }%
+}
+\ExplSyntaxOn
+\cs_new_protected:Npn\freeze at math@version #1 {
+  \@font at info{Freeze~ math~ alphabet~ allocation~ in~ version~
+              #1.\MessageBreak
+              Allocated~math~groups:~\int_use:c{ c at mv@ #1 }~
+              (local:~  \int_use:N\c at localmathalphabets)      }
+  \cs_gset_eq:cc { mv@#1 at frozen }{ mv@#1 }
+  \tl_gset:cx { g__nfss_frozen_mv_ #1 _tl }{ \int_use:c { c at mv@#1 } }
+  \group_insert_after:N \__nfss_init_mv_freeze:N \exp_after:wN
+    \group_insert_after:N \cs:w mv@#1 at reset \cs_end:
+  \tl_gput_right:No \check at mathfonts
+       {
+         \exp_after:wN \group_insert_after:N \cs:w mv@#1 at reset \cs_end:
+       }
+  \cs_gset:cpn{mv@#1 at reset}
+     {
+         \int_compare:nNnTF { \int_use:c{c at mv@#1} } >
+                            { \tl_use:c{g__nfss_frozen_mv_ #1 _tl} }
+             {
+               \@font at info{Undo~ math~ alphabet~ allocation~ in~ version~ #1}
+               \cs_gset_eq:cc { mv@#1 }{ mv@#1 at frozen }
+               \int_gset:cn { c at mv@#1 }{ \tl_use:c {g__nfss_frozen_mv_ #1 _tl} }
+               \group_begin:
+                 \cs_set_eq:NN \getanddefine at fonts \use_none:nn
+                 \use:c {mv@#1}
+               \group_end:
+             }
+             {
+               \@font at info{No~ math~ alphabet~ change~ to~ frozen~ version~ #1}
+             }
+    }
+}
+\cs_new_protected:Npn \__nfss_init_mv_freeze:N #1 {%
+  \mode_if_math:T { \group_insert_after:N \__nfss_init_mv_freeze:N
+                    \group_insert_after:N } #1
+}
+\ExplSyntaxOff
+\EndIncludeInRelease
 \IncludeInRelease{2020/10/01}
   {\document at select@group}{\document at select@group}%
+
 \def\document at select@group#1#2#3#4{%
  \ifx\math at bgroup\bgroup\else\relax\expandafter\@firstofone\fi
  {%
@@ -8930,6 +9099,18 @@
  }%
 }
 \EndIncludeInRelease
+\IncludeInRelease{2021/11/15}%
+                 {\DeclareMathVersion}{local alphabets}%
+\def\DeclareMathVersion#1{%
+  \@namedef{g__nfss_frozen_mv_#1_tl}{}%
+  \expandafter\new at mathversion\csname mv@#1\endcsname}
+\@onlypreamble\DeclareMathVersion
+\EndIncludeInRelease
+\IncludeInRelease{0000/00/00}%
+                 {\DeclareMathVersion}{local alphabets}%
+\def\DeclareMathVersion#1{%
+  \expandafter\new at mathversion\csname mv@#1\endcsname}
+\EndIncludeInRelease
 \IncludeInRelease{2019/10/01}%
                  {DeclareMathAccent}{Make math accents robust}%
 \def\DeclareMathAccent#1#2#3#4{%
@@ -11372,6 +11553,23 @@
   \baselineskip\normalbaselineskip
   \sloppy}
 \EndIncludeInRelease
+\IncludeInRelease{2021/11/15}%
+                 {\@mpfootnotetext}{footnotetext tagging}%
+\long\def\@mpfootnotetext#1{%
+  \global\setbox\@mpfootins\vbox{%
+    \unvbox\@mpfootins
+    \reset at font\footnotesize
+    \hsize\columnwidth
+    \@parboxrestore
+    \def\@currentcounter{mpfootnote}%
+    \protected at edef\@currentlabel
+         {\csname p at mpfootnote\endcsname\@thefnmark}%
+    \color at begingroup
+      \@makefntext{%
+        \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}%
+    \par
+    \color at endgroup}}
+\EndIncludeInRelease
 \IncludeInRelease{2021/06/01}%
                  {\@mpfootnotetext}{footnotetext tagging}%
 \long\def\@mpfootnotetext#1{%
@@ -12427,6 +12625,24 @@
                  {\@textsubscript}{subscript baseline}%
 \let\@textsubscript\@undefined
 \EndIncludeInRelease
+\IncludeInRelease{2021/11/15}%
+                 {\@footnotetext}{footnotetext tagging}%
+\long\def\@footnotetext#1{\insert\footins{%
+    \reset at font\footnotesize
+    \interlinepenalty\interfootnotelinepenalty
+    \splittopskip\footnotesep
+    \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
+    \hsize\columnwidth \@parboxrestore
+    \def\@currentcounter{footnote}%
+    \protected at edef\@currentlabel{%
+       \csname p at footnote\endcsname\@thefnmark
+    }%
+    \color at begingroup
+      \@makefntext{%
+        \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}%
+    \par
+    \color at endgroup}}%
+\EndIncludeInRelease
 \IncludeInRelease{2021/06/01}%
                  {\@footnotetext}{footnotetext tagging}%
 \long\def\@footnotetext#1{\insert\footins{%

Modified: trunk/Master/texmf-dist/tex/latex-dev/base/ltluatex.lua
===================================================================
--- trunk/Master/texmf-dist/tex/latex-dev/base/ltluatex.lua	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/tex/latex-dev/base/ltluatex.lua	2021-10-22 21:41:02 UTC (rev 60842)
@@ -326,6 +326,7 @@
   make_extensible                 = exclusive,
   font_descriptor_objnum_provider = exclusive,
   input_level_string              = exclusive,
+  provide_charproc_data           = exclusive,
 }
 luatexbase.callbacktypes=callbacktypes
 local callback_register = callback_register or callback.register

Modified: trunk/Master/texmf-dist/tex/latex-dev/base/ltluatex.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex-dev/base/ltluatex.tex	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/tex/latex-dev/base/ltluatex.tex	2021-10-22 21:41:02 UTC (rev 60842)
@@ -47,7 +47,7 @@
   #1#2[#3]{\endgroup\immediate\write-1{File: #1 #3}}
 \fi
 \ProvidesFile{ltluatex.tex}%
-[2021/08/11 v1.1u
+[2021/10/15 v1.1v
   LuaTeX support for plain TeX (core)
 ]
 \edef\etatcatcode{\the\catcode`\@}

Modified: trunk/Master/texmf-dist/tex/latex-dev/base/makeidx.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex-dev/base/makeidx.sty	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/tex/latex-dev/base/makeidx.sty	2021-10-22 21:41:02 UTC (rev 60842)
@@ -42,7 +42,7 @@
 %% and covered by LPPL is defined by the unpacking scripts (with
 %% extension .ins) which are part of the distribution.
 \ProvidesPackage{makeidx}
-                [2014/09/29 v1.0m Standard LaTeX package]
+                [2021/10/04 v1.0m Standard LaTeX package]
 \newcommand*\see[2]{\emph{\seename} #1}
 \providecommand*\seealso[2]{\emph{\alsoname} #1}
 \newcommand\printindex{\@input@{\jobname.ind}}

Modified: trunk/Master/texmf-dist/tex/latex-dev/base/preload.ltx
===================================================================
--- trunk/Master/texmf-dist/tex/latex-dev/base/preload.ltx	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/tex/latex-dev/base/preload.ltx	2021-10-22 21:41:02 UTC (rev 60842)
@@ -37,7 +37,7 @@
 %% 
 %%% From File: preload.dtx
  \ProvidesFile{preload.ltx}
-         [2014/09/29 v2.1g LaTeX Kernel (Font Preloading)]
+         [2021/10/04 v2.1g LaTeX Kernel (Font Preloading)]
 \expandafter\font\csname OMX/cmex/m/n/10\endcsname=cmex10\relax
 \font\tenln  =line10   \font\tenlnw  =linew10\relax
 \font\tencirc=lcircle10 \font\tencircw=lcirclew10\relax

Modified: trunk/Master/texmf-dist/tex/latex-dev/base/report.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex-dev/base/report.cls	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/tex/latex-dev/base/report.cls	2021-10-22 21:41:02 UTC (rev 60842)
@@ -43,7 +43,7 @@
 %% extension .ins) which are part of the distribution.
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 \ProvidesClass{report}
-              [2021/09/11 v1.4n
+              [2021/10/04 v1.4n
  Standard LaTeX document class]
 \newcommand\@ptsize{}
 \newif\if at restonecol

Modified: trunk/Master/texmf-dist/tex/latex-dev/base/shortvrb.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex-dev/base/shortvrb.sty	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/tex/latex-dev/base/shortvrb.sty	2021-10-22 21:41:02 UTC (rev 60842)
@@ -43,7 +43,7 @@
 %% extension .ins) which are part of the distribution.
 \NeedsTeXFormat{LaTeX2e}[1994/12/01]
 \ProvidesPackage{shortvrb}
-  [2021/05/28 v2.1n
+  [2021/10/04 v2.1n
    Standard LaTeX documentation package (FMi)]
 %%
 %% Package `doc' to use with LaTeX 2e

Modified: trunk/Master/texmf-dist/tex/latex-dev/base/showidx.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex-dev/base/showidx.sty	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/tex/latex-dev/base/showidx.sty	2021-10-22 21:41:02 UTC (rev 60842)
@@ -42,7 +42,7 @@
 %% and covered by LPPL is defined by the unpacking scripts (with
 %% extension .ins) which are part of the distribution.
 \ProvidesPackage{showidx}
-                [2014/09/29 v1.0m Standard LaTeX package]
+                [2021/10/04 v1.0m Standard LaTeX package]
 \newinsert\indexbox
 \dimen\indexbox=\maxdimen
 \renewcommand\index{\@bsphack\begingroup

Modified: trunk/Master/texmf-dist/tex/latex-dev/base/size10.clo
===================================================================
--- trunk/Master/texmf-dist/tex/latex-dev/base/size10.clo	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/tex/latex-dev/base/size10.clo	2021-10-22 21:41:02 UTC (rev 60842)
@@ -42,7 +42,7 @@
 %% and covered by LPPL is defined by the unpacking scripts (with
 %% extension .ins) which are part of the distribution.
 \ProvidesFile{size10.clo}
-              [2021/09/11 v1.4n
+              [2021/10/04 v1.4n
       Standard LaTeX file (size option)]
 \renewcommand\normalsize{%
    \@setfontsize\normalsize\@xpt\@xiipt

Modified: trunk/Master/texmf-dist/tex/latex-dev/base/size11.clo
===================================================================
--- trunk/Master/texmf-dist/tex/latex-dev/base/size11.clo	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/tex/latex-dev/base/size11.clo	2021-10-22 21:41:02 UTC (rev 60842)
@@ -42,7 +42,7 @@
 %% and covered by LPPL is defined by the unpacking scripts (with
 %% extension .ins) which are part of the distribution.
 \ProvidesFile{size11.clo}
-              [2021/09/11 v1.4n
+              [2021/10/04 v1.4n
       Standard LaTeX file (size option)]
 \renewcommand\normalsize{%
    \@setfontsize\normalsize\@xipt{13.6}%

Modified: trunk/Master/texmf-dist/tex/latex-dev/base/size12.clo
===================================================================
--- trunk/Master/texmf-dist/tex/latex-dev/base/size12.clo	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/tex/latex-dev/base/size12.clo	2021-10-22 21:41:02 UTC (rev 60842)
@@ -42,7 +42,7 @@
 %% and covered by LPPL is defined by the unpacking scripts (with
 %% extension .ins) which are part of the distribution.
 \ProvidesFile{size12.clo}
-              [2021/09/11 v1.4n
+              [2021/10/04 v1.4n
       Standard LaTeX file (size option)]
 \renewcommand\normalsize{%
    \@setfontsize\normalsize\@xiipt{14.5}%

Modified: trunk/Master/texmf-dist/tex/latex-dev/base/slides.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex-dev/base/slides.cls	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/tex/latex-dev/base/slides.cls	2021-10-22 21:41:02 UTC (rev 60842)
@@ -43,7 +43,7 @@
 %% extension .ins) which are part of the distribution.
 \NeedsTeXFormat{LaTeX2e}[1997/06/01]
 \ProvidesClass{slides}
-              [2020/11/23 v2.4b
+              [2021/10/04 v2.4b
                Standard LaTeX document class]
 \input{slides.def}
 \InputIfFileExists{sfonts.cfg}

Modified: trunk/Master/texmf-dist/tex/latex-dev/base/slides.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex-dev/base/slides.def	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/tex/latex-dev/base/slides.def	2021-10-22 21:41:02 UTC (rev 60842)
@@ -42,7 +42,7 @@
 %% and covered by LPPL is defined by the unpacking scripts (with
 %% extension .ins) which are part of the distribution.
 \ProvidesFile{slides.def}
-              [2020/11/23 v2.4b
+              [2021/10/04 v2.4b
                SLiTeX definitions]
 \message{hacks,}
 

Modified: trunk/Master/texmf-dist/tex/latex-dev/base/source2edoc.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex-dev/base/source2edoc.cls	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/tex/latex-dev/base/source2edoc.cls	2021-10-22 21:41:02 UTC (rev 60842)
@@ -61,7 +61,25 @@
     \int_compare:nNnTF \@auxout = \@partaux
       { \@latexerr{\string\include\space cannot~be~nested}\@eha }
       { \@docinclude {#1} }  % <--- braces needed!
+    \int_compare:nNnF { \tex_currentgrouplevel:D } = { 0 }
+      {
+        \int_compare:nNnT { \tex_interactionmode:D } = { 0 }
+          { \int_set:Nn \tex_interactionmode:D { 1 } }
+        \msg_fatal:nnn { source2edoc } { missing-endgroup } {#1}
+      }
   }
+\msg_new:nnn { source2edoc } { missing-endgroup }
+  {
+    \str_if_eq:VnTF \@currenvir { document }
+      {
+        There~are~\int_use:N \tex_currentgrouplevel:D
+        \c_space_tl unclosed~groups~in~#1.dtx.
+      }
+      {
+        The~\@currenvir \c_space_tl environment~on~line~\@currenvline
+        \c_space_tl doesn't~have~a~matching~\iow_char:N\\end{\@currenvir}.
+      }
+  }
 \cs_gset:Npn \@docinclude #1
   {
     \clearpage

Modified: trunk/Master/texmf-dist/tex/latex-dev/graphics/color.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex-dev/graphics/color.sty	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/tex/latex-dev/graphics/color.sty	2021-10-22 21:41:02 UTC (rev 60842)
@@ -25,7 +25,7 @@
 %%
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 \ProvidesPackage{color}
-          [2020/02/24 v1.2b Standard LaTeX Color (DPC)]
+          [2021/10/11 v1.3b Standard LaTeX Color (DPC)]
 \edef\Gin at codes{%
  \catcode`\noexpand\^^A\the\catcode`\^^A\relax
  \catcode`\noexpand\"\the\catcode`\"\relax
@@ -60,7 +60,7 @@
                       \def\c at lor@namefile{dvipsnam.def}}
 \DeclareOption{xdvi}{\ExecuteOptions{dvips,monochrome}}
 \DeclareOption{dvipdf}{\def\Gin at driver{dvipdf.def}}
-\DeclareOption{dvipdfm}{\def\Gin at driver{dvipdfm.def}}
+\DeclareOption{dvipdfm}{\def\Gin at driver{dvipdfmx.def}}
 \DeclareOption{dvipdfmx}{\def\Gin at driver{dvipdfmx.def}}
 \DeclareOption{pdftex}{\def\Gin at driver{pdftex.def}}
 \DeclareOption{luatex}{\def\Gin at driver{luatex.def}}
@@ -84,7 +84,7 @@
 \let\c at lor@usename\@gobble
 \DeclareOption{usenames}{%
   \def\c at lor@usename#1{%
-    \expandafter\color at named\csname\string\color @#1\endcsname{#1}}}
+    \expandafter\color at named\csname\@backslashchar color @#1\endcsname{#1}}}
 \DeclareRobustCommand\color{%
   \@ifnextchar[\@undeclaredcolor\@declaredcolor}
 \def\@undeclaredcolor[#1]#2{%
@@ -94,10 +94,10 @@
      \set at color}%
   \ignorespaces}
 \def\@declaredcolor#1{%
-  \@ifundefined{\string\color @#1}%
+  \@ifundefined{\@backslashchar color @#1}%
     {\c at lor@error{`#1'}}%
     {\expandafter\let\expandafter\current at color
-     \csname\string\color @#1\endcsname
+     \csname\@backslashchar color @#1\endcsname
      \set at color}%
   \ignorespaces}
 \protected\def\textcolor#1#{\@textcolor{#1}}
@@ -109,7 +109,7 @@
       \color}
 \protected\def\nopagecolor{%
   \@ifundefined{no at page@color}{%
-    \PackageInfo{color}{\string\nopagecolor\space is not supported}%
+    \PackageInfo{color}{\@backslashchar nopagecolor\space is not supported}%
   }{%
     \no at page@color
   }%
@@ -117,10 +117,10 @@
 \protected\def\definecolor#1#2#3{%
   \@ifundefined{color@#2}%
     {\c at lor@error{model `#2'}}%
-    {\@ifundefined{\string\color @#1}{}%
+    {\@ifundefined{\@backslashchar color @#1}{}%
       {\PackageInfo{color}{Redefining color #1}}%
      \csname color@#2\expandafter\endcsname
-         \csname\string\color @#1\endcsname{#3}}}
+         \csname\@backslashchar color @#1\endcsname{#3}}}
 \protected\def\DefineNamedColor#1#2#3#4{%
   \@ifundefined{define at color@#1}%
     {\c at lor@error{model `#1'}}%

Modified: trunk/Master/texmf-dist/tex/latex-dev/tools/array.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex-dev/tools/array.sty	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/tex/latex-dev/tools/array.sty	2021-10-22 21:41:02 UTC (rev 60842)
@@ -46,7 +46,7 @@
 \DeclareCurrentRelease{}{2020-10-01}
 
 \ProvidesPackage{array}
-         [2021/07/12 v2.5f Tabular extension package (FMi)]
+         [2021/10/04 v2.5f Tabular extension package (FMi)]
 %%
 
 \def\@addtopreamble#1{\xdef\@preamble{\@preamble #1}}

Modified: trunk/Master/texmf-dist/tex/latex-dev/tools/multicol.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex-dev/tools/multicol.sty	2021-10-22 21:38:24 UTC (rev 60841)
+++ trunk/Master/texmf-dist/tex/latex-dev/tools/multicol.sty	2021-10-22 21:41:02 UTC (rev 60842)
@@ -107,7 +107,7 @@
 \DeclareCurrentRelease{}{2018-04-01}
 
 \ProvidesPackage{multicol}
-          [2021/07/06 v1.8z  multicolumn formatting (FMi)]
+          [2021/10/08 v1.9a  multicolumn formatting (FMi)]
 %%
 \DeclareOption{twocolumn}
    {\PackageWarning{multicol}{May not work
@@ -124,7 +124,8 @@
 \DeclareOption{debugshow}
     {\c at tracingmulticols5\relax}
 \let\mc at gridwarn\maxdimen
-\DeclareOption{grid}{\def\mc at gridwarn{\@maxdepth}}
+\DeclareOption{grid}
+    {\def\mc at gridwarn{\@maxdepth}}
 \DeclareOption{colaction}{%
   \def\mc at col@status at write{%
          \protected at write\@auxout{}%
@@ -153,7 +154,8 @@
        \MessageBreak
        I therefore use 20 columns instead}%
      \col at number20 \fi
-     \ifx\@footnotetext\mult at footnotetext\else
+     \ifx\@footnotetext\mult at footnotetext
+     \else
        \let\orig at footnotetext\@footnotetext
        \let\@footnotetext\mult at footnotetext
      \fi
@@ -267,10 +269,13 @@
    \def\clearpage{%
      \ifx\@deferlist\@empty\else
        \PackageError{multicol}%
-          {Deferred floats not cleared}%
-          {A \string\clearpage\space inside multicols acts like
-           \string\newpage\space and doesn't clear floats.\MessageBreak
-           Move it before the multicols environment if you need it.}%
+        {Deferred floats not cleared}%
+        {A \string\clearpage\space inside
+         multicols acts like
+         \string\newpage\space and doesn't
+         clear floats.\MessageBreak
+         Move it before the multicols
+         environment if you need it.}%
      \fi
     \newpage}%
   \fi
@@ -302,10 +307,12 @@
     #1\advance\vsize
         \c at collectmore\baselineskip}
 \newdimen\multicol at leftmargin
-\mathchardef\@Mvi=10006  % 10005 is \columnbreak
+\mathchardef\@Mvi=10006  % 10005 is
+                         % \columnbreak
 \def\endmulticols{\par
   \if at boxedmulticols
-    \remove at discardable@items\color at endgroup\egroup
+    \remove at discardable@items
+    \color at endgroup\egroup
     \balance at columns
     \return at nonemptymark{first}%
                  \kept at firstmark
@@ -320,7 +327,7 @@
       {Restore kept marks to\MessageBreak
        first: \meaning\kept at firstmark
        \MessageBreak bot\space\space:
-                     \meaning\kept at botmark }%
+              \meaning\kept at botmark }%
   \else
     \ifdim\pagegoal=\maxdimen
       \ifvoid\colbreak at box\else
@@ -421,7 +428,7 @@
 \def\reinsert at footnotes{\ifvoid\footins\else
          \insert\footins{}\fi}
 \def\vfilmaxdepth{\vskip \z@ \@plus .0001fil
-                           \@minus \@maxdepth}
+                         \@minus \@maxdepth}
 \def\multi at column@out{%
    \ifnum\outputpenalty <-\@M
     \speci at ls \else
@@ -454,7 +461,8 @@
             \setbox\count@
                  \vbox to\dimen@
                   {\unvbox\count@
-                   \ifshr at nking\vfilmaxdepth\fi}%
+                   \ifshr at nking
+                    \vfilmaxdepth\fi}%
            }%
    \setbox\mult at rightbox
        \vsplit\@cclv to\dimen@
@@ -560,8 +568,11 @@
          \reinsert at footnotes
      \else
        \ifnum\outputpenalty = -\@Mvi
-         \mult at info\@ne{End penalty of multicols seen}%
-         \outputpenalty\@M   % pretend we had a natural forced break
+         \mult at info\@ne{End penalty of
+                        multicols seen}%
+         \outputpenalty\@M % pretend we had
+                           % a natural
+                           % forced break
          \balance at columns@out
        \else
         \PackageWarningNoLine{multicol}%
@@ -569,7 +580,8 @@
             allowed inside `multicols'
             environment!}%
         \unvbox\@cclv\reinsert at footnotes
-        \xdef\@freelist{\@freelist\@currlist}%
+        \xdef\@freelist{\@freelist
+                        \@currlist}%
         \gdef\@currlist{}%
       \fi
     \fi
@@ -617,10 +629,12 @@
    \else
      \global\vsize\@colroom
      \global\advance\vsize\ht\partial at page
-     \ifvbox\@kludgeins\insert\@kludgeins
-                        {\unvbox\@kludgeins}\fi
+     \ifvbox\@kludgeins
+        \insert\@kludgeins
+               {\unvbox\@kludgeins}\fi
      \unvbox\partial at page
-     \return at nonemptymark{first}\kept at firstmark
+     \return at nonemptymark{first}%
+                         \kept at firstmark
      \return at nonemptymark{bot}\kept at botmark
      \page at sofar
      \penalty\z@
@@ -650,12 +664,14 @@
      \advance\dimen at -\baselineskip
    \fi
    \@tempdima\dimexpr
-       \topskip +\c at minrows\baselineskip-\baselineskip\relax
+      \topskip +\c at minrows\baselineskip
+               -\baselineskip\relax
    \ifnum\dimen@<\@tempdima
      \mult at info\@ne
        {Start value
           \the\dimen@  \space ->
-          \the\@tempdima \space (corrected for minrows)}%
+          \the\@tempdima \space
+          (corrected for minrows)}%
      \dimen@\@tempdima
    \fi
    \advance\dimen@\c at unbalance\baselineskip
@@ -820,7 +836,9 @@
 \newdimen\maxbalancingoverflow
 \maxbalancingoverflow=12pt
 
-\ifnum\numexpr \count20-\count14-1<41   % = 2 * 20 + 1
+\ifnum\numexpr
+        \count20-\count14-1<41
+        % this is = 2 * 20 + 1
   \count14=\@cclv
 \fi
 \newbox\mult at rightbox
@@ -981,21 +999,38 @@
    \fi
    \end{multicols}}
 \mathchardef\@Mv=10005
-\def\columnbreak{%
- \ifnum\col at number<\tw@
-  \PackageError{multicol}%
-   {\noexpand\columnbreak outside multicols}%
-   {This command can only be used within
-    a multicols or multicols* environment.}%
- \else
-  \ifvmode
-    \penalty -\@Mv\relax
+\newcommand\columnbreak[1][4]{%
+   \ifnum\col at number<\tw@
+   \PackageError{multicol}%
+    {\noexpand\newcolumn outside multicols}%
+    {This command can only be used within
+     a multicols or multicols* environment.}%
+    \else
+    \edef\mc at break@pen
+{-\ifcase#1\@m\or 3333\or 6666\or 9999\else\@Mv\fi\relax}%
+    \ifvmode
+     \penalty \mc at break@pen
+   \else
+     \@bsphack
+     \vadjust{\penalty \mc at break@pen}%
+     \@esphack
+   \fi
+  \fi}
+\newcommand\newcolumn{%
+   \ifnum\col at number<\tw@
+   \PackageError{multicol}%
+    {\noexpand\newcolumn outside multicols}%
+    {This command can only be used within
+     a multicols or multicols* environment.}%
   \else
-    \@bsphack
-    \vadjust{\penalty -\@Mv\relax}%
-    \@esphack
-  \fi
- \fi}
+    \ifvmode
+     \nobreak\vfill\penalty -\@Mv\relax
+   \else
+     \@bsphack
+     \vadjust{\nobreak\vfill\kern\z@\penalty -\@Mv\relax}%
+     \@esphack
+   \fi
+  \fi}
 \newbox\colbreak at box
 \def\LR at column@boxes{%
      \process at cols\mult at gfirstbox{%



More information about the tex-live-commits mailing list.