Sorry if there was a more appropriate forum for this, but I wasn't really sure.
I'm currently using the listings package, along with the lstinputlisting command to include source files containing code in a LaTeX document. However, some of the lines in the code are quite long, and run off the page.
Is there any way to make lstinputlisting use a smaller font size so all of the lines fit on the page? Or perhaps make the lines auto-wrap around? Or really any solution at all that doesn't involve editing the source files.
Thanks for the help.
General ⇒ Lines of code go off the page
NEW: TikZ book now 40% off at Amazon.com for a short time.

Lines of code go off the page
1,1,2,3,5,8,13,21,34,55,89,144,233,...
-
- Posts: 2
- Joined: Thu Sep 24, 2009 12:20 am
Re: Lines of code go off the page
Thanks, that works perfectly.