[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] help - double spacing output!
Thanks a lot, By the way I got another (may be longer solution) after consulting the docbook IRC, which is as follows: I just copied and pasted the section from footnote.xsl in my customization layer and added the line (line-height="normal") and got the result I needed. It looks like this: #--------------------- <xsl:template match="footnote"> <xsl:choose> <xsl:when test="ancestor::tgroup"> <xsl:call-template name="format.footnote.mark"> <xsl:with-param name="mark"> <xsl:apply-templates select="." mode="footnote.number"/> </xsl:with-param> </xsl:call-template> </xsl:when> <xsl:otherwise> <fo:footnote> <fo:inline> <xsl:call-template name="format.footnote.mark"> <xsl:with-param name="mark"> <xsl:apply-templates select="." mode="footnote.number"/> </xsl:with-param> </xsl:call-template> <xsl:text> </xsl:text> </fo:inline> <fo:footnote-body font-family="{$body.fontset}" font-size="{$footnote.font.size}" font-weight="normal" font-style="normal" line-height="normal" <<<<<<<---------------(this line) text-align="{$alignment}" margin-left="0pc"> <xsl:apply-templates/> </fo:footnote-body> </fo:footnote> </xsl:otherwise> </xsl:choose> </xsl:template> #--------------------- But I will still try this out. Seems shorter solution :-). Thanks again. Deepak --- Bob Stayton <bobs@sagehill.net> wrote: > This requires a customization that targets para > elements that are not in > footnotes. A template match pattern can specify > that. Try this: > > <xsl:template match="para[not(ancestor::footnote)]"> > <fo:block line-height="2.4"> > <xsl:apply-imports/> > </fo:block> > </xsl:template> > > That template will be applied to all para elements > that are not contained in > a footnote. > > Bob Stayton > Sagehill Enterprises > DocBook Consulting > bobs@sagehill.net > > > ----- Original Message ----- > From: "Deepak Shrestha" <d88pak@yahoo.com> > To: <docbook-apps@lists.oasis-open.org> > Sent: Sunday, October 24, 2004 6:38 PM > Subject: [docbook-apps] help - double spacing > output! > > > > Hi all, > > > > > > 1) I have book (master) with several chapters from > > differnt files. > > 2) I used SAXON and FOP for creating PDF with my > > custom stylesheet. > > 3) My chapters starts with paragraph ( chapter > > title > > > para ) and others are sections with some > paragraphs. > > 4) What I need is all paragraphs be double spaced. > For > > this I used > > <xsl:param name="line-height">2.4</xsl:param> > > but with this feature all my line spacing > became > > double including footnotes (which I want single > > spaced). > > 5) Instead of that I tried to use > > <xsl:attribute-set name="section.properties"> > > <xsl:attribute > > name="line-height">2.4</xsl:attribute> > > </xsl:attribute-set> > > but output is only section paragraphs are double > > spaced while my initial paragraphs at the begining > of > > chapters are still single spaced. > > > > My Question: > > > > a) How can I make my all paragraphs double > spacing? > > but footnote single spaced? > > > > I consulted with online FOP parameters references > but > > couldn't find something for this. Can somebody > point > > me what's wrong with this? or at least how to do > it if > > there's other way around. I hope there are lots of > > anwers to this. It's just that I am new and > > overwhelmed with features DocBook provides :-) > > > > Thanks in Advnace. > > > > Deepak K. Shrestha > > > > > > > > _______________________________ > > Do you Yahoo!? > > Declare Yourself - Register online to vote today! > > http://vote.yahoo.com > > > > > > > __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]