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

From: Martin Maechler <>
Date: Mon, 03 Mar 2008 16:32:17 +0100

>>>>> "BDR" == Prof Brian Ripley <> >>>>> 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 mailing list PLEASE do read the posting guide 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 Please read the posting guide before posting to the list.

list of date sections of archive