jkuczm / mmacells

Mathematica cells in TeX
61 stars 18 forks source link

Automatic line break #22

Closed rgugliel closed 8 years ago

rgugliel commented 8 years ago

Hi, Is there a way to get automatic line break? (the same as the "breaklines=true" option of the lstlisting package)

Thanks!

Best,

Rafael

jkuczm commented 8 years ago

mmacells uses listings under the hood, so you can use all features of listings, as long as they work in listings - fancyvrb interface.

To pass options to listings inside mmaCell you can use lst, or morelst key. lst will get rid of all previously set listings options (including mmacells built-in options), morelst will add given options to existing ones.

\documentclass{article}
\usepackage{mmacells}
\begin{document}

\begin{mmaCell}[morelst={breaklines=true}]{Input}
this is a very long line this is a very long line this is a very long line this is a very long line this is a very long line this is a very long line
\end{mmaCell}

\end{document}

result

rgugliel commented 8 years ago

Thanks!