OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: DOCBOOK-APPS: Re: DOCBOOK: screenshots in PDF output


[ This should probably be on docbook-apps.  I've set followups ]

On Fri, May 05, 2000 at 09:24:53AM -0700, Sean Kelly wrote:
> > > Anyone able to tell me what I'm doing wrong?
> >
> > Did you ever solve this?  I've got the same problem.
> 
> pdfjadetex can't handle images in EPS or GIF format.  It will accept images
> in PNG, JPG, MPS, and (of course) PDF.  (See
> .../texmf/tex/latex/graphics/pdftex.def line 95 or so.)

OK.  That being the case, why doesn't this work?

The software is JadeTeX 2.18, Jade 1.2.1, and teTeX 1.0.4.  I'm using
DocBook 3.1, and version 1.52 of Norm's stylesheets.

Here's a simple test file:

------------ 8< ------------ 8< ------------ 8< ------------ 8< ------------
<!DOCTYPE BOOK PUBLIC "-//OASIS//DTD DocBook V3.1//EN" [

<!ENTITY % local.notation.class " | PNG">
<!NOTATION PNG SYSTEM "PNG">
]>

<book>
  <bookinfo>
    <title>A test book</title>

    <author><firstname>Nik</firstname><surname>Clayton</surname></author>
  </bookinfo>

  <chapter>
    <title>Test</title>

    <para>A test image</para>

    <mediaobject>
      <imageobject>
	<imagedata fileref="test.png" format="png">
      </imageobject>
    </mediaobject>
  </chapter>
</book>
------------ 8< ------------ 8< ------------ 8< ------------ 8< ------------

I can build the HTML copy with the following command line:

    /usr/local/bin/jade -V nochunks  
          -c /usr/local/share/sgml/docbook/dsssl/modular/catalog 
          -c /usr/local/share/sgml/docbook/catalog 
          -c /usr/local/share/sgml/jade/catalog  
          -d /usr/local/share/sgml/docbook/dsssl/modular/html/docbook.dsl 
          -t sgml 
          book.sgml > book.html

and everything works normally.  Loading book.html in to a PNG-usable 
webbrowser shows the image as expected.

If I try and build a PDF copy (by first building the .tex file) with

    /usr/local/bin/jade -Vtex-backend 
          -c /usr/local/share/sgml/docbook/dsssl/modular/catalog 
          -c /usr/local/share/sgml/docbook/catalog 
          -c /usr/local/share/sgml/jade/catalog  
          -d /usr/local/share/sgml/docbook/dsssl/modular/print/docbook.dsl 
          -t tex -o book.tex book.sgml

The generated book.tex file has no reference to test.png in it (i.e.,
"grep -i png book.tex" fails to match).  If I then run

    pdftex "&pdfjadetex" book.tex

3 times to generate book.pdf and view it, there's no image file.

If I add an

      <imageobject>
        <imagedata fileref="test.eps" format="eps">
      </imageobject>

inside the <mediaobject> element and then generate Postscript output
the EPS file is correctly used in the generated book.ps file.

I'm missing something, but I've gone back and forth over my archives 
of this mailing list, and I can't see what.

N
-- 
Internet connection, $19.95 a month.  Computer, $799.95.  Modem, $149.95.
Telephone line, $24.95 a month.  Software, free.  USENET transmission,
hundreds if not thousands of dollars.  Thinking before posting, priceless.
Somethings in life you can't buy.  For everything else, there's MasterCard.
  -- Graham Reed, in the Scary Devil Monastery


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC