texlive[56540] Master/texmf-dist: firstaid (4oct20)
commits+karl at tug.org
commits+karl at tug.org
Sun Oct 4 23:14:40 CEST 2020
Revision: 56540
http://tug.org/svn/texlive?view=revision&revision=56540
Author: karl
Date: 2020-10-04 23:14:40 +0200 (Sun, 04 Oct 2020)
Log Message:
-----------
firstaid (4oct20)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/firstaid/changes.txt
trunk/Master/texmf-dist/doc/latex/firstaid/latex2e-first-aid-for-external-files.pdf
trunk/Master/texmf-dist/source/latex/firstaid/latex2e-first-aid-for-external-files.dtx
trunk/Master/texmf-dist/tex/latex/firstaid/latex2e-first-aid-for-external-files.ltx
Modified: trunk/Master/texmf-dist/doc/latex/firstaid/changes.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex/firstaid/changes.txt 2020-10-04 21:14:27 UTC (rev 56539)
+++ trunk/Master/texmf-dist/doc/latex/firstaid/changes.txt 2020-10-04 21:14:40 UTC (rev 56540)
@@ -1,3 +1,8 @@
+2020-10-03 Frank Mittelbach <Frank.Mittelbach at latex-project.org>
+
+ * latex2e-first-aid-for-external-files.dtx:
+ Added a fix for gh400. This will soon move into the kernel.
+
2020-09-29 Frank Mittelbach <Frank.Mittelbach at latex-project.org>
* latex2e-first-aid-for-external-files.dtx:
Modified: trunk/Master/texmf-dist/doc/latex/firstaid/latex2e-first-aid-for-external-files.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/firstaid/latex2e-first-aid-for-external-files.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/firstaid/latex2e-first-aid-for-external-files.dtx 2020-10-04 21:14:27 UTC (rev 56539)
+++ trunk/Master/texmf-dist/source/latex/firstaid/latex2e-first-aid-for-external-files.dtx 2020-10-04 21:14:40 UTC (rev 56540)
@@ -99,8 +99,8 @@
% \end{macrocode}
%
% \begin{macrocode}
-\def\LaTeXFirstAidDate{2020/09/29}
-\def\LaTeXFirstAidVersion{v1.0c}
+\def\LaTeXFirstAidDate{2020/10/03}
+\def\LaTeXFirstAidVersion{v1.0d}
% \end{macrocode}
%
% \begin{macrocode}
@@ -342,8 +342,58 @@
%
%
%
+% \subsection{Fixing a problem with \BibTeX{}}
%
+% This will become a patch release for the kernel but for the moment
+% we put it here in case some other issues show up. \BibTeX{}
+% expects \texttt{.aux} files to contain lines
+% \verb=\@input{filename.aux}= but the new new \LaTeX{}
+% unnecessarily writes \verb=\@input{"filename.aux"}= and this
+% upsets \BibTeX{} greatly. As it isn't necessary we take it out.
+%
% \begin{macrocode}
+\def\@include#1 {%
+ \clearpage
+ \if at filesw
+ \immediate\write\@mainaux{\string\@input{#1.aux}}%
+ \fi
+ \@tempswatrue
+ \if at partsw
+ \@tempswafalse
+ \edef\reserved at b{#1}%
+ \@for\reserved at a:=\@partlist\do
+ {\ifx\reserved at a\reserved at b\@tempswatrue\fi}%
+ \fi
+ \if at tempswa
+ \let\@auxout\@partaux
+ \if at filesw
+ \immediate\openout\@partaux "#1.aux"
+ \immediate\write\@partaux{\relax}%
+ \fi
+ \@filehook at set@CurrentFile
+ \UseHook{include/before}%
+ \UseHook{include/before/#1}%
+ \@input@{#1.tex}%
+ \UseHook{include/end/#1}%
+ \UseHook{include/end}%
+ \clearpage
+ \UseHook{include/after/#1}%
+ \UseHook{include/after}%
+ \clearpage
+ \@writeckpt{#1}%
+ \if at filesw
+ \immediate\closeout\@partaux
+ \fi
+ \else
+ \deadcycles\z@
+ \@nameuse{cp@#1}%
+ \fi
+ \let\@auxout\@mainaux}
+% \end{macrocode}
+%
+%
+%
+% \begin{macrocode}
%</kernel>
% \end{macrocode}
%
Modified: trunk/Master/texmf-dist/tex/latex/firstaid/latex2e-first-aid-for-external-files.ltx
===================================================================
--- trunk/Master/texmf-dist/tex/latex/firstaid/latex2e-first-aid-for-external-files.ltx 2020-10-04 21:14:27 UTC (rev 56539)
+++ trunk/Master/texmf-dist/tex/latex/firstaid/latex2e-first-aid-for-external-files.ltx 2020-10-04 21:14:40 UTC (rev 56540)
@@ -33,8 +33,8 @@
%% File: latex2e-first-aid-for-external-files.dtx (C) Copyright 2020
%% The LaTeX Project and any individual authors listed elsewhere
%% in this file.
-\def\LaTeXFirstAidDate{2020/09/29}
-\def\LaTeXFirstAidVersion{v1.0c}
+\def\LaTeXFirstAidDate{2020/10/03}
+\def\LaTeXFirstAidVersion{v1.0d}
\ProvidesFile{latex2e-first-aid-for-external-files.ltx}
[\LaTeXFirstAidDate\space \LaTeXFirstAidVersion\space
LaTeX kernel fixes to external files and packages]
@@ -63,6 +63,43 @@
\FirstAidNeededT{dinbrief}{cls}{2000/03/02 LaTeX2e class}%
{\AddToHook{env/document/begin}{\begingroup}}%
}
+\def\@include#1 {%
+ \clearpage
+ \if at filesw
+ \immediate\write\@mainaux{\string\@input{#1.aux}}%
+ \fi
+ \@tempswatrue
+ \if at partsw
+ \@tempswafalse
+ \edef\reserved at b{#1}%
+ \@for\reserved at a:=\@partlist\do
+ {\ifx\reserved at a\reserved at b\@tempswatrue\fi}%
+ \fi
+ \if at tempswa
+ \let\@auxout\@partaux
+ \if at filesw
+ \immediate\openout\@partaux "#1.aux"
+ \immediate\write\@partaux{\relax}%
+ \fi
+ \@filehook at set@CurrentFile
+ \UseHook{include/before}%
+ \UseHook{include/before/#1}%
+ \@input@{#1.tex}%
+ \UseHook{include/end/#1}%
+ \UseHook{include/end}%
+ \clearpage
+ \UseHook{include/after/#1}%
+ \UseHook{include/after}%
+ \clearpage
+ \@writeckpt{#1}%
+ \if at filesw
+ \immediate\closeout\@partaux
+ \fi
+ \else
+ \deadcycles\z@
+ \@nameuse{cp@#1}%
+ \fi
+ \let\@auxout\@mainaux}
\endinput
%%
%% End of file `latex2e-first-aid-for-external-files.ltx'.
More information about the tex-live-commits
mailing list.