From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: R src block not highlighted in pdf Date: Fri, 27 Jun 2014 08:39:29 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56216) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0b3s-0004IX-UA for emacs-orgmode@gnu.org; Fri, 27 Jun 2014 14:39:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X0b3m-0004if-At for emacs-orgmode@gnu.org; Fri, 27 Jun 2014 14:39:48 -0400 Received: from gproxy2-pub.mail.unifiedlayer.com ([69.89.18.3]:60520) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1X0b3m-0004hh-2Q for emacs-orgmode@gnu.org; Fri, 27 Jun 2014 14:39:42 -0400 In-Reply-To: (Shiyuan's message of "Fri, 27 Jun 2014 10:23:33 -0700") 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 Aloha Shiyuan, Shiyuan writes: > 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), the > 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 variable > seems no longer exist in Org 8.2.6. What variables shall I set so that the > R code is syntax highlighted when exported to pdf in Org mode 8.2.6? > Thanks. > > Shiyuan > 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), > the 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 > variable seems no longer exist in Org 8.2.6. What variables shall I > set so that the R code is syntax highlighted when exported to pdf in > Org mode 8.2.6? Thanks. That variable was renamed org-latex-listings in v. 8. hth, Tom -- Thomas S. Dye http://www.tsdye.com