Patrick J Cherry wrote:
Hello
I was wondering if it is possible to pass an "id" attribute to a
glossary list. This would enable crosslinking glossary entries through
the text to take place.
You can use standard links and anchors e.g.
[glossary]
[[entry1]] A glossary term::
The corresponding (indented) definition.
[[entry2]] A second glossary term::
The corresponding (indented) definition.
Then reference with e.g.
A <<entry2,2nd glossary term>>.
It's not the semantically pure solution but it's legal and it works with docbook
and HTML outputs.
Cheers, Stuart
At the moment, I've resorted to using anchors and links, but that's
pretty horrid. I'd rather have something like
[glossary]
["foo"] Foo::
This is an interesting thing.
["bar"] Bar::
This is where we go for a drink.
to produce
<glossentry id="foo">
<glossterm>Foo</glossterm>
<glossdef>
<simpara>
This is an interesting thing.
</simpara>
</glossdef>
</glossentry>
<glossentry id="bar">
<glossterm>Bar</glossterm>
<glossdef>
<simpara>
This is where we go for a drink.
</simpara>
</glossdef>
</glossentry>
This would references to be propery cross linked in the text.
<simpara>
The <glosstern linkend="foo">Foo</glossterm> widget is used to pay for
items at the <glossterm linkend="bar">Bar</glossterm>.
</simpara>
In AsciiDoc I'd define a macro to do that, of course :) But puting ids
into list attributes looks a bit more tricky.
--
You received this message because you are subscribed to the Google Groups
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/asciidoc?hl=en.