Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Problems with -graph2tex-


From   "Clive Nicholas" <[email protected]>
To   [email protected]
Subject   st: Problems with -graph2tex-
Date   Sun, 7 Aug 2005 10:21:30 +0100 (BST)

Stata 8.2, Windows 2000

I wonder if anybody can help me on this problem, which I hope is not out
of bounds on this list given that other software is involved, since it
also involves a Stata user-written command, Michael Mitchell's -graph2tex-
(downloadable from SSC), and others have posted to the list before on
LaTeX-related questions.

Essentially, despite Michael being ultra-helpful as always, neither of us
could find a way to get -graph2tex- to work with my LaTeX package (I use
fpTeX, he uses MikTeX). After firing up -graph2tex- in Stata with

. use http://www.ats.ucla.edu/stat/stata/notes/hsb2, clear
. scatter read write
. graph2tex, epsfile(rw2) ht(5) caption(Reading and Writing Scores)

I then used Michael's suggested code (mixed in with my own)

> \documentclass[11pt]{article}
> %\usepackage{graphics}
> \usepackage{epsfig}
> %\usepackage{graphicx}
> \begin{document}
> \section{graph2tex}
> \subsection{Example 2: More details on {\tt graph2tex}}
>
> \begin{verbatim}
> . graph2tex, epsfile(rw2) ht(5) caption(Reading and Writing Scores)
> \end{verbatim}
>
> % exported graph to readwrite.eps
> % exported graph to rw2.eps
> \begin{figure}[h]
> \begin{centering}
>   \includegraphics[height=5in]{rw2}
>   \caption{Reading and Writing Scores}
> \end{centering}
> \end{figure}
> \end{document}

gave me this:

Running `PDFLaTeX Interactive' on `mylog' with ``pdflatex mylog.tex''
This is pdfeTeXk, Version 3.141592-1.11b-2.1 (Web2c 7.5.2)

[...]

Overfull \hbox (25.16208pt too wide) in paragraph at lines 11--11
[]/[email protected]/. graph2tex, epsfile(rw2) ht(5) caption(Reading and
Writing Scores)[]

! LaTeX Error: File `rw2' not found.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.17   \includegraphics[height=5in]{rw2}

As you can see, -graph2tex- appears to export it correctly (and I've
ensured that LaTeX tries to get the graph from my C:\DATA folder). The
same outcome occurs when taking the % signs off the two /usepackage{}
commands. I've tried every possible permutation, and nothing seems to
work. Any thoughts on this would be highly appreciated.

CLIVE NICHOLAS        |t: 0(044)7903 397793
Politics              |e: [email protected]
Newcastle University  |http://www.ncl.ac.uk/geps

Whereever you go and whatever you do, just remember this. No matter how
many like you, admire you, love you or adore you, the number of people
turning up to your funeral will be largely determined by local weather
conditions.

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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