I am importing minted like this:
\documentclass[english,12pt,a4paper,twoside,chapter=TITLE,section=TITLE,]{abntex2}
\usepackage[newfloat,chapter,outputdir=setup/cache]{minted}
\begin{document}
Hi.
\end{document}
And when running it:
[no file]:77: Package minted Warning: Unexpected value for option `chapter'(minted) is ignored on input line 77.
[no file]:77: Package minted Warning: Unexpected value for option `section'(minted) is ignored on input line 77.
This warning is coming from the package kvoptions.sty:
File: latex/oberdiek/kvoptions.sty
409: {#1}{%
410: Unexpected value for option `#3'\MessageBreak
411: is ignored%
412: }%
413: \fi
As you see, my document class abntex2 takes in the options chapter and section, which minted is trying to process for himself.
How can I fix this warning? (I mean, get rid of it, (it is the last one on my thesis))
Related:
\usepackage{datetime}before you using your fix, i.e., right afterdocumentclass, latex throw this error:Runaway argument? english,12pt,a4paper,twoside,\@nil \begingroup \def \x ##1section=TIT\ETC. test2.tex:16: Paragraph ended before \x was complete– user Nov 03 '19 at 18:59datetimepackage after including the minted package, and the error was gone. – user Nov 03 '19 at 19:15datetimeloadsxkeyval, which plays with\@classoptions. So yes, the fix should be before loadingdatetime. – egreg Nov 03 '19 at 20:52chapter=TITLE,section=TITLEto my class, your code throw errors. Can you make it not throw errors when I am not passing thechapter=TITLE,section=TITLEarguments to my class? – user Nov 04 '19 at 01:52