This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: page number in xref
- To: docbook at lists dot oasis-open dot org
- Subject: Re: DOCBOOK: page number in xref
- From: Norman Walsh <ndw at nwalsh dot com>
- Date: 06 Jul 2000 10:07:38 -0400
- References: <3961E530.BD7ED84C@mandrakesoft.com>
- Reply-To: docbook at lists dot oasis-open dot org
[ Follow-ups to docbook-apps, please ]
/ Camille Bégnis <camille@mandrakesoft.com> was heard to say:
| I need that <xref linkend="ch01"> be rendered "Introduction, Page 11"
| I tried to find the function I need to redefine inserting the %n and %p
| variables, but I couldn't. Help appreciated,
In each localization layer, you'll find something like this:
(define (en-xref-strings)
(list (list (normalize "appendix") (if %chapter-autolabel%
"&Appendix; %n"
"the &appendix; called %t"))
(list (normalize "article") (string-append %gentext-en-start-quote%
"%t"
%gentext-en-end-quote%))
(list (normalize "bibliography") "%t")
(list (normalize "book") "%t")
(list (normalize "chapter") (if %chapter-autolabel%
"&Chapter; %n"
"the &chapter; called %t"))
If you change, for example, the definition of chapter to:
(list (normalize "chapter") ("%t, page %p"))
You'll get what you're after.
Be seeing you,
norm
--
Norman Walsh <ndw@nwalsh.com> | There exist some evils so terrible
http://www.oasis-open.org/docbook/ | and some misfortunes so horrible
Chair, DocBook Technical Committee | that we dare not think of them,
| whilst their very aspect makes us
| shudder; but if they happen to
| fall on us, we find ourselves
| stronger than we imagined; we
| grapple with our ill luck, and
| behave better than we expected we
| should.--La Bruy\`ere