Re: [docbook] Section numbering.

From
anmol gupta <>
Date
2014-02-11T19:05:29+00:00
ID
CA+YSqtALeNTHx99+h_78FCb0bwdcfOa1YZAFZR_ES=
Thread
Re: [docbook] Section numbering.
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 <> 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



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