Successful use of package minted
requires installation of a tool called Pygments; see apps/typesetting/typesetters/external/minted pygmentize
whose location depends on the method of installing Pygments.
Texifier sources the user’s SHELL profile in order to ensure that pygmentize
and other tools can be found. As long as the path to pygmentize
is set up in your bash or other SHELL profile properly, Texifier will be able to find it when typesetting a document that uses the minted
package. You can determine this path by running which pygmentize
on the command line in the Terminal app.
To explain this further, let’s assume that pygmentize
is installed using Homebrew which installs its binaries in /opt/homebrew/bin
and we get,
[~]$ which pygmentize /opt/homebrew/bin/pygmentize
Homebrew will set the path up for you, but if it didn’t and let’s say that we used bash as our SHELL on macOS, we would need to update our ~/.bash_profile
with this line:
export PATH="/opt/homebrew/bin:$PATH"
to ensure pygmentize
can be seen by other tools and command which pygmentize
produces the correct path to pygmentize
.