commandx オプション引数

commandx オプション引数

パッケージ用のカスタムコマンドがありますtodonotes

\newcommandx{\custom}[3][1=]{\todo[#1,author=#2]{#3}}

これは次のように使用されるはずです:

\custom[inline]{author1,some comments}

代わりに、次のエラーが発生します。

E: main.tex:124 Package xkeyval Error: `some comments' undefined in families `todonotes'

何が起こっているのでしょうか? 引数 1 をオプションとして 3 つの引数を定義しました。

関連情報