ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \newcommand ala ConTeXt
@ 2009-05-11 17:05 Xan
  2009-05-11 17:09 ` Yue Wang
  2009-05-11 17:09 ` Hans Hagen
  0 siblings, 2 replies; 4+ messages in thread
From: Xan @ 2009-05-11 17:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

In latex is wonderful be able to make abreviatures like:

\newcommand{\dist}[1]{d(\sigma_g(#1), \sigma_h(#1))}

and use like $\dist{t}$, ... for not typing all the text.

What is the ConTeXt version of that? Please CC mail me.

Thanks a lot,
Xan.
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: \newcommand ala ConTeXt
  2009-05-11 17:05 \newcommand ala ConTeXt Xan
@ 2009-05-11 17:09 ` Yue Wang
  2009-05-11 17:31   ` Xan
  2009-05-11 17:09 ` Hans Hagen
  1 sibling, 1 reply; 4+ messages in thread
From: Yue Wang @ 2009-05-11 17:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: dxpublica

\def\dist#1{d(\sigma_g(#1), \sigma_h(#1))}
or something more context way:
\define[1]\dist{d(\sigma_g(#1), \sigma_h(#1))}

On Tue, May 12, 2009 at 1:05 AM, Xan <dxpublica@telefonica.net> wrote:
> Hi,
>
> In latex is wonderful be able to make abreviatures like:
>
> \newcommand{\dist}[1]{d(\sigma_g(#1), \sigma_h(#1))}
>
> and use like $\dist{t}$, ... for not typing all the text.
>
> What is the ConTeXt version of that? Please CC mail me.
>
> Thanks a lot,
> Xan.
> ___________________________________________________________________________________
> 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  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
>
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: \newcommand ala ConTeXt
  2009-05-11 17:05 \newcommand ala ConTeXt Xan
  2009-05-11 17:09 ` Yue Wang
@ 2009-05-11 17:09 ` Hans Hagen
  1 sibling, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2009-05-11 17:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Xan wrote:
> Hi,
> 
> In latex is wonderful be able to make abreviatures like:
> 
> \newcommand{\dist}[1]{d(\sigma_g(#1), \sigma_h(#1))}
> 
> and use like $\dist{t}$, ... for not typing all the text.
> 
> What is the ConTeXt version of that? Please CC mail me.

see s-abr-* for examples ... one can have several (independent) 
abbreviation lists that can be called up when needed

Hans



-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: \newcommand ala ConTeXt
  2009-05-11 17:09 ` Yue Wang
@ 2009-05-11 17:31   ` Xan
  0 siblings, 0 replies; 4+ messages in thread
From: Xan @ 2009-05-11 17:31 UTC (permalink / raw)
  To: Yue Wang; +Cc: mailing list for ConTeXt users

Thanks, Yue. I suspected it should be two ways: pure TeX and ConTeXt way.

En/na Yue Wang ha escrit:
> \def\dist#1{d(\sigma_g(#1), \sigma_h(#1))}
> or something more context way:
> \define[1]\dist{d(\sigma_g(#1), \sigma_h(#1))}
>
> On Tue, May 12, 2009 at 1:05 AM, Xan <dxpublica@telefonica.net> wrote:
>   
>> Hi,
>>
>> In latex is wonderful be able to make abreviatures like:
>>
>> \newcommand{\dist}[1]{d(\sigma_g(#1), \sigma_h(#1))}
>>
>> and use like $\dist{t}$, ... for not typing all the text.
>>
>> What is the ConTeXt version of that? Please CC mail me.
>>
>> Thanks a lot,
>> Xan.
>> ___________________________________________________________________________________
>> 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  : https://foundry.supelec.fr/projects/contextrev/
>> wiki     : http://contextgarden.net
>> ___________________________________________________________________________________
>>
>>     

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


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

end of thread, other threads:[~2009-05-11 17:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-11 17:05 \newcommand ala ConTeXt Xan
2009-05-11 17:09 ` Yue Wang
2009-05-11 17:31   ` Xan
2009-05-11 17:09 ` 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).