texlive[65181] Master/texmf-dist: latex-firstaid-dev (3dec22)

commits+karl at tug.org commits+karl at tug.org
Sat Dec 3 21:59:59 CET 2022


Revision: 65181
          http://tug.org/svn/texlive?view=revision&revision=65181
Author:   karl
Date:     2022-12-03 21:59:59 +0100 (Sat, 03 Dec 2022)
Log Message:
-----------
latex-firstaid-dev (3dec22)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex-dev/firstaid/changes.txt
    trunk/Master/texmf-dist/doc/latex-dev/firstaid/latex2e-first-aid-for-external-files.pdf
    trunk/Master/texmf-dist/source/latex-dev/firstaid/latex2e-first-aid-for-external-files.dtx
    trunk/Master/texmf-dist/tex/latex-dev/firstaid/latex2e-first-aid-for-external-files.ltx

Modified: trunk/Master/texmf-dist/doc/latex-dev/firstaid/changes.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex-dev/firstaid/changes.txt	2022-12-03 20:59:29 UTC (rev 65180)
+++ trunk/Master/texmf-dist/doc/latex-dev/firstaid/changes.txt	2022-12-03 20:59:59 UTC (rev 65181)
@@ -1,3 +1,13 @@
+2022-11-28  Ulrike Fischer  <Ulrike.Fischer at latex-project.org>
+
+	* latex2e-first-aid-for-external-files.dtx (subsection{the songs package first aid}):
+	A first aid for songs after a change to \obeylines
+
+2022-11-04  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
+
+	* latex2e-first-aid-for-external-files.dtx (subsection{The unicode-math package first aid}):
+	A first aid for unicode-math used together with the doc package.
+
 2022-10-27	Joseph Wright <Joseph.Wright at latex-project.org>
 
 	* latex2e-first-aid-for-external-files.dtx:

Modified: trunk/Master/texmf-dist/doc/latex-dev/firstaid/latex2e-first-aid-for-external-files.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex-dev/firstaid/latex2e-first-aid-for-external-files.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex-dev/firstaid/latex2e-first-aid-for-external-files.dtx	2022-12-03 20:59:29 UTC (rev 65180)
+++ trunk/Master/texmf-dist/source/latex-dev/firstaid/latex2e-first-aid-for-external-files.dtx	2022-12-03 20:59:59 UTC (rev 65181)
@@ -111,8 +111,8 @@
 %    \end{macrocode}
 %
 %    \begin{macrocode}
-\def\LaTeXFirstAidDate{2022/10/29}
-\def\LaTeXFirstAidVersion{v1.0u}
+\def\LaTeXFirstAidDate{2022/11/28}
+\def\LaTeXFirstAidVersion{v1.0w}
 %    \end{macrocode}
 %
 %    \begin{macrocode}
@@ -353,8 +353,22 @@
 %    \end{macrocode}
 %
 %
+% \subsection{The \pkg{unicode-math} package first aid}
 %
+%    If \pkg{unicode-math} is used together with \pkg{doc} there is a
+%    problem because it changes the mathcodes without adjusting the
+%    use in \pkg{doc} that assume standard settings. Could be fixed on
+%    either side, but as \pkg{unicode-math} is derivating from the
+%    standard, the right place is probably a fix in this package. For
+%    now we do it here. See github/820.
+%    \begin{macrocode}
+\AddToHook{package/unicode-math/after}{%
+  \AddToHook{cmd/mod at math@codes/after}{\mathcode`\|=28796 }}
+%    \end{macrocode}
 %
+%
+%
+%
 % \subsection{The \pkg{pgfpages} and \pkg{pgfmorepages} first aid}
 %
 %    \pkg{pgfpages} alters the \cs{shipout} primitive to support
@@ -411,14 +425,28 @@
 \AddToHook{file/babel.sty/before}[firstaid]{\def\BabelCaseHack{}}
 %    \end{macrocode}
 %
+%
+% \subsection{The \pkg{songs} package first aid}
+%
+%    The songs package uses \cs{obeylines} and redefines \cs{par} for special effect.
+%    this no longer works in LaTeX 2022-06-01 (gh issue 367). The following
+%    fixes at least one failure.
 %    \begin{macrocode}
+\AddToHook{file/songs.sty/after}[firstaid]{%
+  \FirstAidNeededT{songs}{sty}{2018/09/12 v3.1 Songs package}%
+                  {%
+     \renewcommand\SB at obeylines{%
+         \let\obeyedline\SB at par%
+         \obeylines%
+         \let\@par\SB@@par%
+       }}%
+}
+%    \end{macrocode}
+%
+%    \begin{macrocode}
 %</kernel>
 %    \end{macrocode}
 %
-%
-%
-%
-%
 % \subsection{The \pkg{everysel} package first aid}
 %     
 %

Modified: trunk/Master/texmf-dist/tex/latex-dev/firstaid/latex2e-first-aid-for-external-files.ltx
===================================================================
--- trunk/Master/texmf-dist/tex/latex-dev/firstaid/latex2e-first-aid-for-external-files.ltx	2022-12-03 20:59:29 UTC (rev 65180)
+++ trunk/Master/texmf-dist/tex/latex-dev/firstaid/latex2e-first-aid-for-external-files.ltx	2022-12-03 20:59:59 UTC (rev 65181)
@@ -34,8 +34,8 @@
 %%
 %% The LaTeX Project and any individual authors listed elsewhere
 %% in this file.
-\def\LaTeXFirstAidDate{2022/10/29}
-\def\LaTeXFirstAidVersion{v1.0u}
+\def\LaTeXFirstAidDate{2022/11/28}
+\def\LaTeXFirstAidVersion{v1.0w}
 \ProvidesFile{latex2e-first-aid-for-external-files.ltx}
              [\LaTeXFirstAidDate\space \LaTeXFirstAidVersion\space
                LaTeX kernel fixes to external files and packages]
@@ -56,6 +56,8 @@
   \FirstAidNeededT{dinbrief}{cls}{2000/03/02 LaTeX2e class}%
                   {\AddToHook{env/document/begin}{\begingroup}}%
 }
+\AddToHook{package/unicode-math/after}{%
+  \AddToHook{cmd/mod at math@codes/after}{\mathcode`\|=28796 }}
 \ExplSyntaxOn
 \AddToHook{file/pgfpages.sty/after}[firstaid]{%
   \cs_gset_eq:NN \shipout \pgfpages at originalshipout
@@ -72,6 +74,15 @@
 }
 \ExplSyntaxOff
 \AddToHook{file/babel.sty/before}[firstaid]{\def\BabelCaseHack{}}
+\AddToHook{file/songs.sty/after}[firstaid]{%
+  \FirstAidNeededT{songs}{sty}{2018/09/12 v3.1 Songs package}%
+                  {%
+     \renewcommand\SB at obeylines{%
+         \let\obeyedline\SB at par%
+         \obeylines%
+         \let\@par\SB@@par%
+       }}%
+}
 \AddToHook{file/bigfoot.sty/after}{%
    \ifnum\count10<\insc at unt
      \global\count10=\insc at unt



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