Hi, I'm having a hard time configuring org-mode LaTeX export to work with minted package for code listings. I put
#+LaTeX_HEADER: \usepackage{minted} #+LaTeX_HEADER: \usemintedstyle{emacs} in the header of my org mode file, and then #+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}. 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