diff options
Diffstat (limited to 'support/TeX4ht/source/tex4ht-html4.tex')
-rw-r--r-- | support/TeX4ht/source/tex4ht-html4.tex | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/support/TeX4ht/source/tex4ht-html4.tex b/support/TeX4ht/source/tex4ht-html4.tex index d72179ac89..55989c36fc 100644 --- a/support/TeX4ht/source/tex4ht-html4.tex +++ b/support/TeX4ht/source/tex4ht-html4.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-html4.tex 1218 2022-10-19 12:57:24Z michal_h21 $ +% $Id: tex4ht-html4.tex 1220 2022-10-23 18:52:19Z michal_h21 $ % Compile 4 times: latex tex4ht-html4 % Copy html4.4ht into the work directory before all but the last compilation. % @@ -13923,13 +13923,20 @@ for margin pars. \fi class="includegraphics" } +\else \:CheckOption{Gin-percent} \if:Option +\ExplSyntaxOn +\Configure{Gin-dim} + {\if:boundingbox{style="max-width:\fp_eval:n{round(\Gin@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\><<< |