<div dir="ltr"><div class="gmail_extra">On Sat, May 16, 2015 at 6:55 AM, Nasser M. Abbasi <span dir="ltr"><<a href="mailto:nma@12000.org" target="_blank">nma@12000.org</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div id=":1gx" class="" style="overflow:hidden">Currently I use svg graphics for all images since it looks better<br>
than png on the web. Here is a typical latex file. I use<br>
pdf version of the image for pdflatex and use the svg version<br>
for htlatex.<br>
<br>
I convert the pdf to svg using the program  pdf2svg which works<br>
much better thank inkscape I found.<br>
<br>
-------------------------------<br>
\documentclass[12pt]{article}<br>
\usepackage{graphicx}<br>
\begin{document}<br>
\ifdefined\HCode<br>
 \includegraphics[width=0.5\paperwidth]{p.svg}<br>
\else<br>
 \includegraphics[width=0.5\paperwidth]{p.pdf}<br>
\fi<br>
\end{document}<br>
---------------------------</div></blockquote></div><br><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(51,51,51)">​You may kindly change the above to the following:<br><br>documentclass[12pt]{article}<br>\usepackage{graphicx}<br><br>\begin{document}<br><br>\makeatletter<br>\Configure{graphics*}<br>  {eps}<br>  {\Picture[pict]{\csname Gin@base\endcsname.svg<br>       width="\expandafter\the\csname<br>          Gin@req@width\endcsname"<br>           height="\expandafter\the\csname<br>           Gin@req@height\endcsname"<br>      }%<br>   }<br>\makeatother<br><br>\ifdefined\HCode<br> \includegraphics[width=0.5\paperwidth]{gr1.eps}<br>\else<br> \includegraphics[width=0.5\paperwidth]{gr1.pdf}<br>\fi<br><br>\end{document}<br><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(51,51,51)">I got the following output for graphics inclusion part:<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(51,51,51)"><br><p class="noindent"><br>  <img src="gr1.svg" alt="pict"  <br>   width="307.14749pt" height="307.26057pt" ><br></p><br></div><br clear="all"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(51,51,51)">​Hope this is what you have been looking for.  TeX4ht needs .eps format of the figure since it works with dvips graphics driver and hence cannot accept any other graphics file format. <br>​</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:rgb(51,51,51)">​Best regards​</div><br>-- <br><div class="gmail_signature">Radhakrishnan<br><a href="https://maps.google.com/maps?q=River%20Valley,%20Thiruvananthapuram%20Neyyardam%20Road,%20Kerala,%20India&vector=1" target="_blank">River Valley</a><br><br></div>
</div></div>