mdframed icon indicating copy to clipboard operation
mdframed copied to clipboard

mdframed+align/equation vertical space issue

Open axlvee opened this issue 13 years ago • 1 comments

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}

axlvee avatar Jul 17 '12 06:07 axlvee

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

marcodaniel avatar Jul 18 '12 18:07 marcodaniel