From: "Eric Schulte" <schulte.eric@gmail.com>
To: Steven Delean <steven.delean@adelaide.edu.au>
Cc: emacs-orgmode@gnu.org
Subject: Re: Color of exported R code results using LaTeX listings
Date: Fri, 17 Sep 2010 08:24:19 -0400 [thread overview]
Message-ID: <87k4mk5uji.fsf@gmail.com> (raw)
In-Reply-To: 1284708719.2732.28.camel@sduofa-desktop
Hi Steven,
If your R blocks are outputting actual R code, then you can use the
"code" argument to the :results header argument to have the output
exported as R code under listings instead of within verbatim blocks.
--8<---------------cut here---------------start------------->8---
#+begin_src R :results code 8 #+end_src
#+results:
#+BEGIN_SRC R
8
#+END_SRC
--8<---------------cut here---------------end--------------->8---
Alternately if your output is some other language you could use the
":results latex" header argument and explicitly provide the listings
wrapper yourself.
Hope this Helps -- Eric
Steven Delean <steven.delean@adelaide.edu.au> writes:
> 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"))
>
>
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2010-09-17 14:11 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-17 7:31 Color of exported R code results using LaTeX listings Steven Delean
2010-09-17 8:00 ` Rainer M Krug
2010-09-17 8:28 ` Steven Delean
2010-09-17 8:52 ` Sébastien Vauban
2010-09-17 9:13 ` Rainer M Krug
2010-09-17 13:14 ` Steven Delean
2010-09-17 13:20 ` Rainer M Krug
2010-09-17 13:30 ` Sébastien Vauban
2010-09-17 14:15 ` Rainer M Krug
2010-09-17 9:05 ` Rainer M Krug
2011-01-04 10:06 ` Bastien
2010-09-17 12:24 ` Eric Schulte [this message]
2010-09-18 2:39 ` Steven Delean
2010-09-18 7:10 ` Sébastien Vauban
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k4mk5uji.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=steven.delean@adelaide.edu.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.