1

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}

jxhyc
  • 1,121

1 Answers1

1

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

MadyYuvi
  • 13,693