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


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

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

Subject: Re: DOCBOOK: page number in xref

[ 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%
	(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,

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

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

Powered by eList eXpress LLC