Erro cunhado "Sequência de controle indefinida. \PYG" com TeXmaker

Erro cunhado "Sequência de controle indefinida. \PYG" com TeXmaker

Eu tenho um computador com Windows 10 e tento usar o mintedpacote para inserir código vhdl em meu arquivo LaTeX. Instalei Python e Pygments e adicionei Python/scripts ao caminho. Também altero as linhas de comando do TeXmaker com -shell-escape. Quando tento executar um pequeno exemplo como este:

\documentclass[%
    a4paper,            % Papierformat
    oneside,            % einseitiger Druck
    %twoside,           % zweiseitiger Druck
    12pt,               % Schriftgröße
    onecolumn,          % einspaltiger Text
    %twocolumn,         % zweispaltiger Text
    openright,          % Kapitel dürfen nur auf einer rechten Seite beginnen
    openany,            % Kapitel dürfen rechts oder links beginnen
    parskip=half,       % eine halbe Zeile Abstand zw. Absätzen
    headsepline,        % Kopfzeilenlinie
    footsepline,        % Fußzeilenlinie
    bibliography=totoc, % Bibliographie im Inhaltsverzeichnis
    %idxtotoc           % Index im Inhaltsverzeichnis
    ]{scrbook}
\usepackage{minted}
\begin{document}
\begin{minted} {vhdl}
process
begin
  CLK <= '1'; wait for 10 NS;
  CLK <= '0'; wait for 10 NS;
end process;
\end{minted}
\end{document}

Eu recebo o erro ...

Undefined control sequence. \PYG #1#2->\FV@PYG
{#1}{\FancyVerbBreakStart #2\FancyVerbBreakStop } l.2 \PYG{k}{process}
The control sequence at the end of the top line of your error message
was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I'
and the correct spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

Responder1

Eu tive um problema semelhante no Linux e a remoção _minted*do diretório resolveu o problema. Outra opção poderia ser incluir o mintedpacote com a opção cache=false. Você pode fazer isso usando \usepackage[cache=false]{minted}em vez de \usepackage{minted}.

Fonte:Problema no Github

informação relacionada