| 1 |
___________________ |
| 2 |
The ENVIRON package |
| 3 |
v0.2 |
| 4 |
|
| 5 |
Provides two things: a new way of defining |
| 6 |
environments that read their contents before |
| 7 |
processing; and, a \long version of amsmath's |
| 8 |
\collect@body macro called \Collect@Body. |
| 9 |
|
| 10 |
Here's an example: |
| 11 |
|
| 12 |
\NewEnviron{test}[3][]{"#1,#2,\BODY,#3"} |
| 13 |
\begin{test}[zero]{one}{last} |
| 14 |
three\par four |
| 15 |
\end{test} |
| 16 |
|
| 17 |
Produces the equivalent of: |
| 18 |
|
| 19 |
"zero,one,three\par four,last" |
| 20 |
|
| 21 |
______________ |
| 22 |
Will Robertson |
| 23 |
wspr 81 [at] gmail [dot] com |
| 24 |
|
| 25 |
Copyright 2007-2014 |
| 26 |
Distributed under the LaTeX Project Public License |
| 27 |
%% ^^A Test that \RenewEnvironment works correctly: |