On Wed, May 16, 2001 at 01:33:39PM -0500, Greg Gallagher wrote:
> A friend and are are writing a book using DocBook V4.1 and our
> publisher just told us that they would prefer section numbering only
> be three levels deep. In other words:
>
> "Book Title"
>
> Chapter 1 <chapter>
> Section 1.1 <sect1>
> Section 1.2 <sect1>
> SubSection 1.2.1 <sect2>
> SubSubSection <sect3> </sect3>
> SubSubSection <sect3> </sect3>
> SubSubSection <sect3> </sect3>
> ...
>
> We need it so the SubSubSections aren't numbered ( <sect3> and
> below I suppose).
3 solutions, all untested.
1. Use the label attribute on your sections,
<sect3 label="">
2. Use <section> instead of <sect3>, <sect4>, and <sect5>. These can
nest.
3. In your stylesheet customisation, cut and paste the function
section-autolabel from common/dbcommon.dsl (it's the block of code
that starts
(define (section-autolabel nd #!optional (force-label? #f))
and pull out all the code that deals with sect3 and onwards.
N
--
Internet connection, $19.95 a month. Computer, $799.95. Modem, $149.95.
Telephone line, $24.95 a month. Software, free. USENET transmission,
hundreds if not thousands of dollars. Thinking before posting, priceless.
Somethings in life you can't buy. For everything else, there's MasterCard.
-- Graham Reed, in the Scary Devil Monastery
PGP signature