Aloha Shiyuan,

Shiyuan <gshy2...@gmail.com> 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
> <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

Reply via email to