![]() Package: xcolor 1 v2.12 LaTeX color extensions (UK) (/usr/local/texlive/2018/texmf-dist/tex/latex/xcolor/xcolor.sty Refer to the minted.sty documentation for ![]() See the minted package documentation for explanation. ! Package minted Error: You must invoke LaTeX with the -shell-escape flag. Package: framed 2 v 0.96: framed or shaded text with page float 8 v1.3d Float enhancements -p _minted-python_latex).disabled (restricted). (/usr/local/texlive/2018/texmf-dist/tex/latex/framed/framed.sty ) xstring 3 v1.7c String manipulations (C Tellechea) Shell escape is disabled, so I can only detect \ifwindows. Package: catchfile 6 v1.7 Catch the contents of a file (HO) (/usr/local/texlive/2018/texmf-dist/tex/generic/oberdiek/catchfile.sty Package pdftexcmds Info: \pdfdraftmode found. Package pdftexcmds Info: LuaTeX not detected. Package: ifpdf 5 v3.2 Provides the ifpdf switch (/usr/local/texlive/2018/texmf-dist/tex/generic/oberdiek/ifpdf.sty Package: pdftexcmds 0 v0.27 Utility functions of pdfTeX for LuaTeX (HO (/usr/local/texlive/2018/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty Package: ifplatform 3 v0.4a Testing for the operating system (/usr/local/texlive/2018/texmf-dist/tex/latex/ifplatform/ifplatform.sty Package shellesc Info: Restricted shell escape enabled on input line 69. LaTeX Info: Redefining \addtolength on input line shellesc 7 v0.02a unified shell escape interface for LaTeX Package: lineno 2 line numbers on paragraphs Info: Redefining \\ on input line calc 5 v4.3 Infix arithmetic Info: Redefining \setlength on input line 80. (/usr/local/texlive/2018/texmf-dist/tex/latex/lineno/lineno.sty upquote 9 v1.3 upright-quote and grave-accent glyphs in verba Style option: `fancyvrb' v2.7a, with DG/SPQR fixes, and firstline=lastline fix Package: etoolbox 1 v2.5e e-TeX tools for LaTeX fancyvrb 7 (/usr/local/texlive/2018/texmf-dist/tex/latex/etoolbox/etoolbox.sty Package: ifthen 9 v1.1c Standard LaTeX ifthen package (DPC) (/usr/local/texlive/2018/texmf-dist/tex/latex/base/ifthen.sty Package: fvextra 8 v1.3.1 fvextra - extensions and patches for fancyvr (/usr/local/texlive/2018/texmf-dist/tex/latex/fvextra/fvextra.sty (etexcmds) In the latter case, load this package earlier. (etexcmds) that some package has redefined \expanded. (etexcmds) That can mean that you are not using pdfTeX 1.50 or Package etexcmds Info: Could not find \expanded. Package ifluatex Info: LuaTeX not detected. Package: ifluatex 6 v1.4 Provides the ifluatex switch (HO) (/usr/local/texlive/2018/texmf-dist/tex/generic/oberdiek/ifluatex.sty Package: etexcmds 6 v1.6 Avoid name clashes with e-TeX commands (HO) (/usr/local/texlive/2018/texmf-dist/tex/generic/oberdiek/etexcmds.sty Package: infwarerr 6 v1.4 Providing info/warning/error messages (HO) (/usr/local/texlive/2018/texmf-dist/tex/generic/oberdiek/infwarerr.sty Package: kvsetkeys 6 v1.17 Key value parser (HO) (/usr/local/texlive/2018/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty Package: ltxcmds 6 v1.23 LaTeX kernel commands for general use (HO) (/usr/local/texlive/2018/texmf-dist/tex/generic/oberdiek/ltxcmds.sty ![]() Package: keyval 8 v1.15 key=value parser kvoptions 6 v3.12 Key value format for package options (HO) (/usr/local/texlive/2018/texmf-dist/tex/latex/graphics/keyval.sty (/usr/local/texlive/2018/texmf-dist/tex/latex/base/bk12.cloįile: bk12.clo 9 v1.4h Standard LaTeX file (size minted 9 v2.5 Yet another Pygments shim for LaTeX (/usr/local/texlive/2018/texmf-dist/tex/latex/base/book.clsĭocument Class: book 9 v1.4h Standard LaTeX document class Here is the printed log file: This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded format=pdflatex 2018.9.16) 20:44īabel and hyphenation patterns for 84 language(s) loaded. I then quit this menu, but the problem persisted. So after going in "Textstudio > Preferences > Build" I clicked on the Add button and entered pdflatex -shell-escape in the left cell and pdflatex -synctex=1 -interaction=nonstopmode -shell-escape %.tex in the right cell as shown below: \beginĪs pointed out in another answer, the problem seems to be in the configuration option. Only then I get: Package minted Error: You must have `pygmentize' installed to use this package. I get as the first message: Package minted Error: You must invoke LaTeX with the -shell-escape flag. That means that it is correctly installed but that the latex editor cannot find it. Moreover, when I launch python from the Terminal and type import pygments no error message is displayed. ![]() So after typing pip3 show Pygments I get the path where that package is installed namely: /usr/local/lib/python3.7/site-packages. Requirement already satisfied: pygments in /usr/local/lib/python3.7/site-packages (2.3.1) which means that pip3 has installed on the machine. From Texstudio, I get an error message you must have pygmentize installed to use this package. I'm try to use the minted package in latex to display code in latex document. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |