开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜