blob: f88e3925d009be152294cd6af3963263782ecda4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
|
%%
%% This is file `latex-lab-testphase-firstaid.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% latex-lab-firstaid.dtx (with options: `package')
%%
%% This is a generated file.
%%
%% Copyright 2021-2023 LaTeX Project
%%
%% This file was generated from file(s) of the `LaTeX-lab 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
%% http://www.latex-project.org/lppl.txt
%% and version 1.3c or later is part of all distributions of LaTeX
%% version 2008 or later.
%%
%% This file may only be distributed together with a copy of the LaTeX
%% `LaTeX-lab Bundle'. You may however distribute the `LaTeX-lab Bundle'
%% without such generated files.
%%
%% The newest sources can be found below
%%
%% https://github.com/latex3/latex2e/required/latex-lab
%%
%% where one can also log issues in case there are any.
%%
%%
%% File: latex-lab-firstaid.dtx (C) Copyright 2023-2024 LaTeX Project
\def\ltlabfirstaiddate{2024-03-18}
\def\ltlabfirstaidversion{0.85c}
\ProvidesPackage {latex-lab-testphase-firstaid} [%
\ltlabfirstaiddate\space v\ltlabfirstaiddate\space
Temporary patches to external packages needed for the tagging project]
\AddToHook{class/amsart/after}
{\def\@author{\authors}}
\AddToHook{class/amsbook/after}
{\def\@author{\authors}}
\AddToHook{package/verse/after}[latex-lab-firstaid]{%
\FirstAidNeededT{verse}{sty}{2014/05/10 v2.4b verse typesetting}%
{%
\AtBeginDocument{%
\renewenvironment{verse}[1][\linewidth]{%
\stepcounter{verse@envctr}%
\setcounter{poemline}{0}\refstepcounter{poemline}%
\setcounter{vslineno}{1}%
\let\\=\@vscentercr
\list{}{\itemsep \z@
\itemindent -\vindent
\listparindent\itemindent
\parsep \stanzaskip
\ifdim #1 < \linewidth
\rightmargin \z@
\setlength{\leftmargin}{\linewidth}%
\addtolength{\leftmargin}{-#1}%
\addtolength{\leftmargin}{-0.5\leftmargin}%
\else
\rightmargin \leftmargin
\fi
\addtolength{\leftmargin}{\vindent}}%
\item[]%
}%
{\endlist}%
}%
}%
}
\AddToHook{file/blindtext.sty/after}[latex-lab-firstaid]{%
\FirstAidNeededT{blindtext}{sty}{\blindfiledate\space\blindfileversion\space%
blindtext-Package}%
{%
\renewcommand{\blind@items}{%
\setcounter{blind@listcount}{1}%
\loop
\ifblind@optional
\ifblind@long
\item[\blindtext@countitem] \blindtext@text
\else
\item[\blindtext@count] \blindtext@item
\fi
\else % \blind@optionalfalse
\ifblind@long
\item \blindtext@text
\else
\item \blindtext@countitem
\fi
\fi % \ifblind@optional
{%
\loop
\ifnum\value{blindlistlevel}>\value{blindlist@level}%
\stepcounter{blind@levelcount}%
\blind@list[\value{blindlist}]\relax
\addtocounter{blind@levelcount}{-1}%
\setcounter{blind@listcount}{1}%
\repeat
\expandafter}\if@endpe\@doendpe\fi % <----------changed
\ifnum\value{blind@listcount}<\value{blindlist}%
\stepcounter{blind@listcount}%
\repeat
}
}%
}
\AddToHook{package/cleveref/after}
{
\let\@makefntext\cref@old@makefntext
\AddToHook{cmd/@makefntext/before}{%
\cref@constructprefix{footnote}{\cref@result}%
\protected@edef\cref@currentlabel{%
[footnote][\arabic{footnote}][\cref@result]%
\p@footnote\@thefnmark}}
\RenewDocumentCommand\refstepcounter{om}{%
\IfNoValueTF{#1}%
{\refstepcounter@noarg{#2}}%
{\refstepcounter@optarg[#1]{#2}}%
}%
}
\endinput
%%
%% End of file `latex-lab-testphase-firstaid.sty'.
|