0

I've decided to move my thesis from overleaf to my local pc. After some finagling, everything compiles as it should, except for minted

Specifically, I'm getting these two stubborn errors:

/run/media/andrea/Data/TESI/main.tex:15: Package minted Error: You must invoke LaTeX with the -shell-escape flag. /run/media/andrea/Data/TESI/main.tex:27: Package minted Error: You must have `pygmentize' installed to use this package. 

I'm compiling with LuaLaTeX, I have pygmentize installed (I checked) and I followed this guide to add the --shell-escape flag in the settings.json file for all possible latex engine I could find there (latex, pdf, xe and lua), I've also tried -shell-escape (that's what it mentions in the error, though cli flags like that should have a double dash).

This thesis is about AI so I will need minted to show some code at some point, and it's the only thing breaking the compilation. What should I do? Though I mention it in the title, Im working in VSCode using the LaTeX Workshop addon

9
  • Is your latex installation up-to-date? Since v3.0, minted no longer needs shell-escape Commented Jan 24 at 14:54
  • all tex -- arguments can be used with - (and it's probably not a good idea to globally allow shell-escape, unless you are very trusting) but the error shows you had called latex without --shell-escape (or -shell-escape) You could show the start of the log. Commented Jan 24 at 15:19
  • @DavidCarlisle I've set the flag in the settings for the latex workshop extension, and the error still shows up if I compile from the terminal (obv using the flag too, in both its forms). The full log is here. Commented Jan 24 at 15:36
  • @samcarter_is_at_topanswers.xyz I think so, I've just installed all the needed packages from my package manager (I'm on EndeavourOS). I'll run tlmgr to see if there's anything to update Commented Jan 24 at 15:42
  • 1
    @AndreaTerenz If you are using a texlive version packaged for linux, you will almost always get an outdated version. If you'd like an up-to-date version, you could install it from tug.org/texlive Commented Jan 24 at 15:44

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.