0

In a completely fresh and updated installation of MikTeX (minted v2.4 and xkeyval v2.7a) I run into a problem using the numberblanklines argument. I guess it is version issue because in an older version I do not have this problem/error. The error message is:

    Package xkeyval Error: numberblanklines undefined.

You can try it using the following MWE:

    \documentclass{article}
    \usepackage{minted}

    \begin{document}
    \begin{minted}[linenos=true,breaklines,numberblanklines=false]{bash}
    {function h()
    #
    # Type 'h cmd' instead of 'cmd --help'
    #

    {
    echo "--help" | xargs $1
    }
    \end{minted}
    \end{document} 

Any ideas how to fix that?

0

Thanks so much David :-)

Because links might get broken I post the solution that is working as of now (until the new minted version is released):

  1. Download minted.sty from here
  2. Put minted.sty in your project/the folder where your document is
  3. Compile and be pleased that it works :-)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.