I have a problem with minted. I have created a new minted environment like so:
\definecolor{dhscodebg}{rgb}{0.95,0.95,0.95}
\newminted[dhscode]{hs}{tabsize=4, fontsize=\footnotesize, frame=lines, framesep=\fboxsep, bgcolor=dhscodebg, rulecolor=\color{gray!40}}
If I use it like so:
\begin{dhscode}
foo :: Double -> Int
\end{dhscode}
The result is:
You will notice the space between the frame and where the background ends. Is there a way to get rid of this space?
Best Answer
This affects all your
minted
environments. One work around is to set\fboxsep
to0pt
in the definition ofminted@colorbg
as follows.Here is a full minimal working example (MWE). (You should construct one in succeeding posts for speedier replies. A lot of answerers do not like to work from scratch.)