删除 \end{enumerate} \end{theorem} 后的空格

删除 \end{enumerate} \end{theorem} 后的空格

我在这里查看了关于删除列表前的空格的帖子,使用枚举项包,我想知道是否有办法摆脱列表后的空格。

这是我的文件的最小版本:

\documentclass[twoside, 12pt]{book}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{enumerate}
\usepackage[shortlabels]{enumitem}
\setlist{nosep}

\begin{document}
Here is a list, and some text before the list.
\begin{enumerate}
    \item (Property 1) 
    \item (Property 2) 
    \item (Property 3) 
\end{enumerate}
Here is some text after the list.
\end{document}

编辑:我意识到最小版本运行完美,即列表前后没有空格。经过更仔细的观察,似乎我遇到问题的列表嵌套在其他环境(定理)中。以下是更新的 MWE:

\documentclass[twoside, 12pt]{book}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{enumerate}
\usepackage[shortlabels]{enumitem}
\setlist{nosep}

\usepackage{amsmath}
\usepackage{amsfonts,amssymb,bm}
\usepackage[ntheorem]{mathtools,empheq}
\usepackage[amsmath,amsthm,thref,hyperref,thmmarks]{ntheorem}

\newtheorem{theorem}{Theorem}[section]
\theoremheaderfont{\sc}\theorembodyfont{\upshape}
\theoremstyle{nonumberplain}
\theoremseparator{}
\theoremsymbol{\rule{1ex}{1ex}}
\newtheorem{Proof}{Proof}

\begin{document}
This is a pretty nice theorem.
\begin{theorem}
Here is a list, and some text before the list.
\begin{enumerate}
    \item (Property 1) 
    \item (Property 2) 
    \item (Property 3) 
\end{enumerate}
\end{theorem}
Here are some remarks after the theorem.
\end{document}

相关内容