[tex4ht] Newbie question about converting *.tex files with PDF figure references

Radhakrishnan CV cvr at river-valley.org
Fri Aug 26 09:19:51 CEST 2011


On Sat, Aug 13, 2011 at 5:39 AM, John Helly <hellyj at ucsd.edu> wrote:
> Greetings.
>
> I am enjoying learning htlatex's capabilities but find a puzzling behavior.  I think I understand that tex4ht tries to convert image files to *.png but I would like to retain the PDF's since they are higher quality.  The apparent attempt to produce the *.png files referred to below fails for reasons I don't understand but that's not the central question I have.
>
> In the *.html that is produced by htlatex I find the following code:
>
> <!--l. 113--><p class="noindent" ><img
> src="BasemapProduction_201010010x.png" alt="PIC" class="graphics"><!--tex4ht:graphics
> name="BasemapProduction_201010010x.png" src="/Users/hellyj/Active/Papers/2010_USN_SERDP_SLR/BasemapProduction/Tables/LIDAR_comparison_SIOxUSGS_HiRes.pdf"
> -->
> <br />
>
> can be changed to
>
> <!--l. 113--><p class="noindent" ><img
> src="/Users/hellyj/Active/Papers/2010_USN_SERDP_SLR/BasemapProduction/Tables/LIDAR_comparison_SIOxUSGS_HiRes.pdf" alt="PIC" class="graphics"><!--tex4ht:graphics
> name="BasemapProduction_201010010x.png" src="/Users/hellyj/Active/Papers/2010_USN_SERDP_SLR/BasemapProduction/Tables/LIDAR_comparison_SIOxUSGS_HiRes.pdf"
> -->
> <br />
>
> and the *.pdf file will display correctly.
>
> Is it possible to prevent tex4ht from making these replacements or is this something I have to do in post-processing?

Please include these lines in your document (after \begin{document})

\makeatletter

\Configure{graphics*}
   {pdf}
   {\Picture[pict]{\csname Gin at base\endcsname.pdf}}

\makeatother

Best regards
-- 
Radhakrishnan

PS: Apologies for the late reply.



More information about the tex4ht mailing list