Following Aditya’s recommendation on making a glossary with ConTeXt 
(https://tex.stackexchange.com/questions/152248/make-a-glossary-with-context) 
and have looked through several older and newer manuals under “abbreviations” 
and into the source. 

However, I cannot figure out if there is a simple way to define my own command 
to achieve the following:

\definesynonyms[glossary][glossaries][\fullgloss]%[#4]
% I wonder also what #4 is supposed to do?
\setupsynonyms[glossary][headstyle=bold]

\glossary[US]{United States}{The US is a country in the Americas.}
\glossary[UK]{United Kingdom}{The UK is a country in Europe.}

% CURRENT RESULT (guessing from what I understand from the source this is 
converted internally to):

\placelistofglossaries

\starttabulate[|||]
\NC {\bf United Kingdom} \NC The UK is a country in Europe. \NC \NR
\NC {\bf United States} \NC The US is a country in the Americas. \NC \NR
\stoptabulate

% DESIRED RESULT

\unexpanded\def\myglossary#1#2#3{{\bf #1}#2} % or similar

\placelistofglossaries[command=\myglossary]

{\bf United Kingdom.} The UK is a country in Europe. Nice would be even if 
            this could be indented at some point, but tastes may vary on 
            indention for sure.

{\bf United States.} The US is a country in the Americas.

% or using itemize etc.

I am aware that \placelistofsynonyms has a command=... option, but it doesn’t 
do anything for me. Also, the location=inmarigin option (which I suppose could 
be used to tweak the desired result in a way) stopped working in MKIV (?) and I 
can see in the source that it has a “fixed” assignment to location=left.

Any hints very welcome. :)
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to