开发者

Latex: access the content of an environment while using \newenvironment

开发者 https://www.devze.com 2023-01-16 21:11 出处:网络
I\'m trying to make my own environment with \\newenvironment. Is it somehow possible to access the \"body\" of the environment?

I'm trying to make my own environment with \newenvironment.

Is it somehow possible to access the "body" of the environment?

For example if the user uses

\begin{myenv}
    i'm the content
\end{myenv}

i want to analyze the "i'm the content" in the definition of the environment.

Thanks in advance,

Jan开发者_如何学JAVA Oliver Oelerich


Use package 'environ'.

\NewEnviron{myenv}{\colorbox[gray]{0.7}{\BODY}} 

where \BODY is a your "body".

0

精彩评论

暂无评论...
验证码 换一张
取 消