emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Charles C. Berry" <ccberry@ucsd.edu>
To: Vikas Rawal <vikaslists@agrarianresearch.org>
Cc: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: org-babel source code :fonts serif not working
Date: Thu, 26 Mar 2015 11:15:23 -0700	[thread overview]
Message-ID: <alpine.OSX.2.00.1503261106320.1241@charles-berrys-macbook.local> (raw)
In-Reply-To: <182B46AC-4D37-45AA-A576-8F3569B5080F@agrarianresearch.org>

On Thu, 26 Mar 2015, Vikas Rawal wrote:

> The following code does not produce image with serif fonts for me. It 
> used to work earlier but it seems the behaviour has changed. Could 
> anyone confirm.

AFAICS, it does not work in R.

FWIW, the code that Babel sends to R is (after some formatting):

#+BEGIN_SRC R
   png(filename="filename.png",width=1200,height=700,fonts="serif")
   tryCatch({
   <<<< your plot goes here >>>>
   },
            error=function(e){
                plot(x=-1:1, y=-1:1, type='n', xlab='', ylab='', 
axes=FALSE)
                text(x=0, y=0, labels=e$message, col='red')
                paste('ERROR', e$message, sep=' : ')})
   dev.off()
#+END_SRC

If you can get that or something like to work in R, report back here.

Otherwise take this to one of the R lists.

Also, I note that the filename "filename.png" seems troublesome even apart 
from the font issue. I do not have time to run down why that might be.

Chuck



>
> #+BEGIN_SRC R :results output graphics :exports results :file filename.png :width 1200 :height 700 :fonts serif
> <<R code here to produce a graph>>
> #+END_SRC
>

  reply	other threads:[~2015-03-26 18:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-26  2:14 org-babel source code :fonts serif not working Vikas Rawal
2015-03-26 18:15 ` Charles C. Berry [this message]
2015-03-27  1:25   ` Vikas Rawal

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=alpine.OSX.2.00.1503261106320.1241@charles-berrys-macbook.local \
    --to=ccberry@ucsd.edu \
    --cc=emacs-orgmode@gnu.org \
    --cc=vikaslists@agrarianresearch.org \
    /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).