Menu

#5 Does not Accept Optional Arguments in Macros

closed
None
5
2012-10-30
2003-02-26
Anonymous
No

E.g.

\newcommand{\cmd}[2][default]{cmd with 2 paramaters: optional parameter 1 = #1 -- parameter 2 =

2.\}

\cmd[p1]{p2}

does not work. Bugfix attached. If this is not a good diff format,
please let me know how to do it. It is the first time I am sending
diffs.

OS: Debian GNU/Linux 3.0

Best wishes
guenther dot palfinger at gmx dot net

Discussion

  • Nobody/Anonymous

    diff -c orig_file changed_file

     
  • Scott Prahl

    Scott Prahl - 2003-03-22

    Logged In: YES
    user_id=169192

    Thanks for the patch. Applied.

    In the future use diff -u for creating patches. Much easier for humans to figure out what is happening.

     

Anonymous
Anonymous

Add attachments
Cancel