Re: [docbook-apps] Centering lines of text in FO output

From
Bob Stayton <>
Date
2006-12-06T17:08:17+00:00
ID
05cc01c71959$1014c990$6400a8c0@totoro
Thread
Re: [docbook-apps] Centering lines of text in FO output
Does it have to be a para?  The processing expectations for para are to 
flow the text into the available space, not preserve line endings.  Your 
example looks like a literallayout, where line endings are preserved.  With 
a role attribute on the literallayout you could customize the attributes in 
the 'verbatim.properties' attribute-set to add a centering property.

Bob Stayton
Sagehill Enterprises
DocBook Consulting



----- Original Message ----- 
From: "Ron Catterall" <>
To: <>
Sent: Tuesday, December 05, 2006 11:05 AM
Subject: [docbook-apps] Centering lines of text in FO output


> Hi
> I have a problem which looks like it ought be general.  there may be an 
> easy way around it, but I haven't found it.
>
> Within some normal <para> text I want to center a group of lines in a PDF 
> file, e.g. I want to get output like:
>
>  This is a normal line of text from a <para> and
>  </para> piece of XML
>                    abc def
>              qwerty asdfgh zxcvbn
>                      123
>                qazwsx edc rfvt
>  This is a normal line of text from a <para> and
>  </para> piece of XML
>
> I've tried using a single column table with line height control - it 
> works, but it's a very inelegant solution, and very slow with all the 
> PIs.
>
> A better solution would be to use a <simplelist columns="1" type="vert"> 
> with each line a <member>, but how to center the lines?
>
> Am I missing something simple?  I'm using XEP.
>
> Ron
> -- 
> Ron Catterall, Phd, DSc         email: 
> Prolongacion de Hidalgo 140 http://catterall.net/
> San Felipe del Agua tel: +52 951 520 1821
> Oaxaca      68020 Mexico fax: +1 530 348 8309
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
>
>
>