I have a figure that contains two subfigures side by side:
Foobar
\begin{figure*}[h!]
\centering
\begin{subfigure}[t]{0.5\textwidth}
\centering
\includegraphics[height=5.0in]{ressourcen/market_category}
\caption{Market category cocktails}
\end{subfigure}%
~
\begin{subfigure}[t]{0.5\textwidth}
\centering
\includegraphics[height=5.0in]{ressourcen/market_category_2}
\caption{Market category lemonade}
\end{subfigure}
\caption{Market dashboard}
\end{figure*}
However the text foobar is placed under the figure instead of above it. I want to control the placement with h! but it has no effect. Any ideas how to have the text above the figure?


[H]float placement from thefloatpackage, but it may result in unwanted blank areas in your document. Another solution would be the\insertBoxCplain TeX macro (load the package with\input{insbox}). – Bernard Jun 22 '17 at 19:07