-
Notifications
You must be signed in to change notification settings - Fork 572
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
Using listings instead of verbatim to enable code wrap #202
Comments
Thanks for getting back to me. Do you know what the 'commandchars' line does in verbatim? |
Has anybody gotten further with this? It looks like there is an |
commandchars in fancyvrb is used to allow pygments syntax highlighting, and so it is not needed in listings. I built a package that uses listings for pdf conversion over at nb_pdf_template in version 2.somthing. However that is irrelevant now as #992 adds line wrapping without using listings. |
This does not work for code blocks in markdown cells. echo "Lorem ipsum..." If the line is too long, it will just get cut off. It gets compiled to a verbatim environment, that does not seem to support breaking lines. For code cells or plain markdown it does work. |
@redraven984 opened ipython/ipython#9068
Hi All,
I'm trying to export a notebook with nbconvert to latex. How can I convert the code cells so that long code lines are wrapped?
My understanding is that if verbatim is switched to listings this can be done. However, I dont know what to do with commandchars if I switch.
Thanks for your help! and Im sorry about this basic question.
The text was updated successfully, but these errors were encountered: