longline*.txt files contain some text and in some files the text is inserted in an environment as indicated in the filename.

The following script:





reveals a different rendering of the text:

enter image description here

The actual text contains characters such as _ and the lstlisting and verbatim environments are evaluated as a rescue.

The problem is that the paragraph is not broken down into lines in the verbatim and lstlisting environment.

How to solve the problem?


This example for the listings package can help you.




The file long.txt contains plain text divided into paragraphs: enter image description here

And the result: enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.