up
float
New float environments can be configured with the \ConfigureEnv
instruction. For instance,
\newfloat{myfloat}{htb}{}[section]
\ConfigureEnv{myfloat}
{BEFORE MYFLOAT} {AFTER MYFLOAT}
{}{}
\begin{myfloat}
body
\caption{title}
\end{myfloat}
up