I exactly followed the instruction and I also tried those solutions on this link: How to install syntax highlight package minted on Windows 7? Unfortunately, I could not run minted
package on Texmaker. I have got error when it is compiled. Any idea about this issue?
runsystem(del transfer*report.aex)...executed.
runsystem(for ^%i in (pygmentize.exe pygmentize.bat pygmentize.cmd) do set >tra
nsfer*report.aex <nul: /p x=^%~$PATH:i>>transfer*report.aex)...executed.
\@appexistsfile=\read3
! Emergency stop.<read 3>
l.41
*** (cannot \read from terminal in nonstop modes)
Content of C:\Python27\Scripts\pygmentize.cmd
:
@echo off set PYTHONPATH=C:\Python27 %PYTHONPATH%\Scripts\pygmentize.exe %*
Windows Path is also done as:
C:\Python27;C:\Python27\Scripts
Also I can see by SET command on cmd path has C:\Python27;C:\Python27\Scripts
.
On command line the pygmentize
looks installed correctly as:
C:\Python27\Scripts>pygmentize -V Pygments version 1.6, (c) 2006-2013 by Georg Brandl.
Texmaker compilation option is also changed as:
pdflatex -shell-escape -synctex=1 -interaction=nonstopmode %.tex
I also tried to uninstall and install minted package over "MikTex 2.9" -> "Package Manager".
But there is not any improvement.
Edit :
I realized that it is working in a separate latex file as
\documentclass{article}
\usepackage{minted}
\begin{document}
\begin{minted}{c}
int main()
{
printf("hello, world");
return 0;
}
\end{minted}
\end{document}
So it should be there some package conflicts or stg like how can I understand it, any idea?
Best Answer
Edit: According to OP the missing “s” was just a typo here in question (but made twice then …).
The
pygmentize.cmd
is never found because of a typo you did in the Windows path – you forgot an “s” at the very end, it’sC:\Python27\Scripts
.BTW: When
pygmentize.exe
is really also inC:\Python27\Scripts
you do not needpygmentize.cmd
at all as long as it is in this same folder.