[OS X TeX] Problem with minted and TeXShop
Richard Koch
koch at uoregon.edu
Sun Jun 1 01:09:38 EDT 2025
David,
Just got back from the Eugene opera.
Could you please send me the log file when you typeset and get an error.
Dick
koch at uoregon.edu
> On May 31, 2025, at 6:39 PM, David Goldenberg <Goldenberg at biology.utah.edu> wrote:
>
> Dick and Herb,
> Thanks very much for your replies and suggestions.
>
> When I use the minimal example that Dick used, I see the same error in TeXShop. But, I have discovered that if I override the error, by typing return in th console, things work as expected!
>
> Yes, the file in /Library/TeX/texbin is latexminted. But this is an alias to a python script, latexminted.py which is in /usr/local/texlive/2025/texmf-dist/scripts/minted
>
> The directory /usr/local/texlive/texmf-local/web2c does exist, but it is empty.
>
> At this point, I can typset files using minted from TeXShop, but it still seems that something isn’t quite right.
>
> Thanks again,
> David
> --
> School of Biological Sciences
> University of Utah
> 257 South 1400 East
> Salt Lake City, UT 84112-0840
>
>
> E-mail: goldenberg at biology.utah.edu
> Web page: http://goldenberg.biology.utah.edu
>
>>
>> Message: 1
>> Date: Fri, 30 May 2025 21:01:30 +0000
>> From: David Goldenberg <goldenberg at biology.utah.edu>
>> To: "macosx-tex at email.esm.psu.edu" <macosx-tex at email.esm.psu.edu>
>> Subject: [OS X TeX] Problem with minted and TeXShop
>> Message-ID: <CC049A4C-1301-4A1B-8B63-F577FF4CCF59 at biology.utah.edu>
>> Content-Type: text/plain; charset="us-ascii"
>>
>> Hi,
>> Having learned about minted in a post to this group last month, I have been exploring it a bit. I have tried it with three different Macs with very similar, but not identical configurations. On two, I was able to get it to work without much trouble, but on the third, I am getting this error when I try to typeset a LaTeX file with minted from TeXShop:
>>
>> ./minted_test.tex:61: Package minted Error: minted v3+ executable is not installed or is not added to PATH; or MiKTeX is being used with -aux-directory or -output-directory without setting a TEXMF_OUTPUT_DIRECTORY environment variable.
>>
>> But, I can typset the file using pdflatex from the command line without any obvious problems. So, I presume this has something to do with how TeXShop is looking for what it needs.
>>
>> In TeXShop, the path is set to:
>> /Library/TeX/texbin
>> and the LaTeX engine is set to:
>> pdflatex --file-line-error --synctex=1 -shell-escape
>>
>> The latexminted.py executable is located in:
>> /Library/TeX/texbin
>> (The file is an alias to /usr/local/texlive/2025/texmf-dist/scripts/minted/latexminted.py)
>>
>> Any suggestions would be greatly appreciated!
>>
>> Thanks,
>> David Goldenberg
>>
>> --
>> School of Biological Sciences
>> University of Utah
>> 257 South 1400 East
>> Salt Lake City, UT 84112-0840
>>
>>
>> E-mail: goldenberg at biology.utah.edu
>> Web page: http://goldenberg.biology.utah.edu
>>
>>
>>
>> ------------------------------
>>
>> Message: 2
>> Date: Fri, 30 May 2025 22:06:46 +0000
>> From: Richard Koch <koch at uoregon.edu>
>> To: TeX on Mac OS X <macosx-tex at email.esm.psu.edu>
>> Subject: Re: [OS X TeX] Problem with minted and TeXShop
>> Message-ID: <59B4772C-9573-47D1-A66C-956B170C5676 at uoregon.edu>
>> Content-Type: text/plain; charset="utf-8"
>>
>> David,
>>
>> I have never used minted and I'm going to an event later this evening.
>>
>> I looked at the minted documentation, which in section 4.2 contains a
>> "minimal complete example."
>>
>> Here is the code:
>>
>>
>> \documentclass{article}
>>
>> \usepackage{minted}
>>
>> \usepackage[svgnames]{xcolor}
>>
>> \begin{document}
>>
>> \begin{minted}[bgcolor=Beige, bgcolorpadding=0.5em]{c}
>>
>> int main() {
>>
>> printf("hello, world");
>>
>> return 0;
>>
>> }
>>
>> \end{minted}
>>
>> \end{document}
>>
>>
>>
>> I opened TeXShop and typeset this exact code in pdflatex without doing anything
>>
>> else. I typeset twice and got exactly the claimed output. Moreover,
>>
>> by default TeXShop does not set --shell-escape, so TeXShop did not call shell escape.
>>
>>
>> Perhaps you could send a longer example we could test.
>>
>>
>> Dick Koch
>>
>>
>> -------------------------
>>
>> Message: 3
>> Date: Fri, 30 May 2025 22:08:56 +0000
>> From: Richard Koch <koch at uoregon.edu>
>> To: TeX on Mac OS X <macosx-tex at email.esm.psu.edu>
>> Subject: Re: [OS X TeX] Problem with minted and TeXShop
>> Message-ID: <097FA40C-7DC4-4B85-BA2F-24A05B7ABE46 at uoregon.edu>
>> Content-Type: text/plain; charset="utf-8"
>>
>> PS:
>>
>> I keep my machine "plain vanilla." I don't install macports or other such
>> software, and I don't set any environmental variables.
>>
>> Dick
>>
>> On May 30, 2025, at 3:06?PM, Richard Koch <koch at uoregon.edu> wrote:
>>
>>
>>
>> Message: 4
>> Date: Fri, 30 May 2025 20:10:15 -0500
>> From: Herbert Schulz <herbs2 at mac.com>
>> To: TeX on Mac OS X Mailing List <macosx-tex at email.esm.psu.edu>
>> Subject: Re: [OS X TeX] Problem with minted and TeXShop
>> Message-ID: <755CF705-3902-4213-BBFB-75956413A42A at mac.com>
>> Content-Type: text/plain; charset=utf-8
>>
>>
>>
>>> On May 30, 2025, at 4:01?PM, David Goldenberg <goldenberg at biology.utah.edu> wrote:
>>>
>>> The latexminted.py executable is located in:
>>> /Library/TeX/texbin
>>
>> Howdy,
>>
>> I assume you mean The latexminted executable is located in:
>> /Library/TeX/texbin not latexminted.py.
>>
>> Good Luck,
>>
>> Herb Schulz
>> herbs2 at mac.com
>>
>>
>>
>>
>> ------------------------------
>>
>> Message: 5
>> Date: Fri, 30 May 2025 20:15:24 -0500
>> From: Herbert Schulz <herbs2 at mac.com>
>> To: TeX on Mac OS X Mailing List <macosx-tex at email.esm.psu.edu>
>> Subject: Re: [OS X TeX] Problem with minted and TeXShop
>> Message-ID: <C11259FE-1A81-41DF-A0BB-C4B8BA478AD5 at mac.com>
>> Content-Type: text/plain; charset=utf-8
>>
>>
>>
>>
>> Howdy (again),
>>
>> Also. do you happen to have a texmf.cnf file located in /usr/local/texlive/texmf-local/web2c? Run
>>
>> ls /usr/local/texlive/texmf-local
>>
>> in Terminal and see if texmf.cnf comes up. (The command may fail if that folder doesn't exist.)
>>
>> Good Luck,
>>
>> Herb Schulz
>> herbs2 at mac.com
>>
>>
>>
>>
>> ------------------------------
>>
>> Subject: Digest Footer
>>
>>
>> -------------------------- Helpful Info --------------------------
>> TeX FAQ: https://www.tug.org/mactex/faq/index.html
>> List Reminders and Etiquette: https://email.esm.psu.edu/mac-tex/
>> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex
>> List Archive: http://tug.org/pipermail/macostex-archives/
>> TeX on Mac OS X Website: https://www.tug.org/mactex/index.html
>>
>>
>>
>> ------------------------------
>>
>> End of MacOSX-TeX Digest, Vol 210, Issue 5
>> ******************************************
>
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: https://www.tug.org/mactex/faq/index.html
> 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: https://www.tug.org/mactex/index.html
> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex
More information about the MacOSX-TeX
mailing list