From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Pank Roulund Subject: Re: [PATCH] Add tikzDevice support to ob-R Date: Sun, 27 Nov 2011 12:18:10 +0000 Message-ID: <87mxbhwygt.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:59112) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUddz-0004Bm-Lz for emacs-orgmode@gnu.org; Sun, 27 Nov 2011 07:15:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RUddy-0001Wb-IU for emacs-orgmode@gnu.org; Sun, 27 Nov 2011 07:15:39 -0500 Received: from mail-ww0-f49.google.com ([74.125.82.49]:46752) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUddy-0001WW-E8 for emacs-orgmode@gnu.org; Sun, 27 Nov 2011 07:15:38 -0500 Received: by wwf5 with SMTP id 5so5558019wwf.30 for ; Sun, 27 Nov 2011 04:15:36 -0800 (PST) In-Reply-To: (Thomas S. Dye's message of "Sat, 26 Nov 2011 21:32:57 -1000") 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: "Thomas S. Dye" Cc: Org-mode Aloha Thomas, > The attached patch adds tikzDevice support to ob-R. It requires that > the tikzDevice package be available to R, so it must be installed and > loaded. Something like the following code in .Rprofile will load the > package by default: Thanks a bunch. I always use pgfSweave and thus I haven't really managed to move from Rnw (LaTeX + R files) to Org file. Are you aware of the very handy pgfsweave bin? In the Arch R package it is located in /usr/lib/R/bin/pgfsweave First, you don't have to load tikzDevice. Second, It makes this very nice notation valid in Rnw files: #+begin_src latex \begin{figure}[tbh] \caption{Time series $x$ and $y$}\label{fig:ts1} <>=3D plot(x.ts) lines(y.ts) #abline(lm(y.fil~x.fil)) @ \end{figure} #+end_latex which translates to the following automatically: #+begin_src latex \begin{figure}[tbh] \caption{Time series $x$ and $y$}\label{fig:ts1} \tikzsetnextfilename{class3-ts3xy-plot} \tikzexternalfiledependsonfile{class3-ts3xy-plot}{class3-ts3xy-plot.tikz} \input{class3-ts3xy-plot.tikz} \end{figure} #+end_src It also adds nice formatting of R chucks without the need other R packages. Thus, using pgfSweave over regular Sweave is just wonderful. However, I don't know whether it can integrate with Babel. Thanks again. =E2=80=93Rasmus --=20 Sent from my Emacs