From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Rettke Subject: Re: R src block not highlighted in pdf Date: Fri, 27 Jun 2014 13:38:52 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0b30-0003DD-Fc for emacs-orgmode@gnu.org; Fri, 27 Jun 2014 14:38:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X0b2z-0004ZR-DG for emacs-orgmode@gnu.org; Fri, 27 Jun 2014 14:38:54 -0400 Received: from mail-ob0-x231.google.com ([2607:f8b0:4003:c01::231]:42888) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0b2z-0004ZL-3O for emacs-orgmode@gnu.org; Fri, 27 Jun 2014 14:38:53 -0400 Received: by mail-ob0-f177.google.com with SMTP id uy5so5856798obc.22 for ; Fri, 27 Jun 2014 11:38:52 -0700 (PDT) In-Reply-To: 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: Shiyuan Cc: "emacs-orgmode@gnu.org" Just ran apropos and it looks like org-latex-listings might be the one. Grant Rettke | ACM, ASA, FSF, IEEE, SIAM gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/ =E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates ((=CE=BB (x) (x x)) (=CE=BB (x) (x x))) =E2=80=9CLife has become immeasurably better since I have been forced to st= op taking it seriously.=E2=80=9D --Thompson On Fri, Jun 27, 2014 at 12:23 PM, Shiyuan wrote: > Hi, > I have a R code src block in a org file. When exported to html, the R > code is correctly syntax highlighted. But when exported to pdf(latex), th= e R > code is not highlighted. I found this thread > https://lists.gnu.org/archive/html/emacs-orgmode/2010-07/msg00379.html > which suggests setting the variable org-export-latex-listings. This varia= ble > seems no longer exist in Org 8.2.6. What variables shall I set so that t= he > R code is syntax highlighted when exported to pdf in Org mode 8.2.6? Than= ks. > > Shiyuan