From mboxrd@z Thu Jan 1 00:00:00 1970 From: Niels Giesen Subject: Re: Org-mode latex-export minted problem Date: Wed, 16 Nov 2011 13:55:25 +0100 Message-ID: <871ut8i5vm.fsf@gmail.com> References: <88ABDDB0-0F26-4335-94C9-FEA0382AD5A9@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38124) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RQezz-0004am-4p for emacs-orgmode@gnu.org; Wed, 16 Nov 2011 07:53:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RQezx-0003j3-UL for emacs-orgmode@gnu.org; Wed, 16 Nov 2011 07:53:55 -0500 Received: from mail-wy0-f169.google.com ([74.125.82.169]:65016) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RQezx-0003im-L2 for emacs-orgmode@gnu.org; Wed, 16 Nov 2011 07:53:53 -0500 Received: by wyi11 with SMTP id 11so541164wyi.0 for ; Wed, 16 Nov 2011 04:53:52 -0800 (PST) In-Reply-To: <88ABDDB0-0F26-4335-94C9-FEA0382AD5A9@gmail.com> ("Piotr \=\?utf-8\?Q\?Ka\=C5\=BAmierczak\=22's\?\= message of "Wed, 16 Nov 2011 12:48:36 +0100") 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: Orgmode Cc: iotr =?utf-8?Q?Ka=C5=BAmierczak?= Piotr Ka=C5=BAmierczak writes: > Hi,=20 > > I'm having a hard time configuring org-mode LaTeX export to work with min= ted 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 conf= iguration 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")) > Hi Piotr, Try and narrow down the problem: 1. Start Emacs with the -q option, 2. Open test.org, which is * Test minted export #+begin_src emacs-lisp ;; minted latex export (setq org-export-latex-listings 'minted org-export-latex-minted-options '(("frame" "lines") ("fontsize" "\\scriptsize") ("linenos" ""))) #+end_src 3. Evaluate the emacs-lisp block in test.org 4. Press C-c C-e L With me, this outputs the src block correctly, namely as \begin{minted}[frame=3Dlines,fontsize=3D\scriptsize,linenos]{common-lisp} ; minted latex export (setq org-export-latex-listings 'minted org-export-latex-minted-options '(("frame" "lines") ("fontsize" "\\scriptsize") ("linenos" ""))) \end{minted} If you get the same output, something else in your .emacs or custom.el or so must play you parts, if not, you may have to check your org mode version. Regards, Niels. --=20 http://pft.github.com/