From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Delean Subject: Color of exported R code results using LaTeX listings Date: Fri, 17 Sep 2010 17:01:59 +0930 Message-ID: <1284708719.2732.28.camel@sduofa-desktop> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=39114 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OwVQU-0003zl-Gq for emacs-orgmode@gnu.org; Fri, 17 Sep 2010 03:32:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OwVQT-0005zy-JX for emacs-orgmode@gnu.org; Fri, 17 Sep 2010 03:32:06 -0400 Received: from pulteney-pix.border.net.adelaide.edu.au ([192.43.227.18]:8024 helo=mailguard-send.adelaide.edu.au) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OwVQT-0005wU-9E for emacs-orgmode@gnu.org; Fri, 17 Sep 2010 03:32:05 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi everyone, I am using org-mode to make a beamer presentation that includes blocks of R code and wish to export the source code and results to pdf in color (using the listings package). The source code block syntax is highlighted successfully, but the output results of the executed R code are not colored at all. The results are presented in \begin{verbatim}...\end{verbatim}, whereas the source code is presented within \begin{lstlisting}...\end{lstlisting}. I can affect changes to the fontsize and color of the source code using \lstset in the .org document header, but not the results output from evaluating the code. Is there some way I can export these results in color? Thanks for any suggestions, Regards, Steve PS I have the follwing in my .emacs (require 'org-latex) (setq org-export-latex-listings t) (add-to-list 'org-export-latex-packages-alist '("" "listings")) (add-to-list 'org-export-latex-packages-alist '("" "color"))