This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Treatment of links in print



>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
--


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]