# Multipages side by side listings

Could you tell me what should I do to be able to insert multipages, side by side listings in Latex document?

I have already tried with \begin{minipage}, but it doesn't work with multipages.

EDIT: @Matthew Leingang: by multipages I mean listings in verbatim environment which don't fit into one page.

This is my preamble:

\documentclass[a4paper,11pt]{article}
\usepackage[utf8x]{inputenc}
\usepackage[pdftex]{graphicx}
\usepackage{indentfirst}

\setlength{\textheight}{24cm}
\setlength{\textwidth}{15.92cm}
\setlength{\footskip}{10mm}
\setlength{\oddsidemargin}{0mm}
\setlength{\evensidemargin}{0mm}
\setlength{\topmargin}{0mm}

\makeatletter
\def\thesection{\arabic{section}.}
\def\thesubsection{\thesection\arabic{subsection}}
\makeatother

\usepackage{amsmath}
\usepackage{amssymb}



I would like to add Python listings, two, side by side. I have already tried something like this:

\begin{figure}[ht]
\begin{minipage}[b]{0.5\linewidth}
\centering
\begin{verbatim}
%many lines with Python code
\end{verbatim}
\caption{default}
\end{minipage}
\hspace{0.5cm}
\begin{minipage}[b]{0.5\linewidth}
\centering
\begin{verbatim}
%many lines with Python code
\end{verbatim}
\caption{default}
\end{minipage}
\end{figure}


but above code doesn't work with listings that are longer than one page.

-
Please provide more information. Do you have a minimal example of what you've tried so far? What package do you use to show the listings? –  Bruno Mar 31 '11 at 10:05
What is a multipage? –  Matthew Leingang Mar 31 '11 at 11:51
So, to be clear: you have two listings that are longer than a page, and you want them displayed side-by-side with page breaks? –  Seamus Mar 31 '11 at 17:07
@Seamus: exactly:)! –  herdom Mar 31 '11 at 18:00