I'm using minted for code higlight in a beamer presentation, and I'm getting an error:

FancyVerb Error:. ^^I^^I^^I\end{minted}^^I




Some text


I don't see the issue with such a simple use case.

  • The code as shown in the question compiles without errors for me. Can you show your .log file so we can see which engine you use, if you have shell-escape enabled and which versions of all the packages you have? Can you also double check that your code really looks like this? Sometimes a space or tab can already make the difference. Oct 13, 2023 at 17:44
  • 1
    The whole issue was just an extra tab after the \end{minted}. Sometimes LaTeX quirks are too annoying.
    – td211
    Oct 13, 2023 at 17:48
  • 3
    I’m voting to close this question because it's solved according to the OPs own comment and answer: just a simple extra character confusing the tool ...
    – MS-SPO
    Oct 13, 2023 at 20:13

1 Answer 1


I found the reason: FancyVerb Error:. ^^I^^I^^I\end{minted}^^I

This ^^I at the end is a tab, and according to this, minted and other verbatim environments do not like any non space character after their \end{}. Removing the tab fixes the issue.

Not the answer you're looking for? Browse other questions tagged .