I like my mdframed
frames to go into the margin, so that the text is not effected, by using a negative leftmargin
and rightmargin
. However this results in an
Overfull \hbox (0.43031pt too wide) in paragraph at lines 16--16
I don't want to eliminate all overfull box warnings as I still want to know if there are issues with the text.
So, how do I eliminate this warning just for the frame, but not for the text?
References:
Code:
\documentclass{article}
\usepackage{showframe}
\usepackage{lipsum}
\usepackage{mdframed}
\mdfdefinestyle{MyStyle}{%
leftmargin=-5pt,
rightmargin=-5pt,
backgroundcolor=yellow!25,
}%
\begin{document}
\begin{mdframed}[style=MyStyle]
\noindent\lipsum[1]
\end{mdframed}
\end{document}
Overfull \hbox
message is due to a bad paragraph. Try with\usepackage[latin]{babel}
and it will disappear.draft
as a class option, you will see that the line ending onmagna.
is the culprit.