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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Sat Jan 18 18:47:48 CET 2025


Author: michal_h21
Date: 2025-01-18 17:47:47 +0000 (Sat, 18 Jan 2025)
New Revision: 1628

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
fixed chemfig support

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2025-01-10 09:41:53 UTC (rev 1627)
+++ trunk/lit/ChangeLog	2025-01-18 17:47:47 UTC (rev 1628)
@@ -1,3 +1,8 @@
+2025-01-18  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (chemfig.4ht): fixed support for Chemfig diagrams.
+	https://github.com/michal-h21/tex4ebook/issues/137
+
 2025-01-10  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht.tex (latex.4ht): use \protected at edef in definition of

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2025-01-10 09:41:53 UTC (rev 1627)
+++ trunk/lit/tex4ht-4ht.tex	2025-01-18 17:47:47 UTC (rev 1628)
@@ -32078,9 +32078,10 @@
 
 \<chemfig.4ht\><<<
 % chemfig.4ht (|version), generated from |jobname.tex
-% Copyright 2024 TeX Users Group
+% Copyright 2024-2025 TeX Users Group
 |<TeX4ht license text|>
 |<chemfig redefinitions|>
+|<chemfig pictures|>
 
 \Hinput{chemfig}
 \endinput
@@ -32114,6 +32115,19 @@
 \ExplSyntaxOff
 >>>
 
+Chemfig uses TikZ for drawing chemical diagrams. It works more or less fine, but 
+sometimes the pictures are clipped, or fail to convert with Dvisvgm. We can try to 
+enclose the whole Chemfig content in pictures, to see if it helps.
+
+\<chemfig pictures\><<<
+\NewConfigure{chemfigscheme}{2}
+\Configure{chemfigscheme}{\Picture+{}}{\EndPicture}
+\ExplSyntaxOn
+\pend:def\schemestart{\a:chemfigscheme}
+\append:def\CF_schemestop{\b:chemfigscheme}
+\ExplSyntaxOff
+>>>
+
 %%%%%%%%%%%%%%%
 \Section{Esvect}
 %%%%%%%%%%%%%%%



More information about the tex4ht-commits mailing list.