1

I'm using Minted 2.1, that I have installed through tlmgr, and Texmaker 4.1. Compiling the following piece of code (straight from the documentation) :

\documentclass{report}
\usepackage[utf8]{inputenc}
\usepackage{minted}
\begin{document}
X\mintinline{python}{print(x**2)}X
\end{document}

... results in both X's on two consecutive lines, and nothing else (no error either).

However, compiling the same code from the terminal using the command-line from Texmaker's options window :

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

... works as expected. How can I troubleshoot & solve this, so I can compile from Texmaker ?

Quentin
  • 111

1 Answers1

1

Probably you just have to use TeXmaker's option dialog to change the compilation process to add the option --shell-escape to your default build setup (see here, following picture from same post, replace -enable-write18 with -shell-escape if that doesn't work).

Texmakers dialog

As a word of warning: You should not compile all projects with shell escape enabled. Maybe you could try an alternative editor (like Texstudio, based on Texmaker), which enables you to specify custom toolchains.

TeXnician
  • 33,589