This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Treatment of links in print
- From: Kevin Dunn <kdunn at hsc dot edu>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Wed, 05 Jun 2002 18:49:23 -0400
- Subject: Re: DOCBOOK-APPS: Treatment of links in print
- Reply-to: kdunn at hsc dot edu
>to give
>I would like to render
><para>
>For an example of this procedure, refer to
><link linkend="foo">Foo</link>
></para>
>
>As
>
>"For an example of this procedure, refer to Foo (p. 29)"
>
>Where 29 is the page. I'd also be satisfied with
>
>"1.2.3 Foo" where 1.2.3 is the subsection.
>
You could use, for example
<section id="foosection">
...
<para id="foopara">This is the part that talks about foo.</para>
...
</section>
...
<para>
For an example of this procedure, refer to
<link linkend="foopara">Foo</link>(<xref linkend="foosection">).
</para>
Unlike link, xref generates its own text, depending on its target.
This markup should produce something like:
For an example of this procedure, refer to Foo (Section 1.2.7).
I don't know how to do page numbers. Gotta be possible, since the TOC
does it.
--
Kevin M. Dunn
Professor of Chemistry
Hampden-Sydney College
--