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 ?

  • Welcome to TeX.SX! Usually, we don't put a greeting or a “thank you” in our posts. While this might seem strange at first, it is not a sign of lack of politeness, but rather part of our trying to keep everything very concise. Accepting and upvoting answers is the preferred way here to say “thank you” to users who helped you. – Martin Schröder Nov 8 '15 at 18:02
  • your code processed with pdflatex --shell-escape produces this without error in tl1025 – David Carlisle Nov 8 '15 at 18:02
  • @DavidCarlisle You made me think of trying it in a terminal rather than from Texmaker. And oddly enough, it works ! I'm going to edit the question. – Quentin Nov 8 '15 at 18:08
  • Are you sure you compiled with shell escape from TeXmaker? – TeXnician Apr 2 '17 at 15:53
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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.