docbook-apps

  • 1.  PNGs not appearing in PDF (appearing fine in HTML)

    Posted 10-17-2010 04:17
    docbook2html -u myfile.docbook generates an HTML file that includes my
    pictures.
    docbook2pdf -u myfile.docbook generates a PDF with only the text
    alternates/captions/etc.

    I have tried a variety of ways of specifying the picture, drawing on
    similar reports on this list archive to no avail. I've looked at Nik
    Clayton's Makefiles but am not currently using them. I suspect the
    stylesheets reflect his suggested changes now?
    Here's an extract from my docbook file; foo.png is in the current
    directory.

    <para>
    <emphasis>(style sheet leaves this page blank)</emphasis>


    <mediaobject>
    <imageobject>
    <imagedata fileref="foo.png" align="center" width="100%"
    scalefit="1"/>
    </imageobject>
    </mediaobject>


    <mediaobject>
    <imageobject>
    <imagedata fileref="foo"/>
    </imageobject>

    <textobject>
    <phrase>Another image</phrase>
    </textobject>
    </mediaobject>

    <mediaobject>
    <imageobject>
    <imagedata fileref="foo.png" format="PNG"/>
    </imageobject>
    <textobject>
    <phrase>Desk with empty email inbox and paper in-tray</phrase>
    </textobject>

    <para>
    Processed!
    </para>

    </mediaobject>


    docbook2pdf is a shell script with the single line:
    jw -f docbook -b pdf "$@"

    jw is a 'jade wrapper' which runs openjade, which reports:
    openjade:I: "openjade" version "1.3.2"
    openjade:I: "OpenSP" version "1.5.1"

    docbook-dsssl-nwalsh's VERSION is 1.79 (this may be fink's version?
    the last date in the subdir's change logs is lib/ChangeLog:2004-10-24
    <petere78@users.sourceforge.net>)
    I'm running docbook on a MacBook Pro with Mac OS X 10.5.8.

    thanks for any help you can provide!
    Nathan
    PS: I also have another figure with two imageobjects, 'something
    else.png' and 'something else.eps'. The former works ok in HTML, but
    the later confuses TeX, I think (doesn't handle spaces?) "else.eps"
    appears in the text of the resulting PDF, with an error in myfile.log
    that actually references the full filename, interestingly enough...
    (and indicates that .eps isn't a supported format)




  • 2.  RE: [docbook-apps] PNGs not appearing in PDF (appearing fine in HTML)

    Posted 10-26-2010 20:06
    | -----Original Message-----
    | From: Nathan Bailey
    |
    | docbook2html -u myfile.docbook generates an HTML file that
    | includes my
    | pictures.
    | docbook2pdf -u myfile.docbook generates a PDF with only the text
    | alternates/captions/etc.
    |
    | I have tried a variety of ways of specifying the picture,
    | drawing on
    | similar reports on this list archive to no avail. I've
    | looked at Nik
    | Clayton's Makefiles but am not currently using them. I suspect the
    | stylesheets reflect his suggested changes now?


    The last release of the DocBook DSSSL stylesheets was in 2004. The
    stylesheets are still available for download, but they are no longer
    actively maintained. Very few people ask about them these days. It may not
    be the answer you were hoping for, but I would recommend you to consider
    switching to the XSL stylesheets.

    Mauritz









  • 3.  Re: [docbook-apps] PNGs not appearing in PDF (appearing fine in HTML)

    Posted 10-27-2010 08:24
    Mauritz,
    I didn't realise I was on the legacy platform :-)

    FWIW, I have used fink to install them, and fink says:
    i docbook-dsssl-n 1.79-4 Norman Walsh's DSSSL DocBook
    stylesheets
    i docbook-dtd 4.5.0-1 DocBook SGML/XML DTDs official
    releases
    (i) docbook-utils 0.6.14-1008 Utilities for manipulating SGML and
    XML
    i docbook-xsl 1.74.3-1 Norman Walsh's XSL DocBook
    stylesheets

    So I have the XSL's installed - but I also have the DSSSL's, so
    perhaps I'm referring to the wrong ones?

    The top of my file says:



    ]>

    BTW, the links on this page:
    http://wiki.docbook.org/topic/MacOsx
    result in 404 errors. Is there a better place to go to find out how to
    install the latest and greatest docbook on Mac OS X?

    thanks!
    Nathan

    On 27/10/2010, at 7:05 AM, Mauritz Jeanson wrote:

    > | -----Original Message-----
    > | From: Nathan Bailey
    > |
    > | docbook2html -u myfile.docbook generates an HTML file that
    > | includes my
    > | pictures.
    > | docbook2pdf -u myfile.docbook generates a PDF with only the text
    > | alternates/captions/etc.
    > |
    > | I have tried a variety of ways of specifying the picture,
    > | drawing on
    > | similar reports on this list archive to no avail. I've
    > | looked at Nik
    > | Clayton's Makefiles but am not currently using them. I suspect the
    > | stylesheets reflect his suggested changes now?
    >
    >
    > The last release of the DocBook DSSSL stylesheets was in 2004. The
    > stylesheets are still available for download, but they are no longer
    > actively maintained. Very few people ask about them these days. It
    > may not
    > be the answer you were hoping for, but I would recommend you to
    > consider
    > switching to the XSL stylesheets.
    >
    > Mauritz
    >
    >
    >
    >
    >
    >




  • 4.  RE: [docbook-apps] PNGs not appearing in PDF (appearing fine in HTML)

    Posted 10-27-2010 18:54
    | -----Original Message-----
    | From: Nathan Bailey
    |
    | Mauritz,
    | I didn't realise I was on the legacy platform :-)
    |
    | FWIW, I have used fink to install them, and fink says:
    | i docbook-dsssl-n 1.79-4 Norman Walsh's DSSSL DocBook
    | stylesheets
    | i docbook-dtd 4.5.0-1 DocBook SGML/XML DTDs official
    | releases
    | (i) docbook-utils 0.6.14-1008 Utilities for
    | manipulating SGML and
    | XML
    | i docbook-xsl 1.74.3-1 Norman Walsh's XSL DocBook
    | stylesheets


    Yes, docbook-xsl is what I meant by "XSL stylesheets". The latest version is
    1.75.2 (and 1.76.1 is in the works). See
    http://sourceforge.net/projects/docbook/files/docbook-xsl/


    | So I have the XSL's installed - but I also have the DSSSL's, so
    | perhaps I'm referring to the wrong ones?
    |
    | The top of my file says:
    |
    | | "/sw/share/xml/dtd/docbookx/4.1.2/docbookx.dtd" [
    |
    |
    | ]>


    Here you are not referring to any stylesheets. You have references to a DTD
    and a couple of entities.

    See this indispensable guide for everything you need to know about using
    DocBook XSL:
    http://www.sagehill.net/docbookxsl/index.html


    | BTW, the links on this page:
    | http://wiki.docbook.org/topic/MacOsx
    | result in 404 errors. Is there a better place to go to find
    | out how to install the latest and greatest docbook on Mac OS X?


    I hope there is... But I know very little about Mac OS X, sorry.

    Mauritz






  • 5.  Re: [docbook-apps] PNGs not appearing in PDF (appearing fine in HTML)

    Posted 10-28-2010 16:14

    On 27 Oct 2010, at 19:54, Mauritz Jeanson wrote:

    > | BTW, the links on this page:
    > | http://wiki.docbook.org/topic/MacOsx
    > | result in 404 errors. Is there a better place to go to find
    > | out how to install the latest and greatest docbook on Mac OS X?
    >
    >
    > I hope there is... But I know very little about Mac OS X, sorry.

    You can install the docbook schemas and stylesheets using the normal Unix tarballs of course. However what I usually do is to use MacPorts, as that won't modify any Apple-supplied stuff, it patches things (if necessary) to make them build and work on OS X, and is a convenient way of installing packages like this.

    Go to <http://www.macports.org/install.php#pkg> and then when it is installed & set up, run:

    sudo port install docbook-xsl

    Cheers,

    Chris