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
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
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,
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
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
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
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
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.
___
101 - 108 of 108 matches
Mail list logo