[tex4ht-commits] [SCM] tex4ht updated: r1220 - trunk/lit
Michal Hoftich
INVALID.NOREPLY at gnu.org.ua
Sun Oct 23 20:52:19 CEST 2022
Author: michal_h21
Date: 2022-10-23 18:52:19 +0000 (Sun, 23 Oct 2022)
New Revision: 1220
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-html4.tex
Log:
Added Gin-percent option
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2022-10-20 14:40:14 UTC (rev 1219)
+++ trunk/lit/ChangeLog 2022-10-23 18:52:19 UTC (rev 1220)
@@ -1,3 +1,9 @@
+2022-10-23 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-html4.tex (html4.4ht): added the Gin-percent option. It
+ sets the dimention of images in percent of the page width.
+ https://tex.stackexchange.com/a/563314/2891
+
2022-10-20 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-4ht.tex (floatrow.4ht): basic support for the Floatrow
Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex 2022-10-20 14:40:14 UTC (rev 1219)
+++ trunk/lit/tex4ht-html4.tex 2022-10-23 18:52:19 UTC (rev 1220)
@@ -13923,13 +13923,20 @@
\fi
class="includegraphics"
}
+\else \:CheckOption{Gin-percent} \if:Option
+\ExplSyntaxOn
+\Configure{Gin-dim}
+ {\if:boundingbox{style="max-width:\fp_eval:n{round(\Gin at req@width/\textwidth*100,2)}\char_generate:nn { `\% } { 12 }"}{}}
+\ExplSyntaxOff
\else
- \Log:Note{for key dimensions try the option
- `Gin-dim'; for key dimensions when bounding box is unavailable
- try `Gin-dim+'; neither is recommended}
+ \Log:Note{for setting image dimensions, try the option
+ `Gin-dim'; to use percents instead of units, use
+ `Gin-perecent'; for key dimensions when bounding
+ box is unavailable try `Gin-dim+';
+ neither is recommended}
\Configure{Gin-dim}
{\if:boundingbox{|<graphics width/height|>}{}}
-\fi \fi
+\fi \fi \fi
>>>
\<pixels graphics width/height\><<<
More information about the tex4ht-commits
mailing list.