In the code below, how can I apply a \baselineskip=.8cm
to the theorem
environment? I want to do this somehow in the \mdfdefinestyle
or \mdtheorem
commands, not in the body every times by hand. Also I don't want to use commands like \linespread
or \baselinestretch
.
\documentclass{book}
\usepackage{lipsum}
\usepackage[framemethod=TikZ]{mdframed}
\mdfdefinestyle{mystyle}{%
frametitlerulewidth=0pt,
frametitlerule=true,
frametitlefont=\color{black},
frametitlebackgroundcolor=yellow,
}
\mdtheorem[style=mystyle]{theorem}[chapter]{Theorem}
\begin{document}
\lipsum[1]
\begin{theorem}[Pythagorean theorem]
\lipsum[2]
\end{theorem}
\end{document}