
我必須在許多枚舉列表中進行全域更改,因此需要定義一個命令,我可以在不使用大括號的情況下應用該命令,例如僅適用於段落(或行)的末尾
\item \changecolor text text text text text text text text text text
text text text text text text text text text.
%defautl color
othertextothertextothertextothertextothertextothertextothertextot
可以這樣做嗎?
答案1
\def\changecolor{\begingroup\def\par{\endgroup\par}\color{red}}