I noticed that when I use mdframed
in a memoir
document I'm not able to change the margin lengths of any frame defined from mdframed
. This appears to happen regardless of the place where I try to set their lengths.
Here is a MWE showing the problem.
\documentclass{memoir}
\usepackage[framemethod=tikz]{mdframed}
\definecolor{creamy}{HTML}{e2bf40}
\colorlet{callout-bg}{creamy!50}
\newmdenv[backgroundcolor=callout-bg]{newframed}
\begin{document}
\begin{newframed}[leftmargin=-10pt, rightmargin=10pt]
The leftmargin is \the\mdflength{leftmargin}. The rightmargin is \the\mdflength{rightmargin}.
\end{newframed}
\end{document}
Is there a way to circumvent this unwanted interaction?
tcolorbox
allow for this usecase?