Chris Gray <chrismg...@gmail.com> 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 _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode