Displaying 6 results from an estimated 6 matches for "cmsyase".
2011 Feb 15
2
Sweave doesn't hand on width of special characters of Computer Modern fonts to LaTeX
Hello R users,
Using R, Sweave and the cmsyase.afm font it is possible to write LaTeX
documents including R figures with text in the Computer Modern Fonts:
\documentclass{article}
\usepackage{Sweave}
\begin{document}
<<echo = false, results = hide>>=
CM <- Type1Font("CM",
c(file.path("C:/texlive/2009/texm...
2009 Aug 04
1
Sweave, cm-lgc and minus signs
...ing 4 files for
creating my final pdf:
http://www.stat.auckland.ac.nz/~paul/R/CM/cmTutorial.Rnw
This example needs the according Tex-package and the files for the symbol
faces found at:
http://www.ctan.org/tex-archive/help/Catalogue/entries/cm-lgc.html
http://www.stat.auckland.ac.nz/~paul/R/CM/cmsyase.afm
http://www.stat.auckland.ac.nz/~paul/R/CM/cmsyase.pfb
###
Creating the tex-file with
R CMD Sweave cmTutorial.Rnw
(if the 'lattice' package is not loaded immediately then type a
library(lattice)
in front of the 'print(<<latticeCode>>)'
)
and compiling it with
pdfl...
2009 Nov 17
3
CM Fonts in PDF output
...uot;/usr/share/texmf-texlive/fonts/afm/public/cm-lgc/fcmr8a.afm",
"/usr/share/texmf-texlive/fonts/afm/public/cm-lgc/fcmb8a.afm",
"/usr/share/texmf-texlive/fonts/afm/public/cm-lgc/fcmri8a.afm",
"/usr/share/texmf-texlive/fonts/afm/public/cm-lgc/fcmbi8a.afm",
"./cmsyase.afm" ) )
pdfFonts(CM=CM)
pdf( "test.pdf", width = 5, height = 4, family = "CM" )
plot(c(-1,0,1))
dev.off()
-----
which works fine except that R has problems with the minus sign for the
labels and axis and I get the following warnings:
---
... font width unknown for char...
2010 Sep 11
2
Latex fonts in R graphics
...r modern fonts to an R plot and I get the
following error.
CM <- Type1Font("CM",
+ c(paste("cm-lgc/fonts/afm/public/cm-lgc/",
+ c("fcmr8a.afm", "fcmb8a.afm", "fcmri8a.afm", "fcmbi8a.afm"), sep=""),
+ "./cmsyase.afm"))
> pdf("cm.pdf", width=3, height=3, family="CM")
> plot(1:length(y), y, xlab="ss", ylab=expression(x[2])) ## for any
vector y
> dev.off()
null device
1
> embedFonts("cm.pdf", outfile="cmembed.pdf",
fontpaths=...
2009 Aug 30
3
Computer Modern Fonts in R graphic
...r8a.afm",
> "cm-lgc/fonts/afm/public/cm-lgc/fcmb8a.afm",
> "cm-lgc/fonts/afm/public/cm-lgc/fcmri8a.afm",
> "cm-lgc/fonts/afm/public/cm-lgc/fcmbi8a.afm",
> "cmsyase.afm"))
> postscriptFonts(CM=CM)
> pdf("snxsm.pdf")
> par(family="CM")
> persp(sn,sm,z,xlab="SN", ylab="SM",zlab="VI",theta=-20,phi=20,r=5,shade=0.01,col=color[facetcol])
> dev.off()
It works fine, until the persp() function, th...
2009 Sep 01
1
Logistic Politomic Regression in R
...r8a.afm",
> "cm-lgc/fonts/afm/public/cm-lgc/fcmb8a.afm",
> "cm-lgc/fonts/afm/public/cm-lgc/fcmri8a.afm",
> "cm-lgc/fonts/afm/public/cm-lgc/fcmbi8a.afm",
> "cmsyase.afm"))
> postscriptFonts(CM=CM)
> pdf("snxsm.pdf")
> par(family="CM")
> persp(sn,sm,z,xlab="SN", ylab="SM",zlab="VI",theta=-20,phi=20,r=5,shade=0.01,col=color[facetcol])
> dev.off()
It works fine, until the persp() function, th...