My goal is to display source code (awk, Python, R and SAS) and text (their output) side-by-side. Both are loaded from external files, and can be pretty long sometimes (pagebreaking is inevitable), the source code should be syntax highlighted. The source code should stay on the left side, and the output should stay on the right side, even if there is a pagebreak.
I'm using the listings package for its syntax highlighting.
I can't find an environment to behave right when there's a pagebreak.
Some of what I've tried already:
- multicols: this environment is fine, until there's a pagebreak (left side breaks to the right side and messes up everything)
- minipage: no pagebreak yet