
일부 정의와 정리는 itemize로 끝납니다. 순수한 amsthm을 사용하면 좋아 보이지만 thmtools+amsthm을 사용하면 정리 아래에 공간이 너무 많아 보기 흉해 보입니다. 내 \declarethoremstyle에서 내가 무엇을 잘못했는지 알 수 없습니다.
누군가 저를 도와주실 수 있나요?
\documentclass{article}
\usepackage{amsthm}
%%%%%%%%%%% Uncomment to use pure amsthm %%%%%%%%%%%%
% \newtheorem{mytheorem}{Mytheorem}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%% Comment out to use pure amsthm %%%%%%%%%%
\usepackage{thmtools}
% Set all vertical spaces I know of to zero to illustrate issue.
\declaretheoremstyle[
spaceabove=0pt,
spacebelow=0pt,
headfont=\normalfont\bfseries,
notefont=\bfseries,
notebraces={(}{)},
bodyfont=\normalfont,
qed={},
headpunct={.}
]{mytheoremstyle}
\declaretheorem[style=mytheoremstyle, name=MyTheorem]{mytheorem}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\noindent
Text before theorem without indent for clarity.
\begin{mytheorem}
Here is my theorem with itemize inside it.
\begin{itemize}
\item My item A.
\item My item B.
\end{itemize}
\end{mytheorem}
\noindent
Text after the theorem without indent for clarity.
\begin{mytheorem}
Here is another theorem without any itemize inside it.
\end{mytheorem}
\noindent
Final text here without indent for clarity.
\end{document}
답변1
qed={}
내 생각에는 공간의 라인을 추가하는 것입니다 . 이를 주석 처리하면 불일치가 사라집니다.
\documentclass{article}
\usepackage{amsthm}
%%%%%%%%%%% Uncomment to use pure amsthm %%%%%%%%%%%%
% \newtheorem{mytheorem}{Mytheorem}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%% Comment out to use pure amsthm %%%%%%%%%%
\usepackage{thmtools}
% Set all vertical spaces I know of to zero to illustrate issue.
\declaretheoremstyle[
spaceabove=0pt,
spacebelow=0pt,
headfont=\normalfont\bfseries,
notefont=\bfseries,
notebraces={(}{)},
bodyfont=\normalfont,
% qed={},
headpunct={.}
]{mytheoremstyle}
%
\declaretheorem[style=mytheoremstyle, name=MyTheorem]{mytheorem}
% \declaretheorem[name=MyTheorem]{mytheorem}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\noindent
Text before theorem without indent for clarity.
\begin{mytheorem}
Here is my theorem with itemize inside it.
\begin{itemize}
\item My item A.
\item My item B.
\end{itemize}
\end{mytheorem}
\noindent
Text after the theorem without indent for clarity.
\begin{mytheorem}
Here is another theorem without any itemize inside it.
\end{mytheorem}
\noindent
Final text here without indent for clarity.
\end{document}