This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Section numbering depth
- To: Greg Gallagher <greg at dahak dot com>
- Subject: Re: DOCBOOK-APPS: Section numbering depth
- From: Nik Clayton <nik at nothing-going-on dot demon dot co dot uk>
- Date: Wed, 16 May 2001 23:03:33 +0100
- Cc: docbook-apps at lists dot oasis-open dot org
- Organization: Nik at home, where there's nothing going on
- References: <20010516133339.B28063@dahak.com>
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