Skip to content

Using listings instead of verbatim to enable code wrap #9068

Description

@redraven984

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions