Minted Error “Undefined control sequence. PYG” with TeXmaker












9















I have a Windows 10 computer and try to use the minted package to insert vhdl code into my LaTeX file. I did install Python and Pygments and added Python/scripts to the path. I also change the command lines of TeXmaker with -shell-escape. When I try to run a little example like this :



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}


I get the error...




Undefined control sequence. PYG #1#2->FV@PYG
{#1}{FancyVerbBreakStart #2FancyVerbBreakStop } 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., `Ihbox'). Otherwise just continue,
and I'll forget about whatever was undefined.










share|improve this question

























  • Well this works for me. Which distribution do you run (MikTeX, Texlive)?

    – TeXnician
    Apr 29 '17 at 9:44











  • Works for me (TeX Live 2016, Pygments version 2.0.2).

    – egreg
    Apr 29 '17 at 9:44











  • MikTeX, and I have no clue what i did wrong...

    – s kop
    Apr 29 '17 at 9:49











  • Have you tried to update your distribution miktex.org/howto/update-miktex?

    – CarLaTeX
    Apr 29 '17 at 10:28











  • Thanks for this comment, but that didn't work either...

    – s kop
    Apr 29 '17 at 10:57
















9















I have a Windows 10 computer and try to use the minted package to insert vhdl code into my LaTeX file. I did install Python and Pygments and added Python/scripts to the path. I also change the command lines of TeXmaker with -shell-escape. When I try to run a little example like this :



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}


I get the error...




Undefined control sequence. PYG #1#2->FV@PYG
{#1}{FancyVerbBreakStart #2FancyVerbBreakStop } 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., `Ihbox'). Otherwise just continue,
and I'll forget about whatever was undefined.










share|improve this question

























  • Well this works for me. Which distribution do you run (MikTeX, Texlive)?

    – TeXnician
    Apr 29 '17 at 9:44











  • Works for me (TeX Live 2016, Pygments version 2.0.2).

    – egreg
    Apr 29 '17 at 9:44











  • MikTeX, and I have no clue what i did wrong...

    – s kop
    Apr 29 '17 at 9:49











  • Have you tried to update your distribution miktex.org/howto/update-miktex?

    – CarLaTeX
    Apr 29 '17 at 10:28











  • Thanks for this comment, but that didn't work either...

    – s kop
    Apr 29 '17 at 10:57














9












9








9


3






I have a Windows 10 computer and try to use the minted package to insert vhdl code into my LaTeX file. I did install Python and Pygments and added Python/scripts to the path. I also change the command lines of TeXmaker with -shell-escape. When I try to run a little example like this :



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}


I get the error...




Undefined control sequence. PYG #1#2->FV@PYG
{#1}{FancyVerbBreakStart #2FancyVerbBreakStop } 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., `Ihbox'). Otherwise just continue,
and I'll forget about whatever was undefined.










share|improve this question
















I have a Windows 10 computer and try to use the minted package to insert vhdl code into my LaTeX file. I did install Python and Pygments and added Python/scripts to the path. I also change the command lines of TeXmaker with -shell-escape. When I try to run a little example like this :



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}


I get the error...




Undefined control sequence. PYG #1#2->FV@PYG
{#1}{FancyVerbBreakStart #2FancyVerbBreakStop } 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., `Ihbox'). Otherwise just continue,
and I'll forget about whatever was undefined.







texmaker minted pygments






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 2 mins ago









JouleV

4,1301938




4,1301938










asked Apr 29 '17 at 9:34









s kops kop

15919




15919













  • Well this works for me. Which distribution do you run (MikTeX, Texlive)?

    – TeXnician
    Apr 29 '17 at 9:44











  • Works for me (TeX Live 2016, Pygments version 2.0.2).

    – egreg
    Apr 29 '17 at 9:44











  • MikTeX, and I have no clue what i did wrong...

    – s kop
    Apr 29 '17 at 9:49











  • Have you tried to update your distribution miktex.org/howto/update-miktex?

    – CarLaTeX
    Apr 29 '17 at 10:28











  • Thanks for this comment, but that didn't work either...

    – s kop
    Apr 29 '17 at 10:57



















  • Well this works for me. Which distribution do you run (MikTeX, Texlive)?

    – TeXnician
    Apr 29 '17 at 9:44











  • Works for me (TeX Live 2016, Pygments version 2.0.2).

    – egreg
    Apr 29 '17 at 9:44











  • MikTeX, and I have no clue what i did wrong...

    – s kop
    Apr 29 '17 at 9:49











  • Have you tried to update your distribution miktex.org/howto/update-miktex?

    – CarLaTeX
    Apr 29 '17 at 10:28











  • Thanks for this comment, but that didn't work either...

    – s kop
    Apr 29 '17 at 10:57

















Well this works for me. Which distribution do you run (MikTeX, Texlive)?

– TeXnician
Apr 29 '17 at 9:44





Well this works for me. Which distribution do you run (MikTeX, Texlive)?

– TeXnician
Apr 29 '17 at 9:44













Works for me (TeX Live 2016, Pygments version 2.0.2).

– egreg
Apr 29 '17 at 9:44





Works for me (TeX Live 2016, Pygments version 2.0.2).

– egreg
Apr 29 '17 at 9:44













MikTeX, and I have no clue what i did wrong...

– s kop
Apr 29 '17 at 9:49





MikTeX, and I have no clue what i did wrong...

– s kop
Apr 29 '17 at 9:49













Have you tried to update your distribution miktex.org/howto/update-miktex?

– CarLaTeX
Apr 29 '17 at 10:28





Have you tried to update your distribution miktex.org/howto/update-miktex?

– CarLaTeX
Apr 29 '17 at 10:28













Thanks for this comment, but that didn't work either...

– s kop
Apr 29 '17 at 10:57





Thanks for this comment, but that didn't work either...

– s kop
Apr 29 '17 at 10:57










2 Answers
2






active

oldest

votes


















27














I had a similar issue in Linux and removing _minted* directory solved the problem. Other option could be include the minted package with the option cache=false.

Source: Github issue






share|improve this answer


























  • And how do you add this option ?

    – ThePassenger
    Jul 31 '17 at 15:40






  • 2





    @Marine1 As written inside the GitHub issue: Write usepackage[cache=false]{minted} instead of usepackage{minted}.

    – epR8GaYuh
    Jul 31 '17 at 18:12





















0














I got the same error when attempting to use minted with LyX. I fixed it by restarting LyX.






share|improve this answer


























  • I'm afraid the OP wants an answer for TeXmaker.

    – JouleV
    5 mins ago











  • If you google the error, this is the first page which pops up, so I thought I this might help someone in the future. Maybe I should leave a comment instead?

    – Evan Rosica
    2 mins ago











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f367332%2fminted-error-undefined-control-sequence-pyg-with-texmaker%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









27














I had a similar issue in Linux and removing _minted* directory solved the problem. Other option could be include the minted package with the option cache=false.

Source: Github issue






share|improve this answer


























  • And how do you add this option ?

    – ThePassenger
    Jul 31 '17 at 15:40






  • 2





    @Marine1 As written inside the GitHub issue: Write usepackage[cache=false]{minted} instead of usepackage{minted}.

    – epR8GaYuh
    Jul 31 '17 at 18:12


















27














I had a similar issue in Linux and removing _minted* directory solved the problem. Other option could be include the minted package with the option cache=false.

Source: Github issue






share|improve this answer


























  • And how do you add this option ?

    – ThePassenger
    Jul 31 '17 at 15:40






  • 2





    @Marine1 As written inside the GitHub issue: Write usepackage[cache=false]{minted} instead of usepackage{minted}.

    – epR8GaYuh
    Jul 31 '17 at 18:12
















27












27








27







I had a similar issue in Linux and removing _minted* directory solved the problem. Other option could be include the minted package with the option cache=false.

Source: Github issue






share|improve this answer















I had a similar issue in Linux and removing _minted* directory solved the problem. Other option could be include the minted package with the option cache=false.

Source: Github issue







share|improve this answer














share|improve this answer



share|improve this answer








edited Jun 19 '17 at 8:26









Tobi

38.4k8131258




38.4k8131258










answered Jun 4 '17 at 18:58









JacintoCCJacintoCC

38636




38636













  • And how do you add this option ?

    – ThePassenger
    Jul 31 '17 at 15:40






  • 2





    @Marine1 As written inside the GitHub issue: Write usepackage[cache=false]{minted} instead of usepackage{minted}.

    – epR8GaYuh
    Jul 31 '17 at 18:12





















  • And how do you add this option ?

    – ThePassenger
    Jul 31 '17 at 15:40






  • 2





    @Marine1 As written inside the GitHub issue: Write usepackage[cache=false]{minted} instead of usepackage{minted}.

    – epR8GaYuh
    Jul 31 '17 at 18:12



















And how do you add this option ?

– ThePassenger
Jul 31 '17 at 15:40





And how do you add this option ?

– ThePassenger
Jul 31 '17 at 15:40




2




2





@Marine1 As written inside the GitHub issue: Write usepackage[cache=false]{minted} instead of usepackage{minted}.

– epR8GaYuh
Jul 31 '17 at 18:12







@Marine1 As written inside the GitHub issue: Write usepackage[cache=false]{minted} instead of usepackage{minted}.

– epR8GaYuh
Jul 31 '17 at 18:12













0














I got the same error when attempting to use minted with LyX. I fixed it by restarting LyX.






share|improve this answer


























  • I'm afraid the OP wants an answer for TeXmaker.

    – JouleV
    5 mins ago











  • If you google the error, this is the first page which pops up, so I thought I this might help someone in the future. Maybe I should leave a comment instead?

    – Evan Rosica
    2 mins ago
















0














I got the same error when attempting to use minted with LyX. I fixed it by restarting LyX.






share|improve this answer


























  • I'm afraid the OP wants an answer for TeXmaker.

    – JouleV
    5 mins ago











  • If you google the error, this is the first page which pops up, so I thought I this might help someone in the future. Maybe I should leave a comment instead?

    – Evan Rosica
    2 mins ago














0












0








0







I got the same error when attempting to use minted with LyX. I fixed it by restarting LyX.






share|improve this answer















I got the same error when attempting to use minted with LyX. I fixed it by restarting LyX.







share|improve this answer














share|improve this answer



share|improve this answer








edited 1 min ago









JouleV

4,1301938




4,1301938










answered 16 mins ago









Evan RosicaEvan Rosica

1257




1257













  • I'm afraid the OP wants an answer for TeXmaker.

    – JouleV
    5 mins ago











  • If you google the error, this is the first page which pops up, so I thought I this might help someone in the future. Maybe I should leave a comment instead?

    – Evan Rosica
    2 mins ago



















  • I'm afraid the OP wants an answer for TeXmaker.

    – JouleV
    5 mins ago











  • If you google the error, this is the first page which pops up, so I thought I this might help someone in the future. Maybe I should leave a comment instead?

    – Evan Rosica
    2 mins ago

















I'm afraid the OP wants an answer for TeXmaker.

– JouleV
5 mins ago





I'm afraid the OP wants an answer for TeXmaker.

– JouleV
5 mins ago













If you google the error, this is the first page which pops up, so I thought I this might help someone in the future. Maybe I should leave a comment instead?

– Evan Rosica
2 mins ago





If you google the error, this is the first page which pops up, so I thought I this might help someone in the future. Maybe I should leave a comment instead?

– Evan Rosica
2 mins ago


















draft saved

draft discarded




















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f367332%2fminted-error-undefined-control-sequence-pyg-with-texmaker%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

Calculate evaluation metrics using cross_val_predict sklearn

Insert data from modal to MySQL (multiple modal on website)