Banner image

In TeXStudio, click on the following menu

Options > Configure TeXStudio > Commands

And add:

pdflatex -synctex=1 -interaction=nonstopmode --shell-escape %.tex

Reference

https://tex.stackexchange.com/questions/99475/how-to-invoke-latex-with-the-shell-escape-flag-in-texstudio-former-texmakerx

TODO: Write the error message and add screenshots of what it looks like before and after.