[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook] Section numbering.
Hi,I just tried it and it worked for me. Are you using <section> or <sect1>, <sect2> etc.?
Bob Stayton Sagehill Enterprises firstname.lastname@example.org On 2/11/2014 11:05 AM, anmol gupta wrote:
Hi Bob, I tried this template in my customization layer. but i couldnt see the change. Do i have to add something else also? Thanks and Regards, ..Anmol On Mon, Feb 10, 2014 at 10:45 PM, Bob Stayton <email@example.com> wrote:This dot is coming from the gentext (generated text) file for the language you are using. The general process for customizing gentext in DocBook XSL is described here: http://www.sagehill.net/docbookxsl/CustomGentext.html And in your case, you want to modify the l:template with name="section" (if you are using section rather than sect1) in the context "title-numbered", as follows: <xsl:param name="local.l10n.xml" select="document('')"/> <l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0"> <l:l10n language="en"> <l:context name="title-numbered"> <l:template name="section" text=" %n %t"/> </l:context> </l:l10n> </l:i18n> (the original has a dot after the %n). Bob Stayton Sagehill Enterprises firstname.lastname@example.org On 2/10/2014 3:23 AM, anmol gupta wrote:Hi, I need help for printing section number in a different way in docbook, Currently, if there is section like 2.1.3, Generated pdf prints *2.1.3.* instead of *2.1.3* In first case there is a dot at the end which can be sometimes confusing. I dont want that in my pdf. Please help me fixing this. Thanks and Regards, ..Anmol