← Prev in month
← Prev in thread
Next in thread →
Next in month →
DOCBOOK-APPS: Re: removing trailing period from automaticallygenerated section labels
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
/ Matthew Hobbs <> was heard to say:
| Hi,
|
| I produce PDF from DocBook XML using openjade and pdftex. I am autolabelling
| sections by enabling "section-autolabel" in my DSSSL stylesheet. This works
| O.K. except that all the numbers produced have a trailing period that I would
| rather not have... e.g. instead of this:
|
| 1.1. A day in the life of a life scientist
|
| I'd prefer this:
|
| 1.1 A day in the life of a life scientist
|
| Is there any way to do this?
Yes. Redefine en-label-title-sep; change section to be " " instead of ". ".
(define (en-label-title-sep)
(list
(list (normalize "abstract") ": ")
(list (normalize "answer") " ")
(list (normalize "appendix") ". ")
(list (normalize "caution") "")
(list (normalize "chapter") ". ")
(list (normalize "equation") ". ")
(list (normalize "example") ". ")
(list (normalize "figure") ". ")
(list (normalize "footnote") ". ")
(list (normalize "glosssee") ": ")
(list (normalize "glossseealso") ": ")
(list (normalize "important") ": ")
(list (normalize "note") ": ")
(list (normalize "orderedlist") ". ")
(list (normalize "part") ". ")
(list (normalize "procedure") ". ")
(list (normalize "prefix") ". ")
(list (normalize "question") " ")
(list (normalize "refentry") "")
(list (normalize "reference") ". ")
(list (normalize "refsect1") ". ")
(list (normalize "refsect2") ". ")
(list (normalize "refsect3") ". ")
(list (normalize "sect1") ". ")
(list (normalize "sect2") ". ")
(list (normalize "sect3") ". ")
(list (normalize "sect4") ". ")
(list (normalize "sect5") ". ")
(list (normalize "section") ". ")
(list (normalize "simplesect") ". ")
(list (normalize "seeie") " ")
(list (normalize "seealsoie") " ")
(list (normalize "step") ". ")
(list (normalize "table") ". ")
(list (normalize "tip") ": ")
(list (normalize "warning") "")
))
Be seeing you,
norm
- --
Norman Walsh <> | Faith makes many of the mountains
http://www.oasis-open.org/docbook/ | which it has to remove.--W. R. Inge
Chair, DocBook Technical Committee |
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.7 <http://mailcrypt.sourceforge.net/>
iD8DBQE9rhcSOyltUcwYWjsRAmO9AJ9s9KlKG8Q4XavvgreJAY8ZzNpVYACffqTe
E34SrJAAz/5yC91RDtQyiuo=
=iaRC
-----END PGP SIGNATURE-----
← Prev in month
← Prev in thread
Next in thread →
Next in month →