[OS X TeX] including a graphics file

Herbert Schulz herbs at wideopenwest.com
Sat Jun 19 10:00:50 EDT 2021


> On Jun 19, 2021, at 8:35 AM, Nitecki, Zbigniew H. <Zbigniew.Nitecki at tufts.edu> wrote:
> 
> I’m trying to include some graphics generated by Mathematica, something I am not used to doing (I usually generate what I need via pspicture).
> Using the TeXShop editor’s menu, I selected Figurs>epsfile and got the template which I filled in as follows:
>> \begin{figure}[htbp]
>> \begin{center}
>> \epsfile{file=plot1.pdf,scale=0.8}
>> \caption{{\bf Weierstrass's Function}}
>> \label{fig:Weierstrass}
>> \end{center}
>> \end{figure}
> 
> I have \usepackage{graphics} in my preamble.
> 
> The log file says:
>> ./Monsters.tex:683: Undefined control sequence.
>> l.683 \epsfile
>>               {file=plot1.pdf,scale=0.8}
>> The control sequence at the end of the top line
>> of your error message was never \def'ed. If you have
>> misspelled it (e.g., `\hobx'), type `I' and the correct
>> spelling (e.g., `I\hbox'). Otherwise just continue,
>> and I'll forget about whatever was undefined.
>> 
> 
> What should I do to correct this?
> 
> Zbigniew Nitecki

Howdy,

Don't use the graphics package, use the graphicx (with an x) package.

Also, instead of the \epsfile line use

\includegraphics[scale=0.8]{plot1.pdf}

everything else is the same.

Good Luck,

Herb Schulz
herbs at wideopenwest.com




More information about the MacOSX-TeX mailing list