0

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[
roundcorner=5pt, frametitle={address} 
]{address}
\begin{address}
\begin{center}
{
\lipsum[1]
}
\end{center}
\end{address}

\end{document}
3
0

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}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.