# [OS X TeX] how include .eps in TeXShop using default

Wed Nov 9 01:22:03 EST 2011

```On 08.11.2011, at 21:51, Herbert Schulz wrote:

>
> On Nov 8, 2011, at 6:13 AM, Herbert Schulz wrote:
>
>>
>> On Nov 8, 2011, at 1:48 AM, Don Green Dragon wrote:
>>
>>> Hi Herb,
>>>
>>>> <<snip>>
>>>> TeXShop uses pdflatex to typeset your file by default. The pdflatex program allows you to include jpg, png and pdf graphics by default but recent versions (I think this started in TeX Live (MacTeX) 2010 and continues in 2011) will also do a conversion of eps->pdf on the fly (it converts file.eps->file-eps-converted-to.pdf and includes that file). The important thing is to let the graphicx (I recommend the graphicx package, which is built on the graphics package but is easier to use) package figure out that you are using pdflatex by NOT including the [dvips] option in the \usepackage command.
>>>
>>> In my usual preamble, there exist:
>>>
>>> \usepackage{graphicx}	% allows use of \includegraphics{...} command
>>> \usepackage{epstopdf}	% changes an EPS graphic to PDF format. Required if one
>>> 			% does not supply a PDF file for \includegraphics{} command
>>>
>>> Are you saying that the line \usepackage{epstopdf} is no longer necessary? Normally I use .pdf graphic files, but have left the above in the preamble in case an .eps file comes along.
>>>
>>>
>>> Don Green Dragon
>>> fergdc at Shaw.ca
>>
>>
>> Howdy,
>>
>> Yes, recent versions of TeX Live allow for a very restricted set of commands to be executed in the shell by default and MacTeX has this set. There is more information about this in a short pdf file you can find in /Applications/TeX/ (where TeXShop.app, etc., are found).
>>
>> Good Luck,
>>
>> Herb Schulz
>> (herbs at wideopenwest dot com)
>
>
> Howdy,
>
> Let me add something to what I said before (it is made clear in that documentation I mentioned in the previous message). The ``restricted shell escape'' default means that pdflatex (using the graphicx package alone and without explicitly invoking the --shell-escape option) can do the conversion file.eps->file-eps-converted-to.pdf and include that pdf file but no other conversions (e.g., tif->png) can be done. If you use the --shell-escape option (TeXShop does use this by default) the graphicx package will include the full epstopdf package so there is no need top explicitly include a \usepackage{epstopdf} command in your document although there is nothing wrong with including that command in case folks with older versions of the graphicx package attmept to typeset the document.

If epstodf is called by graphicx package, which options a used for the epstopdf? Does the default look for a updated eps to recompile it to an updated pdf?

Best
--
Christian

-It's better to be a pirate than to join the Navy.-

John Sculley and John A. Byrne, 1987

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://email.esm.psu.edu/pipermail/macosx-tex/attachments/20111109/2e79945d/attachment.html>
```