# How to use mdframed to create a round cornered box?

I am trying to wrap my text around a round cornerd box, so I chose mdframed package, for whatever reason, it doesn't do what I intend it to do.

\documentclass[a4paper,12pt]{article}
\usepackage{lipsum}
\usepackage{mdframed}

\begin{document}
\newmdenv[
\begin{center}
{
\lipsum[1]
}
\end{center}

\end{document}

• Check also tcolorbox. It is newer and imuch more powerful than mdframed. Nov 13 '20 at 7:43
• the question says --around a round cornered box-- could you please upload a handrawn sketch of the desired output Nov 14 '20 at 2:04

Welcome to TeX.SE, hope this may helps you:

In your MWE just add the option tikz will solve the issue, i.e., \usepackage[tikz]{mdframed}

Apart from the MWE, below are the suggestion to add the color into the box, if you like.

\documentclass{book}
\usepackage{xcolor}
\usepackage[tikz]{mdframed}
\usepackage{lipsum}
\mdfsetup{innertopmargin=10pt,linecolor=yellow,roundcorner=5pt,backgroundcolor=yellow!10}%
\begin{document}

\begin{mdframed}
\lipsum[1]
\end{mdframed}

\end{document}