[OS X TeX] includegraphics with EPS
George Tourlakis
gt at cse.yorku.ca
Thu Feb 24 18:12:21 CET 2022
I spoke too soon.
This epstopdf-sys amendment (quoted below in red) worked on my laptop (Intel Mac'Big Sur)
BUT: the file does not convert on my desktop (older Mac running Monterey). Both Macs run texlive 2021.
The log is appended here
BTW the console complains the usual: invim.pdf file not found. Well, an automatic conversion was supposed to happen!
Thanks!
Cheers,
George
> On Feb 23, 2022, at 11:43 PM, George Tourlakis <gt at cse.yorku.ca> wrote:
>
> Hi Bill,
>
> I went to the epstopdf-sys.cfg file and commented the last two lines (before the \endinput
>
>> \ProvidesFile{epstopdf-sys.cfg}%
>> [2009/10/26 v1.1 Configuration of epstopdf for TeX Live]%
>> %\epstopdfsetup{%
>> % program at epstopdf=epstopdf%
>> %}
>> % to get old behavior foo.eps->foo.pdf as well as update,prepend
>> \epstopdfsetup{program at epstopdf=epstopdf,verbose,update,prepend,prefersuffix=false,suffix=}
>> % tif->png
>> %\epstopdfDeclareGraphicsRule{.tif}{png}{.png}{convert #1 \OutputFile}
>> %\PrependGraphicsExtensions{.tif}
>> \endinput
>
>
>
> and reenabled loadind package epstopdf. I think I added said lines sometime in 2009 and forgot about them!
>
> It works now.
>
> Thank you all.
>
> Cheers
> George
>
>> On Feb 23, 2022, at 11:02 PM, William Slough <wslough at gmail.com <mailto:wslough at gmail.com>> wrote:
>>
>> George,
>>
>> Jumping in to briefly comment...
>>
>> I downloaded your two files and it seems to work fine for me -- and I'm not doing anything out of the ordinary. The first few lines in the console window are these:
>>
>> This is pdfTeX, Version 3.141592653-2.6-1.40.23 (TeX Live 2022/dev) (preloaded format=pdflatex)
>> restricted \write18 enabled.
>> entering extended mode
>> (./EPS-test.tex
>> LaTeX2e <2021-11-15> patch level 1
>> L3 programming layer <2022-02-05>
>>
>> After processing, there is a converted graphics file named invim-eps-converted-to.pdf and your source file produces the desired PDF file with the included graphic. It seems that restricted \write18 is sufficient for the conversion. Does your log file show a similar message?
>>
>> Bill
>>
>> On Wed, Feb 23, 2022 at 9:11 PM George Tourlakis <gt at cse.yorku.ca <mailto:gt at cse.yorku.ca>> wrote:
>> Thanks Ross,
>>
>> How do I do this? (enable write18 access)?
>>
>> Cheers,
>> George
>>
>>> On Feb 23, 2022, at 7:59 PM, Ross Moore <ross.moore at mq.edu.au <mailto:ross.moore at mq.edu.au>> wrote:
>>>
>>> George,
>>>
>>> Have you enabled write18 access, with your LaTeX jobs?
>>> Without this there can be no automated conversions.
>>>
>>> Hope this helps.
>>>
>>> Ross
>>>
>>> Sent from my iPhone
>>>
>>>> On 24 Feb 2022, at 11:39 am, George Tourlakis <gt at cse.yorku.ca <mailto:gt at cse.yorku.ca>> wrote:
>>>>
>>>>
>>>> Hi Herb,
>>>>
>>>> Thanks.
>>>>
>>>> It did not work with (or without) the following
>>>>
>>>>>> \usepackage{epstopdf}
>>>>>> \DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}
>>>>
>>>> (BTW, I do not use .tif but I use .eps [always did])
>>>>
>>>>
>>>>
>>>> Here is a sample source (and an EPS file)
>>>>
>>>>
>>>> Cheers,
>>>> George
>>>>
>>>>> On Feb 23, 2022, at 4:32 PM, Herbert Schulz <herbs at wideopenwest.com <mailto:herbs at wideopenwest.com>> wrote:
>>>>>
>>>>>
>>>>>
>>>>>> On Feb 23, 2022, at 2:47 PM, George Tourlakis <gt at cse.yorku.ca <mailto:gt at cse.yorku.ca>> wrote:
>>>>>>
>>>>>> Hi Richard, Herbert, all,
>>>>>>
>>>>>> I seem to have forgotten how to get
>>>>>>
>>>>>> includegraphics[width=xx in]{file.eps} work.
>>>>>>
>>>>>> Compilation complains that file.pdf not found.
>>>>>>
>>>>>> I am sure the pdf was created automatically in the past (whatever I was doing right then; now I have to provide the PDF manually).
>>>>>>
>>>>>> What am I missing?
>>>>>>
>>>>>> I have incuded
>>>>>>
>>>>>> \usepackage{geometry}
>>>>>> \usepackage{graphicx}
>>>>>> \usepackage{epstopdf}
>>>>>> \DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}
>>>>>>
>>>>>>
>>>>>> Cheers,
>>>>>> George
>>>>>
>>>>> Howdy,
>>>>>
>>>>> Don't load the epstopdf package.
>>>>>
>>>>> Are you including .tif files? If not, remove that graphics rule. If you are including .tif files let us know and I can give you a version that works since convert hasn't been used in quite a while. and the DeclareGraphicsRule command has changed.
>>>>>
>>>>> If none of this helps please create a minimal example and also let us know what's in the .log file.
>>>>>
>>>>> Good Luck,
>>>>>
>>>>> Herb Schulz
>>>>> herbs at wideopenwest.com <mailto:herbs at wideopenwest.com>
>>>>>
>>>>>
>>>>> ----------- Please Consult the Following Before Posting -----------
>>>>> TeX FAQ: http://www.tex.ac.uk/faq <http://www.tex.ac.uk/faq>
>>>>> List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/TeX/ <https://sites.esm.psu.edu/~gray/TeX/>
>>>>> List Archives: http://dir.gmane.org/gmane.comp.tex.macosx <http://dir.gmane.org/gmane.comp.tex.macosx>
>>>>> https://email.esm.psu.edu/pipermail/macosx-tex/ <https://email.esm.psu.edu/pipermail/macosx-tex/>
>>>>> TeX on Mac OS X Website: http://mactex-wiki.tug.org/ <http://mactex-wiki.tug.org/>
>>>>> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex <https://email.esm.psu.edu/mailman/listinfo/macosx-tex>
>>>>>
>>>>
>>>
>>>
>>> <EPS-test.tex><invim.eps>----------- Please Consult the Following Before Posting -----------
>>> TeX FAQ: http://www.tex.ac.uk/faq <http://www.tex.ac.uk/faq>
>>> List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/TeX/ <https://sites.esm.psu.edu/~gray/TeX/>
>>> List Archives: http://dir.gmane.org/gmane.comp.tex.macosx <http://dir.gmane.org/gmane.comp.tex.macosx>
>>> https://email.esm.psu.edu/pipermail/macosx-tex/ <https://email.esm.psu.edu/pipermail/macosx-tex/>
>>> TeX on Mac OS X Website: http://mactex-wiki.tug.org/ <http://mactex-wiki.tug.org/>
>>> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex <https://email.esm.psu.edu/mailman/listinfo/macosx-tex>
>>
>> ----------- Please Consult the Following Before Posting -----------
>> TeX FAQ: http://www.tex.ac.uk/faq <http://www.tex.ac.uk/faq>
>> List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/TeX/ <https://sites.esm.psu.edu/~gray/TeX/>
>> List Archives: http://dir.gmane.org/gmane.comp.tex.macosx <http://dir.gmane.org/gmane.comp.tex.macosx>
>> https://email.esm.psu.edu/pipermail/macosx-tex/ <https://email.esm.psu.edu/pipermail/macosx-tex/>
>> TeX on Mac OS X Website: http://mactex-wiki.tug.org/ <http://mactex-wiki.tug.org/>
>> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex <https://email.esm.psu.edu/mailman/listinfo/macosx-tex>
>> ----------- Please Consult the Following Before Posting -----------
>> TeX FAQ: http://www.tex.ac.uk/faq <http://www.tex.ac.uk/faq>
>> List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/TeX/ <https://sites.esm.psu.edu/~gray/TeX/>
>> List Archives: http://dir.gmane.org/gmane.comp.tex.macosx <http://dir.gmane.org/gmane.comp.tex.macosx>
>> https://email.esm.psu.edu/pipermail/macosx-tex/ <https://email.esm.psu.edu/pipermail/macosx-tex/>
>> TeX on Mac OS X Website: http://mactex-wiki.tug.org/ <http://mactex-wiki.tug.org/>
>> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex <https://email.esm.psu.edu/mailman/listinfo/macosx-tex>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/macostex-archives/attachments/20220224/5d3bd3e7/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: EPS-test.log
Type: application/octet-stream
Size: 16384 bytes
Desc: not available
URL: <https://tug.org/pipermail/macostex-archives/attachments/20220224/5d3bd3e7/attachment-0001.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/macostex-archives/attachments/20220224/5d3bd3e7/attachment-0003.html>
-------------- next part --------------
----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/TeX/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex
More information about the macostex-archives
mailing list.