首页 > 解决方案 > How can I wrap lines from an input text file to my margins in latex?

问题描述

I need to include a text file I get from a C++ program in my latex document. When I include a text file with the latex verbatim include command the text in some lines continue endlessly instead of abiding to my document margins. See picture.

This is how it looks when it's compiled to pdf

How can I get the input text to wrap according to my margins? I can't change the formatting of the input file because it is given to me with this specific formatting by the program.

标签: latex

解决方案


推荐阅读