Consider the following code for the creation of two new floats in an article:
\documentclass{article}
\usepackage{graphicx,float}
% The First Float Type
\floatstyle{boxed}
\newfloat{BoxImage}{htpb}{csv}[section]
\floatname{BoxImage}{Boxed Image}
% The Second Float Type
\floatstyle{ruled}
\newfloat{FloatEqn}{htpb}{csv}[section]
\floatname{FloatEqn}{Float Equation}
\begin{document}
\listof{BoxImage}{List of Boxed Images}
\listof{FloatEqn}{List of Floating Equations}
\section{New Float Types}
\begin{BoxImage}
\includegraphics{example-image}
\caption{This is an image with the new float.}
\end{BoxImage}
\begin{FloatEqn}
\[ E = mc^2 \]
\caption{Mass-Energy Equivalence.}
\end{FloatEqn}
\end{document}
the problem is with the list of objects it appears like this:
The list of the second object is behaving in an odd way, and I don't know why. So, if you can help I would be grateful.
Thanks in advance.
image
toexample-image
then it shows he probelm