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: Efficiently including images in DocBook


/ Nik Clayton <nik@nothing-going-on.demon.co.uk> was heard to say:
| Producing the postscript version doesn't work.  For some reason, although
| fig1.eps exists in the same directory, the stylesheets don't use fig1.eps,
| and instead use the contents of the textobject, so I get ASCII art in my
| Postscript output.

Uh, that's odd. If you send me your stylesheet and a short test
document I'll run my eyeballs over it.

| I tried an alternative method, where I include two imageobjects, but wrap
| them with the parameter entities so that only one is visible to the processor
| when the document is converted;
| 
|    <mediaobject>
|      <![ %output.png; [
|      <imageobject>
|        <imagedata fileref="fig1.png" format="png">
|      </imageobject>
|      ]]>
| 
|      <![ %output.eps; [
|      <imageobject>
|        <imagedata fileref="fig1.eps" format="eps">
|      </imageobject>
|      ]]>

If you go with this approach, I recommend that you leave both images
in (skip the marked sections) and teach the stylesheets to explicitly
select the right one.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com>      | Where it is permissible both to
http://www.oasis-open.org/docbook/ | die and not to die, it is an abuse
Chair, DocBook Technical Committee | of valour to die.--Mencius

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