[OS X TeX] Including pdf and ps graphics in the same document.

Alain Schremmer schremmer.alain at gmail.com
Tue Mar 24 18:14:39 EDT 2009


On Mar 24, 2009, at 5:31 PM, Ross Moore wrote:

>
> On 25/03/2009, at 8:19 AM, Randy Scott wrote:
>
>> The pdf graphics (created in Mathematica or Adobe Illustrator, and  
>> then run
>> through Apple's Preview to save as a pdf (I like the results  
>> better than
>> using either programs/ built in pdf)) are included in the document  
>> with
>> \includegraphics[scale=1]{file.pdf}
>
> Simply remove the .pdf extension from the filename:
>
> \includegraphics[scale=1]{file}
>
> This will fix the problem ...
>
>> Unfortunately, when I choose LaTeX, I get a message that says  
>> "process
>> exited with errors." However, if I comment out all the lines with  
>> \include
>> graphics{...}, then the process completes normally. When I use the
>> Quick-Build on the file with the \includegraphics{...}, the error  
>> messages
>> say "LaTeX Error: Cannot determine size of graphic in
>> 270B_09-1_Exam_II_01.pdf (no
>> BoundingBox)"
>
>      ... because that information will now be read from
>   270B_09-1_Exam_II_01.eps   if it exists.
>
> If it doesn't exist, then adjust your workflow
> to make sure that it does.

If I may presume to add something, here is a quote from LaTeX  
Companion 2ed, page 624

> By default, LaTeX looks for graphics files in the same directories  
> where it looks for other files. But for larger projects, it may be  
> preferable to keep the image files together in a single directory  
> or in a set of directories. A list of directories where LaTeX  
> should search for graphics files can be specified through the  
> command \graphicspath [...] For instance,
>
> \graphicspath{{./eps/}{./tiff/}}
>
> causes LaTEX to look in the subdirectories eps and tiff of the  
> current directory.

Respectful regards
--schremmer



More information about the MacOSX-TeX mailing list