Return to Snippet

Revision: 70896
at September 6, 2016 07:11 by spino327


Initial Code
\noindent\begin{minipage}{.45\columnwidth}
  \begin{lstlisting}[caption=code 1,frame=tlrb]{Name}
    void code()
    {
    }
  \end{lstlisting}
\end{minipage}\hfill
\begin{minipage}{.45\columnwidth}
  \begin{lstlisting}[caption=code 2,frame=tlrb]{Name}
    void code()
    {
    }
  \end{lstlisting}
\end{minipage}

Initial URL
http://tex.stackexchange.com/questions/35155/lstlisting-in-two-columns

Initial Description
Using minipage to place two lstlistings side by side when you're using two column documents.

Initial Title
Latex: lstlisting in two columns

Initial Tags

                                

Initial Language
LaTeX