Re: [R] Font settings in xfig

From: Kevin E. Thorpe <>
Date: Fri, 16 May 2008 06:54:50 -0400

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")
> 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 <> 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:  Tel: 416.864.5776  Fax: 416.864.6057

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Fri 16 May 2008 - 11:06:24 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 - 13:30:37 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive