[tex4ht] Including vector graphics (graphicx and PDF files)

Hans Georg Schaathun georg+tex at schaathun.net
Fri Jan 8 12:37:51 CET 2016


Brilliant, Michal.
That works wonders.
Thank you very much.

On Thu, Jan 07, 2016 at 05:40:43PM +0100, Michal Hoftich wrote:
> Dear Hans,
> 
> >
> > How do I employ the hej.cfg file?
> >
> > I thought such config files would be included in the first list
> > of options on the command line, like this:
> >   htlatex  graphics.tex "xhtml,2,hej,mathml,charset=utf-8" \
> >      "-cmozhtf -utf8" "-cvalidate"
> > However, this command still produces a PNG file which is used
> > in the <img> element in HTML.  Where did I err?
> 
> It should be
> 
> htlatex  graphics.tex "hej,2,mathml,charset=utf-8" \
>       "-cmozhtf -utf8" "-cvalidate"
> 
> or
> 
> make4ht -uc hej.cfg graphics.tex "2,mathml" "" " -cvalidate"
> 
> >
> > BTW.  What is the purpose of
> >   \DeclareGraphicsRule{.svg}{bmp}{.xbb}{}
> > in the config?
> 
> It declares to use a .xbb file for determining the image dimensions
> when image is included without dimension hint (ie.
> \includegraphics{plot}). In your example, where you use explicit
> dimensions it is not so important, but I think it is useful in
> general.
> 
> The .xbb file can be created using
> 
>     ebb -x image
> 
> command. Note that not every image format is supported.
> 
> Michal

-- 
:-- Hans Georg


More information about the tex4ht mailing list