# [NTG-context] Problem with List of Abbreviations

Hans Hagen pragma at wxs.nl
Tue Jul 29 19:04:02 CEST 2014

On 7/29/2014 11:58 AM, Robert Blackstone wrote:
> Problem with List of Abbreviations
> Dear all,
>
> In my list of abbreviations I need different styles for different types of entry. A typical case is titles of journals, of which both the abbreviation and the full name should  be slanted.
> I had it working, albeit with some tricks, with older versions of mkiv, up till 25-01, but with more recent versions things don’t work anymore.
> Also the setup-commands seem to have been changed:
> definesynonyms[abbreviation][abbreviations][\infull][\inshort]
> \setupabbreviations[textstyle=slanted,synonymstyle=slanted,criterium=all]
> gives en error message about an undefined control sequence.
>
> In the following minimal example I have listed what I could find as possibilities. The top three work with older versions. In the bottom three, for the recent mkiv, both textstyle and synonymstyle remain normal.
> In the older versions only the abbreviation could be made slanted the way, but I could make the synonym slanted with {\em entry} , and I still could do that, but this cannot be done with the abbreviation.

Can you check if this gives the wanted effects:

\unprotect

\setupsimplelist
[\v!sorting]
\c!style=\simplelistparameter\c!textstyle,
\c!color=\simplelistparameter\c!textcolor]

\protect

This would have worked ok too:

These lists have become more sophisticated deep down.

> ME:
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++
> %Ref.: http://wiki.contextgarden.net/Command/definesynonyms
> %Subject: Command_\abbreviation and \setupsynonyms
>
> \definealternativestyle[mybold][\emphbf][\emphbf]
> \definealternativestyle[myslant][\emphsl][\emphsl]
>
> \definesynonyms[abbreviation][abbreviations][\infull][\inshort]
>
> %These 3 worked partly till january 2014
> %\setupabbreviations[textstyle=myslant,synonymstyle=mybold,criterium=all]
> %\setupabbreviations[textstyle=myslant,synonymstyle=myslant,criterium=all]
> %\setupabbreviations[textstyle=slanted,synonymstyle=slanted,criterium=all]
>
> %\setupsynonyms[abbreviations][textstyle=myslant,synonymstyle=mybold,criterium=all]
> %\setupsynonyms[abbreviations][textstyle=myslant,synonymstyle=myslant,criterium=all]
> %setupsynonyms[abbreviations][textstyle=slanted,synonymstyle=slanted,criterium=all]
>
> \abbreviation{MT}{The Musical Times}
> \abbreviation{AMw}{Archiv f\"{u}r Musikwissenschaft}
> \abbreviation{GMO}{Grove Music Online}
>
> %this works
> \abbreviation{EM}{\em Early Music}
> %This doesn't
> %\abbreviation{\em EM}{\em Early Music}
>
>
> \starttext
>
> \completelistofabbreviations[criterium=all]
>
> \stoptext
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++
> What could be done about this? I would prefer to work with the recent mkiv but if necessary I can probably stick with the older version.
>
> Best regards,
> Robert Blackstone
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context at ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
>

--

-----------------------------------------------------------------