From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: listing org source blocks in LaTeX Date: Mon, 13 Sep 2010 11:26:41 -1000 Message-ID: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: multipart/mixed; boundary="===============0160499434==" Return-path: Received: from [140.186.70.92] (port=44176 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OvGY7-0005eM-Dq for emacs-orgmode@gnu.org; Mon, 13 Sep 2010 17:26:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OvGY6-0008Te-Bv for emacs-orgmode@gnu.org; Mon, 13 Sep 2010 17:26:51 -0400 Received: from oproxy2-pub.bluehost.com ([67.222.39.60]:33452) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OvGY6-0008TL-5M for emacs-orgmode@gnu.org; Mon, 13 Sep 2010 17:26:50 -0400 Received: from [72.253.144.27] (helo=potofo-ou.westell.com) by box472.bluehost.com with esmtpa (Exim 4.69) (envelope-from ) id 1OvGXz-0006hj-Cd for emacs-orgmode@gnu.org; Mon, 13 Sep 2010 15:26:44 -0600 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode Mailinglist --===============0160499434== Content-Type: multipart/alternative; boundary=Apple-Mail-3--984160126 --Apple-Mail-3--984160126 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Aloha all, Has anyone configured the listings package to recognize org source code blocks? On LaTeX export, I get this: > \lstset{language=org} > > org-buffer-color() $\equiv$ > \begin{lstlisting} > #+LaTeX_CLASS_OPTIONS: [color] > \end{lstlisting} The listings package throws an error when it sees language=org. It does just fine with source code blocks in other languages. All the best, Tom --Apple-Mail-3--984160126 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Aloha = all,

Has anyone configured the listings package to = recognize org source code blocks?

On LaTeX = export, I get this:

\lstset{language=3Dorg}

org-buffer-color() = $\equiv$ 
\begin{lstlisting}
#+LaTeX_CLASS_OPTIONS: = [color]
\end{lstlisting}

The listings package throws an error when it sees language=3Dorg. =  It does just fine with source code blocks in other = languages.

All the = best,
Tom

= --Apple-Mail-3--984160126-- --===============0160499434== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0160499434==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: listing org source blocks in LaTeX Date: Fri, 24 Sep 2010 16:00:54 +0200 Message-ID: <87fwwzqm09.fsf@mundaneum.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Thomas, "Thomas S. Dye" wrote: > Has anyone configured the listings package to recognize org source code > blocks? > > On LaTeX export, I get this: > >> \lstset{language=3Dorg} >> >> org-buffer-color() $\equiv$ >> \begin{lstlisting} >> #+LaTeX_CLASS_OPTIONS: [color] >> \end{lstlisting} > > The listings package throws an error when it sees language=3Dorg. Normal. It is unknown... unluckily! > It does just fine with source code blocks in other languages. I remember that Dan or Eric once told us to play with the following var: --8<---------------cut here---------------start------------->8--- ;; mapping between languages (listings in LaTeX) and their major mode ;; (in Emacs) (setq org-src-lang-modes '(("ocaml" . tuareg) ("elisp" . emacs-lisp) ;; ("Delphi" . perl) ("ditaa" . artist) ("asymptote" . asy) ("dot" . fundamental))) --8<---------------cut here---------------end--------------->8--- Though, not sure it's set up in a right way. And, yes, this should be set up properly in Org, I guess, instead of relying on the users to make this customization? Best regards, Seb --=20 S=C3=A9bastien Vauban _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: listing org source blocks in LaTeX Date: Fri, 24 Sep 2010 09:26:16 -0600 Message-ID: <87r5gj6u3r.fsf@gmail.com> References: <87fwwzqm09.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=33390 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OzAIs-00046B-TS for emacs-orgmode@gnu.org; Fri, 24 Sep 2010 11:35:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OzAAR-0008Cu-5q for emacs-orgmode@gnu.org; Fri, 24 Sep 2010 11:26:32 -0400 Received: from mail-px0-f169.google.com ([209.85.212.169]:59164) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OzAAR-0008Co-1W for emacs-orgmode@gnu.org; Fri, 24 Sep 2010 11:26:31 -0400 Received: by pxi5 with SMTP id 5so1776353pxi.0 for ; Fri, 24 Sep 2010 08:26:29 -0700 (PDT) In-Reply-To: <87fwwzqm09.fsf@mundaneum.com> (=?utf-8?Q?=22S=C3=A9bastien?= Vauban"'s message of "Fri, 24 Sep 2010 16:00:54 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?utf-8?Q?S=C3=A9bastien?= Vauban Cc: emacs-orgmode@gnu.org >> >> The listings package throws an error when it sees language=org. > > Normal. It is unknown... unluckily! > I've used the following for org-mode listings --8<---------------cut here---------------start------------->8--- \lstdefinelanguage{org} { morekeywords={:results, :session, :var, :noweb, :exports}, sensitive=false, morecomment=[l]{\#}, morestring=[b]", } --8<---------------cut here---------------end--------------->8--- Best -- Eric From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: listing org source blocks in LaTeX Date: Fri, 24 Sep 2010 21:00:41 +0200 Message-ID: <878w2rt19i.fsf@mundaneum.com> References: <87fwwzqm09.fsf@mundaneum.com> <87r5gj6u3r.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Eric, >>> The listings package throws an error when it sees language=3Dorg. >> >> Normal. It is unknown... unluckily! > > I've used the following for org-mode listings > > \lstdefinelanguage{org} > { > morekeywords=3D{:results, :session, :var, :noweb, :exports}, > sensitive=3Dfalse, > morecomment=3D[l]{\#}, > morestring=3D[b]", > } I'll try it out. Thanks! Best regards, Seb --=20 S=C3=A9bastien Vauban _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode