I am looking for the recommanded way to pass newenvironment arguments to {enddef}.
Right now I used my own way, but I am not sure whether it is the correct way.
If there is a better way to do so, let me know.
Here is my minimal code snippet.
Code: Select all
\documentclass{minimal}
\usepackage{graphicx}
\newsavebox{\tmpBox}%temporary box
\newcommand{\tmpScale}{}%temporary scale
\newenvironment{myBox}[1]%
{%
\renewcommand{\tmpScale}{#1}%
\begin{lrbox}{\tmpBox}%
}
{%
\end{lrbox}\scalebox{\tmpScale}{\usebox{\tmpBox}}%
}
\begin{document}
\begin{myBox}{10}
\LaTeXe
\end{myBox}
\end{document}