1

I would like to get the roundered corners on only leftside instead of top, bottom, right, bottom. How to achieve this.

\documentclass{book}
\usepackage{xcolor,lipsum}
\usepackage{mdframed}
\mdfsetup{
roundcorner=20pt
}

\begin{document}
\chapter{Chapter Title Here}
\begin{mdframed}
\lipsum[1]
\end{mdframed}
\end{document}
4

I would use tcolorbox instead of mdframed.

\documentclass{book}
\usepackage{xcolor,lipsum}
\usepackage{tcolorbox}
\tcbset{arc=20pt,
        sharp corners=east}

\begin{document}
\chapter{Chapter Title Here}
\begin{tcolorbox}
\lipsum[1]
\end{tcolorbox}
\end{document}

enter image description here

3

I would use tcolorbox too, but this would illustrate mdframed way:

\documentclass{book}
\usepackage{xcolor,lipsum}
\usepackage[framemethod=TikZ]{mdframed}
\mdfsetup{
hidealllines=true,
singleextra={\draw[line width=1pt,rounded corners=20pt](O-|P) -| (O|-P) -- (P);
\draw[line width=1pt] (P) -- (O-|P);
},
}

\begin{document}
\chapter{Chapter Title Here}
\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.