I am using TeXStudio with LuaLaTeX on Windows 10. When I call \usepackage{minted} I get
Package minted Error: You must invoke LaTeX with the -shell-escape flag. \usepackage
How can I solve the problem?
I am using TeXStudio with LuaLaTeX on Windows 10. When I call \usepackage{minted} I get
Package minted Error: You must invoke LaTeX with the -shell-escape flag. \usepackage
How can I solve the problem?
lualtextolualatex -synctex=1 -interaction=nonstopmode -shell-escape %.texfor example. – Sigur Apr 13 '20 at 19:03-shell-escapeflag, does it add more flexibility? Or will it not run for other types of code? – Superman Apr 13 '20 at 19:05-shell-escapebrings risk. See https://www.texdev.net/2009/10/06/what-does-write18-mean/ and https://tex.stackexchange.com/a/20446/79060 . – muzimuzhi Z Apr 13 '20 at 19:15.texfiles) you will need the--shell-escapecommand in order to access thePygmentslibrary ofPython. Otherwise the use of themintedpackage is senseless. See the Requirements section of the manual. – alchemist Jan 28 '23 at 13:32\documentclass[11pt]{article} \usesepackage{shellesc} \begin{document} \ShellEscape{path > path.txt} \end{document}Compare the content of path.txt to the actual path incmdof Windows. – alchemist Mar 03 '23 at 15:17