This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


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

Re: 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.


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