[Tex/LaTex] One-column Minted in two-column paper (new ACM Template)

acmacmartmintedtwo-columnverbatim

The Association for Computing Machinery is currently transitioning to a unified LaTeX Class for all of their conference proceedings after August of 2017.

I've got several Minted blocks of code, which are too long to fit in a column of a two-column article. For figures and such, I can just use \begin{figure*}, but as far as I know, there's no equivalent for Minted (or Verbatim, which I think it is based off of).

I doubt I will be the only one trying to squeeze code snippets into an ACM paper.

Is there any way to do this, or a recommended way to get Minted to play nice with 2-column papers?

Best Answer

Well i'm not an expert but I found out two ways to extend the minted code in one column.

First one: One Column

The \onecolumn permit to extend all in one column.

\onecolumn
\begin{minted}
# some 1-column code here!
\end{minted}

Second one: Float with listing environment

\begin{listing*}
\begin{minted}
# other 1-column code!
\end{minted}
\end{listing*}