Round corner is not working in mdframed environment although I followed the example shown in the mdframed package. Below is my code
\documentclass[10pt]{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage[usenames]{color}
\usepackage[usenames]{xcolor}
\usepackage{mdframed}
\usepackage{lipsum}
\begin{document}
\mdfsetup{%
middlelinecolor=red,
middlelinewidth=2pt,
backgroundcolor=red!20,
roundcorner=20pt}
\begin{mdframed}
\lipsum[3]
\end{mdframed}
\end{document}

framemethod=pstricksdoes not seem to work with XeLaTeX, butframemethod=TikZworks great. – Rafal Nov 26 '14 at 11:04\begin{mdframed}[backgroundcolor=red,roundcorner=3pt]{ ...content... }\end{mdframed}. It sets the frame parameters only for the content and not globally. Anyways, good solution, thanks! – peterh Mar 25 '21 at 23:58