This question already has an answer here:

While using minted I can change font size (Change font size in minted) on each individual place using the fontsize=\footnotesize:


Can I set this once for the entire document?

marked as duplicate by CarLaTeX, user156344, Stefan Pinnow, Raaja, Andrew Swann Apr 14 at 18:50

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


With \setminted{fontsize=...} you can set the default font size for all your minted environments.

If you explicitly indicate a font size in a single minted environment, it overrides the default.

I think your question is a duplicate of Minted, setstretch and font size, but there the more correct answer is Himura's one.

\noindent\verb|\footnotesize| is the default font size:
if you do not specify another fontsize
your minted environment will be footnotesize
all your minted evronments will be footnotesize
Unless you specify another font size:
this is large

enter image description here

Not the answer you're looking for? Browse other questions tagged or ask your own question.