ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problem with List of Abbreviations
@ 2014-07-29  9:58 Robert Blackstone
  2014-07-29 17:04 ` Hans Hagen
  2014-07-29 17:31 ` Wolfgang Schuster
  0 siblings, 2 replies; 5+ messages in thread
From: Robert Blackstone @ 2014-07-29  9:58 UTC (permalink / raw)
  To: ntg-context

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: 
In recent versions the pair:
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.

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]

%These 3 work partly in recent versions since january 2014
%\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.
Thanks in advance for any advice.

Best regards,
Robert Blackstone
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem with List of Abbreviations
  2014-07-29  9:58 Problem with List of Abbreviations Robert Blackstone
@ 2014-07-29 17:04 ` Hans Hagen
  2014-07-29 17:31 ` Wolfgang Schuster
  1 sibling, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2014-07-29 17:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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:
> In recent versions the pair:
> 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!headstyle=\simplelistparameter\c!synonymstyle,
    \c!headcolor=\simplelistparameter\c!synonymcolor,
    \c!style=\simplelistparameter\c!textstyle,
    \c!color=\simplelistparameter\c!textcolor]

\protect

This would have worked ok too:

\completelistofabbreviations[criterium=all,headstyle=\bf,style=\bi]

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]
>
> %These 3 work partly in recent versions since january 2014
> %\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.
> Thanks in advance for any advice.
>
> Best regards,
> Robert Blackstone
> ___________________________________________________________________________________
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
>


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem with List of Abbreviations
  2014-07-29  9:58 Problem with List of Abbreviations Robert Blackstone
  2014-07-29 17:04 ` Hans Hagen
@ 2014-07-29 17:31 ` Wolfgang Schuster
  1 sibling, 0 replies; 5+ messages in thread
From: Wolfgang Schuster @ 2014-07-29 17:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 29.07.2014 um 11:58 schrieb Robert Blackstone <blackstone.robert@gmail.com>:

> 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: 
> In recent versions the pair:
> 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.
> 
> 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]
> 
> %These 3 work partly in recent versions since january 2014
> %\setupsynonyms[abbreviations][textstyle=myslant,synonymstyle=mybold,criterium=all]
> %\setupsynonyms[abbreviations][textstyle=myslant,synonymstyle=myslant,criterium=all]
> %setupsynonyms[abbreviations][textstyle=slanted,synonymstyle=slanted,criterium=all]

You have to use abbreviation (singular form):

\setupsynonyms[abbreviation][…]

> \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}


Use the optional argument:

\abbreviation[EM]{\em EM}{…}

Wolfgang
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem with List of Abbreviations
  2014-07-30  7:36 ` Robert Blackstone
@ 2014-07-30  7:50   ` Hans Hagen
  0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2014-07-30  7:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 7/30/2014 9:36 AM, Robert Blackstone wrote:
>
> On 29 Jul 2014, Hans Hagen <pragma@wxs.nl> wrote:
>>
>> Can you check if this gives the wanted effects:
>>
>> \unprotect
>>
>> \setupsimplelist
>>    [\v!sorting]
>>    [\c!headstyle=\simplelistparameter\c!synonymstyle,
>>     \c!headcolor=\simplelistparameter\c!synonymcolor,
>>     \c!style=\simplelistparameter\c!textstyle,
>>     \c!color=\simplelistparameter\c!textcolor]
>>
>> \protect
>
> Yes it does, but for a mixed list it seems too general.

Ok, so better not make that default then.

>> This would have worked ok too:
>>
>> \completelistofabbreviations[criterium=all,headstyle=\bf,style=\bi]
> This one works OK.
>>
>> These lists have become more sophisticated deep down.
>
> And  Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:
>>
>>
>> You have to use abbreviation (singular form)
>>
>> \setupsynonyms[abbreviation][?]
>
> and
>>
>> Use the optional argument:
>>
>> \abbreviation[EM]{\em EM}{?}
>>
> This works perfectly  too.
>
> Thank you both, Hans and Wolfgang. Almost embarras du choix now.
>
> KInd regards,
>
> Robert
> ___________________________________________________________________________________
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
>


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problem with List of Abbreviations
       [not found] <mailman.682.1406663898.2240.ntg-context@ntg.nl>
@ 2014-07-30  7:36 ` Robert Blackstone
  2014-07-30  7:50   ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Robert Blackstone @ 2014-07-30  7:36 UTC (permalink / raw)
  To: ntg-context


On 29 Jul 2014, Hans Hagen <pragma@wxs.nl> wrote:
> 
> Can you check if this gives the wanted effects:
> 
> \unprotect
> 
> \setupsimplelist
>   [\v!sorting]
>   [\c!headstyle=\simplelistparameter\c!synonymstyle,
>    \c!headcolor=\simplelistparameter\c!synonymcolor,
>    \c!style=\simplelistparameter\c!textstyle,
>    \c!color=\simplelistparameter\c!textcolor]
> 
> \protect

Yes it does, but for a mixed list it seems too general.
> 
> This would have worked ok too:
> 
> \completelistofabbreviations[criterium=all,headstyle=\bf,style=\bi]
This one works OK.
> 
> These lists have become more sophisticated deep down.

And  Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:
> 
> 
> You have to use abbreviation (singular form)
> 
> \setupsynonyms[abbreviation][?]

and
> 
> Use the optional argument:
> 
> \abbreviation[EM]{\em EM}{?}
> 
This works perfectly  too.
 
Thank you both, Hans and Wolfgang. Almost embarras du choix now.

KInd regards,

Robert
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-07-30  7:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-29  9:58 Problem with List of Abbreviations Robert Blackstone
2014-07-29 17:04 ` Hans Hagen
2014-07-29 17:31 ` Wolfgang Schuster
     [not found] <mailman.682.1406663898.2240.ntg-context@ntg.nl>
2014-07-30  7:36 ` Robert Blackstone
2014-07-30  7:50   ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).