Statalist


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

Re: st: Removing the Stata logo from graphs in LaTeX documents


From   "Clive Nicholas" <[email protected]>
To   [email protected]
Subject   Re: st: Removing the Stata logo from graphs in LaTeX documents
Date   Wed, 10 Dec 2008 01:07:07 +0000

René Geppert replied:

> you can alternatively export as eps which is better when including in a
> LaTeX document anyways

That's very interesting, because my Stata 9.2 returns the following:

. sysuse auto

. graph set eps logo off

. graph set ps logo off

. twoway scatter price mpg

. graph export test.eps, pagesize(a4)
option pagesize() not allowed
r(198);

. graph export test.ps, pagesize(a4)
(file test.ps written in PostScript format)

StataCorp advised me to use the latter code rather than the former,
and perhaps this is why. In any case, after exporting the graph as .ps
file, it's only a very short step to open up the graph to view it in
the freeware GSView program, click on "File", then "PS to EPS", ensure
that the 'Automatically calculate Bounding Box' is ticked, click the
"Yes" button, and then you're ready to include the graph in your LaTeX
document. That worked for me, and so did Michael Hanson's very helpful
-graph set- solution; thanks to him, I can now remove the Stata logo
when it pleases me.

Thanks very much!

-- 
Clive Nicholas

[Please DO NOT mail me personally here, but at
<[email protected]>. Please respond to contributions I make in
a list thread here. Thanks!]

"My colleagues in the social sciences talk a great deal about
methodology. I prefer to call it style." -- Freeman J. Dyson.

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index