[NTG-context] equivalent to \newcommand{...}{\ensuremath{...}}

j. van den hoff veedeehjay at googlemail.com
Tue Dec 9 23:11:52 CET 2014


On Tue, 09 Dec 2014 14:30:50 +0100, Hans Hagen <pragma at wxs.nl> wrote:

> On 12/9/2014 1:36 PM, j. van den hoff wrote:
>
>> since I'm really new to `context': are there any potential problems with
>> inserting white space in `\define' lines like `\define \Foo {
>> \mathematics{f(x)} }' which I might miss? `context' seems to ignore them
>> and they don't creep into the formatted output AFAICS (which is good).
>
> in math mode spaces don't matter much
>
> in definitions you can do this:
>
> \starttexdefinition foo
>      f
>      o
>      o
> \stoptexdefinition
>
> and get 'foo'
>
> \starttexdefinition foo
> \starttexdefinition unexanded foo
> \starttexdefinition foo #1#2
> \starttexdefinition unexpanded foo #1#2
>
> in a mkvi document you can also say:
>
> \starttexdefinition foo #first#second
> \starttexdefinition unexpanded foo #first#second

thanks for clarifying this.
>
> Hans
>
>
> -----------------------------------------------------------------
>                                            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 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
> ___________________________________________________________________________________


-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/


More information about the ntg-context mailing list