[OS X TeX] Converting graphics files

Aaron Jackson jackson at negril.msrce.howard.edu
Wed Jan 5 00:13:44 EST 2005


I just got back from vacation, so I don't know if you have a  
satisfactory answer for this one, but this in in the LaTeX faq:

http://www.tex.ac.uk/cgi-bin/texfaq2html?label=unkgrfextn

On Jan 3, 2005, at 2:15 AM, David Arnold wrote:

> Ross,
>
> Thanks. I am definitely aware of your suggestions. The trouble is the  
> damage has already been done. I have over 800 pages, with tons of  
> graphics, which the compositor for the publisher gave names such as  
> Fig1.2.1. They are encapsulated postscript files.
>
> If I start renaming things, that's gonna take some time, and I have to  
> get agreement among two coauthors and the compositor.
>
> I tried:
>
> \DeclareGraphicsRule{*}{eps}{*}{}
>
> But Texshop did not convert the files such as Fig1.2.1. I just got  
> bounding boxes in the preview of the pdf document.
>
> I can use Typeset->Tex and Ghostscript and all is well, but I want to  
> use pdfsync, which does not work with this option.
>
> Are there any Texshop experts out there that might save me the trouble  
> of renaming all these files and renaming them in the source code?
>
> On Jan 2, 2005, at 10:29 PM, Ross Moore wrote:
>
>> Hi David,
>>
>> On 03/01/2005, at 5:10 PM, David Arnold wrote:
>>
>>> All,
>>>
>>> I have an encapsulated postscript file with a weird name: Fig1.2.1
>>>
>>> The filename is correct. It doesn't have the usual .eps extension.
>>>
>>> Now, my problem.  In TeXShop, if I add these lines to my file:
>>>
>>> \usepackage{graphicx}
>>> \usepackage{epstopdf}
>>>
>>> Next, I compile using pdflatex. I get this error message:
>>>
>>> !Latex Error: Unknown graphics extension: .2.1
>>>
>>> Now, it's clear what this means, but I am not in a position to  
>>> change the name of the file.
>>
>> I don't understand this requirement.
>> Nevertheless ...
>>
>>>
>>> As a workaround, I tried converting the file to pdf manually with:
>>>
>>> epstopdf --outfile=Fig1.2.1.pdf Fig1.2.1
>>
>> Do it as:
>>
>>   epstopdf --outfile=Fig1-2-1.pdf Fig1.2.1
>>
>> and edit the LaTeX source accordingly.
>>
>>
>>>
>>> Now, if I remove the lines:
>>>
>>> \usepackage{graphicx}
>>> \usepackage{epstopdf}
>>>
>>> And compile using pdflatex, I still have a problem. In my log file I  
>>> see:
>>>
>>> File: Fig1.2.1 Graphic file (type eps)
>>>  <Fig1.2.1> [8
>>> Non-PDF special ignored!]
>>>
>>> And, of course, the graphic doesn't show up in my file.
>>
>> Naturally enough.
>>
>>>
>>> I am pretty sure this has to do with the periods in the filename,  
>>> which were not my choice, but my publisher's.
>>
>> You are right, it is the periods that cause the problem with LaTeX.
>> The fact that you are using pdfTeX as the underlying engine is not
>> relevant --- LaTeX+dvips would have the same troubles.
>>
>> Once the graphic has been imported into the PDF document, it doesn't
>> matter what it was originally called. So you can also provide the .eps
>> files with their original name (including periods) if the publisher  
>> has
>> a use for them. But that should not affect the PDF doc that you send
>> as well, for this is presumably only used for proof-reading, if the
>> publisher actually *requires* the .eps files.
>>
>>
>>>
>>> Anybody have some suggestions that would help? Preferably, a way  
>>> around this without changing the filenames?
>>
>> I always translate all .eps files into .pdf, using epstopdf, before
>> embarking on a large project. The time spent doing this is well worth
>> it, as compared to using  eps4pdf  or epstopdf, since the manuscript
>> is going to be re-typeset many many times before it is completed.
>> You'll need all the graphics as .pdf  ultimately anyway, and many
>> may need touching-up to have consistent fonts and line-weights, etc.
>> So just spend the time early getting that right, so as not to be
>> bothered by it again later in the preparation of the manuscript.
>>
>>
>> Hope this helps,
>>
>> 	Ross
>>
>>>
>>> --------------------- Info ---------------------
>>> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
>>>           & FAQ: http://latex.yauh.de/faq/
>>> TeX FAQ: http://www.tex.ac.uk/faq
>>> List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
>>>
>>>
>>>
>> ---------------------------------------------------------------------- 
>> --
>> Ross Moore                                          
>> ross at maths.mq.edu.au
>> Mathematics Department                             office: E7A-419
>> Macquarie University                               tel: +61 +2 9850  
>> 8955
>> Sydney, Australia                                  fax: +61 +2 9850  
>> 8114
>> ---------------------------------------------------------------------- 
>> --
>>
>>
>
> --------------------- Info ---------------------
> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
>           & FAQ: http://latex.yauh.de/faq/
> TeX FAQ: http://www.tex.ac.uk/faq
> List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
>
>

--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the MacOSX-TeX mailing list