我的代码包含以下最小示例:
\documentclass[11pt,a4paper,twoside]{book}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{amsthm}
\usepackage{mdframed}
\newmdtheoremenv[linewidth=1.1pt]{Theorem}{Theorem}
\newtheorem{Remarks}[Theorem]{Remarks}
\begin{document}
\begin{Theorem} (Name)\newline
Text: Blah Blah
\end{Theorem}
\begin{proof} Proof the statement....
\begin{itemize}
\item Prove of part A
\item Prove of part B
\end{itemize}
\end{proof}
\begin{Remarks}
\begin{itemize}
\item Remark A
\item Remark B
\end{itemize}
\end{Remarks}
\end{document}
运行良好,并且
我现在的目标是将我的“评论”风格改为如下:
为此,我在互联网上找到了以下部分代码:
\usepackage{thmtools}
\declaretheorem[
style=remark,
thmbox={style=M,bodystyle=\normalfont,headstyle=\itshape Remark \upshape\theremark},
name=Remark,
within=section,
]{remark}
但是当我将它添加到我的上层代码中时,我在 \begin{proof} 行收到错误,并显示消息“嵌套太深”.....哪里出了问题?