From a6964f23cf87c411367c10006ac47faab2ea782d Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 4 Oct 2020 21:14:40 +0000 Subject: firstaid (4oct20) git-svn-id: svn://tug.org/texlive/trunk@56540 c570f23f-e606-0410-a88d-b1316a301751 --- .../latex2e-first-aid-for-external-files.dtx | 54 +++++++++++++++++++++- 1 file changed, 52 insertions(+), 2 deletions(-) (limited to 'Master/texmf-dist/source/latex/firstaid') diff --git a/Master/texmf-dist/source/latex/firstaid/latex2e-first-aid-for-external-files.dtx b/Master/texmf-dist/source/latex/firstaid/latex2e-first-aid-for-external-files.dtx index e722438fb1d..03f962904eb 100644 --- a/Master/texmf-dist/source/latex/firstaid/latex2e-first-aid-for-external-files.dtx +++ b/Master/texmf-dist/source/latex/firstaid/latex2e-first-aid-for-external-files.dtx @@ -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,6 +342,56 @@ % % % +% \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@filesw + \immediate\write\@mainaux{\string\@input{#1.aux}}% + \fi + \@tempswatrue + \if@partsw + \@tempswafalse + \edef\reserved@b{#1}% + \@for\reserved@a:=\@partlist\do + {\ifx\reserved@a\reserved@b\@tempswatrue\fi}% + \fi + \if@tempswa + \let\@auxout\@partaux + \if@filesw + \immediate\openout\@partaux "#1.aux" + \immediate\write\@partaux{\relax}% + \fi + \@filehook@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@filesw + \immediate\closeout\@partaux + \fi + \else + \deadcycles\z@ + \@nameuse{cp@#1}% + \fi + \let\@auxout\@mainaux} +% \end{macrocode} +% +% % % \begin{macrocode} % -- cgit v1.2.3