TeX - LaTeX Asked on December 18, 2020
I’ve recently decided to switch to minted due to way better Python highlighting. I am having weird issues with minted sometimes not being able to find pygmentize on my Mac – never had the same issues on my windows 10 machine.
Steps I took:
pip install pygments
– check $pygmentize -h
> Usage .../anaconda/bin/pygmentize
– checkusepackage[chapter]{minted}
% !TeX TXS-program:compile = txs:///pdflatex/[--shell-escape]
> then allow it to really use shell escape for this documentPackage minted Error: You must have
pygmentize’ installed to use this package. begin{document}`. When restarting TexStudio it works fine.My document consists of one main document that includes the other chapters. Every chapter defines the tex-root like this: %!TEX root = ../doc.tex
. The minimal example I’ve tried (which works flawlessly on win and sometimes on mac)
begin{minted}{c}
int main() {
printf("hello, world");
return 0;
}
end{minted}
I am grateful for any ideas you might have :).
It appear TexStudio is not looking for pygmentize at the right place. So you need to create a symlink :
sudo ln -s "$(which pygmentize)" /Library/TeX/texbin/pygmentize
Answered by UGLi on December 18, 2020
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP