From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sam Roberts" To: "Eric Bischoff" Cc: "Peter Toft" , Subject: Re: images in Docbook with Red Hat 6.2 Date: Wed, 27 Dec 2000 06:36:00 -0000 Message-id: <00af01bfa571$69317680$1403a8c0@cogent.ca> References: <38F65807.4905D5C@cybercable.tm.fr> X-SW-Source: 2000/msg00157.html > 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: > > > > 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