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개의 인수를 정의했습니다!

관련 정보