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

asked 2021-09-30 14:26:10 +0100

andrewyg gravatar image

updated 2021-09-30 14:31:02 +0100

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?

edit retag flag offensive close merge delete