From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: Org-mode version 6.31trans; Exporting src blocks to LaTeX produces .tex file that fails to compile Date: Fri, 02 Oct 2009 09:11:19 -0600 Message-ID: References: <86my4bf5q5.fsf@portan.ibr.cs.tu-bs.de> <86iqeyfba3.fsf@portan.ibr.cs.tu-bs.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mtjn7-0008Mn-Lv for emacs-orgmode@gnu.org; Fri, 02 Oct 2009 11:11:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mtjn2-0008F6-WF for emacs-orgmode@gnu.org; Fri, 02 Oct 2009 11:11:29 -0400 Received: from [199.232.76.173] (port=51260 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mtjn2-0008F1-Se for emacs-orgmode@gnu.org; Fri, 02 Oct 2009 11:11:24 -0400 Received: from mail-pz0-f181.google.com ([209.85.222.181]:57465) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mtjn2-0006Sz-Hb for emacs-orgmode@gnu.org; Fri, 02 Oct 2009 11:11:24 -0400 Received: by pzk11 with SMTP id 11so1112225pzk.14 for ; Fri, 02 Oct 2009 08:11:23 -0700 (PDT) In-Reply-To: <86iqeyfba3.fsf@portan.ibr.cs.tu-bs.de> (Chris Gray's message of "Fri, 02 Oct 2009 10:30:28 +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: emacs-orgmode@gnu.org Chris Gray writes: > Eric Schulte wrote: >> with my personal Emacs configuration and I got the following in the >> resulting .tex file >> >> #+begin_example >> \lstset{language=lua} >> \begin{lstlisting} >> local s1, s2 = intersecting_segs[1], intersecting_segs[2] >> local n1 = table_find_segment(cell.neighbors, s1) >> local n2 = table_find_segment(cell.neighbors, s2) >> \end{lstlisting} >> #+end_example > > Are you exporting to LaTeX or some intermediate org-based format? I am > just using C-c C-e L to export. Should I be using an org-babel command? > This looks to be resolved, but for completeness the way that I export using the listing package above is the following configuration --8<---------------cut here---------------start------------->8--- ;; tell org to use listings (setq org-export-latex-listings t) ;; you must include the listings package (add-to-list 'org-export-latex-packages-alist '("" "listings")) ;; if you want colored source code then you need to include the color package (add-to-list 'org-export-latex-packages-alist '("" "color")) --8<---------------cut here---------------end--------------->8--- Cheers -- Eric