OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Subject: Re: DOCBOOK-APPS: Labelling of figures

I guess you have "sections" wrapped by an "Article".
you can copy this code from dbcommon.dsl to your
customization file :


(define (section-autolabel-prefix nd)
  (let* ((isep   (gentext-intra-label-sep nd))
  (haschn (not (node-list-empty? (ancestor (normalize "chapter") nd))))
  (hasapn (not (node-list-empty? (ancestor (normalize "appendix") nd)))))
     (haschn (string-append
       (element-label (ancestor (normalize "chapter") nd)) isep))
     (hasapn (string-append
       (element-label (ancestor (normalize "appendix") nd)) isep))
     (else ""))))

and add the needed lines for the case in which ancestor is "article".

I have no tried it, but I suppose "element-label" will do the right thing
also whit articles.


Juan R. Migoya

Rory Hunter wrote:

> Hi,
> In an <article>, I notice that any <figure>'s are labelled numerically,
> incrementing for each consectutive figure in the document. Is it possible
> to have numbering restart for each <section>, so that figures are labelled
> e.g. Figure 4.1 for the first figure in the fourth section, using DSSSL?
> Cheers,
> -- Rory Hunter

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Powered by eList eXpress LLC