編號方程式的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添加就足夠了

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

相關內容