From mboxrd@z Thu Jan 1 00:00:00 1970
From: =?iso-8859-2?Q?Piotr_Ka=BCmierczak?=
Subject: Org-mode latex-export minted problem
Date: Wed, 16 Nov 2011 12:48:36 +0100
Message-ID: <88ABDDB0-0F26-4335-94C9-FEA0382AD5A9@gmail.com>
Mime-Version: 1.0 (Apple Message framework v1251.1)
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Return-path:
Received: from eggs.gnu.org ([140.186.70.92]:39919)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1RQdyw-0002sl-DQ
for emacs-orgmode@gnu.org; Wed, 16 Nov 2011 06:48:50 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1RQdyu-0007XQ-UV
for emacs-orgmode@gnu.org; Wed, 16 Nov 2011 06:48:46 -0500
Received: from mail-ey0-f169.google.com ([209.85.215.169]:47002)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1RQdyu-0007XG-PV
for emacs-orgmode@gnu.org; Wed, 16 Nov 2011 06:48:44 -0500
Received: by eye4 with SMTP id 4so378626eye.0
for ; Wed, 16 Nov 2011 03:48:43 -0800 (PST)
List-Id: "General discussions about Org-mode."
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org
Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org
To: emacs-orgmode@gnu.org
Hi,=20
I'm having a hard time configuring org-mode LaTeX export to work with =
minted package for code listings. I put=20
#+LaTeX_HEADER: \usepackage{minted}
#+LaTeX_HEADER: \usemintedstyle{emacs}
in the header of my org mode file, and then=20
#+BEGIN_SRC haskell :exports code
some haskell code here
#+END_SRC
when I wanted to put the code listing. My .emacs has a proper minted =
configuration for org-mode set, too:
; minted latex export
(setq org-export-latex-listings 'minted)
(setq org-export-latex-minted-options
'(("frame" "lines")
("fontsize" "\\scriptsize")
("linenos" "")))
(setq org-latex-to-pdf-process
'("pdflatex -shell-escape -interaction nonstopmode %s"
"pdflatex -shell-escape -interaction nonstopmode %s"
"pdflatex -shell-escape -interaction nonstopmode %s"))
but whenever I export the org-mode buffer to LaTeX, I get my listings =
wrapped around \begin{lstlisting} and \end{lstlisting}.=20
What am I missing here?
cheers;
Piotr
--
Dept. of Computer Engineering, Bergen University College
Postboks 7030, 5020 Bergen, Norway
(+47) 55 58 75 88
http://soundandcomplete.com