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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Fri Nov 26 13:06:08 CET 2021


Author: michal_h21
Date: 2021-11-26 12:06:08 +0000 (Fri, 26 Nov 2021)
New Revision: 1017

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
Fixed adsjustbox support

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2021-11-24 13:29:14 UTC (rev 1016)
+++ trunk/lit/ChangeLog	2021-11-26 12:06:08 UTC (rev 1017)
@@ -1,5 +1,9 @@
 2021-11-24  Michal Hoftich  <michal.h21 at gmail.com>
 
+	* tex4ht-4ht.tex (adjustbox.4ht): fixed Adjusbox support.
+
+2021-11-24  Michal Hoftich  <michal.h21 at gmail.com>
+
 	* tex4ht-4ht.tex (tcolorbox.4ht): delete label name after use, to prevent
 	it's use in subsequent Tcolorbox environments.
 

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2021-11-24 13:29:14 UTC (rev 1016)
+++ trunk/lit/tex4ht-4ht.tex	2021-11-26 12:06:08 UTC (rev 1017)
@@ -31040,11 +31040,13 @@
 % suppress trying to draw the frame
 \def\adjbox at boxframe#1#2#3{}
 
-% we should redefine all adjustbox environments, they may produce unvanted artifacts, math mode, etc.
+% patch macro that collects adjustbox contents and draw box. we disable this functionality, as all 
+% of this should be handled by CSS
 % keys are set, so it should be possible to extract  colors or frame size in theory
-% I just haven't found a working solution yet
-\renewenvironment{adjustbox}[1]{\update:adjustbox:id\adjbox at setkeys{#1}\a:Adjustbox}{\b:Adjustbox}
+\long\def\:temp#1#2{\update:adjustbox:id\adjbox at setkeys{#1}\a:Adjustbox #2\b:Adjustbox\endgroup}
+\HLet\@adjustbox\:temp
 
+
 % definitions for macros
 % we don't save any colors and just use one configuration for all box types.  
 \def\@bgcolorbox#1{\update:adjustbox:id\a:Adjustbox\BOXCONTENT\b:Adjustbox}



More information about the tex4ht-commits mailing list.