docbook-apps

Centering lines of text in FO output

  • 1.  Centering lines of text in FO output

    Posted 12-05-2006 19:06
    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:
    ron@catterall.net
    Prolongacion de Hidalgo 140 http://catterall.net/
    San Felipe del Agua tel: +52 951 520 1821
    Oaxaca 68020 Mexico fax: +1 530 348 8309