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.
\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
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 ___________________________________________________________________________________
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
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 ___________________________________________________________________________________
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 -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Xan
-
Yue Wang