[OS X TeX] \ifpdf in TeX4ht?

Eitan Gurari gurari at cse.ohio-state.edu
Sat Mar 31 09:35:14 EDT 2007



 > I have the picture file in all formats:
 > 
 > 	 .png .tif .gif .jpeg .eps .ps .svg
 > 
 > plus a .bb file for use with latex and DVI output.
 > 
 > Is there no way to use \DeclareGraphicsExtensions{} and set a  
 > preference for picture files with htlatex, as I try?

How about making a request for

            \DeclareGraphicsExtensions{.ps,.eps,.gif,.png,.jpeg}  

in html mode instead of the request

            \DeclareGraphicsExtensions{.gif,.png,.eps,.ps,.jpeg} 

provided for pdf mode?

 > Also the shell  
 > script could check whether the picture file already exists in the  
 > preferred format, then no gs invocation would be necessary ...
 
A request of the form

        \begin{picture}(70,70) 
          \put(100,18){\includegraphics*[height=80mm,bb=0 0 328 406]{Image}} 
        \end{picture} 

arrives to the shell in the form of DVI code with a picture embedded
within the code.  The shell script calls dvips + ImageMagic/convert
to take care of the code without looking into the content of the code.

-eitan


------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/





More information about the MacOSX-TeX mailing list