ansible-userguide-pdf icon indicating copy to clipboard operation
ansible-userguide-pdf copied to clipboard

Fix overfull lines in code environments

Open bonndan opened this issue 10 years ago • 1 comments

@bgazzera Can you see in which environment the overfull lines appear? Is it "verbatim"?

bonndan avatar Feb 13 '15 19:02 bonndan

Yes, it is in the verbatim environment.

I have found this to be a very common issue. i.e.: https://github.com/sphinx-doc/sphinx/issues/1534 http://tex.stackexchange.com/questions/14342/verbatim-environment-that-can-break-too-long-lines http://tex.stackexchange.com/questions/10239/breaking-long-lines-using-latex-with-minted-and-pygments

Basically the answers tend to suggest replacing the Verbatim package with the listings package http://www.ctan.org/pkg/listings I'll give it a try, and let you know. As before, hacking in LaTeX is far away from my comfort zone.

bgazzera avatar Feb 13 '15 22:02 bgazzera