{"action":"opened","issue":{"url":"https://api.github.com/repos/sphinx-doc/testing2/issues/1534","labels_url":"https://api.github.com/repos/sphinx-doc/testing2/issues/1534/labels{/name}","comments_url":"https://api.github.com/repos/sphinx-doc/testing2/issues/1534/comments","events_url":"https://api.github.com/repos/sphinx-doc/testing2/issues/1534/events","html_url":"https://github.com/sphinx-doc/testing2/issues/1534","id":53300819,"number":1534,"title":"Word wrap long lines in Latex verbatim blocks","user":{"login":"shimizukawa","id":151623,"avatar_url":"https://avatars.githubusercontent.com/u/151623?v=3","gravatar_id":"","url":"https://api.github.com/users/shimizukawa","html_url":"https://github.com/shimizukawa","followers_url":"https://api.github.com/users/shimizukawa/followers","following_url":"https://api.github.com/users/shimizukawa/following{/other_user}","gists_url":"https://api.github.com/users/shimizukawa/gists{/gist_id}","starred_url":"https://api.github.com/users/shimizukawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shimizukawa/subscriptions","organizations_url":"https://api.github.com/users/shimizukawa/orgs","repos_url":"https://api.github.com/users/shimizukawa/repos","events_url":"https://api.github.com/users/shimizukawa/events{/privacy}","received_events_url":"https://api.github.com/users/shimizukawa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sphinx-doc/testing2/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/sphinx-doc/testing2/labels/latex","name":"latex","color":"FFFFFF"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-03T10:46:02Z","updated_at":"2015-01-03T10:46:02Z","closed_at":null,"body":"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.\n\nApparently 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.\n\nThe 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?\n\nOr is there some other trick to get long lines to wrap in code blocks in PDFs?\n\n----------------------------------------\n- Bitbucket: https://bitbucket.org/birkenfeld/sphinx/issue/1534\n- Originally reported by: Anonymous\n- Originally created at: 2014-08-15T09:43:07.191\n"}}