[tex4ht-commits] [SCM] tex4ht updated: r1437 - trunk/lit

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Fri Jan 12 16:30:32 CET 2024


Author: michal_h21
Date: 2024-01-12 15:30:32 +0000 (Fri, 12 Jan 2024)
New Revision: 1437

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
fixed support for the \ang command

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2024-01-10 22:44:00 UTC (rev 1436)
+++ trunk/lit/ChangeLog	2024-01-12 15:30:32 UTC (rev 1437)
@@ -1,3 +1,8 @@
+2024-01-12  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (siunitx.4ht): fixed support for the \ang command.
+	https://fosstodon.org/@alerque@mastodon.social/111701555810243494
+
 2024-01-10  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht.tex (fancyvrb.4ht): fixed regression in \FVC at Verb in

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2024-01-10 22:44:00 UTC (rev 1436)
+++ trunk/lit/tex4ht-4ht.tex	2024-01-12 15:30:32 UTC (rev 1437)
@@ -30679,12 +30679,39 @@
 
 \<siunitx.4ht\><<<
 % siunitx.4ht (|version), generated from |jobname.tex
-% Copyright 2021 TeX Users Group
+% Copyright 2021-2024 TeX Users Group
 |<TeX4ht license text|>
+|<siunitx ang|>
 \Hinput{siunitx}
 \endinput
 >>> \AddFile{9}{siunitx}
 
+This should bring support for the \Verb+\ang+ command, which can be used
+to input angles.
+
+\<siunitx ang\><<<
+\ExplSyntaxOn
+\cs_set_protected:Npn \__siunitx_angle_arc_print_auxv_fourht:w
+  #1 \q_nil #2 \q_nil #3 \q_nil #4 \q_nil #5 \q_nil #6 \q_stop
+{\bgroup\siunitx_print_number:n {#1#2#3#4#5}\egroup}
+
+\HLet\__siunitx_angle_arc_print_auxv:w\__siunitx_angle_arc_print_auxv_fourht:w
+
+
+\cs_set_protected:Npn \__siunitx_angle_arc_print_auxvi_fourht:n #1
+{
+  % we need to define these commands here
+  \def\degree{\ht:special{t4ht at +&{35}x2218;}x}
+  \def\arcminute{\prime}
+  \def\arcsecond{\prime\prime}
+  \ensuremath{\NoFonts\sp{#1}\EndNoFonts}
+}
+
+\HLet\__siunitx_angle_arc_print_auxvi:n\__siunitx_angle_arc_print_auxvi_fourht:n 
+\ExplSyntaxOff
+
+>>>
+
 %%%%%%%%%%%%%
 \Section{Ushort}
 %%%%%%%%%%%%%



More information about the tex4ht-commits mailing list.