Debian Codegraph @

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

raw
1 % enotez.4ht (2023-10-31-12:28), 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-10-31-12:28}
20
21 \NewConfigure{enotezmark}{2}
22 \NewConfigure{enotezback}{2}
23 \NewConfigure{enmark}{2}
24 % patch commands that print note numbers, so we can add links
25 \ExplSyntaxOn
26 % \:currentnoteid contains the note number
27 \protected\def\:tempa #1#2{\def\:currentnoteid{#1}\a:enotezmark\o:enotez_write_mark:nn:{#1}{#2}\b:enotezmark}
28 \HLet\enotez_write_mark:nn\:tempa
29
30 \protected\def\:tempa#1{\def\:currentnoteid{#1}\a:enotezback\o:enotez_write_list_number:n:{#1}\b:enotezback}
31 \HLet\enotez_write_list_number:n\:tempa
32
33 % enmark has issue with spurious space after note number, but space is missing after dot.
34 \cs_set:Npn \enmark #1 {\a:enmark#1\unskip\b:enmark}
35 \Configure{enmark}{}{.}
36
37 \ExplSyntaxOff
38
39 \Hinput{enotez}
40 \endinput
41