[OS X TeX] Problem with minted and TeXShop

Richard Koch koch at uoregon.edu
Fri May 30 18:08:56 EDT 2025


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:

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




On May 30, 2025, at 2:01 PM, David Goldenberg <goldenberg at biology.utah.edu> wrote:

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

----------- 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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20250530/36fcad85/attachment.htm>


More information about the MacOSX-TeX mailing list