When using multicols from the multicol package, is is possible to do something like this:
\begin{multicols}{2}
Some text
\begin{escapemulticol}
Some large image or formula spanning the whole page width but stay in place (horizontally).
\end{escapemulticol}
Some other text
\end{multicols}
I need this in a more complicated setting so it is not enough simply to use two multicol environments.
Edit: The more "complicated" setting seems to be more relevant here, so I try to give a minimal example for my actual use case:
\documentclass{article}
\usepackage{etoolbox}
\usepackage{environ}
\newtheorem{pr}{Problem}
\newtheorem{solinn}{ad Problem}
\newtoks\prsoltoks
\NewEnviron{Solution}{%
\global\prsoltoks=\expandafter{\the\prsoltoks\begin{solinn}}%
\global\prsoltoks=\expandafter{\the\expandafter\prsoltoks\BODY\end{solinn}}%
}
\usepackage{multicol}
\AtEndDocument{\clearpage\begin{center}\Large Solutions \end{center}
\setcounter{pr}{0}
\begin{multicols}{2}
\the\prsoltoks
\end{multicols}
}
\begin{document}
\begin{pr}
A Problem.
\end{pr}
\begin{Solution}~
\def\x{Some text }
\x\x\x\x\x\x\x\x\x\x\x\x\x\x\x\x\x\x\x\x\x\x\x\x\x\x\x\x\x
% \end{multicols}
% \fbox{Some large image or formula spanning the whole page width. }
% \begin{multicols}{2}
% \begin{escapemulticol}
% Some large image or formula spanning the whole page width.
% \end{escapemulticol}
\def\y{Some other text Some other text Some other text Some other text }
\y\y\y\y\y\y\y\y\y\y\y\y\y\y\y\y\y\y\y\y\y\y\y\y\y\y\y\y
More: \y\y\y\y\y\y\y\y\y\y\y\y\y\y\y\y\y\y\y\y\y\y\y\y\y
and more still \y\y\y\y\y\y\y\y\y\y\y\y\y\y\y\y\y\y\y\y\y
\end{Solution}
\end{document}
David Carlisle's solution doesn't compile in this setting.




\begin{figure*}– David Carlisle Apr 08 '15 at 10:31