Debian Codegraph @

texmf-dist/tex/generic/tex4ht/citation-style-language.4ht

raw
1 % citation-style-language.4ht (2023-11-20-14:31), generated from tex4ht-4ht.tex
2 % Copyright 2023 TeX Users Group
3 %
4 % This work may be distributed and/or modified under the
5 % conditions of the LaTeX Project Public License, either
6 % version 1.3c of this license or (at your option) any
7 % later version. The latest version of this license is in
8 % http://www.latex-project.org/lppl.txt
9 % and version 1.3c or later is part of all distributions
10 % of LaTeX version 2005/12/01 or later.
11 %
12 % This work has the LPPL maintenance status "maintained".
13 %
14 % The Current Maintainer of this work
15 % is the TeX4ht Project <http://tug.org/tex4ht>.
16 %
17 % If you modify this program, changing the
18 % version identification would be appreciated.
19 \immediate\write-1{version 2023-11-20-14:31}
20
21 \ExplSyntaxOn
22 % add links to bibliography around citations
23 \cs_set:Npn \__csl_print_citation:N #1
24 {
25 \bool_if:NT \l__csl_regression_test_bool
26 { \tl_show:N #1 }
27 \bool_if:NTF \l__csl_note_bool
28 { \footnote {\a:cite\cIteLink{X\l__csl_cite_keys_tl}{bk-\l__csl_citation_id_tl}#1\EndcIteLink\b:cite} }
29 {\a:cite\cIteLink{X\l__csl_cite_keys_tl}{bk-\l__csl_citation_id_tl}#1\EndcIteLink\b:cite}
30 }
31 \ExplSyntaxOff
32
33 % fix problems with \bibitem in the bibliography
34 \def\setb:anc#1{\def\bib:anc{\def\bib:anc{#1}\ifx \bib:anc\empty \else%
35 \a:bibitem{}{\a:bibanchor#1}\b:bibitem\fi \gdef\bib:anc{}}%
36 \def\AnchorLabel{\bib:anc}%
37 }
38
39 \Hinput{citation-style-language}
40 \endinput
41