mrd@sun.soe.clarkson.edu (Mike DeCorte) (07/29/88)
Silly me, I thought I could make an environment so that
\begin{present}
a\foo b\foo c\foo d\foo e\foo f\foo
\end{present}
would come out like
1 a 2 b
1 c 2 d
1 e 2 f
this what I came up with
\def\present{\begingroup
\def\one{1 \>} % the 1 and 2 here are really only for demonstration
\def\two{2 \\}
\def\foo{%
\one
\let\temp\one\let\one\two\let\two\temp % just swap one and two
}
\tabbing
\hspace{0.4\hsize}\=\hspace{0.4\hsize}\kill
}
\def\endpresent{\endtabbing\endgroup}
Well, it doesn't work. I sure don't know why. tracingmacros
doesn't seem to tell me anything. What I get is
1 a 2 b
1 c
1 d
1 e
1 f
Now if I remove the \\ and \> from \one and \two I get as expected
and wanted
1 a 2 b 1 c 2 d 1 e 2 f
For some reason the \\ makes all of my \let's break. Any
help would be appreciated.
thank you
--
Michael DeCorte // (315)268-2292 // P.O. Box 652, Potsdam, NY 13676
Internet mrd@sun.soe.clarkson.edu // Bitnet mrd@clutx.bitnet