11 Sep
2006
11 Sep
'06
6:14 p.m.
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, I ended up using \def\doifoneelse#1{\doifelse{#1}{1}} which saves a few keystrokes :) Aditya