Closed ykazakov closed 1 year ago
Here is my version of pygmentize:
pygmentize -V
Pygments version 2.13.0, (c) 2006-2022 by Georg Brandl, Matthäus Chajdas and contributors.
Here is the content of ./_minted-mintedtest/CB72D5E009FFDA0E4CE58881B44BB73D7A8FC18113C35448DA2C41E8BF685689.pygtex
:
\begin{Verbatim}[commandchars=\\\{\}]
\PYG{k}{my} \PYG{n+nv}{\PYGZdl{}foo} \PYG{o}{=} \PYG{n+nv}{\PYGZdl{}bar}\PYG{p}{;}
\end{Verbatim}
Do you have the latest fvextra?
On Wed, Dec 14, 2022, 8:45 AM Yevgeny Kazakov @.***> wrote:
Here is my version of pygmentize:
pygmentize -V
Pygments version 2.13.0, (c) 2006-2022 by Georg Brandl, Matthäus Chajdas and contributors.
Here is the content of ./_minted-mintedtest/CB72D5E009FFDA0E4CE58881B44BB73D7A8FC18113C35448DA2C41E8BF685689.pygtex :
\begin{Verbatim}[commandchars=\{}]
\PYG{k}{my} \PYG{n+nv}{\PYGZdl{}foo} \PYG{o}{=} \PYG{n+nv}{\PYGZdl{}bar}\PYG{p}{;}
\end{Verbatim}
— Reply to this email directly, view it on GitHub https://github.com/gpoore/minted/issues/347#issuecomment-1351547897, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMVLKH7EAEVWYLTIZUP6FDWNHMSHANCNFSM6AAAAAAS6RZWXM . You are receiving this because you are subscribed to this thread.Message ID: @.***>
I have only packages included in the latest texlive distribution 20220321.
As can be seen from the log file:
Package: fvextra 2019/02/04 v1.4 fvextra - extensions and patches for fancyvrb
Does mited require a newer version of fvextra? Are there any other packages that need to be updated?
With fvextra v1.5
the test example works fine. Thanks for the quick response!
Hi, I just tried the latest version of minted 2.7 to work around #326. My latex distribution is mactex 20220321 (which is based on texlive). I just copied
minted.sty
to the directory of the latex source. Unfortunately the following simple example (taken from the minted documentation p. 29) fails to compile:mintedtest.tex
:Running with:
Error message:
mintedtest.log
``` This is pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022) (preloaded format=pdflatex 2022.10.18) 14 DEC 2022 15:04 entering extended mode \write18 enabled. %&-line parsing enabled. **mintedtest (./mintedtest.tex LaTeX2e <2021-11-15> patch level 1 L3 programming layer <2022-02-24> (/usr/local/texlive/2022/texmf-dist/tex/latex/base/article.cls Document Class: article 2021/10/04 v1.4n Standard LaTeX document class (/usr/local/texlive/2022/texmf-dist/tex/latex/base/size10.clo File: size10.clo 2021/10/04 v1.4n Standard LaTeX file (size option) ) \c@part=\count185 \c@section=\count186 \c@subsection=\count187 \c@subsubsection=\count188 \c@paragraph=\count189 \c@subparagraph=\count190 \c@figure=\count191 \c@table=\count192 \abovecaptionskip=\skip47 \belowcaptionskip=\skip48 \bibindent=\dimen138 ) (./minted.sty Package: minted 2022/12/12 v2.7 Yet another Pygments shim for LaTeX (/usr/local/texlive/2022/texmf-dist/tex/latex/graphics/keyval.sty Package: keyval 2014/10/28 v1.15 key=value parser (DPC) \KV@toks@=\toks16 ) (/usr/local/texlive/2022/texmf-dist/tex/latex/kvoptions/kvoptions.sty Package: kvoptions 2020-10-07 v3.14 Key value format for package options (HO) (/usr/local/texlive/2022/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty Package: ltxcmds 2020-05-10 v1.25 LaTeX kernel commands for general use (HO) ) (/usr/local/texlive/2022/texmf-dist/tex/generic/kvsetkeys/kvsetkeys.sty Package: kvsetkeys 2019/12/15 v1.18 Key value parser (HO) )) (/usr/local/texlive/2022/texmf-dist/tex/latex/fvextra/fvextra.sty Package: fvextra 2019/02/04 v1.4 fvextra - extensions and patches for fancyvrb (/usr/local/texlive/2022/texmf-dist/tex/latex/base/ifthen.sty Package: ifthen 2020/11/24 v1.1c Standard LaTeX ifthen package (DPC) ) (/usr/local/texlive/2022/texmf-dist/tex/latex/etoolbox/etoolbox.sty Package: etoolbox 2020/10/05 v2.5k e-TeX tools for LaTeX (JAW) \etb@tempcnta=\count193 ) (/usr/local/texlive/2022/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty Package: fancyvrb 2021/12/21 4.1b verbatim text (tvz,hv) \FV@CodeLineNo=\count194 \FV@InFile=\read2 \FV@TabBox=\box50 \c@FancyVerbLine=\count195 \FV@StepNumber=\count196 \FV@OutFile=\write3 ) (/usr/local/texlive/2022/texmf-dist/tex/latex/upquote/upquote.sty Package: upquote 2012/04/19 v1.3 upright-quote and grave-accent glyphs in verba tim ) (/usr/local/texlive/2022/texmf-dist/tex/latex/lineno/lineno.sty Package: lineno 2005/11/02 line numbers on paragraphs v4.41 \linenopenalty=\count197 \output=\toks17 \linenoprevgraf=\count198 \linenumbersep=\dimen139 \linenumberwidth=\dimen140 \c@linenumber=\count199 \c@pagewiselinenumber=\count266 \c@LN@truepage=\count267 \c@internallinenumber=\count268 \c@internallinenumbers=\count269 \quotelinenumbersep=\dimen141 \bframerule=\dimen142 \bframesep=\dimen143 \bframebox=\box51 LaTeX Info: Redefining \\ on input line 3056. ) \c@FV@TrueTabGroupLevel=\count270 \c@FV@TrueTabCounter=\count271 \FV@TabBox@Group=\box52 \FV@TmpLength=\skip49 \c@FV@HighlightLinesStart=\count272 \c@FV@HighlightLinesStop=\count273 \FV@LoopCount=\count274 \FV@NCharsBox=\box53 \FV@BreakIndent=\dimen144 \FV@BreakIndentNChars=\count275 \FV@BreakSymbolSepLeft=\dimen145 \FV@BreakSymbolSepLeftNChars=\count276 \FV@BreakSymbolSepRight=\dimen146 \FV@BreakSymbolSepRightNChars=\count277 \FV@BreakSymbolIndentLeft=\dimen147 \FV@BreakSymbolIndentLeftNChars=\count278 \FV@BreakSymbolIndentRight=\dimen148 \FV@BreakSymbolIndentRightNChars=\count279 \c@FancyVerbLineBreakLast=\count280 \FV@LineBox=\box54 \FV@LineIndentBox=\box55 \FV@LineWidth=\dimen149 ) (/usr/local/texlive/2022/texmf-dist/tex/latex/tools/calc.sty Package: calc 2017/05/25 v4.3 Infix arithmetic (KKT,FJ) \calc@Acount=\count281 \calc@Bcount=\count282 \calc@Adimen=\dimen150 \calc@Bdimen=\dimen151 \calc@Askip=\skip50 \calc@Bskip=\skip51 LaTeX Info: Redefining \setlength on input line 80. LaTeX Info: Redefining \addtolength on input line 81. \calc@Ccount=\count283 \calc@Cskip=\skip52 ) (/usr/local/texlive/2022/texmf-dist/tex/latex/tools/shellesc.sty Package: shellesc 2019/11/08 v1.0c unified shell escape interface for LaTeX Package shellesc Info: Unrestricted shell escape enabled on input line 75. ) (/usr/local/texlive/2022/texmf-dist/tex/latex/ifplatform/ifplatform.sty Package: ifplatform 2017/10/13 v0.4a Testing for the operating system (/usr/local/texlive/2022/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty Package: pdftexcmds 2020-06-27 v0.33 Utility functions of pdfTeX for LuaTeX (HO ) (/usr/local/texlive/2022/texmf-dist/tex/generic/infwarerr/infwarerr.sty Package: infwarerr 2019/12/03 v1.5 Providing info/warning/error messages (HO) ) (/usr/local/texlive/2022/texmf-dist/tex/generic/iftex/iftex.sty Package: iftex 2022/02/03 v1.0f TeX engine tests ) Package pdftexcmds Info: \pdf@primitive is available. Package pdftexcmds Info: \pdf@ifprimitive is available. Package pdftexcmds Info: \pdfdraftmode found. ) (/usr/local/texlive/2022/texmf-dist/tex/generic/catchfile/catchfile.sty Package: catchfile 2019/12/09 v1.8 Catch the contents of a file (HO) (/usr/local/texlive/2022/texmf-dist/tex/generic/etexcmds/etexcmds.sty Package: etexcmds 2019/12/15 v1.7 Avoid name clashes with e-TeX commands (HO) )) (/usr/local/texlive/2022/texmf-dist/tex/generic/iftex/ifluatex.sty Package: ifluatex 2019/10/25 v1.5 ifluatex legacy package. Use iftex instead. ) runsystem(uname -s > "mintedtest.w18")...executed. (./mintedtest.w18) runsystem(rm -- "mintedtest.w18")...executed. ) (/usr/local/texlive/2022/texmf-dist/tex/generic/xstring/xstring.sty (/usr/local/texlive/2022/texmf-dist/tex/generic/xstring/xstring.tex \integerpart=\count284 \decimalpart=\count285 ) Package: xstring 2021/07/21 v1.84 String manipulations (CT) ) (/usr/local/texlive/2022/texmf-dist/tex/latex/framed/framed.sty Package: framed 2011/10/22 v 0.96: framed or shaded text with page breaks \OuterFrameSep=\skip53 \fb@frw=\dimen152 \fb@frh=\dimen153 \FrameRule=\dimen154 \FrameSep=\dimen155 ) (/usr/local/texlive/2022/texmf-dist/tex/latex/float/float.sty Package: float 2001/11/08 v1.3d Float enhancements (AL) \c@float@type=\count286 \float@exts=\toks18 \float@box=\box56 \@float@everytoks=\toks19 \@floatcapt=\box57 ) \minted@appexistsfile=\read3 \minted@bgbox=\box58 \minted@code=\write4 \c@minted@FancyVerbLineTemp=\count287 \c@minted@pygmentizecounter=\count288 \@float@every@listing=\toks20 \c@listing=\count289 ) runsystem(mkdir -p _minted-mintedtest)...executed. (/usr/local/texlive/2022/texmf-dist/tex/latex/xcolor/xcolor.sty Package: xcolor 2021/10/31 v2.13 LaTeX color extensions (UK) (/usr/local/texlive/2022/texmf-dist/tex/latex/graphics-cfg/color.cfg File: color.cfg 2016/01/02 v1.6 sample color configuration ) Package xcolor Info: Driver file: pdftex.def on input line 227. (/usr/local/texlive/2022/texmf-dist/tex/latex/graphics-def/pdftex.def File: pdftex.def 2020/10/05 v1.2a Graphics/color driver for pdftex ) Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1352. Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1356. Package xcolor Info: Model `RGB' extended on input line 1368. Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1370. Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1371. Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1372. Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1373. Package xcolor Info: Model `Gray' substituted by `gray' on input line 1374. Package xcolor Info: Model `wave' substituted by `hsb' on input line 1375. ) runsystem(which pygmentize && touch mintedtest.aex)...executed. runsystem(rm mintedtest.aex)...executed. (/usr/local/texlive/2022/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def File: l3backend-pdftex.def 2022-02-07 L3 backend support: PDF output (pdfTeX) \l__color_backend_stack_int=\count290 \l__pdf_internal_box=\box59 ) No file mintedtest.aux. \openout1 = `mintedtest.aux'. LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 5. LaTeX Font Info: ... okay on input line 5. LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 5. LaTeX Font Info: ... okay on input line 5. LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 5. LaTeX Font Info: ... okay on input line 5. LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 5. LaTeX Font Info: ... okay on input line 5. LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 5. LaTeX Font Info: ... okay on input line 5. LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 5. LaTeX Font Info: ... okay on input line 5. LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 5. LaTeX Font Info: ... okay on input line 5. (/usr/local/texlive/2022/texmf-dist/tex/context/base/mkii/supp-pdf.mkii [Loading MPS to PDF converter (version 2006.09.02).] \scratchcounter=\count291 \scratchdimen=\dimen156 \scratchbox=\box60 \nofMPsegments=\count292 \nofMParguments=\count293 \everyMPshowfont=\toks21 \MPscratchCnt=\count294 \MPscratchDim=\dimen157 \MPnumerator=\count295 \makeMPintoPDFobject=\count296 \everyMPtoPDFconversion=\toks22 ) \openout4 = `mintedtest.pyg'. runsystem(pygmentize -S default -f latex -P commandprefix=PYG > _minted-mintedt est/default.pygstyle)...executed. (./_minted-mintedtest/default.pygstyle) runsystem(pygmentize -l 'perl' -f latex -P commandprefix=PYG -F tokenmerge -P s tripnl='False' -o _minted-mintedtest/CB72D5E009FFDA0E4CE58881B44BB73D7A8FC18113 C35448DA2C41E8BF685689.pygtex mintedtest.pyg)...executed. (./_minted-mintedtest/CB72D5E009FFDA0E4CE58881B44BB73D7A8FC18113C35448DA2C41E8B F685689.pygtex ! LaTeX Error: Environment Verbatim undefined. See the LaTeX manual or LaTeX Companion for explanation. Type H