I like to enclose two subfigures, which I use to display align environments side by side in a framebox. However, this leads to ugly padding at the top of the box.
A earlier post (Where does the space before \align* come from?) emphasizes, that it is never a good idea to have a par before a math environment.
I am curious whether this is the problem here and how to avoid it.
Please note, that I need the align environment indeed and that the problem seems not to depend of its content.
\documentclass[fontsize=11pt,paper=a4,headsepline,footsepline,DIV=13,BCOR=12mm,bibliography=toc,chapterprefix=on]{scrbook}
\usepackage[T1]{fontenc}
\usepackage[ngerman,american]{babel}
\usepackage[utf8]{inputenc}
% serveral packages
\usepackage{lmodern}
\usepackage[final]{microtype}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage{lipsum} %%% can be delted in the end !!!!!!
% figures and captions
\usepackage{caption}
\captionsetup{format=plain, width=.9\textwidth}
\usepackage{subcaption}
\begin{document}
\lipsum[1]
\lipsum[2]
\begin{figure}[h]%
\framebox[\textwidth]{\begin{subfigure}[t]{.5\textwidth}
\begin{align*}%
E = m \cdot c^2
\end{align*}
\end{subfigure}%
\begin{subfigure}[t]{.5\textwidth}%
\begin{align*}%
E = m \cdot c^2
\end{align*}
\end{subfigure}}
\caption{Some caption.}
\end{figure}
\lipsum[1]
\lipsum[3]
\end{document}
subfigure
?