I would like an environment that saves its contents into a macro. The obvious thing
to try:
""
\newenvironment{defmacro}[0]{\def \mymacro \bgroup}{\egroup}
\begin{defmacro}
this is inside
\end{defmacro}
mymacro: \mymacro
"""
but latex says "\begin{defmacro} ended by \end{document}". Does anyone ...
Search found 1 match
- Fri Apr 04, 2008 10:51 pm
- Forum: General
- Topic: I want an environment that saves its contents to a macro.
- Replies: 1
- Views: 1543