Re: Centering a fo:list-block

2002-06-01 Thread Mick Farmer
Dear J.Pietschmann and fellow foppers,

First, thank you for offering at least a solution!  I was
used to equal width columns in tbl and troff documents, but
wasn't aware of the feature in FOP.

However, you state "if there is no explicit width, there
is no point in centering it".  If I knew the width in
advance, then I could specify the correct start-indent
value.  I simply want a collection of blocks to be centered
on the page and I'm happy for each block to use as much
horizontal space as it likes.

Regards,

Mick   /"\  
   \ /  
X  ASCII Ribbon Campaign
   / \ Against HTML Mail


Re: Centering a fo:list-block

2002-05-31 Thread J.Pietschmann
Mick Farmer wrote:
I have a  which I would like centered
(i.e. equal left and right margins) on the page.  The
text-align attribute centers each individual line, but
that's not what I want.
The more obvious solutions (fo:inline-container et al.) do not yet
work with FOP. There is still the big gun: a blind table.
Approach: use a table with three columns. The middle column gets the
width the list block should have (if there is no explicit width, there
is no point in centering it). The other two columns should be of the
same width, that's what proportional-column-width is for.
Result:
  
   
   
   
   
 
   
   
 
   
 
   1.
 
 
Lorem Ipsum
 
   
 
   
   
 
   
 
 J.Pietschmann