← Prev in month ← Prev in thread

RE: [docbook-apps] Having chapter titles with numbers and figures without chapter prefix

From
Miller, Ray \(Centech\) <>
Date
2006-09-01T12:12:08+00:00
ID
Thread
RE: [docbook-apps] Having chapter titles with numbers and figures without chapter prefix
>> Setting chapter.autolabel=0 works for figure titles, but then I need
them for chapter and section titles. <<

Here's the code for excluding the 'chapter' text in chapter titles;
-should- be applied in a customization:

<!-- omit 'Chapter' text in chapter title -->   
   <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="chapter" text="%n.&#160;%t"/>
         </l:context>
         <l:context name="xref-number-and-title">
            <l:template name="chapter" text="%n.&#160;%t"/>
         </l:context>
      </l:l10n>
   </l:i18n>

Ray
← Prev in month ← Prev in thread