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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Mon Jan 20 13:45:51 CET 2025


Author: michal_h21
Date: 2025-01-20 12:45:51 +0000 (Mon, 20 Jan 2025)
New Revision: 1629

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
disable environment patching with standalone

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2025-01-18 17:47:47 UTC (rev 1628)
+++ trunk/lit/ChangeLog	2025-01-20 12:45:51 UTC (rev 1629)
@@ -1,3 +1,9 @@
+2025-01-20  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (standalone.4ht): disable environment patching by
+	the Standalone class.
+	https://github.com/michal-h21/tex4ebook/issues/137
+
 2025-01-18  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht.tex (chemfig.4ht): fixed support for Chemfig diagrams.

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2025-01-18 17:47:47 UTC (rev 1628)
+++ trunk/lit/tex4ht-4ht.tex	2025-01-20 12:45:51 UTC (rev 1629)
@@ -20646,6 +20646,39 @@
 >>> 
 
 %%%%%%%%%%%%%%%%
+\Chapter{Standalone}
+%%%%%%%%%%%%%%%%
+
+%%%%%%%%%%%%%%%%%%%%%%%%
+\Section{standalone}
+%%%%%%%%%%%%%%%%%%%%%%%%
+
+\<standalone.4ht\><<< 
+% standalone.4ht (|version), generated from |jobname.tex
+% Copyright 2025 TeX Users Group
+|<TeX4ht license text|> 
+|<standalone standaloneenv|>
+
+\Hinput{standalone} 
+\endinput
+>>> \AddFile{}{standalone}
+
+The \Verb'\standaloneenv' command patches an environment in a way that the
+environment produces a separate page. This can cause issues with environments that
+are also patched by TeX4ht, for example tikzpicture. This happens with the 
+tikz class option for Stadnalone. The result is that TikZ pictures are not 
+converted to images correctly.
+
+I think we can just disable this command.
+
+\<standalone standaloneenv\><<<
+% save the original meaning if we want to use it eventually
+\let\:standaloneenv\standaloneenv
+% but disable if by default
+\let\standaloneenv\@gobble
+>>>
+
+%%%%%%%%%%%%%%%%
 \Part{AMS}
 %%%%%%%%%%%%%%%%
 



More information about the tex4ht-commits mailing list.