Next in thread →
Next in month →
Re: DOCBOOK: page number in xref
[ Follow-ups to docbook-apps, please ]
/ Camille B嶲nis <> 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 <> | 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
Next in thread →
Next in month →