This is the mail archive of the docbook-tools-discuss@sourceware.cygnus.com mailing list for the docbook-tools project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: images in Docbook with Red Hat 6.2


> 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
 



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]