[texhax] Building a command like this: \newcommand*[ ]{ }

Alexander Grahn A.Grahn at fzd.de
Tue Jul 3 10:32:03 CEST 2007


\makeatletter
\def\mycommand{%
  \@ifstar\mycommandstar\mycommandnostar%
}
\makeatother

\newcommand[...][...]{\mycommandstar}{%
  ...
}
\newcommand[...][...]{\mycommandnostar}{%
  ...
}

Alexander


More information about the texhax mailing list