This is the mail archive of the
docbook-tools-discuss@sourceware.cygnus.com
mailing list for the docbook-tools project.
Re: images in Docbook with Red Hat 6.2
- To: "Eric Bischoff" <ebisch at cybercable dot tm dot fr>
- Subject: Re: images in Docbook with Red Hat 6.2
- From: "Sam Roberts" <sam at cogent dot ca>
- Date: Thu, 13 Apr 2000 13:55:09 -0400
- Cc: "Peter Toft" <pto at sslug dot dk>, <docbook-tools-discuss at sourceware dot cygnus dot com>
- References: <Voyager.000413114314.27688B@sam.cogent.ca> <38F65807.4905D5C@cybercable.tm.fr>
> Such code trying to guess the graphic extension from within
> the stylesheet is a good idea. Anyway, it will always face
> the same problem : for publishing in HTML, for example, how
> to decide whether to add JPEG, PNG or GIF ? It's not easy.
It's only hard if you use more than one image format per
output type. Otherwise Norman's stylesheets allow you to
trivially set the extension for that format. This fails only
in the tex output case, because tex is formatted into both
pdf and ps.
> I'm currently using the following approach:
>
> <graphic fileref="foo.&gif-eps;">
>
> stands for:
> "use foo.gif when making HTML files, foo.eps when printing
> to TeX."
>
> You can do create on the same model other entities like
> &jpg-eps;. It's not perfect, but it's simple and works.
I assume we're talking the same thing here, and that you
use this technique only because you use BOTH gifs and
jpegs in the same document when it's formatted as html?
Sam