[comp.text.tex] Defining an environment in LaTeX

mikeb@coho.ee.ubc.ca (Mike Bolotski) (08/07/90)

First off, thanks for the bibliography inclusion suggestions.  What
a marvelous turnaround time..

Two questions this time, one semi-rhetorical, and one practical.

1.  In defining an environment, why are  the parameters not usable
    in the postamble (the \end part)?

2.  Here is an example (reduced from the full application) that
    does not work if the % signs are removed and the text all
    glommed together.


\newenvironment{Figure}[1]%
{\def\@foo{#1}%
\begin{figure}[t]\begin{center}}%
{\label{fig:\@foo}%
\end{center}\end{figure}}
    Apologies for not reading the FM, but I don't own a copy of
    the TeX book and the friendly owner isn't around. 

Mike Bolotski           VLSI Laboratory, Department of Electrical Engineering
mikeb@salmon.ee.ubc.ca  University of British Columbia, Vancouver, Canada