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