[NTG-context] define command

2008-11-14 Thread Alan STONE
Hi, For example \define\somemacro[3]{...} gets invoked with \somemacro{#1}{#2}{#3} How do you get rid of those repeating pesky curly brackets and invoke a user defined macro with \somemacro{#1,#2,#3} instead ? :O) -- Best, Alan * TeX engine = LuaTeX * ConTeXt minimals ver: 2008.56.06 19

Re: [NTG-context] Define doifoneelse

2006-09-11 Thread Hans Hagen
Aditya Mahajan wrote: > > > On Mon, 11 Sep 2006, Peter M�nster wrote: > >> On Mon, 11 Sep 2006, Aditya Mahajan wrote: >> >>> \doifoneelse{1}{a}{b} gives a >>> \doifoneelse{1.5}{a}{b} gives b >>> \doifonelese{string}{a}{b} gives b >>> >>> Can someone suggest how to define this? >> >> \def\doifoneel

Re: [NTG-context] Define doifoneelse

2006-09-11 Thread Aditya Mahajan
On Mon, 11 Sep 2006, Peter M?nster wrote: On Mon, 11 Sep 2006, Aditya Mahajan wrote: \doifoneelse{1}{a}{b} gives a \doifoneelse{1.5}{a}{b} gives b \doifonelese{string}{a}{b} gives b Can someone suggest how to define this? \def\doifoneelse#1#2#3{\doifelse{1}{#1}{#2}{#3}} Thanks Peter,

Re: [NTG-context] Define doifoneelse

2006-09-11 Thread Peter Münster
On Mon, 11 Sep 2006, Aditya Mahajan wrote: > \doifoneelse{1}{a}{b} gives a > \doifoneelse{1.5}{a}{b} gives b > \doifonelese{string}{a}{b} gives b > > Can someone suggest how to define this? \def\doifoneelse#1#2#3{\doifelse{1}{#1}{#2}{#3}} \starttext \doifoneelse{1}{a}{b} gives a \doifoneel

Re: [NTG-context] Define doifoneelse

2006-09-10 Thread Aditya Mahajan
On Mon, 11 Sep 2006, Aditya Mahajan wrote: > Hi, > > I want to define a macro, \doifoneelse, that checks if the first > argument is 1 or not. It should work for decimals and strings also. > So, > > \doifoneelse{1}{a}{b} gives a > \doifoneelse{1.5}{a}{b} gives b > \doifonelese{string}{a}{b} gives

[NTG-context] Define doifoneelse

2006-09-10 Thread Aditya Mahajan
Hi, I want to define a macro, \doifoneelse, that checks if the first argument is 1 or not. It should work for decimals and strings also. So, \doifoneelse{1}{a}{b} gives a \doifoneelse{1.5}{a}{b} gives b \doifonelese{string}{a}{b} gives b Can someone suggest how to define this? Thanks, Adit

Re: [NTG-context] Define new flow chart cell shape

2004-08-02 Thread Christopher Creutzig
Pedro Mendonça wrote: I'm using the flow chart module and I want to know how to create a new cell shape using MetaPost and assign that new shape to a shape number. Looks like there are no hooks for that, you'd have to copy the definition of some_shape_path from mp-shap.mp and add your shape in t

[NTG-context] Define new flow chart cell shape

2004-07-05 Thread Pedro Mendonça
Hi Hans! I'm using the flow chart module and I want to know how to create a new cell shape using MetaPost and assign that new shape to a shape number. Could you give me an example? Thanks. Pedro Mendonca. ___

<    1   2