Latex: two side by side lstlistings in full page


/ Published in: LaTeX
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.