# Linked Questions

0answers
490 views

### Trying to use minted package and getting error “Package minted Error: You must invoke LaTeX with the -shell-escape flag.” [duplicate]

I am using Windows 8.1, MiKTeX 2.9, TeXstudio. Everything including packages are fully updated. I am trying to compile this: \documentclass{article} \usepackage{minted} \begin{document} \end{...
0answers
320 views

### Enable pdflatex -shell-escape in TeXstudio [duplicate]

My latex editor is TeXstudio and I need to configure it to enable pdflatex -shell-escape, is it possible to do it? compile with pdfLaTex, use Windows 10 and MikteX 2.9
1answer
115 views

### TexStudio doesn't find the package “Pygments” although it is installed [duplicate]

I'm try to use the minted package in latex to display code in latex document. From Texstudio, I get an error message you must have pygmentize installed to use this package. If I type pip3 install ...
1answer
5k views

### How to make LaTeX automatically call Inkscape to export figure to *.pdf_tex?

I'm working with Inkscape to update all the figures of a book, using the PDF+LaTeX option to export the figures. Right now, every time I modify a figure I "save as..." both with Inkscape's *.svg and *....
1answer
2k views

### Creating a table around a java script code highlighted using minted

I would like to create a block around javascript code in latex. I use minted package for format highlighting. Here is my example code: \documentclass[]{article} \usepackage{minted} %opening \...
2answers
453 views

### Sourcecode colorization for more than one programming language

I want to colorize my source code. I followed this page and everything works fine. My problem is that I am using 4 different programming languages: Have I to define the \lstset{} tag separately for ...
1answer
338 views

### How to externalize TikZ pictures

I have an article with many TikZ pictures. In order to make the code more clear and to save compilation time, I want to remove the TikZ code from the main document. I read that this is possible with ...
1answer
1k views

### TeXstudio, no preview pdf file after compiling using User Commands

I was trying to use package minted to insert Python code in my document and now succeeded in compiling and could generate the correct PDF file. I followed this thread which said it's better to create ...
1answer
388 views

### Plotting level curves (contour curves)

So I managed to get this far with the knowledge I have of tikz and 3dplot and pgfplots : \documentclass[11pt, oneside]{article} \usepackage{tikz} \usepackage{tikz-3dplot} \usepackage{pgfplots} \...
0answers
976 views

### Minted: -shell-escape flag [duplicate]

I'm trying to get some source code into my tex-document but only get the error message mentioned in the thread title. I disabled nearly all of the other packages I use but it did not work. \...
2answers
577 views

### How to convert pdf file to image in latex file

I use imagemagick to convert pdf file to image when creating tikz code in latex file. The code is as follows: \documentclass[preview,border=2pt,2pt]{standalone} \documentclass[convert={density=300,...
1answer
420 views

### How do I “invoke LaTeX” with flags when using laTeXTools in Sublime Text?

I'm using LaTeXTools for Sublime Text 3, and trying to use the minted package. I get the following error: Package minted Error: You must invoke LaTeX with the -shell-escape flag. [\usepackage] ...
2answers
390 views

### Gnuplottex not working in TeXstudio

I wanted to use gnuplottex to create my plots directly in TeXstudio but so far I didn't get any results. When I use the following I get Conversion of document-gnuplottex-fig1.gnuplot failed. Please ...
1answer
178 views

### How to handle this error while running LaTeX? [duplicate]

What is the reason for the following error? Package minted Error: You must invoke LaTeX with the -shell-escape flag.
0answers
228 views

### Package minted Error: You must invoke LaTeX with the -shell-escape flag. \begin

MWE: \documentclass{article} \usepackage{minted} \begin{document} \begin{minted}{c} int main() { printf("hello, world"); return 0; } \end{minted} \end{document}

15 30 50 per page