Is there a reason you are going through this route to get figures into LaTeX instead of using postscript (or PDF for pdflatex)?
Robert wrote: > 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 <[EMAIL PROTECTED]> 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 -- Kevin E. Thorpe Biostatistician/Trialist, Knowledge Translation Program Assistant Professor, Department of Public Health Sciences Faculty of Medicine, University of Toronto email: [EMAIL PROTECTED] Tel: 416.864.5776 Fax: 416.864.6057 ______________________________________________ R-help@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.