[OS X TeX] includegraphics with EPS
George Tourlakis
gt at cse.yorku.ca
Thu Feb 24 22:33:47 CET 2022
Hi Herb,
Thanks.
The epstopdf-sys.cfg file is indeed local (in ~Library/tex/latex/config.
Well, I deleted it in my desktop and now conversion works.
Still the mystery remains as to why ostensibly the same TeX setup in my laptop tolerates my config file
>>>> \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 does the conversions, while in my desktop the config file is intolerable, and just removing it -- leaving all else the same -- restores conversions.
But I will leave this puzzle for another day.
Cheers,
George
> On Feb 24, 2022, at 2:19 PM, Herbert Schulz <herbs at wideopenwest.com> wrote:
>
>
>
>> On Feb 24, 2022, at 11:12 AM, George Tourlakis <gt at cse.yorku.ca> wrote:
>>
>> 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
>> <EPS-test.log>
>>
>> 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> 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> 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> 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> 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> wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> On Feb 23, 2022, at 2:47 PM, George Tourlakis <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
>>>>>>>
>>>>>>>
>>>>>>> ----------- 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
>>>>>>>
>>>>>>
>>>>> <EPS-test.tex><invim.eps>----------- Please Consult the Following Before Posting -----------
>
> Howdy,
>
> zero: that log file is incomplete.
>
> First: you should never touch anything in texmf-dist!!! If you want a config file for your system create an `epstopd.cfg' file (no quotes) with the commands and place it in /usr/local/texlive/texmf-local/tex/latex/config (you may have to create some folders in this nest - use sudo when you do). Make sure to run `sudo mktexlsr` so the system knows it's there. I enclose the version I use which defines the conversion for tif(f)->png and gif->png (this is always UGLY) using Apple's `sip` converter.
>
> Second: a while back things changed so epstopdfsetup doesn't work the way it did before. That's why I just gave up and live with file.eps->file-eps-converted-to.pdf. It's actually nice because it's easy to pick out and remove if I want to.
>
> Good Luck,
>
> Herb Schulz
> herbs at wideopenwest.com
>
>
> ----------- 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/macostex-archives/attachments/20220224/131454e5/attachment-0001.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.