texlive[73509] Master/texmf-dist: chemfig diagram fixes, tex4ht r1628
commits+karl at tug.org
commits+karl at tug.org
Sat Jan 18 22:53:31 CET 2025
Revision: 73509
https://tug.org/svn/texlive?view=revision&revision=73509
Author: karl
Date: 2025-01-18 22:53:31 +0100 (Sat, 18 Jan 2025)
Log Message:
-----------
chemfig diagram fixes, tex4ht r1628
Revision Links:
--------------
https://tug.org/svn/texlive?view=revision&revision=1628
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/chemfig.4ht
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2025-01-18 21:05:38 UTC (rev 73508)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2025-01-18 21:53:31 UTC (rev 73509)
@@ -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/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex 2025-01-18 21:05:38 UTC (rev 73508)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex 2025-01-18 21:53:31 UTC (rev 73509)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1627 2025-01-10 09:41:53Z michal_h21 $
+% $Id: tex4ht-4ht.tex 1628 2025-01-18 17:47:47Z michal_h21 $
% tex tex4ht-4ht or ht tex tex4ht-4ht
%
% Copyright 2009-2025 TeX Users Group
@@ -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}
%%%%%%%%%%%%%%%
Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/chemfig.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/chemfig.4ht 2025-01-18 21:05:38 UTC (rev 73508)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/chemfig.4ht 2025-01-18 21:53:31 UTC (rev 73509)
@@ -1,5 +1,5 @@
-% chemfig.4ht (2024-02-14-09:16), generated from tex4ht-4ht.tex
-% Copyright 2024 TeX Users Group
+% chemfig.4ht (2025-01-18-13:42), generated from tex4ht-4ht.tex
+% Copyright 2024-2025 TeX Users Group
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
@@ -16,7 +16,7 @@
%
% If you modify this program, changing the
% version identification would be appreciated.
-\immediate\write-1{version 2024-02-14-09:16}
+\immediate\write-1{version 2025-01-18-13:42}
\ExplSyntaxOn
\NewConfigure{chemname}{3}
@@ -40,7 +40,14 @@
\HLet\CF_chemnameb\:tempa
\ExplSyntaxOff
+\NewConfigure{chemfigscheme}{2}
+\Configure{chemfigscheme}{\Picture+{}}{\EndPicture}
+\ExplSyntaxOn
+\pend:def\schemestart{\a:chemfigscheme}
+\append:def\CF_schemestop{\b:chemfigscheme}
+\ExplSyntaxOff
+
\Hinput{chemfig}
\endinput
More information about the tex-live-commits
mailing list.