[texhax] Creating an environment with unexpected results

Martin Heller mr_heller at yahoo.dk
Tue Jun 5 00:38:13 CEST 2007


Scott Hyde skrev:

> \makeatletter\newenvironment{newpicture}{%
>   \begin{lrbox}{\@tempboxa}\begin{picture}(50,50)
>       {\color{yellow} \backgraph}
>       \color{blue} \thicklines}{\end{picture}\end{lrbox}%
>   \colorbox{black}{\usebox{\@tempboxa}}
> }\makeatother

Try removing the spaces:

\makeatletter\newenvironment{newpicture}{%
   \begin{lrbox}{\@tempboxa}\begin{picture}(50,50)
       {\color{yellow}\backgraph}%
       \color{blue}\thicklines}{\end{picture}\end{lrbox}%
   \colorbox{black}{\usebox{\@tempboxa}}
}\makeatother



More information about the texhax mailing list