% unicode-math-hooks.4ht (2025-08-31-08:21), generated from tex4ht-4ht.tex
% Copyright 2021-2025 TeX Users Group
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
% version 1.3c of this license or (at your option) any
% later version. The latest version of this license is in
%   http://www.latex-project.org/lppl.txt
% and version 1.3c or later is part of all distributions
% of LaTeX version 2005/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% The Current Maintainer of this work
% is the TeX4ht Project <http://tug.org/tex4ht>.
%
% If you modify this program, changing the
% version identification would be appreciated.
\immediate\write-1{version 2025-08-31-08:21}

\:dontusepackage{unicode-math}
\TivhTcats% we need to reset catcodes for : and @ before \RequirePackage
\@ifpackageloaded{fontspec}{}
{\RequirePackage{fontspec}} % it is loaded by unicode-math
\RequirePackage{amsmath}
% declare some commands used in unicode-math, to prevent errors when users use
% them in their documents
\DeclareDocumentCommand \setmathfont { O{} m O{} }{}
\DeclareDocumentCommand \unimathsetup {m} {}
\DeclareDocumentCommand \setoperatorfont {m} {}
\DeclareDocumentCommand \setmathfontface { m O{} m O{} } {}
\DeclareDocumentCommand \symrm { m } {\mathrm{#1}}
\DeclareDocumentCommand \symup { m } {\mathrm{#1}}
\DeclareDocumentCommand \varkappa { } {\kappa}
\DeclareDocumentCommand \increment { } {\Delta}

\catcode`\:=11\makeatletter
% declare prime and backprime Unicode symbols. they shouldn't be used with
% explicit superscripts
\DeclareDocumentCommand\dprime{}{\sp{\ht:special{t4ht@+\string&{35}x2033;}x}}
\DeclareDocumentCommand\trprime{}{\sp{\ht:special{t4ht@+\string&{35}x2034;}x}}
\DeclareDocumentCommand\qprime{}{\sp{\ht:special{t4ht@+\string&{35}x2057;}x}}
\DeclareDocumentCommand\backprime{}{\sp{\ht:special{t4ht@+\string&{35}x2035;}x}}
\DeclareDocumentCommand\backdprime{}{\sp{\ht:special{t4ht@+\string&{35}x2036;}x}}
\DeclareDocumentCommand\backtrprime{}{\sp{\ht:special{t4ht@+\string&{35}x2037;}x}}
\endinput

