[OS X TeX] How to Insert Graphics Using TeXShop?

Gary L. Gray gray at engr.psu.edu
Sun Mar 10 22:31:40 EST 2002



On 3/10/02 10:11 PM, "Zachary Davis" <zsd3711 at gamma2.uta.edu> wrote:

> I've been having trouble inserting this .eps file into my TeX document.
> At the moment TeX is giving me an error that an \end control sequence is
> missing, which I can't seem to find.  The .eps file itself when it is
> embedded into the output file is off-center, and it is put between some
> text, in which it shouldn't.   My source file is as follows (excuse the
> length of this message):

I just typeset this myself with my .eps file inserted and it typeset fine
after I changed the typo I point out below. Be sure that you have chosen
"TeX and Ghostscript" from the "Typeset" menu. In addition, as Ross pointed
out earlier, you don't need the .eps at the end of the filename.

To center the figure, I generally use:

generated from computation:
\begin{figure}
\begin{center}
\includegraphics{pulley-kinematics}
\end{center}
\caption{\label{Figure 2.1} Here is my figure.}
\end{figure}
\end{document}

instead of what you had. In addition, notice that the \label should go
*inside* the caption to avoid potential problems with references.
 

> \documentclass{article}
> \usepackage{graphicx}
> \setlength{\headsep}{0in}
> \setlength{\evensidemargin}{-0.5in}
> \setlength{\oddsidemargin}{-0.5in}
> \setlenght{\textheight}{9.5in}

You have a misspelling above. It should be \setlength.

> \setlength{\topmargin}{-0.5in}
> \begin{document}
> \centerline{\small University of Texas at Arlington}

[lots deleted]

> Am I using the includegraphics command correctly?  Your help is
> invaluable.

It works fine here.

-- Gary


-----------------------------------------------------------------
To UNSUBSCRIBE, send email to <info at email.esm.psu.edu> with
"unsubscribe macosx-tex" (no quotes) in the body.
For additional HELP, send email to <info at email.esm.psu.edu> with
"help" (no quotes) in the body.
-----------------------------------------------------------------




More information about the MacOSX-TeX mailing list