Debian Codegraph @

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

raw
1 % apacite.4ht (2025-10-26-07:14), generated from tex4ht-4ht.tex
2 % Copyright (C) 2000-2009 Eitan M. Gurari
3 % Copyright 2009-2025 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 2025-10-26-07:14}
21
22 \def\B:my@dummy{\B@my@dummy}
23 \def\:citeP{\@citeP}
24
25 \def\:tempc<#1>[#2]#3{%
26 \start:cite\a:cite \o:@@cite:<#1>[#2]{#3}\b:cite \end:cite
27 }
28 \HLet\@@cite=\:tempc
29
30 \ifx \@@citeNP\:UnDef
31 \def\start:cite{%
32 \let\sv:edef\edef
33 \let\gobble:cite=\:gobble
34 \def\edef##1{\def\:temp{##1}%
35 \ifx \:temp\B:my@dummy
36 \ifx \o:BCA\:UnDef
37 \ifx \BCA\:UnDef\else
38 \let\o:BCA=\BCA
39 \def\BCA####1####2{\Protect\cIteLink{X\@citeb}{}%
40 \o:BCA{####1}{####2}\Protect\EndcIteLink}%
41 \fi
42 \fi
43 \fi
44 \sv:edef##1}%
45 }
46 \def\end:cite{%
47 \let\edef=\sv:edef
48 \let\BCA=\o:BCA \let\o:BCA=\:UnDef
49 }
50
51 \else
52 \def\start:cite{%
53 \let\sv:edef\edef
54 \let\gobble:cite=\:gobble
55 \def\edef##1{\def\:temp{##1}%
56 \ifx \:temp\B:my@dummy
57 \cIteLink{X\@citeb}{}\let\gobble:cite=\empty
58 \ifx \o:@BBOP\:UnDef
59 \let\o:@BBOP=\@BBOP
60 \let\o:@BBAY=\@BBAY
61 \pend:def\@BBOP{\gobble:cite\EndcIteLink
62 \let\gobble:cite=\:gobble}%
63 \pend:def\@BBAY{\gobble:cite\EndcIteLink
64 \let\gobble:cite=\:gobble}%
65 \fi
66 \fi
67 \ifx \:temp\:citeP
68 \gobble:cite\EndcIteLink \let\gobble:cite=\:gobble
69 \fi
70 \sv:edef##1}%
71 }
72 \def\end:cite{%
73 \let\edef=\sv:edef
74 \let\@BBOP=\o:@BBOP \let\o:@BBOP=\:UnDef
75 \let\@BBAY=\o:@BBAY \let\o:@BBAY=\:UnDef
76 }
77 \def\:tempc[#1]#2{%
78 \start:cite\a:cite \o:@citeA:[#1]{#2}\b:cite \end:cite
79 }
80 \HLet\@citeA=\:tempc
81 \def\:tempc[#1]#2{%
82 \start:cite\a:cite \o:@citeyear:[#1]{#2}\b:cite \end:cite
83 }
84 \HLet\@citeyear=\:tempc
85 \def\:tempc<#1>[#2]#3{%
86 \start:cite\a:cite \o:@@citeNP:<#1>[#2]{#3}\b:cite \end:cite
87 }
88 \HLet\@@citeNP=\:tempc
89 \def\:tempc#1{%
90 \start:cite\a:cite \o:@citeauthor:{#1}\b:cite \end:cite
91 }
92 \HLet\@citeauthor=\:tempc
93 \def\:tempc[#1]#2{%
94 \start:cite\a:cite \o:@citeyearNP:[#1]{#2}\b:cite \end:cite
95 }
96 \HLet\@citeyearNP=\:tempc
97
98 \fi
99 \Hinput{apacite}
100 \endinput
101