Issues

Issue #1534 new

Word wrap long lines in Latex verbatim blocks

Anonymous created an issue

For example literalinclude blocks are nicely displayed in PDF output. But if a file contains a long line it just overflows, gets cut off and is not readable a all.

Apparently there's nothing I can do as a user (with e.g. additional latex preamble) as Sphinx creates verbatim blocks which do not suport word wrapping.

The recommended Latex solution seems to be using some other package instead(like lstlisting or minted). Could Sphinx get an option to switch to some other package?

Or is there some other trick to get long lines to wrap in code blocks in PDFs?

Comments (3)

  1. Log in to comment