Debian Codegraph @

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

raw
1 % bibtex2.4ht (2021-05-16-09:21), generated from tex4ht-bibtex2.tex
2 % Copyright 2009-2021 TeX Users Group
3 % Copyright 2001-2009 Eitan M. Gurari
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 % http://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 <http://tug.org/tex4ht>.
17 %
18 % If you modify this program, changing the
19 % version identification would be appreciated.
20 \immediate\write-1{version 2021-05-16-09:21}
21
22 \catcode`\/=0
23 \catcode`\\=12
24 /edef/bibstyle{\bibstyle}
25 /catcode`/\=0
26 /catcode`//=12
27 \catcode`\&=12
28
29 \def\get{%
30 \immediate\read15 to \line
31 \ifeof15 \else
32 \expandafter\scan\line @@@@@@@@@&&&&
33 \expandafter\get
34 \fi
35 }
36 \def\scan#1#2#3#4#5#6#7#8#9{\def\first{#1#2#3#4#5#6#7#8#9}\put}
37 \def\put#1&&&&{%
38 \immediate\write15{\ifx \first\bibstyle
39 \ifx \style\empty \line \else \bibstyle{\style}\fi
40 \else \line\fi}}
41 \newcount\c
42 \def\Cats#1#2#3{\edef\temp{\the\c}%
43 \c=#3
44 \def\next{\catcode\c=#1
45 \ifnum \c=#2 \let\next=\relax \fi
46 \advance\c by -1 \next}\next
47 \c=\temp }
48
49 \def\jaux#1#2{%
50 \bgroup
51 \def\style{#2}%
52 \immediate\openin15=#1.aux
53 \ifeof15 \else
54 \Cats{12}{0}{255}%
55 \Cats{11}{65}{90}%
56 \Cats{11}{97}{122}%
57 \catcode`\^^M=5
58 \immediate\openout15=#1j.aux
59 \get
60 \immediate\write15{}
61 \closeout15
62 \fi
63 \egroup
64 }
65
66
67