emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Forcing line breaks in src (monospace) examples


From: Kaushal
Subject: Re: [O] Forcing line breaks in src (monospace) examples
Date: Tue, 23 Jun 2015 15:11:48 +0000

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 <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]