General ⇒ Lines of code go off the page
-
- Posts: 2
- Joined: Thu Sep 24, 2009 12:20 am
Lines of code go off the page
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.
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
Lines of code go off the page
-
- Posts: 2
- Joined: Thu Sep 24, 2009 12:20 am