Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down on April 23, and its replacement, **statalist.org** is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
Ryan Kessler <ryan.kessler.stata@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: different fonts |

Date |
Tue, 30 Oct 2012 10:46:39 -0400 |

Hi Klaus, You can render all of the text in your plot in the desired LaTeX font using the writepsfrag command (available on SSC). For example: sysuse auto, clear hist mpg, by(foreign) graph export test.eps, as(eps) writepsfrag test.eps using test.tex, body(document) Compiling test.tex (DVI --> PostScript --> PDF) we see that all the text in test.eps is rendered in the standard LaTeX font. To change the font, we could for example add to the top of the document \renewcommand\familydefault{\sfdefault} and recompile. Best, Ryan Kessler On Tue, Oct 30, 2012 at 6:15 AM, Klaus Pforr <kpforr@googlemail.com> wrote: > <> > > Dear listers, > > I want to export a graph to a postscript or encapsulated postscript to > embed it in LaTex. My problem is, that I have to use a specific font > type, namely Adobe Rotis Serif Pro. I installed the font in the system > folder (Windows 7), but I cannot choose the font in the graphs > preferences window in Stata. I cannot export graphs with this > fontface, but I was able to choose the fontface as described here: > help graph_text##appearance4 (pretty ugly, but it worked). > > My questions are: For Windows 7 OS, which fontfaces are shown in the > graphs preferences window? Which fontfaces can I use for graph export > to ps or eps? > > best > > Klaus > > -- > __________________________________ > Klaus Pforr > GESIS -- Leibniz Institut für Sozialwissenschaft > B2,1 > Postfach 122155 > D - 68072 Mannheim > Tel: +49 621 1246 298 > Fax: +49 621 1246 100 > E-Mail: klaus.pforr@gesis.org > __________________________________ > > * > * For searches and help try: > * http://www.stata.com/help.cgi?search > * http://www.stata.com/support/faqs/resources/statalist-faq/ > * http://www.ats.ucla.edu/stat/stata/ * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/faqs/resources/statalist-faq/ * http://www.ats.ucla.edu/stat/stata/

**Follow-Ups**:**AW: st: different fonts***From:*"Klaus Pforr" <kpforr@googlemail.com>

**References**:**st: different fonts***From:*Klaus Pforr <kpforr@googlemail.com>

- Prev by Date:
**Re: st: access coefficients from another regression** - Next by Date:
**Re: st: -save- a varlist** - Previous by thread:
**st: different fonts** - Next by thread:
**AW: st: different fonts** - Index(es):