-
Notifications
You must be signed in to change notification settings - Fork 131
Description
Based on the documentation, minted v3 bundles all Python dependencies inside the package, so no manual installation (apart from Python itself) is necessary:
As of minted version 3, all Python software including Pygments is bundled with the LATEX package when it is installed with a TEX package manager, and no dependencies must be installed separately.
When the minted package is installed, it includes the latexminted Python executable and all required Python libraries including Pygments. For these to function correctly, Python 3.8+ must be installed and on PATH when the latexminted executable runs.
However, installing minted using MiKTeX on Windows does not install latexminted and other Python dependencies, so syntax highlighting fails:
Package minted Error: Cannot highlight code (minted executable is unavailable or disabled); attempting to typeset without highlighting.
According to MiKTeX/miktex#1538 (which as been closed due to inactivity), the minted package does not include include the necessary Python scripts. I can also confirm they are not present in my MiKTeX installation:
tex\generic\tex4ht\minted-sty-hooks.4ht
tex\generic\tex4ht\minted.4ht
tex\latex\minted\
tex\latex\minted\minted.sty
tex\latex\minted\minted1.sty
tex\latex\minted\minted2.sty
tex\latex\tcolorbox\tcbminted.code.tex
tpm\packages\minted.tpm
I also tried to install the minted__source which includes the Python scripts, but they are stored in a different directory, so the compilation still doesn't work.
Can the necessary scripts and dependencies be bundled inside the minted package, so the compilation works without any additional setup?