all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Niels Giesen <niels.giesen@gmail.com>
To: Orgmode <emacs-orgmode@gnu.org>
Cc: "iotr Kaźmierczak" <p.h.kazmierczak@gmail.com>
Subject: Re: Org-mode latex-export minted problem
Date: Wed, 16 Nov 2011 13:55:25 +0100	[thread overview]
Message-ID: <871ut8i5vm.fsf@gmail.com> (raw)
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")

Piotr Kaźmierczak <p.h.kazmierczak@gmail.com> writes:

> 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"))
>
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=lines,fontsize=\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.

-- 
http://pft.github.com/

      reply	other threads:[~2011-11-16 12:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-16 11:48 Org-mode latex-export minted problem Piotr Kaźmierczak
2011-11-16 12:55 ` Niels Giesen [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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=871ut8i5vm.fsf@gmail.com \
    --to=niels.giesen@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=p.h.kazmierczak@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.