mdframed
mdframed copied to clipboard
mdframed+align/equation vertical space issue
Hi Marco, thanks for this package, it's really great!
I encountered an issue using mdframed to put a box around an align- or equation environment: If you use align you get too much vertical space between the expression and the top line of the box, and if you use equation the vertical space between the bottom-line and the math-expression depends on whether you use the starred or unstarred version of the environment.
\documentclass{scrartcl}
\usepackage{mdframed}
\usepackage{amsmath}
\begin{document}
\begin{mdframed}
\begin{align}
a+b = c
\end{align}
\end{mdframed}
\begin{mdframed}
\begin{equation}
a+b = c
\end{equation}
\end{mdframed}
\begin{mdframed}
\begin{equation*}
a+b = c
\end{equation*}
\end{mdframed}
\end{document}
Hi,
I think that your reported problem is similar to the following question http://tex.stackexchange.com/questions/44131/excess-vertical-space-in-mdframed-ending-with-display-math-environment
regards Marco