[tex4ht] graphics Images no longer resize in TL 2015 with tex4ht, need help finding why

Nasser M. Abbasi nma at 12000.org
Wed Jul 22 10:21:44 CEST 2015

Spend 6 hrs on this and I gave up. For some reason, the images
no longer resize in the web pages as before. This
used to work.

I made earlier a small document that describes this
resizing method here (layout)


But when I tried this method now, I found that the images
do not resize anymore ! Something changed and I can't find
what. I used to use 32 bit TL 2014 before. Now I am on
64 bit Linux and TL 2015.

I show the steps I did below, which is the same as in the layout
document, and I also put everything in one zip file at :


Here is MWE:

The folder contains 1_pic.pdf and 1_pic.svg. The SVG image
was obtained _from_ the pdf file using

pdfcrop --margins 10 --clip 1_pic.pdf 1_pic.pdf
pdf2svg 1_pic.pdf 1_pic.svg

The command used to compile is:

make4ht -u -c nma.cfg foo.tex "htm,pic-align,notoc*"
I also tried
htlatex foo.tex "nma,htm,pic-align,notoc*"

the nma.cfg is :

\Configure{DOCTYPE}{\HCode{<!DOCTYPE html>\Hnewline}}
\Configure{@HEAD}{\HCode{<meta charset="utf-8"/>\Hnewline}}
% Various helper functions
% default font size
\let\emwidth\f at size
% convert pt to rem
\newcommand\CalcRem[1]{\strip at pt\dimexpr(#1)/\emwidth}
           {\Picture[pict]{\csname Gin at base\endcsname.svg
           \space style="width:\CalcRem{\Gin at req@width}em;"
           \special{t4ht+ at File: \csname Gin at base\endcsname.svg}%

All of the above, is exactly what is described in my layout document.

But the images come out all the same size. Which is not what is supposed
to happen. I do not want to use natural sizes. I use [width=0.7\paperwidth]{image}
and such for all the images.

Could someone please try this and see if they get different image sizes?
Simply unzip the folder, and just type the compile command and see if
you get different size images.

I am using TL 2015, 64 bit, on Linux mint 7.2, 64 bits.

thank you,

More information about the tex4ht mailing list