I have the following LaTeX snippet:
\begin{figure}[h]
\centering
\[\scalebox{2}{\color{blue}$some formula$}\]
\caption{a caption \label{fig:the-label}}
\end{figure}
I'm trying to create a new float environment that does most of the formating for me, such that I can simply type
\begin{bigblue}
$some formula$
\caption{a caption \label{fig:the-label}}
\end{bigblue}
I've tried the environ and the float package, but I was not able to do this. Is it possible?
Solution Thanks to Herbert, I've come up with the following solution:
\documentclass{article}
\usepackage{mathtools}
\usepackage{xcolor}
\usepackage{caption}
\usepackage{floatrow}
\DeclareNewFloatType{bigblue}{placement=!htb,fileext=bb,name=Figure}
\DeclareFloatFont{blue}{\color{blue}}
\DeclareFloatFont{Huge}{\Huge}
\floatsetup[bigblue]{style=plain,framefit=yes,font={Huge,blue},valign=c}
\usepackage{blindtext}
\begin{document}
In \ref{myformula} we see
\blindtext
\begin{bigblue}
\[ E = mc^2 \]
\caption{foo\label{myformula}}
\end{bigblue}
\blindtext
\end{document}