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

From |
Shige Song <shigesong@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: Problems with -graph2tex- |

Date |
Thu, 11 Aug 2005 14:50:12 +0800 |

Hi Clive, Open command prompt, change to the directory where your eps files are, and type "epstopdf xxx.eps", then you can insert the figures in your latex docs in the usual way. By the way, you need to put the MikTeX bin folder in your search path. Shige On 8/11/05, Clive Nicholas <Clive.Nicholas@newcastle.ac.uk> wrote: > Shige, > > Hiya! I tried running /usepackage{epstopdf} in place of {epsfig} in my > LaTeXEditor just now, but an error was generated, saying that it wasn't a > recognised command. Indeed, there's no name or file for such a package in > the 'total' MiKTeX installation that I did yesterday, and I have the > latest!! > > C. > > > Hi Clive, > > > > You can try to convert your eps graphics files into pdf files by > > "epstopdf" (which is part of MikTeX defual installation). > > > > Shige > > > > On 8/7/05, Clive Nicholas <Clive.Nicholas@newcastle.ac.uk> wrote: > >> 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 > >> []/cmtt10@10.95pt/. 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: clive.nicholas@ncl.ac.uk > >> 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/ > >> > > > > * > > * 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/ > > > > > CLIVE NICHOLAS |t: 0(044)7903 397793 > Politics |e: clive.nicholas@ncl.ac.uk > 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/ > * * 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/

**Follow-Ups**:**Re: st: Problems with -graph2tex-***From:*"Clive Nicholas" <Clive.Nicholas@newcastle.ac.uk>

**References**:**st: RE: estout options***From:*"Jann Ben" <ben.jann@soz.gess.ethz.ch>

**st: Problems with -graph2tex-***From:*"Clive Nicholas" <Clive.Nicholas@newcastle.ac.uk>

**Re: st: Problems with -graph2tex-***From:*Shige Song <shigesong@gmail.com>

**Re: st: Problems with -graph2tex-***From:*"Clive Nicholas" <Clive.Nicholas@newcastle.ac.uk>

- Prev by Date:
**st: Re: svyset for stratified probability proportional to size design** - Next by Date:
**Re: st: Problems with -graph2tex-** - Previous by thread:
**Re: st: Problems with -graph2tex-** - Next by thread:
**Re: st: Problems with -graph2tex-** - Index(es):

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