# pass “global” options to minted/fancyvrb

Is there a way to override default options for the `minted` environment, rather than having to specify them for each and every snippet of code ?

In other words, is there an equivalent to `listings`'s `\lstset` command ?

AFAIK the `minted` package is based on `fancyvrb`, but I couldn't find anything in there either (I don't really read tex so I only looked at the documentation)

Bonus question: why is there so much blank space (about two blank lines) after a minted listing ?

-

`\fvset{..}` mentioned in the documentation several times ...

-
 Indeed, thanks for that. I should have read the manual and not skimmed through the titles. /me feels stupid. – Gyom Dec 31 '10 at 13:19

Bonus question: why is there so much blank space (about two blank lines) after a minted listing ?

This has already been asked – and answered – on Stack Overflow.

As for minted having presets, besides the obvious `\fvset`, it doesn’t. The rationale was that you would usually define a language-specific shortcut of the minted commands for each language that you use (which usually shouldn’t be that many anyway), as explained in chapter 6 of the documentation.

(And the fact that the `minted` doc doesn’t mention `\fvset` is arguably a documentation bug. Perhaps some day I’ll come round to doing a new release.)

-