This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Indenting paragraphs for PDF output,XSL customisation


On Tue, Jul 09, 2002 at 04:59:44PM +0100, fyl2xp1 wrote:
> I would like to indent paragraphs for PDF output like this:
> 
>     para 1 blah blah blah
> blah blah blah blah blah
> blah blah blah blah blah
>     para 2 blah blah blah
> blah blah blah blah blah
> blah blah blah blah blah
> 
> So that vertical space is preserved, I know how to  do the
> actual vertical spacing:
> 
> <xsl:attribute-set name="normal.para.spacing">
>    <xsl:attribute name="space-before.optimum">0.1cm</xsl:attribute>
>    <xsl:attribute name="space-before.minimum">0.1cm</xsl:attribute>
>    <xsl:attribute name="space-before.maximum">0.1cm</xsl:attribute>
> </xsl:attribute-set>
> 
> but how do I do the indentation?

Try adding something like:
    <xsl:attribute name="text-indent">3em</xsl:attribute>

I've not tried it, but the XSL spec says this is for
indenting the first line of a block.

Editorial comment:
Seems to me the property name could have been more clear,
such as "first-line-start-indent". After all, there
is a "last-line-end-indent", whose purpose I cannot imagine.

-- 

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
Caldera International, Inc.                 fax:   (831) 429-1887
                                            email: bobs@caldera.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]