xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luis Ferro <lfe...@teladigital.pt>
Subject Layout question - part II
Date Thu, 07 Apr 2005 14:04:39 GMT
Hi again,

My main page layout is like this:

  <!-- layout information -->
  <fo:layout-master-set>
    <fo:simple-page-master master-name="odd"
                  page-height="29.7cm"
                  page-width="21cm"
                  margin-top="3.00cm"
                  margin-bottom="2.90cm"
                  margin-left="2.1cm"
                  margin-right="2.1cm">
      <fo:region-body background-color="white" column-count="2" 
column-gap="1.00cm" margin-top="1.00cm" margin-bottom="1.50cm" 
margin-left="1.35cm" margin-right="0.80cm"/>
      <fo:region-before extent="1.00cm" 
region-name="non-blank-before-odd" background-color="white" />
      <fo:region-after extent="1.50cm" region-name="non-blank-after-odd" 
background-color="white" />
    </fo:simple-page-master>

    <fo:simple-page-master master-name="even"
                  page-height="29.7cm"
                  page-width="21cm"
                  margin-top="3.00cm"
                  margin-bottom="2.90cm"
                  margin-left="2.1cm"
                  margin-right="2.1cm">

       <!-- Problem starts here -->


      <fo:region-body background-color="white" column-count="2" 
column-gap="1.00cm" margin-top="1.00cm" margin-bottom="1.50cm"  
margin-left="0.90cm" margin-right="1.35cm"/>
      <fo:region-before extent="1.00cm" 
region-name="non-blank-before-even" background-color="white" />

       <!-- Problem ends here -->

      <fo:region-after extent="1.50cm" 
region-name="non-blank-after-even" background-color="white" />
    </fo:simple-page-master>
    <fo:page-sequence-master master-name="chapter1a">
        <fo:repeatable-page-master-alternatives>
            <fo:conditional-page-master-reference
                master-reference="odd"
                odd-or-even="odd" />
            <fo:conditional-page-master-reference
                master-reference="even"
                odd-or-even="even" />
        </fo:repeatable-page-master-alternatives>
    </fo:page-sequence-master>
  </fo:layout-master-set>
  <!-- end: defines page layout -->

This will make a page like this:

+-------------+
|      1      |
+-------------+
|      |      |
|      |      |
|  2a  |  2b  |
|      |      |
|      |      |
|      |      |
+-------------+
|      3      |
+-------------+

1. is the even-before
2a is column 1, 2b is column 2
3. is the even-after

My goal was to assemble the page like:

+-------------+
|   1  |      |
+------+      |
|      |      |
|      |      |
|  2a  |  2b  |
|      |      |
|      |      |
|      |      |
+-------------+
|      3      |
+-------------+

Using the "precedence='false'" and a even-before height='0cm' in the 
even-before definition, i managed to make the content flow in the column 
2b as it is shown in my goal, but, the column 2a sticks behind the 
content of the even-before. If i set the height to "1cm", then, the 
column 2b will work ok also, but the even-before content disapears 
behind the content of column 2a.

Thanx again for all the help,
Luis Ferro



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message