Re: [R] Font settings in xfig

From: Robert <chr.robert_at_gmail.com>
Date: Thu, 15 May 2008 09:30:37 -0700 (PDT)

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...@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.



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 Thu 15 May 2008 - 20:57:11 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 Fri 16 May 2008 - 11:30:36 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