[texhax] Graphics from R into Latex

Lars Madsen daleif at imf.au.dk
Sat Jun 5 17:27:43 CEST 2010


Henrik Aldberg wrote:
> Steve,
> 
> I think you are right. When i opened the Latex output on my home 
> computer (a Mac), it looked fine. So the problem should be with the 
> viewing application on the computer at work.
> 

That is probably because the MAC contains thousands of fonts, that are 
not available (by default) on other systems.

That being said. Why doen't R embed the fonts? Isn't there an option for 
that in R?

/daleif

> Thanks for the help.
> 
> On 4 June 2010 17:48, Steve Schwartz <s.schwartz at imperial.ac.uk 
> <mailto:s.schwartz at imperial.ac.uk>> wrote:
> 
>     Henrik,
> 
>     On Fri, 2010-06-04 at 15:26 +0100, Henrik Aldberg wrote:
>      > The first file is the original PDF file and the second file is the
>      > latex output (also containing the Latex code).
> 
>     Both your pdf and your latex output look fine to me, including heading
>     and labels, etc. in the latex output. I strongly suspect the problem is
>     that your pdf figure uses Helvetic and Helvetica-Bold fonts which are
>     NOT embedded in the file, so whether you can see them, or whether they
>     might be substituted by other fonts, is dependent on the rest of your
>     system and the application you use to view the latex output with.
> 
>     I attach a version of your figure that uses embedded Nimbus fonts
>     instead of Helvetica. (I generated this by printing your pdf to a file.)
> 
>     Try this on your system. If it works, you might then explore if/how you
>     can force your R to embed fonts in its output. Or use acrobat or
>     something else to embed the fonts.
> 
>     HTH
>     Steve
> 
>     --
>     +-------------------------------------------------------------------+
>     Professor Steven J Schwartz        Phone: +44-(0)20-7594-7660
>     Head, Space & Atmospheric Physics  Fax:   +44-(0)20-7594-7772
>     The Blackett Laboratory            E-mail: s.schwartz at imperial.ac.uk
>     <mailto:s.schwartz at imperial.ac.uk>
>     Imperial College London            Office: Huxley 6M67A
>     London SW7 2AZ, U.K.               Web: www.sp.ph.ic.ac.uk/~sjs
>     <http://www.sp.ph.ic.ac.uk/~sjs>
>     +-------------------------------------------------------------------+
> 
> 



More information about the texhax mailing list