emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Re: Org-mode version 6.31trans; Exporting src blocks to La


From: Eric Schulte
Subject: Re: [Orgmode] 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
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (darwin)

Chris Gray <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]