[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: DOCBOOK-APPS: Section numbering depth
--IJpNTDwzlM2Ie8A6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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: >=20 > "Book Title" >=20 > 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> > ... >=20 > 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,=20 <sect3 label=3D""> 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 --=20 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 --IJpNTDwzlM2Ie8A6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.5 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjsC+TQACgkQk6gHZCw343WnDwCbBgPlN9yhxepMhFoaDBKlH5mQ fm8AoI2o71rZJsaJtLdOkDPeY7Houh2o =bF2E -----END PGP SIGNATURE----- --IJpNTDwzlM2Ie8A6--
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC