Font Families for the R PDF Device | /en/2010/03/font-families-for-the-r-pdf-device/
Font Families for the R PDF Device
https://yihui.org/en/2010/03/font-families-for-the-r-pdf-device/
https://yihui.org/en/2010/03/font-families-for-the-r-pdf-device/
Guest *Paul* @ 2010-03-24 22:48:47 originally posted:
Not only are these more consistent with Computer Modern, but most do exist as distinguished LaTeX fonts. Bookman as "bookman", New Century Schoolbook as "fouriernc", Palatino as "mathpazo", and Times as "mathptmx".
I didn't know that... Thanks for telling me! :)
Originally posted on 2010-03-25 00:57:40
Guest *Frederik Hjorth* @ 2010-03-24 23:57:14 originally posted:
Excellent tip. On a related note, is it possible to produce regular R graphs using the same font as in LaTeX pdf's (Computer Modern I believe it's called) for inserting manually into LaTeX documents?
Best,
Fred
The first sentence of this post is exactly the answer. You may take a look at the R package pgfSweave (read its vignette!) and I believe you will be thrilled to see that R graphs can be inserted into LaTeX as native LaTeX child documents. Also you can find a demo here: http://yihui.name/en/wp-content/uploads/2010/02/lyx-pgfsweave-demo.pdf
Originally posted on 2010-03-25 00:53:09
Guest *mjm* @ 2010-03-25 00:38:07 originally posted:
how about real os font access like xetex? Anyone figure out how to make Quartz or Cairo graphics devices (both of which are better than the antiquated postscript grdev) use system fonts?
I guess the help page ?embedFonts can be useful and see the reference therein:
Paul Murrell and Brian Ripley (2006) Non-standard fonts in PostScript and PDF graphics. R News, 6(2):41–47. http://cran.r-project.org/doc/Rnews/Rnews_2006-2.pdf.
Or you may take a look at the pgfSweave package too. Since it records R graphics as LaTeX documents (like pictex but more advanced), you can certainly use XeTeX to compile your LaTeX document.
Originally posted on 2010-03-25 01:32:41
Guest *William Gates* @ 2011-11-26 05:38:02 originally posted:
There is a cairo_pdf() device in R since 2.13 , which does exactly what it says.
Sign in to join the discussion
Sign in with GitHub