[OS X TeX] TeXShop does not find graphic
Herbert Schulz
herbs2 at mac.com
Thu Jun 12 14:17:17 EDT 2025
> On Jun 12, 2025, at 12:21 PM, Doris Behrendt via MacOSX-TeX <macosx-tex at email.esm.psu.edu> wrote:
>
> Dear Herbert,
>
> attached are the needed files. Thanks for your help!
>
> Doris<mwe>
>
>> On 12. Jun 2025, at 18:02, Doris Behrendt via MacOSX-TeX <macosx-tex at email.esm.psu.edu> wrote:
>>
>> Dear Herbert,
>>
>> I cannot provide an mwe at the moment because it's on another account on this machine and I am in a videocall ;-(
>>
>> But it happens with png. I can provide an mwe+log in about half an hour though ...
>>
>> Doris
>>
>>> On 12. Jun 2025, at 17:43, Herbert Schulz via MacOSX-TeX <macosx-tex at email.esm.psu.edu> wrote:
>>>
>>>
>>>
>>>> On Jun 12, 2025, at 10:15 AM, Doris Behrendt via MacOSX-TeX <macosx-tex at email.esm.psu.edu> wrote:
>>>>
>>>> Hello list members,
>>>>
>>>> I just updated TeXShop to be sure, but still have the following problem: When I compile with pdflatex, I get the error >>file not found<< from \includegraphics[width=\textwidth]{relativepathtofile/filenamewithoutextension} while when compiling from the terminal it runs fine. The package used is graphicx.
>>>>
>>>> Does anyone have an idea why this happens or did anyone encounter the same problem?
>>>>
>>>> Than you,
>>>> Doris Behrendt
>>>
>>> Howdy,
>>>
>>> Could you please supply a minimal full example of code that does this? I have no problems dong this with .jpg, .eps (which get converted automatically by pdflatex to a .pdf) and .pdf.
>>>
>>> Also, a copy of the .log file produced by the failing run would be useful.
>>>
>>> Good Luck,
>>>
>>> Herb Schulz
>>> herbs2 at mac.com
Howdy,
You're not using pdflatex but latex which only understands .eps. The first two lines of you Console output show that:
### This is /Library/TeX/texbin/simpdftex, Version 20221012
### /Library/TeX/texbin/latex mwe-2025-06-12.tex
Check the Typeset tab of TeXShop->Settings (or Prfeferences depending upon your OS version). You should have the default command set to Latex and the Default Script set to Pdftex. (These settings go back a long time ago --- in a Galaxy far far away ;-)).
OR, better
always tell TeXShop what engine to use by adding the line
% !TEX program = pdflatex
to the top of the main source file.
PS: If your actual document has a bibliography and/or index you might be interested in using the pdflatexmk engine which will complete all processing necessary to get it alal put together. To do that just replace `pdflatex' in the line above to `pdflatexmk' (without the quotes).
Good Luck,
Herb Schulz
herbs2 at mac.com
More information about the MacOSX-TeX
mailing list