Re: DOCBOOK: Customizing title page

From
Stephane Bortzmeyer <>
Date
1999-12-14T17:29:13+00:00
ID
Thread
Re: DOCBOOK: Customizing title page
On Tue, Dec 14, 1999 at 10:58:04AM +0100, Nicolas Mailhot wrote:

> (this is the _only_ graphic in my doc, figures are
> mediaobjects). The only problem is it doesn't play well with
> html formatting since most browsers can not display eps
> files.

The trick I use is the following:

1) In the DocBook document, use a filename without extension:

<para>Here is an image: 
<graphic fileref="image"/></para>

2) In the custom stylesheet, use different values for print and for
HTML:

;; HTML stylesheet
(define %graphic-default-extension% "jpeg")

;; Print stylesheet
(define %graphic-default-extension% "eps")

That way, Web browsers get a JPEG and jadetex gets an EPS file.