TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using ConTeXt to provide layout for my thesis across many files comprising the project.

I would like to automatically generate an index based on keywords and abbreviations with minimal hinting by me. I suspect the


command has the ability to add abbreviations to the index automatically, but I haven't found an invocation that actually works.

Is there a command for ConTeXt that provides either level of automatic index generation?

share|improve this question
up vote 7 down vote accepted

Slightly tricky. You need to use synonymcommand to set up the command that is used when the short form of the synonym is called. You also need to expand the argument of synoyncommand. Here is an example



\abbreviation {AMS} {American Mathematics Association}

\AMS\ is an abbreviation for \infull{AMS}

\subject {Index}
share|improve this answer
I ran your code in ConTeXt and unfortunately the AMS reference did not show up in the index. (Tested both in my main document and by copy/pasting your code directly into a clean one.) (this is my first "oops" comment here, how do I make this comment more useful? I'm running the latest minimals as of yesterday.) – Brian Ballsun-Stanton May 13 '11 at 12:24
@Brian: I tested with a week old MkiV. I'll test again with the latest beta – Aditya May 13 '11 at 13:54
To be fair, I've gotten an odd color error that suggests that I'm not doing things right. I'll reverify my setup tomorrow. – Brian Ballsun-Stanton May 13 '11 at 14:23
@Brian: Are you using MkII or MkIV? If you want help with debugging when something goes wrong, it is better to ask the question on the context mailing list. – Aditya May 14 '11 at 0:49
I think I'm using MkIV but I've got a suspicion that MkII snuck in there. – Brian Ballsun-Stanton May 14 '11 at 0:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.