Hi
I just try to figure out how to do this integrate anchors only in the
glossary section.
Given a main document, including some files.
Some of these files are part of the glossary, and used also in the text flow
at first occurence.
What i wish is
- at first occurence of a word, i include the glossary in the flow of the
text.
- for other occurences, a crossref makes a link to the glossary entry.
But if add the anchor in the glossary entry file, it won't be an unique id
anymore!
So i guess i have to create a conditional anchor in my glossary entries,
that would only be added if we are in the glossary section.
I tried following, but it's obviously not working.
I am not familiar with asciidoc variables, does someone have a reference
where i could find some help ? Or some idea how to do this ?
main file main.txt :
== Document
=== section
bla we talk about a wonderful thing
include::wonderful-thing.txt[]
bla bla yep a <<wonderful-thing>>
[glossary]
== Glossary
include::wonderful-thing.txt[]
//EOF
ANd now the other file : wonderful-thing.txt
//trying to figure out which condition i could use
{level@1[[wonderful-thing]]}
Wonderful thing:: A definition of what is a wonderful thing.
//EOF
--
You received this message because you are subscribed to the Google Groups
"asciidoc" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/asciidoc/-/EydGSUQAwMsJ.
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.