带编号方程的 Thmbox

带编号方程的 Thmbox

我想使用 thmbox 包,但当环境包含带有标签的方程式(对齐等)时,标签会显示在主体之外,请参阅示例在此处输入图片描述

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

有人能帮助我将标签移动到正确的位置吗?

答案1

就像如何使用 amsart 在 itemize 中标记方程式只需添加

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

相关内容