From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shiyuan Subject: Re: R src block not highlighted in pdf Date: Fri, 27 Jun 2014 14:46:46 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf302efbb2f9cea904fcd83e87 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40818) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0dyq-0007E5-Qn for emacs-orgmode@gnu.org; Fri, 27 Jun 2014 17:46:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X0dyp-0002Pa-AY for emacs-orgmode@gnu.org; Fri, 27 Jun 2014 17:46:48 -0400 Received: from mail-ve0-x229.google.com ([2607:f8b0:400c:c01::229]:40352) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0dyp-0002P8-47 for emacs-orgmode@gnu.org; Fri, 27 Jun 2014 17:46:47 -0400 Received: by mail-ve0-f169.google.com with SMTP id pa12so5957419veb.28 for ; Fri, 27 Jun 2014 14:46:46 -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: Grant Rettke , tsd@tsdye.com Cc: "emacs-orgmode@gnu.org" --20cf302efbb2f9cea904fcd83e87 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I use the following setting. The keywords are correctly recognized and are in bold face, but not in color. Are there any other steps for colors. (require 'ox-latex) (add-to-list 'org-latex-packages-alist '("" "listings")) (add-to-list 'org-latex-packages-alist '("" "color")) Also, thank you for reminding me of the `apropos`. On Fri, Jun 27, 2014 at 11:38 AM, Grant Rettke wrote: > 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 = stop > 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), > 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 > --20cf302efbb2f9cea904fcd83e87 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I use the following setting. The keywords are co= rrectly recognized and are in bold face, but not in color. Are there any ot= her steps for colors.=C2=A0

(require 'ox-latex= )
=C2=A0 (add-to-list 'org-latex-packages-alist '("" &= quot;listings"))
=C2=A0 (add-to-list 'org-latex-packages= -alist '("" "color"))

Als= o, thank you for reminding me of the `apropos`.=C2=A0


On Fri, Jun 2= 7, 2014 at 11:38 AM, Grant Rettke <gcr@wisdomandwonder.com> wrote:
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.wisd= omandwonder.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 <gshy2014@gmail.com> wrote:
> Hi,
> =C2=A0 =C2=A0 I have a R code src block in a org file. When exported t= o 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-org= mode/2010-07/msg00379.html
> which suggests setting the variable org-export-latex-listings. This va= riable
> seems no longer exist in Org 8.2.6. =C2=A0What variables shall I set s= o that the
> R code is syntax highlighted when exported to pdf in Org mode 8.2.6? T= hanks.
>
> Shiyuan

--20cf302efbb2f9cea904fcd83e87--