Statalist The Stata Listserver

[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Stata graphs to Latex with Graph2tex command

From   "Maarten Buis" <>
To   <>
Subject   st: RE: Stata graphs to Latex with Graph2tex command
Date   Wed, 3 May 2006 22:41:25 +0200

I am not familiar with the -graph2tex- command, what I usually do is
export the graph to an eps file with the -graph export- command, and
in my LaTeX file use LaTeX commands like the one you have showed. I 
have never experienced problems with those. One thing I could imagine
is that -graph2tex- saves in the current directory (type -cd- to find
out were that is) and you try to call it from a LaTeX file located in
another directory. If you include a graphic in LaTeX without specifying
a path it assumes that it is in the same directory.

----- Suzy wrote:
I am now trying to convert and insert a simple Stata graph using the 
graph2tex command. This is my Stata code below. I copied and pasted the 
tex code output provided by Stata into my text editor (teXnicCenter). 
The graph was not there. I tried adding the .eps to Stata1 to see if 
that would work, but it did not. 

scatter Yvar Xvar, sort

. graph2tex, epsfile(Stata1)
% exported graph to Stata1.eps


Maarten L. Buis
Department of Social Research Methodology 
Vrije Universiteit Amsterdam 
Boelelaan 1081 
1081 HV Amsterdam 
The Netherlands

visiting adress:
Buitenveldertselaan 3 (Metropolitan), room Z214 

+31 20 5986715

*   For searches and help try:

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