Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic line break #22

Closed
rgugliel opened this issue May 20, 2016 · 2 comments

Comments

Projects
None yet
2 participants
@rgugliel
Copy link

commented May 20, 2016

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

This comment has been minimized.

Copy link
Owner

commented May 21, 2016

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

@jkuczm jkuczm added the question label May 21, 2016

@rgugliel

This comment has been minimized.

Copy link
Author

commented May 22, 2016

Thanks!

@jkuczm jkuczm closed this May 22, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.