summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2025-01-20 03:04:27 +0000
committerNorbert Preining <norbert@preining.info>2025-01-20 03:04:27 +0000
commite2ee17212621c015f9fc7dfd0be840d5aacdd8af (patch)
treeda3fc16104f908504439576c78162c85efcc3d29 /support
parentf85ddc50c1586ecb9a55fed2349508c200098215 (diff)
CTAN sync 202501200304
Diffstat (limited to 'support')
-rw-r--r--support/TeX4ht/source/ChangeLog5
-rw-r--r--support/TeX4ht/source/tex4ht-4ht.tex18
2 files changed, 21 insertions, 2 deletions
diff --git a/support/TeX4ht/source/ChangeLog b/support/TeX4ht/source/ChangeLog
index 5a86a98de3..267be33441 100644
--- a/support/TeX4ht/source/ChangeLog
+++ b/support/TeX4ht/source/ChangeLog
@@ -1,3 +1,8 @@
+2025-01-18 Michal Hoftich <michal.h21@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@gmail.com>
* tex4ht-4ht.tex (latex.4ht): use \protected@edef in definition of
diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex
index 469cad0f41..9444558ddd 100644
--- a/support/TeX4ht/source/tex4ht-4ht.tex
+++ b/support/TeX4ht/source/tex4ht-4ht.tex
@@ -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 @@ it come out as a complete mess.
\<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 @@ for output formats.
\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}
%%%%%%%%%%%%%%%