\documentclass[11pt]{article} %\usepackage{graphics} \usepackage{epsfig} %\usepackage{graphicx} \begin{document} \section{graph2tex} \subsection{Example 1: Including a scatter plot in a \LaTeX file} \begin{small} \begin{verbatim} . use http://www.ats.ucla.edu/stat/stata/notes/hsb2, clear . scatter read write . graph2tex, epsfile(readwrite) % exported graph to readwrite.eps \begin{figure}[h] \begin{centering} \includegraphics[height=3in]{readwrite} \end{centering} \end{figure} . pwd d:\stata2latex \end{verbatim} \end{small} Here is the scatter plot. % exported graph to readwrite.eps \begin{figure}[h] \begin{centering} \includegraphics[height=3in]{readwrite} \end{centering} \end{figure} \end{document}