[NTG-context] abbreviations as macros (Aditya Mahajan)

Armin Varmaz arvo_77 at web.de
Sun Aug 8 17:34:48 CEST 2010

>Message: 5
>Date: Sat, 7 Aug 2010 11:10:21 -0400 (EDT)
>From: Aditya Mahajan [
>To: mailing list for ConTeXt users 
>Subject: Re: [NTG-context] abbreviations as macros
>Message-ID: [
>Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
>On Sat, 7 Aug 2010, ivo welch wrote:
>If you never need to use a full form of the abbreviation, then you can 
>just use the same in ConTeXt. The equivalent of \ensuremath is \math; 
>everything else is the same.
>I would, however, write this slightly differently (even in LaTeX) as
>but that is just a stylistic issue.
>> Is there a recommended way to do this on conTeXt?
>The usual way of defining abbreviations in ConTeXt is
>\abbreviation [NPV] {\math{\text{NPV}_0}} {full form}
>Then you can use
>\NPV\ for a short form of the abbreviation and \infull{NPV} for the full 
>form. The advantage is that you can also get a list of used abbreviations.

Hi Aditya,

can you tell me how I can ensure as in AMSmath that the font size in abbreviations automatically match the font size of current text?  see my example below. 

Best Armin

******** EXAMPLE

\definealternativestyle[ImportantStyle][{\definedfont[Kurier-Bold at 24pt]}]


\startsetups important:start

\startsetups important:stop


\abbreviation [NPV] {\math{\text{NPV}}} {full form} 


this looks normal $x$, \NPV.

this looks bad \mathematics{x}, \NPV.

this looks normal $x$, \NPV.


******** END EXAMPLE
WEB.DE DSL SOMMER-SPECIAL: Surf & Phone Flat 16.000 für 
nur 19,99 ¿/mtl.!* http://web.de/DSL-Doppel-Flatrate/

More information about the ntg-context mailing list