Is it possible to create a macro that would close all current open environments? Or even an explicit subset of all current open environments (where the subset would be standard user environments)?
Usage would be something like
\begin{document}
\begin{example}
\begin{enumerate}
\item blah
\item blah
\CloseEverything
where \CloseEverything
would be equivalent to
\end{enumerate}
\end{example}
\end{document}
\begin...\end
pairs, whereas TeX often uses single macros, making it easier to parse the material, and giving access points for the beginning and of an element. If you are annoyed by the typing effort, it is better to use an editor that inserts these constructs as pairs for you.