Re: [R] Latex (computer modern) fonts, pdfcairo etc. {was ... GNUplot}

From: Martin Maechler <maechler_at_stat.math.ethz.ch>
Date: Mon, 03 Mar 2008 16:32:17 +0100

>>>>> "BDR" == Prof Brian Ripley <ripley_at_stats.ox.ac.uk> >>>>> on Mon, 3 Mar 2008 14:16:15 +0000 (GMT) writes:

[............]

    BDR> In a later message Louise mentioned the desire to use TeX fonts for 
    BDR> annotation, to match a LaTeX document.  Paul Murrell has pointed out his 
    BDR> and my article in R-News 2006-2 about how to do this.

    BDR> Louise almost mentioned the 'the gnuplot cvs which have pdfcairo support'.     BDR> Well, R too has development versions, and I was able to do

>> par(family="cmr10")
>> plot(1:10)

    BDR> in R-devel and get annotations in Computer Modern on screen, or

>> cairo_pdf()
>> par(family="cmr10")
>> plot(1:10)

    BDR> and get this on a PDF file.

    BDR> To do so you would need /usr/share/fonts/mathml/cmr10.ttf installed, at     BDR> least on F8 (part of the mathml-fonts RPM).

Aha, thank you!

I found that in Ubuntu / Debian the package you need is called   latex-xft-fonts
{i.e. in a shell you install via

      sudo apt-get install latex-xft-fonts }

Martin



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 03 Mar 2008 - 15:34:21 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 03 Mar 2008 - 16:30:18 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive