General ⇒ How to display both input codes and output side by side?
-
- Posts: 66
- Joined: Tue Oct 07, 2008 9:39 am
How to display both input codes and output side by side?
I want to display BOTH input codes (at the left side) and its corresponding output (at the right side) at the same time using only one environment.
How to create such environment using listing package?
Thank you in advance
Hayashi
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
How to display both input codes and output side by side?
Best regards and welcome to the board
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: How to display both input codes and output side by side?
-
- Posts: 66
- Joined: Tue Oct 07, 2008 9:39 am
-
- Posts: 66
- Joined: Tue Oct 07, 2008 9:39 am
How to display both input codes and output side by side?

