I'm using the CRC template to make a book and trying to force breaking of lines in some R output. I made a trivial example and can't get it to work. I'm trying to incorporate recommendations here to break the lines of R output in a PDF but I can't get it to work.
See example of what I changed here
Overview:
- Added listings package to preamble.tex
\usepackage{listings}
- Set option to break lines in before_body.tex
\lstset{breaklines=true}
- Added a chunk of wide output using
options(width=200)
1:100
When I made the PDF, it doesn't break the lines as expected.
Any ideas?
Note: this is cross-posted