I would like to enable automatic line breaking in Verbatim
environment; besides I do not want to use lstlisting
as it will not have exactly the same font shapes as Verbatim
and some other special characters used in Logic Programming like \+
does not show the same. I should only use Verbatim
environment but it seems that the option of line breaking is not available. fancyvrb
also doesn't work as we need to know when we want the line to break. I need this to be automatic.
[Tex/LaTex] Verbatim Linebreaks
line-breakingverbatim
Best Answer
Here a small hack. It saves the contents of a verbatim line inside a vertical box which allows line breaks: