I would like to make a bank of problems of similar type--however, I only want to display the first of each time. For example:
\begin{bank}
\begin{exercise} 2+2
\end{exercise}
\begin{exercise} 4+3
\end{exercise}
\end{bank}
Would only show the exercise 2+2. Any help on this would be great.
Note: this questions seems similar to Getting the first line of an environment
and I've tried something like:
\def\getline#1\par{%
\gdef\theline{#1}#1%
}
\newenvironment{bank}{%
\getline%
}{\theline}
but this displays the contents of bank, and then the first environment.