emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Schulte <schulte.eric@gmail.com>
To: "Thomas S. Dye" <tsd@tsdye.com>
Cc: Org-mode <emacs-orgmode@gnu.org>
Subject: Re: [PATCH] Add tikzDevice support to ob-R
Date: Mon, 28 Nov 2011 00:08:50 -0700	[thread overview]
Message-ID: <8739d87mgt.fsf@gmail.com> (raw)
In-Reply-To: <m1k46mhvfa.fsf@tsdye.com> (Thomas S. Dye's message of "Sat, 26 Nov 2011 21:32:57 -1000")

Applied, Thanks -- Eric

tsd@tsdye.com (Thomas S. Dye) writes:

> Aloha all,
>
> 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:
>
> old <- getOption("defaultPackages")
> options(defaultPackages = c(old, "tikzDevice"))
>
> Then, specify a .tex file in the :file header argument of the R source
> code block, e.g., :file intervals.tex, and the graphic will be produced
> by tikzDevice.
>
> The advantage of this for LaTeX export is that the resulting file will
> be set with the fonts of its surrounding document.
>
> Something like this works for me, where the \sffamily command uses the
> document's sans serif font and the file is called intervals.tex:
>
> \begin{figure}[htb!]
>   \centering
>   \sffamily
>   \input{../figure/intervals}
>   \caption[Elapsed time between Polynesian colonization of Hawai`i and
> fire-pit use]{Elapsed time between Polynesian colonization of Hawai`i
> and fire-pit use.}
>   \label{fig:elapsed-time}
> \end{figure}
>  
> All the best,
> Tom

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/

      parent reply	other threads:[~2011-11-28  7:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-27  7:32 [PATCH] Add tikzDevice support to ob-R Thomas S. Dye
2011-11-27 12:18 ` Rasmus Pank Roulund
2011-11-28  7:08 ` Eric Schulte [this message]

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8739d87mgt.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=tsd@tsdye.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).