フロートのリストが折りたたまれるのはなぜですか?

フロートのリストが折りたたまれるのはなぜですか?

2 種類の新しいフロートを定義しましたが、それぞれを個別にリストしようとすると、同じリストにまとめられてしまいます。次のようになりますMWE

\documentclass{book}

\usepackage{float}
\usepackage{newfloat}

\DeclareFloatingEnvironment[
    fileext=loa,
    listname=List of A,
    name=FloatA,
    placement=tbhp,
    within=chapter,
]{floata}

\DeclareFloatingEnvironment[
    fileext=loa,
    listname=List of B,
    name=FloatB,
    placement=tbhp,
    within=chapter,
]{floatb}

\begin{document}

\listoffloatas
\listoffloatbs

\newpage

\begin{floata}
\caption[float a]{float a example}
\end{floata}

\begin{floatb}
\caption[float b]{float b example}
\end{floatb}

\end{document}

答え1

両方のリスト定義のファイル拡張子は同じです。つまり、両方の float 型がリストA( ) に追加されます。たとえば、loa2 番目のリスト拡張子を に変更します。lob

\documentclass{book}

\usepackage{float}
\usepackage{newfloat}

\DeclareFloatingEnvironment[
    fileext=loa,
    listname=List of A,
    name=FloatA,
    placement=tbhp,
    within=chapter,
]{floata}

\DeclareFloatingEnvironment[
    fileext=lob,
    listname=List of B,
    name=FloatB,
    placement=tbhp,
    within=chapter,
]{floatb}

\begin{document}

\listoffloatas
\listoffloatbs

\newpage

\begin{floata}
\caption[float a]{float a example}
\end{floata}

\begin{floatb}
\caption[float b]{float b example}
\end{floatb}

\end{document}

関連情報