%% %% This is file `latex2e-first-aid-for-external-files.ltx', %% generated with the docstrip utility. %% %% The original source files were: %% %% latex2e-first-aid-for-external-files.dtx (with options: `kernel') %% %% The source is maintained by the LaTeX Project team and bug %% reports for it can be opened at https://latex-project.org/bugs/ %% (but please observe conditions on bug reports sent to that address!) %% %% %% Copyright (C) 2020-2024 %% The LaTeX Project and any individual authors listed elsewhere %% in this file. %% %% This file was generated from file(s) of the Standard LaTeX `First Aid Bundle'. %% ------------------------------------------------------------------------------ %% %% It may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3c %% of this license or (at your option) any later version. %% The latest version of this license is in %% https://www.latex-project.org/lppl.txt %% and version 1.3c or later is part of all distributions of LaTeX %% version 2005/12/01 or later. %% %% This file may only be distributed together with a copy of the LaTeX %% `First Aid Bundle'. You may however distribute the LaTeX `First Aid Bundle' %% without such generated files. %% %% File: latex2e-first-aid-for-external-files.dtx (C) Copyright 2020-2024 %% %% The LaTeX Project and any individual authors listed elsewhere %% in this file. \def\LaTeXFirstAidDate{2024/03/20} \def\LaTeXFirstAidVersion{v1.1e} \ProvidesFile{latex2e-first-aid-for-external-files.ltx} [\LaTeXFirstAidDate\space \LaTeXFirstAidVersion\space LaTeX kernel fixes to external files and packages] \ExplSyntaxOn \cs_new:Npn\FirstAidNeededT#1#2#3{ \exp_args:Ncx\str_if_eq:onF{ver@#1.#2}{#3} { \typeout{==>~ First~ Aid~ for~ #1.#2~ no~ longer~ applied!^^J \@spaces Expected:^^J \@spaces\@spaces #3^^J \@spaces but~ found:^^J \@spaces\@spaces \use:c{ver@#1.#2}^^J \@spaces so~ I'm~ assuming~ it~ got~ fixed. } } \exp_args:Ncx\str_if_eq:onT{ver@#1.#2}{#3} } \ExplSyntaxOff \AddToHook{file/dinbrief.cls/after}[firstaid]{% \FirstAidNeededT{dinbrief}{cls}{2000/03/02 LaTeX2e class}% {\AddToHook{env/document/begin}{\begingroup}}% } \AddToHook{package/unicode-math/after}{% \AddToHook{cmd/mod@math@codes/after}{\mathcode`\|=28796 }} \ExplSyntaxOn \AddToHook{file/pgfpages.sty/after}[firstaid]{% \cs_gset_eq:NN \shipout \pgfpages@originalshipout \cs_set_eq:NN \pgfpages@originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages@interceptshipout } \ExplSyntaxOff \ExplSyntaxOn \AddToHook{file/pgfmorepages.sty/after}[firstaid]{ \cs_set_nopar:Npn \pgfhookintoshipout { \cs_set_eq:NN \pgfpages@originalshipout \tex_shipout:D \cs_set_eq:NN \tex_shipout:D \pgfpages@interceptshipout } } \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@obeylines{% \let\obeyedline\SB@par% \obeylines% \let\@par\SB@@par% }}% } \AddToHook{file/crop.sty/after}[firstaid]{% \FirstAidNeededT{crop}{sty}{2017/11/19 1.10 crop marks (mf)}% {% \ifdim\stockwidth > 0pt \else \stockwidth\paperwidth \fi \ifdim\stockheight > 0pt \else \stockheight\paperheight \fi \renewcommand*\CROP@genreflect[1]{% \leavevmode \dimen0\CROP@horigin \kern2\dimen0 \begingroup \set@typeset@protect %change protect \reflectbox{% \hb@xt@\paperwidth{% \vbox to\paperheight{% #1% \vss }% \hss }% }% \endgroup } }% } \AddToHook{file/bigfoot.sty/after}{% \ifnum\count10<\insc@unt \global\count10=\insc@unt \fi \def\FN@allmarks#1{\@elt{#1}% \ifnum#1<\count256 %<--- problem: 266 isn't the counter for marks \expandafter\FN@allmarks\expandafter{\number\numexpr#1+\@ne}% \fi}% } \AddToHook{file/ulem.sty/after}[firstaid]{% \def\@hspace#1{\begingroup\setlength\skip@{#1}% \edef\x{\endgroup\hskip\the\skip@\relax}\x}% } \AddToHook{file/varwidth.sty/after}[firstaid]{% \FirstAidNeededT{varwidth}{sty}% {2009/03/30 ver 0.92; \space Variable-width minipages}% {% \def\@vwid@sift{% \skip@\lastskip\unskip \ifdim\lastskip=\z@\unskip\fi % <---- the first aid here (not just unskip) \dimen@\lastkern\unkern \count@\lastpenalty\unpenalty \setbox\z@\lastbox \ifvoid\z@ \advance\sift@deathcycles\@ne \else \sift@deathcycles\z@ \fi \ifnum\sift@deathcycles>33 \let\@vwid@sift\relax \PackageWarning{varwidth}{Failed to reprocess entire contents}% \fi \ifnum\count@=\@vwid@preeqp \@vwid@eqmodefalse\fi \ifnum\count@=\@vwid@posteqp \@vwid@eqmodetrue\fi \ifnum\count@=\@vwid@toppen % finished \let\@vwid@sift\relax \else\ifnum\count@=\@vwid@offsets \@vwid@setoffsets \else \ifnum\count@=\@vwid@postw \else \@vwid@resetb % reset box \z@ or measure it \fi \@vwid@append \fi\fi \@vwid@sift}% }% } \AddToHook{file/german.sty/after}[firstaid]{% \FirstAidNeededT{german}{sty}{1998/07/08 v2.5e Support for writing german texts (br)} {% \let\grmn@active@dq@\@active@dq \def\@active@dq{\protect\grmn@active@dq@}% \germanTeX }% } \AddToHook{file/ngerman.sty/after}[firstaid]{% \FirstAidNeededT{ngerman}{sty}{1998/07/08 v2.5e Support for writing german texts (br)} {% \let\grmn@active@dq@\@active@dq \def\@active@dq{\protect\grmn@active@dq@}% \ngermanTeX }% } \AddToHook{file/underscore.sty/after}[firstaid]{% \FirstAidNeededT{underscore}{sty}{2006/09/13}{\RequirePackage{underscore-ltx}}} \AddToHook{package/acro/after}[firstaid]{% \FirstAidNeededT{acro}{sty}{2022/04/01 v3.8 typeset acronyms and other abbreviations (CN)} {\UseName{prop_new:c}{l__acro_tmpa_prop}% \acsetup{patch/longtable=false}% }% } \AddToHook{package/chemformula/before}[firstaid]{% \RequirePackage{l3keys2e}% } \AddToHook{package/chemnum/after}[firstaid]{% \FirstAidNeededT{chemnum}{sty}{2021/01/21 v1.3a a comprehensive approach for the numbering of chemical compounds (CN)} {\UseName{prop_new:c}{l__chemnum_tmpa_prop}}% } \AddToHook{package/cleveref/after}[firstaid]{% \FirstAidNeededT{cleveref}{sty}{2018/03/27 v0.21.4 Intelligent cross-referencing} {% \def\cref@getref#1#2{% \expandafter\let\expandafter#2\csname r@#1@cref\endcsname% \expandafter\expandafter\expandafter\def% \expandafter\expandafter\expandafter#2% \expandafter\expandafter\expandafter{% \expandafter\@firstoffive#2}}% <-------- five \def\cpageref@getref#1#2{% \expandafter\let\expandafter#2\csname r@#1@cref\endcsname% \expandafter\expandafter\expandafter\def% \expandafter\expandafter\expandafter#2% \expandafter\expandafter\expandafter{% \expandafter\@secondoffive#2}}% <----------- five \AddToHook{begindocument}[cleveref]{% \def\label@noarg#1{% \cref@old@label{#1}% \@bsphack% \edef\@tempa{{page}{\the\c@page}}% \setcounter{page}{1}% \edef\@tempb{\thepage}% \expandafter\setcounter\@tempa% \cref@constructprefix{page}{\cref@result}% \protected@write\@auxout{}% {\string\newlabel{#1@cref}{{\cref@currentlabel}% {[\@tempb][\arabic{page}][\cref@result]\thepage}{}{}{}}}% <----- five \@esphack}% \def\label@optarg[#1]#2{% \cref@old@label{#2}% \@bsphack% \edef\@tempa{{page}{\the\c@page}}% \setcounter{page}{1}% \edef\@tempb{\thepage}% \expandafter\setcounter\@tempa% \cref@constructprefix{page}{\cref@result}% \protected@edef\cref@currentlabel{% \expandafter\cref@override@label@type% \cref@currentlabel\@nil{#1}}% \protected@write\@auxout{}% {\string\newlabel{#2@cref}{{\cref@currentlabel}% {[\@tempb][\arabic{page}][\cref@result]\thepage}{}{}{}}}% <------- five \@esphack}% } }% } \endinput %% %% End of file `latex2e-first-aid-for-external-files.ltx'.