Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: Greek symbols missing in "graph export" to PDF and EPS


From   Alan Riley <ariley@stata.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Greek symbols missing in "graph export" to PDF and EPS
Date   Fri, 26 Oct 2012 17:02:46 -0500

Marco Ercolani (m.g.ercolani@bham.ac.uk) is trying to export
Stata graphs with italicized Greek letters:

> When exporting a graph to PDF format Greek letters seem to vanish and 
> when exporting a graph to EPS the italics formatting on Greek letters is lost.
> 
> * Here is some code to illustrate the problems:
> gr twoway function y=x+0.1, text(0.5 0.5 "{it:{&pi} = Q}", align(baseline) )
> graph export "MyGraph.emf", replace // THIS IS FINE
> graph export "MyGraph.eps", replace // GREEK LETTER PI IS NOT IN ITALICS
> graph export "MyGraph.pdf", replace // GREEK LETTER PI IS MISSING
> 
> Are there elegant fixes within Stata to these problems? 
> (I am running Stata MP 64 under Windows).
> (I know about manual solutions such as importing to 
> Word and creating PDF from Word and EPS files. )

The basic symbol font used in PostScript does not support italicized
symbols such as Greek letters.  I believe this is what is causing
the problems Marco is experiencing.  Marco should try producing the
graph without the italics SMCL tag "{it: ...}" and should also
contact Stata Technical Services at tech-support@stata.com if he would
like more help.


Alan
ariley@stata.com

*
*   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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index