From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ista Zahn Subject: latex export R code syntax highlighting with minted Date: Fri, 16 Mar 2012 16:36:38 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50167) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8dtq-00006U-A1 for emacs-orgmode@gnu.org; Fri, 16 Mar 2012 16:37:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S8dtV-0002Hp-Qk for emacs-orgmode@gnu.org; Fri, 16 Mar 2012 16:37:21 -0400 Received: from mail-lpp01m010-f41.google.com ([209.85.215.41]:46443) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8dtV-0002E9-Gr for emacs-orgmode@gnu.org; Fri, 16 Mar 2012 16:37:01 -0400 Received: by lagz14 with SMTP id z14so4541772lag.0 for ; Fri, 16 Mar 2012 13:36:58 -0700 (PDT) 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 Mailinglist 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