On Fri, 24 Jul 2009, Edward Chapin wrote:
> I've had this problem for a while, but only just now got around to
> reporting it. I seem recall seeing something once upon a time about
> this, but don't remember the cause or possible solution.
>
> To this email I have attached an example image produced for SC/19. It
> can be found in:
>
> applications/smurf/docs/sc19/sc19.htx/img14.png
>
> this has been converted from
>
> applications/smurf/docs/sc19/pspec.eps
>
> As you can see the edges of this figure are messed up. There are other
> examples from this document that look even worse.
>
> Does this happen to other people?
Yes, but not as bad as that. It's usually down to a problem with the
"pstoimg" script in the latex2html distribution (which usually points the
finger at either ghostscript or netpbm, often the best thing to do is just
try it out on another machine and save yourself some pain).
> I think that I made the files by doing screen captures with GIMP and
> then exporting as eps. Perhaps the files that GIMP produces have
> something wrong with them? Since these are bitmaps in the first place,
> is there a way that I can include .png files directly in the .tex?
I do this in SUN/243 (SPLAT). In that I produce GIFs and EPS figures for
the same graphic and define a macro like:
% Major graphic (like a screen shot). Needs ".gif" and ".eps" forms.
\newcommand{\mainfigure}[1]
{\begin{center}
\latexhtml{\includegraphics[scale=0.5]{sun243_figures/#1.eps}}{\htmladdimg{#1.gif}}
\end{center}
}
which is used in the text as a simple:
\mainfigure{plot}
that expects to find figures "sun243_figures/plot.eps" and "sun243.htx/plot.gif".
Note that the gifs can copied in the hypertext document during make, you
can arrange for this to be done by listing them in a "sunxxx.htx_tar.extras" file.
Also see what KAPPA does to have hypertext gif figures included.
Cheers,
Peter.
|