emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Eric Schulte" <schulte.eric@gmail.com>
To: emacs-orgmode@gnu.org
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	[thread overview]
Message-ID: <m2ocop96g8.fsf@gmail.com> (raw)
In-Reply-To: <86iqeyfba3.fsf@portan.ibr.cs.tu-bs.de> (Chris Gray's message of "Fri, 02 Oct 2009 10:30:28 +0200")

Chris Gray <chrismgray@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

      parent reply	other threads:[~2009-10-02 15:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-01 16:18 Org-mode version 6.31trans; Exporting src blocks to LaTeX produces .tex file that fails to compile cgray
2009-10-01 19:49 ` Eric Schulte
2009-10-02  8:30   ` Chris Gray
2009-10-02  9:36     ` Chris Gray
2009-10-02 10:04       ` Carsten Dominik
2009-10-02 10:45         ` Chris Gray
2009-10-02 11:12           ` Carsten Dominik
2009-10-02 15:11     ` Eric Schulte [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2ocop96g8.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).