Hi all,
I would like to write a macro which may have sometimes two, sometimes three
arguments. The first and the last one are always present, but not necessarily
the middle one. The unsatisfactory solution I have now is something like the
example below:
\define[2]\myMacroTwo{Name: #1\crlf
Am 28.02.10 09:54, schrieb Otared Kavian:
Hi all,
I would like to write a macro which may have sometimes two, sometimes three
arguments. The first and the last one are always present, but not necessarily
the middle one. The unsatisfactory solution I have now is something like the
example
On 28 févr. 2010, at 10:17, Wolfgang Schuster wrote:
\def\myMacro
{\dotriplegroupempty\domyMacro}
\def\domyMacro#1#2#3%
{\doifelsenothing{#3}
{Name: #1\crlf Email: #2\crlf}
{Name: #1\crlf Address: #2 \crlf Email: #3\crlf}%
\thinrule\blank[small]}
Wolfgang
Many thanks
On 28-2-2010 12:44, Otared Kavian wrote:
On 28 févr. 2010, at 10:17, Wolfgang Schuster wrote:
\def\myMacro
{\dotriplegroupempty\domyMacro}
\def\domyMacro#1#2#3%
{\doifelsenothing{#3}
{Name: #1\crlf Email: #2\crlf}
{Name: #1\crlf Address: #2 \crlf Email: #3\crlf}%