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: Re: st: RE: converting graph to pdf


From   Clive Nicholas <clivelists@googlemail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: Re: st: RE: converting graph to pdf
Date   Tue, 5 Jun 2012 00:58:07 +0100

Ulrich Kohler replied:

> It is thus still somewhat annoying if some Windows/Mac user sents me a
> Do-File which does not run on my Linux computer because he/she has been
> using
>
> . graph export foo.pdf, replace
>
> at some point.

I'll confess that I've never run -graph export- in a .do file. (I
currently don't have Stata running on my machine - I can't get it
started in Linux, but have not yet attempted a re-installation of 9
under Kubuntu 12.04 - and haven't used it for a good year and a half.
I find I'm using R more and more, and installing that on my Linux
machine was like taking candy from a baby.)

However, I would simply say to anybody that they -graph export- their
foo.eps file as normal, include -epsfig- and
-graphicx- under the call to \usepackage{} in their LaTeX preamble
code, and then run something like

\begin{center}
\begin{figure}[t]
  \begin{minipage}{\textwidth}
  \includegraphics{foo}
  \caption{This is a graph.}%
    {\footnote{This is a footnote.}}
  \end{minipage}
\end{figure}
\end{center}

in the body of the LaTeX file. There are variations on this theme (I
don't always need the {minipage} call, for instance), but it works for
me.

-- 
Clive Nicholas

[Please DO NOT mail me personally here, but at
<clivenicholas@hotmail.com>. 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index