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

Herbert Schulz herbs at wideopenwest.com
Tue Nov 8 21:51:22 CET 2011


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.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)






More information about the macostex-archives mailing list