docbook-apps

  • 1.  Simple way to have no (apparent) cover pages in PDF output

    Posted 02-06-2008 16:26
    I'm trying to use DocBook to build a short Quick Guide type document. I
    want the book or article title to be printed like a first level heading
    with very little other default stuff like copyright, author info, etc. ,
    and no page breaks after the rector and verso pages.



    I'm able to pretty easily get just the elements that I want and no
    others, but for the life of me I can't see how to avoid a page break
    before the content. I think it might be that the chapter elements get a
    page break by default. I can't seem to deduce how to make the output not
    have a page break before the chapters.



    Any ideas?



    Thanks

    Alan



    Alan C. Oehler

    Sr. Technical Writer

    Citrix Systems, Inc.

    Virtualization & Management Division




  • 2.  Re: [docbook-apps] Simple way to have no (apparent) cover pages in PDF output

    Posted 02-06-2008 17:37
    Yes, a chapter element generates a page-sequence in FO output, and a page sequence always starts on a new page. If you want to use book and chapter, you'll need to customize both templates so that book generates a page-sequence for all your content, and chapter does not. Or you might just use article, if that suffices for your needs. An article is a single page-sequence.

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net





  • 3.  RE: [docbook-apps] Simple way to have no (apparent) cover pages in PDF output

    Posted 02-06-2008 18:04
    Bob,



    Thanks for the quick reply.



    From what you said it seemed that the simplest thing was to make this an
    article and not a book. Alas, that seems to have some interaction with
    the custom page masters I set up to have a background graphic in the
    footers, which is another new thing I'm trying to do. While the root
    element was book, it seemed to work (except for there being no footer
    image on the last page, for some reason). When I changed it to article,
    fop generates an error that says



    2:39773 page-sequence must be child of root, not fo:flow



    and so I get no PDF at all. Any idea why that doesn't occur when the
    root is book but does when it's article?



    Alan



    Alan C. Oehler

    Sr. Technical Writer

    Citrix Systems, Inc.

    Virtualization & Management Division



    From: Bob Stayton [mailto:bobs@sagehill.net]
    Sent: Wednesday, February 06, 2008 9:37 AM
    To: Alan Oehler; docbook-apps@lists.oasis-open.org
    Subject: Re: [docbook-apps] Simple way to have no (apparent) cover pages
    in PDF output



    Yes, a chapter element generates a page-sequence in FO output, and a
    page sequence always starts on a new page. If you want to use book and
    chapter, you'll need to customize both templates so that book generates
    a page-sequence for all your content, and chapter does not. Or you
    might just use article, if that suffices for your needs. An article is
    a single page-sequence.



    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net






  • 4.  Re: [docbook-apps] Simple way to have no (apparent) cover pages in PDF output

    Posted 02-06-2008 18:51
    Hi Alan,
    It's hard to say why your customization doesn't work without seeing more details. Can you isolate the code in your customization that generates the problem?

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net





  • 5.  RE: [docbook-apps] Simple way to have no (apparent) cover pages in PDF output

    Posted 02-06-2008 19:23
    Bob,



    Yikes, I already reverted to using a book and doing something similar to
    the body pages for the titlepage pages (that is, making custom master
    pages for them as well as the body pages) and that has given me the
    result I'm after.



    Alan



    Alan C. Oehler

    Sr. Technical Writer

    Citrix Systems, Inc.

    Virtualization & Management Division



    From: Bob Stayton [mailto:bobs@sagehill.net]
    Sent: Wednesday, February 06, 2008 10:51 AM
    To: Alan Oehler; docbook-apps@lists.oasis-open.org
    Subject: Re: [docbook-apps] Simple way to have no (apparent) cover pages
    in PDF output



    Hi Alan,

    It's hard to say why your customization doesn't work without seeing more
    details. Can you isolate the code in your customization that generates
    the problem?



    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net