Minted not working
up vote
10
down vote
favorite
I'm trying to use the minted package on Windows 8. I installed python and Pygment, added C:Python34 and C:Python34Scripts on my path.
When I try to compile the following latex code:
documentclass[12pt,a4paper]{report}
usepackage[pdftex]{graphicx} %for embedding images
usepackage[francais]{babel}
usepackage{eurosym}
usepackage{pdftexcmds}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{xcolor}
usepackage[normalem]{ulem}
usepackage{url} %for proper url entries
usepackage{minted}
begin{document}
input{./a.tex}
input{./b.tex}
…
input{./h.tex}
One of the files of the input command contains this minted code:
begin{minted}{csharp}
string test;
end{minted}
I got the following errors, which don't make any sense to me:
openout3 = `report.pyg'.
runsystem(pygmentize -l csharp -f latex -F tokenmerge -P style=default -P comma
ndprefix=PYGdefault -o "_minted-report/B3A3E546A80461696602265F0BBFCFE46439C04D
9C5223188E498C03CB02681D.pygtex" "report.pyg" )...executed.
(./_minted-report/B3A3E546A80461696602265F0BBFCFE46439C04D9C5223188E498C03CB026
81D.pygtex
! Undefined control sequence.
<argument> PYGdefault
{k+kt}{string} PYGdefault {n}{test}PYGdefault {p}{;}
l.2 ...ring} PYGdefault{n}{test}PYGdefault{p}{;}
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.
! Undefined control sequence.
<argument> PYGdefault {k+kt}{string} PYGdefault
{n}{test}PYGdefault {p}{;}
l.2 ...ring} PYGdefault{n}{test}PYGdefault{p}{;}
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.
! Undefined control sequence.
<argument> ...g} PYGdefault {n}{test}PYGdefault
{p}{;}
l.2 ...ring} PYGdefault{n}{test}PYGdefault{p}{;}
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.
pdftex minted
|
show 3 more comments
up vote
10
down vote
favorite
I'm trying to use the minted package on Windows 8. I installed python and Pygment, added C:Python34 and C:Python34Scripts on my path.
When I try to compile the following latex code:
documentclass[12pt,a4paper]{report}
usepackage[pdftex]{graphicx} %for embedding images
usepackage[francais]{babel}
usepackage{eurosym}
usepackage{pdftexcmds}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{xcolor}
usepackage[normalem]{ulem}
usepackage{url} %for proper url entries
usepackage{minted}
begin{document}
input{./a.tex}
input{./b.tex}
…
input{./h.tex}
One of the files of the input command contains this minted code:
begin{minted}{csharp}
string test;
end{minted}
I got the following errors, which don't make any sense to me:
openout3 = `report.pyg'.
runsystem(pygmentize -l csharp -f latex -F tokenmerge -P style=default -P comma
ndprefix=PYGdefault -o "_minted-report/B3A3E546A80461696602265F0BBFCFE46439C04D
9C5223188E498C03CB02681D.pygtex" "report.pyg" )...executed.
(./_minted-report/B3A3E546A80461696602265F0BBFCFE46439C04D9C5223188E498C03CB026
81D.pygtex
! Undefined control sequence.
<argument> PYGdefault
{k+kt}{string} PYGdefault {n}{test}PYGdefault {p}{;}
l.2 ...ring} PYGdefault{n}{test}PYGdefault{p}{;}
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.
! Undefined control sequence.
<argument> PYGdefault {k+kt}{string} PYGdefault
{n}{test}PYGdefault {p}{;}
l.2 ...ring} PYGdefault{n}{test}PYGdefault{p}{;}
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.
! Undefined control sequence.
<argument> ...g} PYGdefault {n}{test}PYGdefault
{p}{;}
l.2 ...ring} PYGdefault{n}{test}PYGdefault{p}{;}
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.
pdftex minted
2
Welcome to TeX.SX! Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting withdocumentclass{...}and ending withend{document}.
– egreg
Apr 6 '15 at 11:10
i edited my question. I really need an answer, or at least an alternative to code formatting in latex.
– qleguennec
Apr 6 '15 at 15:36
I get no error if I replace one of theinput{./a.tex}with themintedenvironment.
– egreg
Apr 6 '15 at 15:51
4
As egreg asked, please turn your code into a minimal working example (MWE); it's the surest way to a solution.
– jubobs
Apr 24 '15 at 8:42
1
To that end, you might find thefilecontentsenvironment helpful. I can't reproduce this error, either. If we can't reproduce the error, we can't help :(
– Sean Allred
Apr 25 '15 at 14:06
|
show 3 more comments
up vote
10
down vote
favorite
up vote
10
down vote
favorite
I'm trying to use the minted package on Windows 8. I installed python and Pygment, added C:Python34 and C:Python34Scripts on my path.
When I try to compile the following latex code:
documentclass[12pt,a4paper]{report}
usepackage[pdftex]{graphicx} %for embedding images
usepackage[francais]{babel}
usepackage{eurosym}
usepackage{pdftexcmds}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{xcolor}
usepackage[normalem]{ulem}
usepackage{url} %for proper url entries
usepackage{minted}
begin{document}
input{./a.tex}
input{./b.tex}
…
input{./h.tex}
One of the files of the input command contains this minted code:
begin{minted}{csharp}
string test;
end{minted}
I got the following errors, which don't make any sense to me:
openout3 = `report.pyg'.
runsystem(pygmentize -l csharp -f latex -F tokenmerge -P style=default -P comma
ndprefix=PYGdefault -o "_minted-report/B3A3E546A80461696602265F0BBFCFE46439C04D
9C5223188E498C03CB02681D.pygtex" "report.pyg" )...executed.
(./_minted-report/B3A3E546A80461696602265F0BBFCFE46439C04D9C5223188E498C03CB026
81D.pygtex
! Undefined control sequence.
<argument> PYGdefault
{k+kt}{string} PYGdefault {n}{test}PYGdefault {p}{;}
l.2 ...ring} PYGdefault{n}{test}PYGdefault{p}{;}
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.
! Undefined control sequence.
<argument> PYGdefault {k+kt}{string} PYGdefault
{n}{test}PYGdefault {p}{;}
l.2 ...ring} PYGdefault{n}{test}PYGdefault{p}{;}
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.
! Undefined control sequence.
<argument> ...g} PYGdefault {n}{test}PYGdefault
{p}{;}
l.2 ...ring} PYGdefault{n}{test}PYGdefault{p}{;}
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.
pdftex minted
I'm trying to use the minted package on Windows 8. I installed python and Pygment, added C:Python34 and C:Python34Scripts on my path.
When I try to compile the following latex code:
documentclass[12pt,a4paper]{report}
usepackage[pdftex]{graphicx} %for embedding images
usepackage[francais]{babel}
usepackage{eurosym}
usepackage{pdftexcmds}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{xcolor}
usepackage[normalem]{ulem}
usepackage{url} %for proper url entries
usepackage{minted}
begin{document}
input{./a.tex}
input{./b.tex}
…
input{./h.tex}
One of the files of the input command contains this minted code:
begin{minted}{csharp}
string test;
end{minted}
I got the following errors, which don't make any sense to me:
openout3 = `report.pyg'.
runsystem(pygmentize -l csharp -f latex -F tokenmerge -P style=default -P comma
ndprefix=PYGdefault -o "_minted-report/B3A3E546A80461696602265F0BBFCFE46439C04D
9C5223188E498C03CB02681D.pygtex" "report.pyg" )...executed.
(./_minted-report/B3A3E546A80461696602265F0BBFCFE46439C04D9C5223188E498C03CB026
81D.pygtex
! Undefined control sequence.
<argument> PYGdefault
{k+kt}{string} PYGdefault {n}{test}PYGdefault {p}{;}
l.2 ...ring} PYGdefault{n}{test}PYGdefault{p}{;}
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.
! Undefined control sequence.
<argument> PYGdefault {k+kt}{string} PYGdefault
{n}{test}PYGdefault {p}{;}
l.2 ...ring} PYGdefault{n}{test}PYGdefault{p}{;}
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.
! Undefined control sequence.
<argument> ...g} PYGdefault {n}{test}PYGdefault
{p}{;}
l.2 ...ring} PYGdefault{n}{test}PYGdefault{p}{;}
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.
pdftex minted
pdftex minted
edited Apr 6 '15 at 11:55
asked Apr 6 '15 at 11:00
qleguennec
15615
15615
2
Welcome to TeX.SX! Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting withdocumentclass{...}and ending withend{document}.
– egreg
Apr 6 '15 at 11:10
i edited my question. I really need an answer, or at least an alternative to code formatting in latex.
– qleguennec
Apr 6 '15 at 15:36
I get no error if I replace one of theinput{./a.tex}with themintedenvironment.
– egreg
Apr 6 '15 at 15:51
4
As egreg asked, please turn your code into a minimal working example (MWE); it's the surest way to a solution.
– jubobs
Apr 24 '15 at 8:42
1
To that end, you might find thefilecontentsenvironment helpful. I can't reproduce this error, either. If we can't reproduce the error, we can't help :(
– Sean Allred
Apr 25 '15 at 14:06
|
show 3 more comments
2
Welcome to TeX.SX! Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting withdocumentclass{...}and ending withend{document}.
– egreg
Apr 6 '15 at 11:10
i edited my question. I really need an answer, or at least an alternative to code formatting in latex.
– qleguennec
Apr 6 '15 at 15:36
I get no error if I replace one of theinput{./a.tex}with themintedenvironment.
– egreg
Apr 6 '15 at 15:51
4
As egreg asked, please turn your code into a minimal working example (MWE); it's the surest way to a solution.
– jubobs
Apr 24 '15 at 8:42
1
To that end, you might find thefilecontentsenvironment helpful. I can't reproduce this error, either. If we can't reproduce the error, we can't help :(
– Sean Allred
Apr 25 '15 at 14:06
2
2
Welcome to TeX.SX! Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with
documentclass{...} and ending with end{document}.– egreg
Apr 6 '15 at 11:10
Welcome to TeX.SX! Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with
documentclass{...} and ending with end{document}.– egreg
Apr 6 '15 at 11:10
i edited my question. I really need an answer, or at least an alternative to code formatting in latex.
– qleguennec
Apr 6 '15 at 15:36
i edited my question. I really need an answer, or at least an alternative to code formatting in latex.
– qleguennec
Apr 6 '15 at 15:36
I get no error if I replace one of the
input{./a.tex} with the minted environment.– egreg
Apr 6 '15 at 15:51
I get no error if I replace one of the
input{./a.tex} with the minted environment.– egreg
Apr 6 '15 at 15:51
4
4
As egreg asked, please turn your code into a minimal working example (MWE); it's the surest way to a solution.
– jubobs
Apr 24 '15 at 8:42
As egreg asked, please turn your code into a minimal working example (MWE); it's the surest way to a solution.
– jubobs
Apr 24 '15 at 8:42
1
1
To that end, you might find the
filecontents environment helpful. I can't reproduce this error, either. If we can't reproduce the error, we can't help :(– Sean Allred
Apr 25 '15 at 14:06
To that end, you might find the
filecontents environment helpful. I can't reproduce this error, either. If we can't reproduce the error, we can't help :(– Sean Allred
Apr 25 '15 at 14:06
|
show 3 more comments
2 Answers
2
active
oldest
votes
up vote
25
down vote
I can conform this issue now. On my local machine it was impossible to reproduce this error, but on another machine I succeeded.
I have tried it like the following.
- Installed python2.7 and pygmentize
- Did not add path and compiled (_minted-exampleb was created as subdirectory automatically) but I failed with the above message.
- Installed python3.4 and pygmentize
- Added correct path to windowsenvironment and tried to compile but I also failed.
- Deleted all temporary files and compiled once more. SUCCESSS. (pdf compiles correctly) (including _minted-%filname%)
It seems to me, that there are some old files or pathsettings which maybe don't access the same version of python and old files are still at the examplefolder.
I am working on windows 7, maybe this issue is OS independent, then you should try go remove all old python2.7 installations and remove all old temporary files of your examplefolder.
I am not sure but I think its worth to give it a try.
16
Deleting temporary files indeed solved the problem. Thanks!
– AlexG
Apr 28 '15 at 10:28
9
In my case, deleting the folder_minted-maindocumenthelped to solve the issue.
– koppor
Oct 4 '15 at 10:46
1
Cleaning up the temporary files on OSX did not resolve the issue for me.
– Maximilian Kohl
Sep 13 '16 at 7:29
For me this also didn't solve the issue... I'm working on WIndows 10 with MikTex and TexMaker: My question: [here](tex.stackexchange.com/questions/339154/latex-minted-not-working-with-miktex-texmaker-under-windows-10)
– FranzHuber23
Nov 14 '16 at 21:13
2
Deleting theminted-...folder fixed the issue for me too!
– Kevin Van Ryckegem
Nov 13 '17 at 10:27
add a comment |
up vote
0
down vote
I also got error messages when including minted. I tried many different things, but what finally solved my problem was including minted (usepackage{minted}) as first package.
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
25
down vote
I can conform this issue now. On my local machine it was impossible to reproduce this error, but on another machine I succeeded.
I have tried it like the following.
- Installed python2.7 and pygmentize
- Did not add path and compiled (_minted-exampleb was created as subdirectory automatically) but I failed with the above message.
- Installed python3.4 and pygmentize
- Added correct path to windowsenvironment and tried to compile but I also failed.
- Deleted all temporary files and compiled once more. SUCCESSS. (pdf compiles correctly) (including _minted-%filname%)
It seems to me, that there are some old files or pathsettings which maybe don't access the same version of python and old files are still at the examplefolder.
I am working on windows 7, maybe this issue is OS independent, then you should try go remove all old python2.7 installations and remove all old temporary files of your examplefolder.
I am not sure but I think its worth to give it a try.
16
Deleting temporary files indeed solved the problem. Thanks!
– AlexG
Apr 28 '15 at 10:28
9
In my case, deleting the folder_minted-maindocumenthelped to solve the issue.
– koppor
Oct 4 '15 at 10:46
1
Cleaning up the temporary files on OSX did not resolve the issue for me.
– Maximilian Kohl
Sep 13 '16 at 7:29
For me this also didn't solve the issue... I'm working on WIndows 10 with MikTex and TexMaker: My question: [here](tex.stackexchange.com/questions/339154/latex-minted-not-working-with-miktex-texmaker-under-windows-10)
– FranzHuber23
Nov 14 '16 at 21:13
2
Deleting theminted-...folder fixed the issue for me too!
– Kevin Van Ryckegem
Nov 13 '17 at 10:27
add a comment |
up vote
25
down vote
I can conform this issue now. On my local machine it was impossible to reproduce this error, but on another machine I succeeded.
I have tried it like the following.
- Installed python2.7 and pygmentize
- Did not add path and compiled (_minted-exampleb was created as subdirectory automatically) but I failed with the above message.
- Installed python3.4 and pygmentize
- Added correct path to windowsenvironment and tried to compile but I also failed.
- Deleted all temporary files and compiled once more. SUCCESSS. (pdf compiles correctly) (including _minted-%filname%)
It seems to me, that there are some old files or pathsettings which maybe don't access the same version of python and old files are still at the examplefolder.
I am working on windows 7, maybe this issue is OS independent, then you should try go remove all old python2.7 installations and remove all old temporary files of your examplefolder.
I am not sure but I think its worth to give it a try.
16
Deleting temporary files indeed solved the problem. Thanks!
– AlexG
Apr 28 '15 at 10:28
9
In my case, deleting the folder_minted-maindocumenthelped to solve the issue.
– koppor
Oct 4 '15 at 10:46
1
Cleaning up the temporary files on OSX did not resolve the issue for me.
– Maximilian Kohl
Sep 13 '16 at 7:29
For me this also didn't solve the issue... I'm working on WIndows 10 with MikTex and TexMaker: My question: [here](tex.stackexchange.com/questions/339154/latex-minted-not-working-with-miktex-texmaker-under-windows-10)
– FranzHuber23
Nov 14 '16 at 21:13
2
Deleting theminted-...folder fixed the issue for me too!
– Kevin Van Ryckegem
Nov 13 '17 at 10:27
add a comment |
up vote
25
down vote
up vote
25
down vote
I can conform this issue now. On my local machine it was impossible to reproduce this error, but on another machine I succeeded.
I have tried it like the following.
- Installed python2.7 and pygmentize
- Did not add path and compiled (_minted-exampleb was created as subdirectory automatically) but I failed with the above message.
- Installed python3.4 and pygmentize
- Added correct path to windowsenvironment and tried to compile but I also failed.
- Deleted all temporary files and compiled once more. SUCCESSS. (pdf compiles correctly) (including _minted-%filname%)
It seems to me, that there are some old files or pathsettings which maybe don't access the same version of python and old files are still at the examplefolder.
I am working on windows 7, maybe this issue is OS independent, then you should try go remove all old python2.7 installations and remove all old temporary files of your examplefolder.
I am not sure but I think its worth to give it a try.
I can conform this issue now. On my local machine it was impossible to reproduce this error, but on another machine I succeeded.
I have tried it like the following.
- Installed python2.7 and pygmentize
- Did not add path and compiled (_minted-exampleb was created as subdirectory automatically) but I failed with the above message.
- Installed python3.4 and pygmentize
- Added correct path to windowsenvironment and tried to compile but I also failed.
- Deleted all temporary files and compiled once more. SUCCESSS. (pdf compiles correctly) (including _minted-%filname%)
It seems to me, that there are some old files or pathsettings which maybe don't access the same version of python and old files are still at the examplefolder.
I am working on windows 7, maybe this issue is OS independent, then you should try go remove all old python2.7 installations and remove all old temporary files of your examplefolder.
I am not sure but I think its worth to give it a try.
edited Jan 16 '16 at 20:07
answered Apr 28 '15 at 9:03
Peter Ebelsberger
1,360919
1,360919
16
Deleting temporary files indeed solved the problem. Thanks!
– AlexG
Apr 28 '15 at 10:28
9
In my case, deleting the folder_minted-maindocumenthelped to solve the issue.
– koppor
Oct 4 '15 at 10:46
1
Cleaning up the temporary files on OSX did not resolve the issue for me.
– Maximilian Kohl
Sep 13 '16 at 7:29
For me this also didn't solve the issue... I'm working on WIndows 10 with MikTex and TexMaker: My question: [here](tex.stackexchange.com/questions/339154/latex-minted-not-working-with-miktex-texmaker-under-windows-10)
– FranzHuber23
Nov 14 '16 at 21:13
2
Deleting theminted-...folder fixed the issue for me too!
– Kevin Van Ryckegem
Nov 13 '17 at 10:27
add a comment |
16
Deleting temporary files indeed solved the problem. Thanks!
– AlexG
Apr 28 '15 at 10:28
9
In my case, deleting the folder_minted-maindocumenthelped to solve the issue.
– koppor
Oct 4 '15 at 10:46
1
Cleaning up the temporary files on OSX did not resolve the issue for me.
– Maximilian Kohl
Sep 13 '16 at 7:29
For me this also didn't solve the issue... I'm working on WIndows 10 with MikTex and TexMaker: My question: [here](tex.stackexchange.com/questions/339154/latex-minted-not-working-with-miktex-texmaker-under-windows-10)
– FranzHuber23
Nov 14 '16 at 21:13
2
Deleting theminted-...folder fixed the issue for me too!
– Kevin Van Ryckegem
Nov 13 '17 at 10:27
16
16
Deleting temporary files indeed solved the problem. Thanks!
– AlexG
Apr 28 '15 at 10:28
Deleting temporary files indeed solved the problem. Thanks!
– AlexG
Apr 28 '15 at 10:28
9
9
In my case, deleting the folder
_minted-maindocument helped to solve the issue.– koppor
Oct 4 '15 at 10:46
In my case, deleting the folder
_minted-maindocument helped to solve the issue.– koppor
Oct 4 '15 at 10:46
1
1
Cleaning up the temporary files on OSX did not resolve the issue for me.
– Maximilian Kohl
Sep 13 '16 at 7:29
Cleaning up the temporary files on OSX did not resolve the issue for me.
– Maximilian Kohl
Sep 13 '16 at 7:29
For me this also didn't solve the issue... I'm working on WIndows 10 with MikTex and TexMaker: My question: [here](tex.stackexchange.com/questions/339154/latex-minted-not-working-with-miktex-texmaker-under-windows-10)
– FranzHuber23
Nov 14 '16 at 21:13
For me this also didn't solve the issue... I'm working on WIndows 10 with MikTex and TexMaker: My question: [here](tex.stackexchange.com/questions/339154/latex-minted-not-working-with-miktex-texmaker-under-windows-10)
– FranzHuber23
Nov 14 '16 at 21:13
2
2
Deleting the
minted-... folder fixed the issue for me too!– Kevin Van Ryckegem
Nov 13 '17 at 10:27
Deleting the
minted-... folder fixed the issue for me too!– Kevin Van Ryckegem
Nov 13 '17 at 10:27
add a comment |
up vote
0
down vote
I also got error messages when including minted. I tried many different things, but what finally solved my problem was including minted (usepackage{minted}) as first package.
add a comment |
up vote
0
down vote
I also got error messages when including minted. I tried many different things, but what finally solved my problem was including minted (usepackage{minted}) as first package.
add a comment |
up vote
0
down vote
up vote
0
down vote
I also got error messages when including minted. I tried many different things, but what finally solved my problem was including minted (usepackage{minted}) as first package.
I also got error messages when including minted. I tried many different things, but what finally solved my problem was including minted (usepackage{minted}) as first package.
answered 3 hours ago
timlg07
1
1
add a comment |
add a comment |
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f237075%2fminted-not-working%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
2
Welcome to TeX.SX! Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with
documentclass{...}and ending withend{document}.– egreg
Apr 6 '15 at 11:10
i edited my question. I really need an answer, or at least an alternative to code formatting in latex.
– qleguennec
Apr 6 '15 at 15:36
I get no error if I replace one of the
input{./a.tex}with themintedenvironment.– egreg
Apr 6 '15 at 15:51
4
As egreg asked, please turn your code into a minimal working example (MWE); it's the surest way to a solution.
– jubobs
Apr 24 '15 at 8:42
1
To that end, you might find the
filecontentsenvironment helpful. I can't reproduce this error, either. If we can't reproduce the error, we can't help :(– Sean Allred
Apr 25 '15 at 14:06