How to break long line of code in sageblock environment (SageTeX)

asked 3 years ago

andrewyg gravatar image

updated 3 years ago

So I have long codes written in sageblock which I would like to know if it's possible to implement line wraps? It seems the the docs suggests SageTeX is using listings which I thought according to this TeX SE answer I could set breaklines=true but still it doesn't work.

Do anyone know how to solve it?

Preview: (hide)