Единичное изменение заголовка

Единичное изменение заголовка

У меня есть настройка, где мне нужно, для одного экземпляра, сделать заголовок с надписью Equations вместо Equation. Есть ли способ сделать это? Код, который у меня есть, ниже

Ваше здоровье

    \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}

решение1

Заключите уравнения, которые должны быть озаглавлены как «Уравнения», в \begingroup...\endgroupпару и используйте \floatname{eqnfloat}{Equations}оператор перед запуском плавающей среды. Он изменится только для этой специальной группы уравнений.

\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}

введите описание изображения здесь

Связанный контент