
Eu tenho uma configuração onde preciso, por exemplo, fazer uma legenda ler Equações em vez de Equação. Existe uma maneira de fazer isso? O código que tenho está abaixo
Saúde
\documentclass{scrreprt}
\usepackage[english]{babel}
\usepackage{aliascnt}%Counter and float caption for Equations
\newaliascnt{eqnfloat}{equation}
\newfloat{eqnfloat}{h}{eqflts}
\floatname{eqnfloat}{Equation}
\newcommand*{\ORGeqnfloat}{}
\let\ORGeqnfloat\eqnfloat
\def\eqnfloat{%
\let\ORIGINALcaption\caption
\def\caption{%
\addtocounter{equation}{-1}%
\ORIGINALcaption
}%
\ORGeqnfloat
}
\begin{document}
{eqnfloat}[!ht]
\begin{eqnarray}
A=B+C \label{eqn:1}\\
B=X+Y \label{eqn:2}
\end{eqnarray}
\caption{Some caption}
\labeL{eqn:1+2}
\end{eqnfloat}
\end{document}
Responder1
Coloque as equações que devem ser legendadas como 'Equações' com um \begingroup...\endgroup
par e use uma \floatname{eqnfloat}{Equations}
instrução antes de iniciar o ambiente flutuante. Isso mudará apenas para este grupo especial de equações.
\documentclass{scrreprt}
\usepackage{float}
\usepackage[english]{babel}
\usepackage{aliascnt}%Counter and float caption for Equations
\usepackage{caption}
\newaliascnt{eqnfloat}{equation}
\newfloat{eqnfloat}{h}{eqflts}
\floatname{eqnfloat}{Equation}
\newcommand*{\ORGeqnfloat}{}
\let\ORGeqnfloat\eqnfloat
\def\eqnfloat{%
\let\ORIGINALcaption\caption
\def\caption{%
\addtocounter{equation}{-1}%
\ORIGINALcaption
}%
\ORGeqnfloat
}
\begin{document}
\begingroup
\floatname{eqnfloat}{Equations}
\begin{eqnfloat}[!ht]
\begin{eqnarray}
A=B+C \label{eqn:1}\\
B=X+Y \label{eqn:2}
\end{eqnarray}
\caption{Some caption}
\label{eqn:1+2}
\end{eqnfloat}
\endgroup
\begin{eqnfloat}[!ht]
\begin{eqnarray}
A=B+C \label{eqn:3}\\
B=X+Y \label{eqn:4}
\end{eqnarray}
\caption{Some caption}
\label{eqn:3+4}
\end{eqnfloat}
\end{document}