This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: DOCBOOK: Gettings numbered documents
- To: Jonathan Riddell <jr050 at jriddell dot org>
- Subject: DOCBOOK-APPS: Re: DOCBOOK: Gettings numbered documents
- From: camille <camille at mandrakesoft dot com>
- Date: Thu, 15 Mar 2001 09:10:09 +0000
- Cc: apps docbook <docbook-apps at lists dot oasis-open dot org>
- Organization: MandrakeSoft
- References: <Pine.GSO.4.10.10103150102210.10564-100000@gromit.students.stir.ac.uk>
Hi Jonathan,
Simply write a custom stylesheet like that:
----------------------------------------------------------------------
<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN"
[
<!ENTITY docbook.dsl SYSTEM "dsssl/print/docbook.dsl" CDATA DSSSL >
]>
<style-sheet>
<style-specification id="print" use="docbook">
<style-specification-body>
;; number chapters and sections
(define %chapter-autolabel% #t)
(define %section-autolabel%
#t)
</style-specification-body>
</style-specification>
<external-specification id="docbook" document="docbook.dsl">
</style-sheet>
---------------------------------------------------------------------
For the index you need to process it with collateindex.pl, see Norm's
website: nwalsh.com
Camille.
Jonathan Riddell a écrit :
>
> I'm a bit of a docbook beginner so you'll have to be kind.
>
> I notice that Docbook, the definitive guide has a useful habit of
> numbering all the sections and subsection (eg 1. then 1.1, 1.2 etc) yet
> when I try to make a docbook document it only numbers the chapters.
>
> How do I get it to number all the sections?
>
> Thanks, Jonathan Riddell
> jr@jriddell.org
>
> ------------------------------------------------------------------
> To unsubscribe from this elist send a message with the single word
> "unsubscribe" in the body to: docbook-request@lists.oasis-open.org
------------------------------------------------------------------
To unsubscribe from this elist send a message with the single word
"unsubscribe" in the body to: docbook-apps-request@lists.oasis-open.org