Re: Graphics figures for dvi/ps and html

Subject: Re: Graphics figures for dvi/ps and html
From: Norman Walsh <norm@xxxxxxxxxxxxx>
Date: Mon, 29 Dec 1997 09:35:08 -0500
> I'm trying to produce docs with a few figures, and am not sure how to
> specify the figures. AFAIK, html wants gif, and tex/postscript wants
> eps, but the DocBook <GRAPHIC> entity want me to specify one or the
> other in the FORMAT attribute. What is the preferred method for
> including figures? I'm happy making multiple formats for the figure
> files (assuming it is necessary), but don't know how to specify it. I'm
> using jade/jadetex and Norm Walsh's style sheets...

The FORMAT attribute is not required. My solution to this problem is
generally to leave out the format and the extension:

  <graphic fileref="foo"></fileref>

and then provide both foo.eps and foo.gif and let the stylesheet
select the appropriate format.

Another solution is to use ENTITYREF and select an alternate set
of entities depending on whether you are formatting the HTML or
PostScript version. That may be a slightly cleaner solution in
SGML-purist terms, I dunno.

--norm

P.S. Of course, having proposed the former solution, I realize
that I'll have to support it ;-).  And so I will, in the next
DocBook Stylesheet release.



 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread
  • Graphics figures for dvi/ps and html
    • Thomas G. Lockhart - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id WAA14557Sun, 28 Dec 1997 22:51:04 -0500 (EST)
      • Norman Walsh - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id JAA23261Mon, 29 Dec 1997 09:37:38 -0500 (EST) <=
      • <Possible follow-ups>
      • Eve L. Maler - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id KAA23642Mon, 29 Dec 1997 10:28:27 -0500 (EST)