Loading ...
Sorry, an error occurred while loading the content.

Page number placement

Expand Messages
  • mrdaddiah
    Hello Everyone: I have set up master pages that alternate between left and right. Now I am trying to display the page number on the outer edge (left side
    Message 1 of 3 , Mar 5, 2002
    • 0 Attachment
      Hello Everyone:

      I have set up master pages that alternate between "left"
      and "right." Now I am trying to display the page number on the outer
      edge (left side on left master page, etc.)

      Can anyone help with this?

      --Will Schick
    • Bryan Rasmussen
      ... okay well, here goes, excuse the ugly naming conventions I use: if you have the following simple-page-master:
      Message 2 of 3 , Mar 6, 2002
      • 0 Attachment
        >I have set up master pages that alternate between "left"
        >and "right." Now I am trying to display the page number on the outer
        >edge (left side on left master page, etc.)

        okay well, here goes, excuse the ugly naming conventions I use:

        if you have the following simple-page-master:
        <fo:simple-page-master master-name="rightPage" margin-bottom="1.5cm"
        margin-right="2cm" margin-left="2cm" margin-top="1.5cm">

        <fo:region-before extent="2in" padding="0.1in 0.1in 0.1in .50in"
        display-align="before" precedence="false" region-name="before-right"/>
        <fo:region-after extent=".9in" padding="0.1in 0.03in 0.1in 0.5in"
        display-align="after" precedence="false" region-name="after-right"/>
        <fo:region-body margin-bottom="1.5in" column-count="2"
        column-gap=".5in" margin-right="1cm" margin-left="1cm" margin-top="1.5cm"
        padding="2.0in 0.8in 1.8in 0.8in"/>

        </fo:simple-page-master>
        then in a page controlled by that page-master you would have the following:

        <fo:static-content flow-name="before-right"> in here you would put your
        blocks, tables etc that controlled your placement of the
        <fo:page-number/></fo:static-content>
      • Jeffrey A. Stewart
        If you describe a left page and a right page in a fo:page-sequence-master, you can use the following generically:
        Message 3 of 3 , Mar 11, 2002
        • 0 Attachment

          If you describe a left page and a right page in a fo:page-sequence-master, you can use the following generically:

           

                                              <fo:static-content flow-name="xsl-region-after">

                                                          <fo:block font-family="San-Serif" font-size="8pt" text-align="outside">

                                                                      <fo:page-number/>

                                                          </fo:block>

                                              </fo:static-content>

           

          The text-align attribute of outside will align your page number to the outside edge of each alternating page.

           

           

          -----Original Message-----
          From:
          Bryan Rasmussen [mailto:bry@...]
          Sent
          :
          Wednesday, March 06, 2002 4:53 AM
          To: XSL-FO@yahoogroups.com
          Subject: RE: [XSL-FO] Page number placement

           



          >I have set up master pages that alternate between "left"
          >and "right."  Now I am trying to display the page number on the outer
          >edge (left side on left master page, etc.)

          okay well, here goes, excuse the ugly naming conventions I use:

          if you have the following simple-page-master:
          <fo:simple-page-master master-name="rightPage" margin-bottom="1.5cm"
          margin-right="2cm" margin-left="2cm" margin-top="1.5cm">

          <fo:region-before extent="2in" padding="0.1in 0.1in 0.1in .50in"
          display-align="before" precedence="false" region-name="before-right"/>
          <fo:region-after extent=".9in" padding="0.1in 0.03in 0.1in 0.5in"
          display-align="after" precedence="false" region-name="after-right"/>
                   <fo:region-body margin-bottom="1.5in" column-count="2"
          column-gap=".5in" margin-right="1cm" margin-left="1cm" margin-top="1.5cm"
          padding="2.0in 0.8in 1.8in 0.8in"/>

              </fo:simple-page-master>
          then in a page controlled by that page-master you would have the following:

          <fo:static-content flow-name="before-right"> in here you would put your
          blocks, tables etc that controlled your placement of the
          <fo:page-number/></fo:static-content>




          To unsubscribe from this group, send an email to:
          XSL-FO-unsubscribe@egroups.com



          Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

        Your message has been successfully submitted and would be delivered to recipients shortly.