<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
David,
<div><br>
</div>
<div>I have never used minted and I'm going to an event later this evening.</div>
<div><br>
</div>
<div>I looked at the minted documentation, which in section 4.2 contains a</div>
<div>"minimal complete example."</div>
<div><br>
</div>
<div>Here is the code:</div>
<div><br>
</div>
<div>
<p class="p1" style="margin: 0px; font-width: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal; color: rgb(15, 112, 1);">
\documentclass{<span class="s1" style="color: rgb(0, 0, 0);">article</span>}</p>
<p class="p1" style="margin: 0px; font-width: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal; color: rgb(15, 112, 1);">
\usepackage{<span class="s1" style="color: rgb(0, 0, 0);">minted</span>}</p>
<p class="p1" style="margin: 0px; font-width: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal; color: rgb(15, 112, 1);">
\usepackage<span class="s2" style="color: rgb(86, 103, 25);">[svgnames]</span>{<span class="s1" style="color: rgb(0, 0, 0);">xcolor</span>}</p>
<p class="p1" style="margin: 0px; font-width: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal; color: rgb(15, 112, 1);">
\begin{<span class="s1" style="color: rgb(0, 0, 0);">document</span>}</p>
<p class="p2" style="margin: 0px; font-width: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span class="s3" style="color: rgb(15, 112, 1);">\begin{</span>minted<span class="s3" style="color: rgb(15, 112, 1);">}</span>[bgcolor=Beige, bgcolorpadding=0.5em]<span class="s3" style="color: rgb(15, 112, 1);">{</span>c<span class="s3" style="color: rgb(15, 112, 1);">}</span></p>
<p class="p2" style="margin: 0px; font-width: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
int main() <span class="s3" style="color: rgb(15, 112, 1);">{</span></p>
<p class="p2" style="margin: 0px; font-width: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
printf("hello, world");</p>
<p class="p2" style="margin: 0px; font-width: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
return 0;</p>
<p class="p1" style="margin: 0px; font-width: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal; color: rgb(15, 112, 1);">
}</p>
<p class="p1" style="margin: 0px; font-width: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal; color: rgb(15, 112, 1);">
\end{<span class="s1" style="color: rgb(0, 0, 0);">minted</span>}</p>
<p class="p2" style="margin: 0px; font-width: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span class="s3" style="color: rgb(15, 112, 1);">\end{</span>document<span class="s3" style="color: rgb(15, 112, 1);">}</span></p>
<p class="p2" style="margin: 0px; font-width: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span class="s3" style="color: rgb(15, 112, 1);"><br>
</span></p>
<p class="p2" style="margin: 0px; font-width: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<br>
</p>
<p class="p2" style="margin: 0px; font-width: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span class="s3" style="color: rgb(15, 112, 1);"><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-size: 12px;">I opened TeXShop and typeset this exact code in pdflatex without doing anything</span></span></p>
<p class="p2" style="margin: 0px; font-width: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span class="s3" style="color: rgb(15, 112, 1);"><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-size: 12px;">else. I typeset twice and got exactly the claimed output. Moreover,</span></span></p>
<p class="p2" style="margin: 0px; font-width: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span class="s3" style="color: rgb(15, 112, 1);"><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-size: 12px;">by default TeXShop does not set --shell-escape, so TeXShop did not call shell escape.</span></span></p>
<p class="p2" style="margin: 0px; font-width: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span class="s3" style="color: rgb(15, 112, 1);"><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-size: 12px;"><br>
</span></span></p>
<p class="p2" style="margin: 0px; font-width: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span class="s3" style="color: rgb(15, 112, 1);"><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-size: 12px;">Perhaps you could send a longer example we could test.</span></span></p>
<p class="p2" style="margin: 0px; font-width: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span class="s3" style="color: rgb(15, 112, 1);"><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-size: 12px;"><br>
</span></span></p>
<p class="p2" style="margin: 0px; font-width: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span class="s3" style="color: rgb(15, 112, 1);"><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-size: 12px;">Dick Koch</span></span></p>
<p class="p2" style="margin: 0px; font-width: normal; font-size: 10px; line-height: normal; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span class="s3" style="color: rgb(15, 112, 1);"><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-size: 12px;"><br>
</span></span></p>
</div>
<div><br>
</div>
<div><br id="lineBreakAtBeginningOfMessage">
<div><br>
<blockquote type="cite">
<div>On May 30, 2025, at 2:01 PM, David Goldenberg <goldenberg@biology.utah.edu> wrote:</div>
<br class="Apple-interchange-newline">
<div>
<div>Hi,<br>
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:<br>
<br>
./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.<br>
<br>
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.<br>
<br>
In TeXShop, the path is set to:<br>
/Library/TeX/texbin<br>
and the LaTeX engine is set to:<br>
pdflatex --file-line-error --synctex=1 -shell-escape<br>
<br>
The latexminted.py executable is located in:<br>
/Library/TeX/texbin <br>
(The file is an alias to /usr/local/texlive/2025/texmf-dist/scripts/minted/latexminted.py)<br>
<br>
Any suggestions would be greatly appreciated!<br>
<br>
Thanks,<br>
David Goldenberg<br>
<br>
--<br>
School of Biological Sciences<br>
University of Utah<br>
257 South 1400 East<br>
Salt Lake City, UT 84112-0840<br>
<br>
<br>
E-mail: goldenberg@biology.utah.edu<br>
Web page: http://goldenberg.biology.utah.edu<br>
<br>
----------- Please Consult the Following Before Posting -----------<br>
TeX FAQ: https://www.tug.org/mactex/faq/index.html<br>
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/TeX/<br>
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx<br>
https://email.esm.psu.edu/pipermail/macosx-tex/<br>
TeX on Mac OS X Website: https://www.tug.org/mactex/index.html<br>
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex<br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</body>
</html>