This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Indenting paragraphs for PDF output,XSL customisation
- From: fyl2xp1 <vnhu38f93 at subdimension dot com>
- To: Bob Stayton <bobs at caldera dot com>,docbook-apps <docbook-apps at lists dot oasis-open dot org>
- Date: Tue, 09 Jul 2002 18:11:16 +0100
- Subject: Re: DOCBOOK-APPS: Indenting paragraphs for PDF output,XSL customisation
- References: <023401c22761$a44a29f0$0f11bc93@htrtttt><20020709094525.A27739@caldera.com>
That does the job exactly as desired, thanks.
----- Original Message -----
From: "Bob Stayton" <bobs@caldera.com>
To: "fyl2xp1" <vnhu38f93@subdimension.com>; "docbook-apps"
<docbook-apps@lists.oasis-open.org>
Sent: Tuesday, July 09, 2002 5:45 PM
Subject: Re: DOCBOOK-APPS: 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