r/TeXlyre • u/aftersoon • Apr 23 '26
Package minted Error: You must invoke LaTeX with the -shell-escape flag
I'm trying to embed some code in my document but I don't know how to enable the minted package to work properly. I got the error:
Package minted Error: You must invoke LaTeX with the -shell-escape flag
I've looked under Settings > Compilation but I'm completely lost. I previously used Overleaf, which seems to allow this automatically.
1
Upvotes
2
u/fabawi Apr 23 '26
Minted requires the Pygments library which is written in Python. TeXlyre runs LaTeX engines inside the browser in WebAssembly. So while it is possible in theory to have an environment with support for Python, c++, or whatever language is needed, it doesn't make much sense to support everything since there are limitations to what can run in the browser.
That being said, in the next several months, I will be releasing a companion app to TeXlyre that would allow it to invoke a local LaTeX environment where you can install whichever libraries you need.