This is somewhat hacky. I'm ultimately trying to create an exam template that rearranges itself. But, I want a lot of flexibility and the randomizing exam packages that exist don't seem to work.
I'm stuck on something that I can't really figure out. I want to define two commands, \before
and \after
that switch places along with everything after them. So, something like this:
Hi there!
\begin{switcher}
\before Blah blah
Paragraphs make things hard. \lipsum \foo
\begin{itemize}\item A\item B\item etc.\end{itemize}
\after This should hopefully come first.
As well as this!
\end{switcher}
This is normal!
Should give the exact same result as something like this:
Hi there!
This should hopefully come first.
As well as this!
Blah blah
Paragraphs make things hard. \lipsum \foo
\begin{itemize}\item A\item B\item etc.\end{itemize}
This is normal!
Ideally, I want the flexibility to rearrange a list like scenario. But, I'm pretty sure I can figure it out myself if I know how to do this basic example. I'm just not sure where to start.