Debian Codegraph @

texmf-dist/tex/generic/tex4ht/unicode-math-hooks.4ht

raw
1 % unicode-math-hooks.4ht (2025-08-31-08:21), generated from tex4ht-4ht.tex
2 % Copyright 2021-2025 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 2025-08-31-08:21}
20
21 \:dontusepackage{unicode-math}
22 \TivhTcats% we need to reset catcodes for : and @ before \RequirePackage
23 \@ifpackageloaded{fontspec}{}
24 {\RequirePackage{fontspec}} % it is loaded by unicode-math
25 \RequirePackage{amsmath}
26 % declare some commands used in unicode-math, to prevent errors when users use
27 % them in their documents
28 \DeclareDocumentCommand \setmathfont { O{} m O{} }{}
29 \DeclareDocumentCommand \unimathsetup {m} {}
30 \DeclareDocumentCommand \setoperatorfont {m} {}
31 \DeclareDocumentCommand \setmathfontface { m O{} m O{} } {}
32 \DeclareDocumentCommand \symrm { m } {\mathrm{#1}}
33 \DeclareDocumentCommand \symup { m } {\mathrm{#1}}
34 \DeclareDocumentCommand \varkappa { } {\kappa}
35 \DeclareDocumentCommand \increment { } {\Delta}
36
37 \catcode`\:=11\makeatletter
38 % declare prime and backprime Unicode symbols. they shouldn't be used with
39 % explicit superscripts
40 \DeclareDocumentCommand\dprime{}{\sp{\ht:special{t4ht@+\string&{35}x2033;}x}}
41 \DeclareDocumentCommand\trprime{}{\sp{\ht:special{t4ht@+\string&{35}x2034;}x}}
42 \DeclareDocumentCommand\qprime{}{\sp{\ht:special{t4ht@+\string&{35}x2057;}x}}
43 \DeclareDocumentCommand\backprime{}{\sp{\ht:special{t4ht@+\string&{35}x2035;}x}}
44 \DeclareDocumentCommand\backdprime{}{\sp{\ht:special{t4ht@+\string&{35}x2036;}x}}
45 \DeclareDocumentCommand\backtrprime{}{\sp{\ht:special{t4ht@+\string&{35}x2037;}x}}
46 \endinput
47