Am 15.05.26 um 19:54 schrieb Wolfgang Schuster:
If you want an automatic glossary, where only referenced word appear you need \definesynonyms (you can find an example in the wiki).

For a manual glossary where you provide a list of words for the reader you can use \startitemize in combination with \txt for short entries or use the description mechanism ´when you have long entries.

For the Glossary in my German ConTeXt book, I used this:

\definedescription[Lemma][
  headstyle=bold, style=normal,
  align={flushleft,hanging,verytolerant},
  alternative=serried,
  distance=0.5em,
  width=fit, indent=3em,
  before=, after=,]

\defineprocessor[glossar][color=ColGlossar]

\define[2]\startlemma{\startLemma{#1}\index[glossar->]{#1}\textreference[lemma:#1]{#1}\doifsomething{#2}{ {\it〈{\en #2}〉}~}}

\define\stoplemma{\stopLemma}

\define[1]\seelemma{→\about[lemma:#1]}

\define[1]\ctx{{\tfx\tt❲\,\color[ColLeitf]{#1}\,❳} \autoinsertnextspace}


And then:

\startlemma{Example}{English translation} \ctx{\CONTEXT\ term} Description \seelemma{Something}\stoplemma

The lemmas are sorted manually and referenced in the normal keyword index, but colored.

Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to