Posted By

spino327 on 09/08/16


Tagged

LaTeX lstlisting


Versions (?)

Latex: two side by side lstlistings in full page


 / Published in: LaTeX
 

Using table and minipage to place two lstlistings side by side covering the full page width.

  1. \begin{table*}
  2. \noindent\begin{minipage}{.45\columnwidth}
  3. \begin{lstlisting}[caption=code 1,frame=tlrb]{Name}
  4. void code()
  5. {
  6. }
  7. \end{lstlisting}
  8. \end{minipage}\hfill
  9. \begin{minipage}{.45\columnwidth}
  10. \begin{lstlisting}[caption=code 2,frame=tlrb]{Name}
  11. void code()
  12. {
  13. }
  14. \end{lstlisting}
  15. \end{minipage}
  16. \end{table*}

Report this snippet  

You need to login to post a comment.