중괄호 없이 단락에 적용되는 명령을 어떻게 만들 수 있나요?

중괄호 없이 단락에 적용되는 명령을 어떻게 만들 수 있나요?

많은 열거 목록에서 전역 변경을 수행해야 하므로 단락(또는 줄) 끝까지만 적용되는 방식으로 중괄호 없이 적용할 수 있는 명령을 정의해야 합니다. 예를 들어

\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}}

관련 정보