/ Published in: LaTeX
Using minipage to place two lstlistings side by side when you're using two column documents.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
\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}
URL: http://tex.stackexchange.com/questions/35155/lstlisting-in-two-columns