Am 27.09.2012 12:01, schrieb Stuart Rackham:


On 27/09/12 17:55, Wilhelm wrote:
Hi,

I tried to use

(((test)))

to render (test) and an index entry named test. But this doesn't work.

Using

( ((test)) )

it renders to ( test ) and generates an index entry. But the spaces
around the indexterm are annoying.

Then I tried

(indexterm2:[test])

This syntax was not working (see Lex's post), now fixed in trunk.

thanks - now it works as expected!




but this only renders to

(indexterm2:[test])

So, what am I missing here?


The (((...))) index entry macro (indexterm) doesn't actually display any
text at the point it's entered, it just marks the spot and displays the
text in the index.

oh yes, I misread the manual. Thanks!


The ((...)) index entry macro (indexterm2) does display the text at the
point of entry and in the index.

See http://www.methods.co.nz/asciidoc/userguide.html#_indexes).

You also need an 'index' section (see this example
http://www.methods.co.nz/asciidoc/article.txt).

Note also that index entries are generated by DocBook toolchains (HTML
outputs don't generate index entries.
For example compare this (asciidoc -> HTML):

http://www.methods.co.nz/asciidoc/article-html5-toc2.html

with this (asciidoc -> DocBook -> HTML):

http://www.methods.co.nz/asciidoc/article.html


Cheers, Stuart



--
Wilhelm

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

Reply via email to