docbook-apps

Expand all | Collapse all

Re: [docbook-apps] Titlepage customization: Align legalnotice at bottom of page?

  • 1.  Re: [docbook-apps] Titlepage customization: Align legalnotice at bottom of page?

    Posted 02-06-2012 20:09
    The footnote method can work, but it requires turning off the footnote separator rule for the titlepage masters. Actually, there is a third method in XSL-FO. An fo:block-container can be positioned absolutely on the page, even in FOP. The "bottom" property sets a distrance of that block from the bottom.

    <fo:block-container absolute-position="absolute" bottom="2cm">
    <fo:block>Content here</fo:block>
    </fo:block-container>

    With no other properties, the block will assume the width of the page, with a height matching the content. The only danger with absolute positioning is that if the content above it extends downward too far, they can overlap.

    I don't know of a way to specify a fo:block-container in the titlepage spec file, though. You'll need to specify a named template, and put this code in the named template. Let me know if you need further details.

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net


    ----- Original Message -----
    From: Paul Tremblay
    To: danmauer
    Cc: docbook-apps@lists.oasis-open.org
    Sent: Monday, February 06, 2012 11:43 AM
    Subject: Re: [docbook-apps] Titlepage customization: Align legalnotice at bottom of page?


    As far as I know, no. Your two options are:

    1. Put the legal notice in a footer(fo:static-content)
    2. Just keep using the <fo:block space-before = "xin" until you get your desired result.

    Maybe there is a way to use a maximum property with a keep-together.within.page. I've never tried this.

    Paul


    On Mon, Feb 6, 2012 at 11:02 AM, danmauer <dan.mauer@gmail.com> wrote:


    I've customized my fo-output title page by modifying the 'article' template
    in titlepage.templates.xml, removing some elements I don't want to appear,
    and so on.

    Spacing the elements relative to one another is pretty trivial (using
    space-before and space-after properties). What I can't seem to figure out
    is how to align one or more elements at the bottom of the page. In this
    case, I specifically want the <legalnotice> element to appear at the very
    bottom of the main content area.

    Is there a straightforward way to accomplish this?

    Thanks,
    -dan


    --
    View this message in context: http://old.nabble.com/Titlepage-customization%3A-Align-legalnotice-at-bottom-of-page--tp33272410p33272410.html
    Sent from the docbook apps mailing list archive at Nabble.com.


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org






  • 2.  Re: [docbook-apps] Titlepage customization: Align legalnotice at bottom of page?

    Posted 02-06-2012 20:38

    Thanks to both of you, I'll give each method a try and see what works best
    for me.


    Bob Stayton wrote:
    >
    > The footnote method can work, but it requires turning off the footnote
    > separator rule for the titlepage masters. Actually, there is a third
    > method in XSL-FO. An fo:block-container can be positioned absolutely on
    > the page, even in FOP. The "bottom" property sets a distrance of that
    > block from the bottom.
    >
    > <fo:block-container absolute-position="absolute" bottom="2cm">
    > <fo:block>Content here</fo:block>
    > </fo:block-container>
    >
    > With no other properties, the block will assume the width of the page,
    > with a height matching the content. The only danger with absolute
    > positioning is that if the content above it extends downward too far, they
    > can overlap.
    >
    > I don't know of a way to specify a fo:block-container in the titlepage
    > spec file, though. You'll need to specify a named template, and put this
    > code in the named template. Let me know if you need further details.
    >
    > Bob Stayton
    > Sagehill Enterprises
    > bobs@sagehill.net
    >
    >
    > ----- Original Message -----
    > From: Paul Tremblay
    > To: danmauer
    > Cc: docbook-apps@lists.oasis-open.org
    > Sent: Monday, February 06, 2012 11:43 AM
    > Subject: Re: [docbook-apps] Titlepage customization: Align legalnotice
    > at bottom of page?
    >
    >
    > As far as I know, no. Your two options are:
    >
    > 1. Put the legal notice in a footer(fo:static-content)
    > 2. Just keep using the <fo:block space-before = "xin" until you get your
    > desired result.
    >
    > Maybe there is a way to use a maximum property with a
    > keep-together.within.page. I've never tried this.
    >
    > Paul
    >
    >
    > On Mon, Feb 6, 2012 at 11:02 AM, danmauer <dan.mauer@gmail.com> wrote:
    >
    >
    > I've customized my fo-output title page by modifying the 'article'
    > template
    > in titlepage.templates.xml, removing some elements I don't want to
    > appear,
    > and so on.
    >
    > Spacing the elements relative to one another is pretty trivial (using
    > space-before and space-after properties). What I can't seem to figure
    > out
    > is how to align one or more elements at the bottom of the page. In
    > this
    > case, I specifically want the <legalnotice> element to appear at the
    > very
    > bottom of the main content area.
    >
    > Is there a straightforward way to accomplish this?
    >
    > Thanks,
    > -dan
    >
    >
    > --
    > View this message in context:
    > http://old.nabble.com/Titlepage-customization%3A-Align-legalnotice-at-bottom-of-page--tp33272410p33272410.html
    > Sent from the docbook apps mailing list archive at Nabble.com.
    >
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail:
    > docbook-apps-help@lists.oasis-open.org
    >
    >
    >
    >
    >

    --
    View this message in context: http://old.nabble.com/Titlepage-customization%3A-Align-legalnotice-at-bottom-of-page--tp33272410p33274382.html
    Sent from the docbook apps mailing list archive at Nabble.com.