From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Subject: Re: Forcing line breaks in src (monospace) examples Date: Tue, 23 Jun 2015 15:11:48 +0000 Message-ID: References: <557D936B.3050501@pfdstudio.com> <557D950F.7030009@pfdstudio.com> <20150614173637.7633a81e@zotac> <6sw6c7616qnv65.fsf@dhcp-10-82-66-30.hmco.com> <20150614181100.11ec3d7a@zotac> <6sw6c71thentsl.fsf@dhcp-10-82-66-30.hmco.com> <20150614183836.5db13a41@zotac> <557DB368.4050301@pfdstudio.com> <55897436.9040104@pfdstudio.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114ee040c7bc7f051930cfad Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7Prk-0000BB-H3 for emacs-orgmode@gnu.org; Tue, 23 Jun 2015 11:12:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z7Prj-0001AE-Ct for emacs-orgmode@gnu.org; Tue, 23 Jun 2015 11:12:00 -0400 Received: from mail-yk0-x229.google.com ([2607:f8b0:4002:c07::229]:34141) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7Prj-0001A3-6z for emacs-orgmode@gnu.org; Tue, 23 Jun 2015 11:11:59 -0400 Received: by ykfy125 with SMTP id y125so7087198ykf.1 for ; Tue, 23 Jun 2015 08:11:58 -0700 (PDT) In-Reply-To: <55897436.9040104@pfdstudio.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Peter Davis , emacs-orgmode@gnu.org --001a114ee040c7bc7f051930cfad Content-Type: text/plain; charset=UTF-8 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 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 > > > > --001a114ee040c7bc7f051930cfad Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On the topic of exporting auto-wrapped lines in sourc= e code blocks to .tex/.pdf:

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


=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 (setq org-latex-listings 'minted)

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (setq org-latex-minted-opti= ons
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 '(("linenos")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("numbersep" =C2=A0 "= 5pt")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 ("frame" =C2=A0 =C2=A0 =C2=A0 "none")= ; box frame is created by the mdframed package
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("framesep" = =C2=A0 =C2=A0"2mm")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; ("fontfamily" =C2=A0"z= i4") ; required only when using pdflatex
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ; instead of xelatex
=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = ;; minted 2.0 specific features
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ("breaklines") ; line wrap= ping within code blocks
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 ))




On Tue, = Jun 23, 2015 at 10:59 AM Peter Davis <pfd@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



--001a114ee040c7bc7f051930cfad--