[tex4ht-commits] [SCM] tex4ht updated: r803 - trunk/lit
michal_h21 at gnu.org.ua
michal_h21 at gnu.org.ua
Sat Oct 3 22:59:01 CEST 2020
Author: michal_h21
Date: 2020-10-03 23:59:01 +0300 (Sat, 03 Oct 2020)
New Revision: 803
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-4ht.tex
Log:
Fixed LaTeX spacing commands
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2020-10-02 22:13:59 UTC (rev 802)
+++ trunk/lit/ChangeLog 2020-10-03 20:59:01 UTC (rev 803)
@@ -2,6 +2,10 @@
* tex4ht-4ht.tex (fancyvrb.4ht): fixed spurious blank lines that were
sometimes produced.
+ * tex4ht-4ht.tex (latex.4ht): fixed \,, \;, \: and other similar commands.
+ Their definition had been added to LaTeX kernel and their behaviour changed,
+ resulting in possible fatal error.
+ https://tug.org/pipermail/tex4ht/2020q4/002735.html
2020-09-28 Michal Hoftich <michal.h21 at gmail.com>
Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2020-10-02 22:13:59 UTC (rev 802)
+++ trunk/lit/tex4ht-4ht.tex 2020-10-03 20:59:01 UTC (rev 803)
@@ -6699,29 +6699,32 @@
% \relax\ifmmode\mskip\thinmuskip\else\thinspace\fi
% }
-We should try to support more math space commands. These definitions should
-keep the original meaning by default.
+LaTeX release from October 2020 made spacing commands originally available only in the math
+mode available also in the text mode. The following configurations are based on the LaTeX kernel
+of this release. The configurable hooks are used only in the math mode, as they were used in
+this way originally. These configurations are used in the MathML mode.
\<latex math\><<<
-\def\:tempc{\csname a:>\endcsname} \HLet\>|=\:tempc
-\def\:tempc{\csname a:;\endcsname} \HLet\;|=\:tempc
-\def\:tempc{\csname a:!\endcsname} \HLet\!|=\:tempc
-\def\:tempc{\csname a::\endcsname} \HLet\:|=\:tempc
-\NewConfigure{>}{1} \Configure{>}{\csname o:>\endcsname}
-\NewConfigure{;}{1} \Configure{;}{\csname o:;\endcsname}
-\NewConfigure{!}{1} \Configure{!}{\csname o:!\endcsname}
-\NewConfigure{:}{1} \Configure{:}{\csname o::\endcsname}
->>>
-
-\<latex math\><<<
-\def\:tempc{\relax\ifmmode\csname a:,\endcsname\else\thinspace\fi}
-\expandafter\HLet\csname , \endcsname=\:tempc
-\def\:tempc{\relax
- \ifmmode\csname a:,\endcsname\expandafter\:gobble\fi
- \o:thinspace: }
-\HLet\thinspace=\:tempc
-\NewConfigure{,}{1}
+\NewConfigure{;}{1}
+\NewConfigure{!}{1}
+\NewConfigure{:}{1}
+\NewConfigure{,}{1}
+\NewConfigure{>}{1}
+\DeclareRobustCommand\:tmspace[2]{\ifmmode\expandafter\csname a:#1\endcsname\else\kern#2\fi}
+\DeclareRobustCommand\,{\:tmspace{,}{.16667em}}
+\DeclareRobustCommand\;{\:tmspace;{.2777em}}
+\DeclareRobustCommand\!{\:tmspace!{-.16667em}}
+\DeclareRobustCommand\:{\:tmspace{:}{.2222em}}
+\DeclareRobustCommand\>{\:tmspace;{.2222em}}
+\let\thinspace\,
+\let\medspace\:
+\let\negthinspace\!
+\let\thickspace\;
\Configure{,}{\mskip\thinmuskip}
+\Configure{;}{\mskip\thickmuskip}
+\Configure{!}{\mskip-\thinmuskip}
+\Configure{:}{\mskip\medmuskip}
+\Configure{>}{\mskip\medmuskip}
>>>
\<plain math\><<<
More information about the tex4ht-commits
mailing list.