
Windows 10 컴퓨터가 있고 패키지 를 사용하여 minted
LaTeX 파일에 vhdl 코드를 삽입하려고 합니다. Python과 Pygments를 설치하고 Python/스크립트를 경로에 추가했습니다. 또한 TeXmaker의 명령줄을 -shell-escape
. 다음과 같은 작은 예제를 실행하려고 하면 다음과 같습니다.
\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}
오류가 발생했습니다.
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.
답변1
Linux에서도 비슷한 문제가 있었고 _minted*
디렉토리를 제거하면 문제가 해결되었습니다. 또 다른 옵션은 minted
옵션과 함께 패키지를 포함하는 것입니다 cache=false
. \usepackage[cache=false]{minted}
대신 를 사용하여 이 작업을 수행할 수 있습니다 \usepackage{minted}
.
원천:Github 문제