1
根據這個問題參數:重新定義命令使用 newenvironment
Redefining Commands in a New Environment
一個人如何重新定義(或使用\def
定義)使用參數宏?我不斷收到illegal parameter definition in \foo
錯誤。由於我需要自定義分隔符,因此我無法使用\newcommand
或\renewcommand
。
A的我的代碼一般形式如下:
\newenvironment{foo}{%
...spacing stuff and counter defs...
\def\fooitem#1. #2\endfooitem{%
...stuff...
}
\def\endfooitem{endfoo}
}
{...after material (spacing)...}
這必須是可能的。現在我正在使用plain-TeX定義(正如我在上面的問題中提到的那樣),但是我真的想要與LaTeX系統保持一致。