This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Indenting paragraphs for PDF output,XSL customisation
- From: Bob Stayton <bobs at caldera dot com>
- To: fyl2xp1 <vnhu38f93 at subdimension dot com>,docbook-apps <docbook-apps at lists dot oasis-open dot org>
- Date: Tue, 09 Jul 2002 09:45:25 -0700
- Subject: Re: DOCBOOK-APPS: Indenting paragraphs for PDF output,XSL customisation
- References: <023401c22761$a44a29f0$0f11bc93@htrtttt>
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