[latex3-commits] [latex3/latex2e] develop: add firstaid changes to external packages (81bb6178)
github at latex-project.org
github at latex-project.org
Wed Jun 7 23:17:18 CEST 2023
Repository : https://github.com/latex3/latex2e
On branch : develop
Link : https://github.com/latex3/latex2e/commit/81bb61784ceac028ad9d1df9f4c6b54b029de787
>---------------------------------------------------------------
commit 81bb61784ceac028ad9d1df9f4c6b54b029de787
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Tue Jun 6 14:19:32 2023 +0200
add firstaid changes to external packages
>---------------------------------------------------------------
81bb61784ceac028ad9d1df9f4c6b54b029de787
required/latex-lab/latex-lab-firstaid.dtx | 116 ++++++++++++++++++++++++++++++
required/latex-lab/latex-lab.ins | 6 ++
2 files changed, 122 insertions(+)
diff --git a/required/latex-lab/latex-lab-firstaid.dtx b/required/latex-lab/latex-lab-firstaid.dtx
new file mode 100644
index 00000000..a7b99053
--- /dev/null
+++ b/required/latex-lab/latex-lab-firstaid.dtx
@@ -0,0 +1,116 @@
+% \iffalse meta-comment
+%
+%% File: latex-lab-firstaid.dtx (C) Copyright 2023 LaTeX Project
+%
+% It may be distributed and/or modified under the conditions of the
+% LaTeX Project Public License (LPPL), either version 1.3c of this
+% license or (at your option) any later version. The latest version
+% of this license is in the file
+%
+% https://www.latex-project.org/lppl.txt
+%
+%
+% The development version of the bundle can be found below
+%
+% https://github.com/latex3/latex2e/required/latex-lab
+%
+% for those people who are interested or want to report an issue.
+%
+%<*driver>
+\documentclass{l3doc}
+\EnableCrossrefs
+\CodelineIndex
+\begin{document}
+ \DocInput{latex-lab-firstaid.dtx}
+\end{document}
+%</driver>
+%
+% \fi
+%
+% \title{The \textsf{latex-lab-firstaid} package\\
+% Temporary patches to external packages}
+% \author{\LaTeX{} Project\thanks{Initial implementation done by Ulrike Fischer}}
+% \date{Version 0.80 2023-06-04}
+%
+% \maketitle
+%
+% \newcommand{\xt}[1]{\textsl{\textsf{#1}}}
+% \newcommand{\TODO}[1]{\textbf{[TODO:} #1\textbf{]}}
+% \newcommand{\docclass}{document class \marginpar{\raggedright document class
+% customizations}}
+%
+% \providecommand\hook[1]{\texttt{#1}}
+%
+% \begin{abstract}
+% \end{abstract}
+%
+% \section{Introduction}
+%
+% The followings contains small temporary changes to external packages to avoid
+% errors with the new tagging code.
+%
+% Similar to the main firstaid package the goal is to remove the
+% patches once the packages have been updated.
+
+% \section{Implementation}
+% \begin{macrocode}
+%<*package>
+%<@@=tag>
+% \end{macrocode}
+% \begin{macrocode}
+\ProvidesPackage {latex-lab-testphase-firstaid} [2023-06-04 v0.8
+ Temporary patches to external packages need for the tagging project]
+% \end{macrocode}
+
+% \subsection{blindtext}
+% The blindtext package generates lists with nested \cs{loop} command.
+% The inner loop introduces a group around the list which error when lists are tagged
+% as \cs{@doendpe} is lost.
+% \begin{macrocode}
+\AddToHook{file/blindtext.sty/after}[latex-lab-firstaid]{%
+ \FirstAidNeededT{blindtext}{sty}{\blindfiledate\space\blindfileversion\space%
+ blindtext-Package}%
+ {%
+ \renewcommand{\blind at items}{%
+ \setcounter{blind at listcount}{1}%
+ \loop
+ \ifblind at optional
+ \ifblind at long
+ \item[\blindtext at countitem] \blindtext at text
+ \else
+ \item[\blindtext at count] \blindtext at item
+ \fi
+ \else % \blind at optionalfalse
+ \ifblind at long
+ \item \blindtext at text
+ \else
+ \item \blindtext at countitem
+ \fi
+ \fi % \ifblind at optional
+ {%
+ \loop
+ \ifnum\value{blindlistlevel}>\value{blindlist at level}%
+ \stepcounter{blind at levelcount}%
+ \blind at list[\value{blindlist}]\relax
+ \addtocounter{blind at levelcount}{-1}%
+ \setcounter{blind at listcount}{1}%
+ \repeat
+ \expandafter}\if at endpe\@doendpe\fi % <----------changed
+ \ifnum\value{blind at listcount}<\value{blindlist}%
+ \stepcounter{blind at listcount}%
+ \repeat
+ }
+ }%
+ }
+% \begin{macrocode}
+%</package>
+% \end{macrocode}
+% \begin{macrocode}
+%<*latex-lab>
+\ProvidesFile{firstaid-latex-lab-testphase.ltx}
+ [2023-06-04 v0.8 Temporary patches to external packages need for the tagging project]
+
+\RequirePackage{latex-lab-testphase-firstaid}
+
+%</latex-lab>
+% \end{macrocode}
diff --git a/required/latex-lab/latex-lab.ins b/required/latex-lab/latex-lab.ins
index 8dabe6c2..1989ddcf 100644
--- a/required/latex-lab/latex-lab.ins
+++ b/required/latex-lab/latex-lab.ins
@@ -142,5 +142,11 @@ where one can also log issues in case there are any.
\generate{\file{text-latex-lab-testphase.ltx}{%
\from{latex-lab-text.dtx}{latex-lab}}}
+\generate{\file{latex-lab-testphase-firstaid.sty}{%
+ \from{latex-lab-firstaid.dtx}{package}}}
+
+\generate{\file{firstaid-latex-lab-testphase.ltx}{%
+ \from{latex-lab-firstaid.dtx}{latex-lab}}}
+
\endbatchfile
More information about the latex3-commits
mailing list.