Adam Davies wrote:
Hi,
Question: How can I put "Continued overpage" at the bottom of the first
page of a sequence if the sequence happens to produce 2 or more pages
but not supply when it only produces 1 page?
Any help or insight into this would be greatful? I've tried using
markers but cant get the desired result. Is is possible to supply a
choice of first pages depending on the
repeatable-page-master-alternatives matches?
This is achievable using markers or
fo:repeatable-page-master-alternatives. The key to getting the R-P-M-A
working is to order the conditional-page-master-reference correctly.
e.g.
<fo:simple-page-master master-name="first">
<fo:region-body margin-bottom="2cm"/>
<fo:region-after region-name="continued" extent="2cm"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="rest">
<fo:region-body margin-bottom="2cm"/>
<fo:region-after region-name="continued" extent="2cm"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="last">
<fo:region-body/>
</fo:simple-page-master>
<fo:page-sequence-master>
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference master-reference="last"
page-position="last"/>
<fo:conditional-page-master-reference master-reference="rest"
page-position="first"/>
<fo:conditional-page-master-reference master-reference="rest"
page-position="rest"/>
</fo:repeatble-page-master-alternatives>
</fo:page-sequence-master>
Notice that the reference to last is first in the list. This means if
you have a one page document, the last master will be selected. If you
placed it last in the list of alternatives, then the first one is
selected for your first page.
HTH,
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]