On the topic of exporting auto-wrapped lines in source code blocks to
.tex/.pdf:

If you use minted instead of listings, the latest minted 2.0 (probably not
yet on tex-live) latex package does line wrapping in the source code blocks
very elegantly.

https://github.com/gpoore/minted

            (setq org-latex-listings 'minted)

            (setq org-latex-minted-options
                  '(("linenos")
                    ("numbersep"   "5pt")
                    ("frame"       "none") ; box frame is created by the
mdframed package
                    ("framesep"    "2mm")
                    ;; ("fontfamily"  "zi4") ; required only when using
pdflatex
                                        ; instead of xelatex
                    ;; minted 2.0 specific features
                    ("breaklines") ; line wrapping within code blocks
                    ))




On Tue, Jun 23, 2015 at 10:59 AM Peter Davis <p...@pfdstudio.com> wrote:

>
> So getting line breaks in exported LaTeX/PDF src examples is now working
> beautifully.
>
> Is there any way to do this in exported HTML?
>
> Thank you,
> -pd
>
>
>
>

Reply via email to