When using the environment sagecommandline of sagetex with long number output, how can I get automatic line breaks?
I already tried to change sagetex.sty (putting breaklines=true at several places), but nothing changed. Here is my minimal example:
\documentclass[
a6paper, 11pt, oneside,
english,ngerman]{scrartcl}
% !TEX TS-program = sage
% !TEX encoding = UTF-8 Unicode
\usepackage[headsep=0cm,footskip=1.5em,includeheadfoot=true,
top=0cm,bottom=0cm,left=.5cm,right=.5cm,]{geometry}
\usepackage{sagetex}
\lstdefinestyle{SageOutput}{style=DefaultSageOutput,breaklines=true}
\begin{document}
\begin{sagecommandline}
sage: factorial(100)+1
sage: factorial(50)+1
sage: factorial(10)
\end{sagecommandline}
\end{document}
sagesilentand\sagestrwhenever the output overflows. I think you'd have to get rid of line numbers to do this, though. – DJP Aug 16 '20 at 17:33