Thmbox com equação numerada

Thmbox com equação numerada

Eu gostaria de usar o pacote thmbox mas quando o ambiente contém uma equação (align etc.) com uma tag então a tag é exibida fora do corpo, veja o exemploinsira a descrição da imagem aqui

\documentclass[12pt,a4paper,reqno]{amsart}
\usepackage[czech]{babel}
\usepackage{thmtools}

\declaretheorem[name=TheoremL,thmbox={L,bodystyle={\vspace{1mm}\slshape\noindent}}]{thml}
\declaretheorem[name=TheoremM,thmbox={M,bodystyle={\vspace{1mm}\slshape\noindent}}]{thmm}
\declaretheorem[name=TheoremS,thmbox={S,bodystyle={\vspace{1mm}\slshape\noindent}}]{thms}
\declaretheorem[name=Theorem]{thm}

\usepackage{fancyhdr}
{\pagestyle{fancy}
\fancyhf{}
\fancyhead[C]{head}}

\begin{document}
\thispagestyle{fancy} 

\begin{thm}
 Theorem with an equation
   \begin{equation}
    formula
   \end{equation}
 and align
   \begin{align}
    formula\\
    formula
   \end{align}
\end{thm}

 \begin{thml}
 Theorem with an equation
   \begin{equation}
    formula
   \end{equation}
 and align
   \begin{align}
    formula\\
    formula
   \end{align}
\end{thml}

 \begin{thmm}
 Theorem with an equation
   \begin{equation}
    formula
   \end{equation}
 and align
   \begin{align}
    formula\\
    formula
   \end{align}
\end{thmm}

 \begin{thms}
 Theorem with an equation
   \begin{equation}
    formula
   \end{equation}
 and align
   \begin{align}
    formula\\
    formula
   \end{align}
\end{thms}

\end{document}

Alguém pode me ajudar como mover a tag para a posição correta?

Responder1

Como emcomo marcar uma equação dentro de um itemize - usando amsartbasta adicionar

\def\fullwidthdisplay{}%\displayindent\z@ \displaywidth\columnwidth}

informação relacionada