Definí dos tipos de nuevos flotantes, pero cuando intento enumerarlos por separado, se colapsan en la misma lista. Aquí hay un 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}
Respuesta1
Las extensiones de archivo de ambas definiciones de lista son las mismas, esto significa que ambos tipos flotantes se colocarán en la A
lista ( loa
). Cambie la segunda extensión de la lista a, digamos lob
, por ejemplo.
\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}