Debian Codegraph @

texmf-dist/tex/generic/tex4ht/caption.4ht

raw
1 % caption.4ht (2024-11-11-13:40), generated from tex4ht-4ht.tex
2 % Copyright 2007-2009 Eitan M. Gurari
3 % Copyright 2009-2024 TeX Users Group
4 %
5 % This work may be distributed and/or modified under the
6 % conditions of the LaTeX Project Public License, either
7 % version 1.3c of this license or (at your option) any
8 % later version. The latest version of this license is in
9 % https://www.latex-project.org/lppl.txt
10 % and version 1.3c or later is part of all distributions
11 % of LaTeX version 2005/12/01 or later.
12 %
13 % This work has the LPPL maintenance status "maintained".
14 %
15 % The Current Maintainer of this work
16 % is the TeX4ht Project <https://tug.org/tex4ht>.
17 %
18 % If you modify this program, changing the
19 % version identification would be appreciated.
20 \immediate\write-1{version 2024-11-11-13:40}
21
22 \let\sv:toclof\toclof
23 \def\toclof#1#2#3{%
24 \bgroup
25 \def\a:TocLink##1##2##3##4{\gdef\:temp{##4}}%
26 #2%
27 \egroup
28 \ifx \:temp\empty \else
29 \sv:toclof{#1}{#2}{#3}%
30 \fi
31 }
32 \let\lof:ConfigureToc\ConfigureToc
33 \long\def\ConfigureToc#1#2#3#4#5{%
34 \lof:ConfigureToc{#1}{#2}{#3}{#4}{#5}%
35 \def\:temp{#1}\def\:tempa{lof}\ifx \:temp\:tempa
36 \let\toc:lof\toclof
37 \def\toclof##1##2##3{%
38 \bgroup
39 \def\a:TocLink####1####2####3####4{\gdef\:temp{####4}}%
40 ##2%
41 \egroup
42 \ifx\:temp\empty\else
43 \toc:lof {##1}{##2}{##3}%
44 \fi
45 }\fi%
46 }
47
48 \ifdefined\cptA:\else
49 \c:def\cptA:{}\c:def\cptB:{}%
50 \c:def\cptC:{}\c:def\cptD:{}
51 \fi
52 \long\def\@makecaption#1#2{%
53 \xdef\continuedfloat@captype{\@captype}%
54 \caption@make@above%
55 \cptA:\caption@@make{\cap:ref{#1}}{\cptC:#2}\cptD:%
56 \caption@make@below%
57 }
58 \long\def\caption@makecaption#1#2{%
59 \xdef\continuedfloat@captype{\@captype}%
60 \caption@make@above%
61 \cptA:\caption@@make{\cap:ref{#1}}{\cptC:#2}\cptD:%
62 \caption@make@below%
63 }
64
65 \renewcommand*\caption@@@addcontentsline[4]{%
66 \def\temp{#1}\def\tempa{toc}\ifx \temp\tempa\else%
67 \gHAdvance\TitleCount 1%
68 \fi%
69 \addcontentsline{#1}{#2}{\protect\numberline{#3}{\detokenize{#4}}}%
70 }
71
72
73 \Hinput{caption}
74 \endinput
75