texlive[76155] Master/texmf-dist: more unicode-math commands, tex4ht
commits+karl at tug.org
commits+karl at tug.org
Wed Aug 27 21:53:56 CEST 2025
Revision: 76155
https://tug.org/svn/texlive?view=revision&revision=76155
Author: karl
Date: 2025-08-27 21:53:55 +0200 (Wed, 27 Aug 2025)
Log Message:
-----------
more unicode-math commands, tex4ht r1731-2; early package hooks in usepackage-user.4ht, tex4ht r1733
Revision Links:
--------------
https://tug.org/svn/texlive?view=revision&revision=1731
https://tug.org/svn/texlive?view=revision&revision=1733
Modified Paths:
--------------
trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
trunk/Master/texmf-dist/tex/generic/tex4ht/unicode-math-hooks.4ht
trunk/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2025-08-26 23:41:59 UTC (rev 76154)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2025-08-27 19:53:55 UTC (rev 76155)
@@ -1,3 +1,13 @@
+2025-08-27 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-4ht.tex (usepackage.4ht): added support for insertion of
+ user defined early package hooks in usepackage-user.4ht.
+ https://tex.stackexchange.com/a/750266/2891
+
+ * tex4ht-4ht.tex (unicode-math-hooks.4ht): declared some extra user
+ commands.
+ https://tex.stackexchange.com/a/750266/2891
+
2025-08-16 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-mathml.tex (mathml.4ht): added support for \MathMLintent
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex 2025-08-26 23:41:59 UTC (rev 76154)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex 2025-08-27 19:53:55 UTC (rev 76155)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1728 2025-08-14 19:03:26Z michal_h21 $
+% $Id: tex4ht-4ht.tex 1733 2025-08-27 11:03:31Z michal_h21 $
% tex tex4ht-4ht or ht tex tex4ht-4ht
%
% Copyright 2009-2025 TeX Users Group
@@ -523,6 +523,7 @@
\else \let\:temp=\use:package \fi
\fi \:temp}
|<add to usepackage|>
+|<user usepackage.4ht|>
>>>
\<problem due to hyperref?\><<<
@@ -538,6 +539,13 @@
\fi
>>>
+This allows to put package specific redefinitions in a custom file, usepackage-user.4ht, without
+a need to modify Tex4ht sources.
+
+\<user usepackage.4ht\><<<
+\InputIfFileExists{usepackage-user.4ht}{}
+>>>
+
%%%%%%%%%%%%%%%%%
\Part{latex.ltx}
%%%%%%%%%%%%%%%%
@@ -4497,8 +4505,17 @@
\@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
Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/unicode-math-hooks.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/unicode-math-hooks.4ht 2025-08-26 23:41:59 UTC (rev 76154)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/unicode-math-hooks.4ht 2025-08-27 19:53:55 UTC (rev 76155)
@@ -1,4 +1,4 @@
-% unicode-math-hooks.4ht (2024-01-16-13:47), generated from tex4ht-4ht.tex
+% unicode-math-hooks.4ht (2025-08-27-10:30), generated from tex4ht-4ht.tex
% Copyright 2021-2024 TeX Users Group
%
% This work may be distributed and/or modified under the
@@ -16,7 +16,7 @@
%
% If you modify this program, changing the
% version identification would be appreciated.
-\immediate\write-1{version 2024-01-16-13:47}
+\immediate\write-1{version 2025-08-27-10:30}
\:dontusepackage{unicode-math}
\TivhTcats% we need to reset catcodes for : and @ before \RequirePackage
@@ -23,8 +23,17 @@
\@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
Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht 2025-08-26 23:41:59 UTC (rev 76154)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/usepackage.4ht 2025-08-27 19:53:55 UTC (rev 76155)
@@ -1,4 +1,4 @@
-% usepackage.4ht (2025-05-13-14:10), generated from tex4ht-4ht.tex
+% usepackage.4ht (2025-08-27-10:30), generated from tex4ht-4ht.tex
% Copyright 2003-2009 Eitan M. Gurari
% Copyright 2009-2025 TeX Users Group
%
@@ -17,7 +17,7 @@
%
% If you modify this program, changing the
% version identification would be appreciated.
-\immediate\write-1{version 2025-05-13-14:10}
+\immediate\write-1{version 2025-08-27-10:30}
\def\:temp{tex4ht}\ifx \:temp\@currname
\:warning{\string\usepackage{tex4ht} again?}
@@ -103,6 +103,8 @@
\Configure{PackageHooks}{manyfoot.sty}{manyfoot-hooks.4ht}
\Configure{PackageHooks}{bigfoot.sty}{bigfoot-hooks.4ht}
+\InputIfFileExists{usepackage-user.4ht}{}
+
\endinput
More information about the tex-live-commits
mailing list.