[OS X TeX] \ifpdf in TeX4ht?

Eitan Gurari gurari at cse.ohio-state.edu
Thu Apr 5 00:25:20 CEST 2007



 > Are you sure that you cannot reproduce differently clipped pictures  
 > when you use PS and EPS graphics files with
 > 
 >     \begin{picture}(70,70)
 >       \put(100,18){\includegraphics*[height=80mm]{Image}}
 >     \end{picture}
 > 
 > instead of
 > 
 >     \begin{picture}(70,70)
 >       \put(100,18){\includegraphics*[height=80mm,bb=0 0 328 406]{Image}}
 >     \end{picture}
 > 
 > and remove in-between all TeX4ht output?

I'm not sure I fully understand the question. When TeX4ht encounters
the picture environment it

(1) blindly extracts the dvi code between \begin{picture} and
    \end{picture} into a separate page within the idv file and
(2) inserts into the html file an <img href="..." /> reference to a
    newly generated picture foo.png
(3) asks dvips+ImageMagic/convert to translate the dvi page into
    a figure named foo.png.

The tex4ht utility does not interfere with the way the latex compiler
processes the code within the picture environment into dvi format.  On
the other hand, latex also does very little with the code.  It just
deligates requests to the postprocessor to deal with the code.  For
the above picture environments the requests take the forms

     move to the page origin (left top corner)
     move right   ... points 
     move left    ... points
     set picture  PSfile="Image.eps" llx=55 lly=68 urx=0 ury=0 rhi=2267 clip
     clip content outside the page boundaries

and

     move to the page origin (left top corner)
     move right   ... points 
     move left    ... points
     set picture  PSfile="Image.eps" llx=0 lly=0 urx=328 ury=406 rhi=2267 clip
     clip content outside the page boundaries

respectively.

 > > (2) Does dvips produce postscript files acceptable for ghostscript.
 > 
 > So the moral is to use PS pictures with TeX4ht?

The moral is to use \begin{picture}...\end{picture} environments
processable by the post processors in use within the G-stripts of
tex4ht.env.  So, if dvips is in use, apparently only PS pictures are
possible. Similar, if dvipng is in use, other formats might work.And
so forth.

-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 macostex-archives mailing list