Next in thread → Next in month →

Re: [docbook-apps] Making a cross reference

From
Gisbert Amm <>
Date
2004-09-03T06:30:41+00:00
ID
Thread
Re: [docbook-apps] Making a cross reference
Jirka Kosek wrote:
> Lucas Brasilino wrote:
> 
>> <xref linkend="aa">Some comment</xref>
>> ...
>> <sect1 id="aa"><title>Comments around this</title></sect1>
>> ...
>>     Should generate:
>>
>> <a href="#aa">Some comment</a>
> 
> 
> Use link instead of xref. xref creates text of link automatically, while 
> link lets you specify your own.

You can also use the xreflabel attribute at the element where xref 
points to, like that:

<sect1 id="aa" xreflabel="Some comment"><title>Comments around 
this</title></sect1>

See http://www.docbook.org/tdg/en/html/ref-elements.html#common.attributes

Regards,
Gisbert Amm
Next in thread → Next in month →