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] | [List Home]

Subject: RE: [docbook] Page References with Page Numbers

As Dave says, olink works and there's a very nice description
in Bob Stayton's book.

If your application is simpler; for example, if you only need
links to work after the xinclude process has pulled together
a complete document, you can get away with xref, provided that
you keep the ids unique across your files.

The caveat is that if you run the stylesheets on an individual
chapter that references outside itself, you'll get ??? in place
of your link.  But, if you only care about having the links work
after everything has been xincluded into your book, that shouldn't
be a problem.

For styling your cross references, Bob's book is once again the
place to go.  Check out the following section for details:


Hope that helps,
Dick Hamilton

> -----Original Message-----
> From: Dave Pawson [mailto:davep@dpawson.co.uk] 
> Sent: Wednesday, August 29, 2007 4:21 AM
> To: fips
> Cc: docbook@lists.oasis-open.org
> Subject: Re: [docbook] Page References with Page Numbers
> fips wrote:
> > Hi
> > 
> > I am using docbook 5 with xinclude.
> > 
> > I intend to write books using xinclude very often (each chapter is a
> > separate xml-File, which makes it easy to generate new 
> books for new courses
> > in a short time.)
> > 
> > I have not found a way to generate references from one part 
> to another. They
> > should all look like the following in the pdf-output:
> > 
> > "(See Chapter XYZ "NAME OF CHAPTER" on page. ABC)"
> > 
> > Under latex I had a simple script for that purppose:
> > \newcommand*\totalref[1]{(S. Kap. \ref{#1} auf Seite \pageref{#1})}
> > Is there something similar under docbook5?
> > 
> > What is the standard way to do this?
> Not sure 'standard' is the right word, but
> olink works.

Very clear, very helpful.


Dave Pawson

To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-help@lists.oasis-open.org

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