emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] latex export R code syntax highlighting with minted


From: Ista Zahn
Subject: [O] latex export R code syntax highlighting with minted
Date: Fri, 16 Mar 2012 16:36:38 -0400

Hi all,

I'm having trouble modifying the example at
http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-12-3
to highlight R code blocks. The trouble seems to be that org-mode
identifies R blocks using uppercase R, while pygments looks for
lowercase r.

For example, org exports

\begin{minted}{R}
 2+2
\end{minted}

but pygments doesn't know how to highlight R. If I change to

\begin{minted}{r}
 2+2
\end{minted}

(note the lower case r) then it works, but of course I don't want to
have to perform a find-and-replace every time.

Do you know how to either a) make org-mode identify R blocks with a
lowercase r, or b) make pygments recognize uppercase R, or c) some
other solution I've overlooked?

Thanks!
Ista



reply via email to

[Prev in Thread] Current Thread [Next in Thread]