[R] Font settings in xfig
Robert
chr.robert at gmail.com
Thu May 15 18:30:37 CEST 2008
If I edit the fig file with Xfig, I have to change the value of
"special flag" to "special" and the font to a LaTeX font instead of a
postscript font.
If these changes are not made, the pstex_t file produced from fig2dev
doesn't contain the text as it should. So if I input the pstex_t in a
tex file, the text in the figure is not in the same font as the rest
of the document.
I'm exporting figures like this:
xfig(file="test.fig", width=5, height=4, onefile=TRUE)
plot(data,xlab="Something", ylab="Some other thing")
dev.off()
The xfig command does have an argument called encoding, but I can't
figure out if this can be used to make the changes I want. In the par
command there's an argument called family, which is used to specify
the font family in figures, but I don't know how changes this font to
a LaTeX font.
Thanks for your help!
Robert
On 15 Maj, 17:50, Prof Brian Ripley <rip... at stats.ox.ac.uk> wrote:
> On Thu, 15 May 2008, Robert wrote:
> > Hello
>
> > I'm using the xfig-function in R to export figures in fig-format. To
> > use these exported figures in LaTeX, I first run a fig2dev to get a
> > pstex and pstex_t file. However, in order to get the right pstex_t
> > file (that is, with the text of the original figure) I have to change
> > the font and special text variables in the fig files.
> > I would like R to do this font changing job, but I can't figure out
> > how by reading the help files.
>
> > Does anybody know how to do accomplish this?
>
> Unlikely without knowing what changes you want made and why ....
>
>
>
> > Best regards
>
> > Robert
>
> > ______________________________________________
> > R-h... at r-project.org mailing list
> >https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
>
> --
> Brian D. Ripley, rip... at stats.ox.ac.uk
> Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
> University of Oxford, Tel: +44 1865 272861 (self)
> 1 South Parks Road, +44 1865 272866 (PA)
> Oxford OX1 3TG, UK Fax: +44 1865 272595
>
> ______________________________________________
> R-h... at r-project.org mailing listhttps://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list