Minted 软件包 :: Minted 软件包错误:缺少 Pygments 输出

Minted 软件包 :: Minted 软件包错误:缺少 Pygments 输出

我的标签如下:

\documentclass[]{book}
\usepackage[many,documentation]{tcolorbox}
\tcbuselibrary{skins, breakable, minted}
\usetikzlibrary{calc}
\usepackage{minted}
\usemintedstyle[jasonagent]{jacamo}
\usemintedstyle[jacamoproject]{jacamo}
\usemintedstyle[java]{manni}
\usemintedstyle[xml]{manni}
\setminted{fontsize=\small}


\begin{document}


\inputminted{jacamoproject}{chapter3/code/org_hw3/sag_hw.jcm}

\end{document}

其内容sag_hw.jcm如下:

mas sag_hw {                 // the MAS is identified by sag_hw
  agent bob: hwa.asl {  // initial plans for bob are in hwa.asl
    goals: say("Hello World")           // initial goal for bob
  }
}

我正在运行该文件PDFLaTeX --shell-escape filename.tex,然后出现以下错误:

("C:\Program Files\MiKTeX 2.9\tex\latex\base\inputenc.sty"
Package: inputenc 2015/03/17 v1.2c Input encoding file
\inpenc@prehook=\toks42
\inpenc@posthook=\toks43
)
\AtBeginShipoutBox=\box78
Package hyperref Info: Link coloring OFF on input line 13.

("C:\Program Files\MiKTeX 2.9\tex\latex\hyperref\nameref.sty"
Package: nameref 2016/05/21 v2.44 Cross-referencing by name of section

("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\gettitlestring.sty"
Package: gettitlestring 2016/05/16 v1.5 Cleanup title references (HO)
)
\c@section@level=\count275
)
LaTeX Info: Redefining \ref on input line 13.
LaTeX Info: Redefining \pageref on input line 13.
LaTeX Info: Redefining \nameref on input line 13.

(test.out) (test.out)
\@outlinefile=\write9
\openout9 = `test.out'.

Package marginnote Info: \pdfoutput not 0 or unimportant and
(marginnote)             \pdflastxpos or \lastxpos available.
(marginnote)             Extended position detection mode activated.
 (_minted-test/default-pyg-prefix.pygstyle)
(_minted-test/jacamo.pygstyle)
runsystem(pygmentize -l jacamoproject -f latex -P commandprefix=PYG -F tokenmer
ge -o _minted-test/867A5D77E073C9C3542991A9CE2FD115.pygtex chapter3/code/org_hw
3/sag_hw.jcm)...executed.



! Package minted Error: Missing Pygments output; \inputminted was
probably given a file that does not exist--otherwise, you may need 
the outputdir package option, or may be using an incompatible build tool,
or may be using the kpsewhich option without having PowerShell installed,
or may be using frozencache with a missing file.

See the minted package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.16 ...project}{chapter3/code/org_hw3/sag_hw.jcm}

? x

Here is how much of TeX's memory you used:
 31918 strings out of 493329
 646869 string characters out of 3139066
 750960 words of memory out of 3000000
 35000 multiletter control sequences out of 15000+200000
 4498 words of font info for 17 fonts, out of 3000000 for 9000
 1141 hyphenation exceptions out of 8191
 60i,1n,93p,10505b,275s stack positions out of 5000i,500n,10000p,200000b,50000s
No pages of output.

pdfTeX warning: pdflatex: dangling objects discarded, no output file produced.

PDF statistics:
 41 PDF objects out of 1000 (max. 8388607)
 0 named destinations out of 1000 (max. 500000)
 145 words of extra memory for PDF output out of 10000 (max. 10000000)

我在 Windows7 系统上使用 MikTeX 2.9。我安装Pythonpygmentize

请告知我的代码出了什么问题...

编辑

更新包mintedPython和之后Pygmentize,我收到了仅限语言的错误\inputminted{jasonagent}{test.asl},请提供任何建议......

("C:\Program Files\MiKTeX 2.9\tex\latex\hyperref\nameref.sty"
Package: nameref 2016/05/21 v2.44 Cross-referencing by name of section

("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\gettitlestring.sty"
Package: gettitlestring 2016/05/16 v1.5 Cleanup title references (HO)
)
\c@section@level=\count275
)
LaTeX Info: Redefining \ref on input line 14.
LaTeX Info: Redefining \pageref on input line 14.
LaTeX Info: Redefining \nameref on input line 14.

(test.out) (test.out)
\@outlinefile=\write9
\openout9 = `test.out'.

Package marginnote Info: \pdfoutput not 0 or unimportant and
(marginnote)             \pdflastxpos or \lastxpos available.
(marginnote)             Extended position detection mode activated.
 (_minted-test/default-pyg-prefix.pygstyle)
(_minted-test/jacamo.pygstyle)
runsystem(pygmentize -l jasonagent -f latex -P commandprefix=PYG -F tokenmerge 
-o _minted-test/C5DCCD1D20214F384C955C5C6642EE150A20182925029C5A43F21CEF965EC88
9.pygtex test.asl)...executed.



! Package minted Error: Missing Pygments output; \inputminted was
probably given a file that does not exist--otherwise, you may need 
the outputdir package option, or may be using an incompatible build tool,
or may be using frozencache with a missing file.

See the minted package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.19 \inputminted{jasonagent}{test.asl}

? x

Here is how much of TeX's memory you used:
 31968 strings out of 493329
 648759 string characters out of 3139066
 755772 words of memory out of 3000000
 35051 multiletter control sequences out of 15000+200000
 4498 words of font info for 17 fonts, out of 3000000 for 9000
 1141 hyphenation exceptions out of 8191
 60i,1n,93p,10484b,275s stack positions out of 5000i,500n,10000p,200000b,50000s
No pages of output.

pdfTeX warning: pdflatex: dangling objects discarded, no output file produced.

PDF statistics:
 41 PDF objects out of 1000 (max. 8388607)
 0 named destinations out of 1000 (max. 500000)
 145 words of extra memory for PDF output out of 10000 (max. 10000000)

答案1

Mac如果我使用以下组合在系统中运行文件,上述问题就解决了Docker + PDFLaTeX...感谢所有人...

相关内容