From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Gray Subject: Re: Org-mode version 6.31trans; Exporting src blocks to LaTeX produces .tex file that fails to compile Date: Fri, 02 Oct 2009 10:30:28 +0200 Message-ID: <86iqeyfba3.fsf@portan.ibr.cs.tu-bs.de> References: <86my4bf5q5.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 1MtdXt-0007RU-Ek for emacs-orgmode@gnu.org; Fri, 02 Oct 2009 04:31:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MtdXo-0007OQ-Gk for emacs-orgmode@gnu.org; Fri, 02 Oct 2009 04:31:20 -0400 Received: from [199.232.76.173] (port=53203 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtdXo-0007OI-AH for emacs-orgmode@gnu.org; Fri, 02 Oct 2009 04:31:16 -0400 Received: from lo.gmane.org ([80.91.229.12]:51780) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MtdXn-0001iO-QZ for emacs-orgmode@gnu.org; Fri, 02 Oct 2009 04:31:16 -0400 Received: from list by lo.gmane.org with local (Exim 4.50) id 1MtdXh-0000x3-F8 for emacs-orgmode@gnu.org; Fri, 02 Oct 2009 10:31:09 +0200 Received: from portan.ibr.cs.tu-bs.de ([134.169.34.77]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Oct 2009 10:31:09 +0200 Received: from chrismgray by portan.ibr.cs.tu-bs.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Oct 2009 10:31:09 +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 Eric Schulte wrote: Hi Eric, > I tried to recreate this problem but was unable to do so on my > computer. To recreate I exported > > #+srcname: determine the neighbors of the segments that the bisector hits > #+begin_src lua :tangle no :exports code > 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_src > > 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? > note that Org-babel shouldn't have any effect here as it currently > doesn't recognize the lua language. Sorry, I should have been more clear about that. I have added the following to my setup. (org-babel-add-interpreter "lua") (add-to-list 'org-babel-tangle-langs '("lua" "lua" "#!/usr/bin/env lua")) > Sorry I can't be of more help. Maybe try with emacs -Q and > incrementally add your personal configuration until the problem > re-appears. Will do. Cheers, Chris