0

I am trying to use minted package, which has a dependency of the program called pygmentize. I installed this but did not working well. Then i did this But still showing the error:

File `pymentize.sty' not found.

when i write this:

\usepackage{pymentize}
\usepackage{minted}

I am using mac sierra and texstudio. Help me please.

Zarko
  • 296,517
sovon
  • 133
  • 3
    pygmentize is not a LaTeX package. It is a Python package. So you should remove the pygmentize package import (you may have to install pygments which includes pygmentize using the Python package manager to let minted work afterwards). – epR8GaYuh Aug 09 '17 at 11:11
  • yes, i installed pygments by 'sudo easy_install Pygments' command and which is in '\usr\local\bin' folder. Then still I get the error 'Package minted Error: You must have `pygmentize' installed to use this package.' – sovon Aug 09 '17 at 11:17
  • 1
    is /usr/local/bin/ in your texstudio path? https://i.stack.imgur.com/MgOwG.png – samcarter_is_at_topanswers.xyz Aug 09 '17 at 11:19
  • No, How can find it, what should i put pygmentize there? – sovon Aug 09 '17 at 11:26
  • @sovon Can you start pygmentize from the command line? – user4035 Aug 09 '17 at 12:13
  • yes, i can. I run 'pygmentize test.py' command and it works – sovon Aug 09 '17 at 14:04

1 Answers1

1

Go to the "Preferences" menu in Texmaker and choose the "Commands" tab. In line next to "PdfLaTeX" there should be

"/usr/texbin/pdflatex" -synctex=1 -interaction=nonstopmode %.tex

change it to -

"/usr/texbin/pdflatex" -synctex=1 -shell-escape -interaction=nonstopmode %.tex

Got the solution from here

sovon
  • 133