如何才能使两个定理之间保持适当的距离?

如何才能使两个定理之间保持适当的距离?

我有以下 LaTeX 脚本:

\documentclass[11pt,b5paper,twoside]{book}
\usepackage[parfill]{parskip}
\usepackage[thmmarks]{ntheorem}
\usepackage[T1]{fontenc}
\usepackage{geometry}
\usepackage{graphicx}
\usepackage{psfrag}
\usepackage{titletoc}
\usepackage{hyperref}
\usepackage{titlesec}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{mathrsfs}
\usepackage{bm}
\usepackage{lipsum}

\titleformat{\chapter}[display]{\flushleft\LARGE\centering}%
{\flushleft\centering\huge\textbf{\textsc{\chaptername~\thechapter}}}{0.2em}{\slshape\bfseries}
\titlelabel{\S~\thesection\quad}

\titlespacing*{\chapter}{0pt}{-1\baselineskip}%
{1\baselineskip}
\titlespacing*{\section}{0pt}{1\baselineskip}%
{0\baselineskip}
\titlespacing*{\subsection}{0pt}{0.5\baselineskip}%
{0\baselineskip}

{
\theoremstyle{change}
\theoremheaderfont{\bfseries}
\theorembodyfont{\normalfont}
\newtheorem{defi}{Definition.}[chapter]
\newtheorem{exam}[defi]{Example.}
\newtheorem{rem}[defi]{Remark.}
}

{
\theoremstyle{change}
\theoremheaderfont{\bfseries}
\theorembodyfont{\slshape}
\newtheorem{thm}[defi]{Theorem.}
\newtheorem{prop}[defi]{Proposition.}
\newtheorem{lem}[defi]{Lemma.}
\newtheorem{coro}[defi]{Corollary.}
}

{
\theoremstyle{nonumberplain}
\theoremheaderfont{\slshape}
\theorembodyfont{\normalfont}
\theoremsymbol{\mbox{$\Box$}}
\newtheorem{proof}{\hspace{1em}Proof.}
}

\author{My name}
\date{\today}

\title{\Huge\textbf{\centerline{Math}}\newline\newline\huge\textit{\rightline{\ }}}
\begin{document}
\maketitle
\tableofcontents
\chapter{This is a chapter}
\section{This is a section}
\begin{thm}
This is the first theorem.
\end{thm}
This is a paragraph
\begin{thm}
This is the second theorem.
\end{thm}
\begin{thm}
This is the third theorem.
\end{thm}
\end{document}

我的代码输出如下: 在此处输入图片描述

我的问题是:为什么定理 1.2 和定理 1.3 之间没有正确的空间?

答案1

尝试\theorempreskip{...}

\documentclass[11pt,b5paper,twoside]{book}
\usepackage[T1]{fontenc}
\usepackage{geometry}
\usepackage[parfill]{parskip}
\usepackage[thmmarks]{ntheorem}
\theorempreskip{\bigskipamount}
\usepackage{graphicx}
\usepackage{psfrag}
\usepackage{titletoc}
\usepackage{titlesec}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{mathrsfs}
\usepackage{bm}
\usepackage{lipsum}
\usepackage{hyperref}

\titleformat{\chapter}[display]{\flushleft\LARGE\centering}%
{\flushleft\centering\huge\textbf{\textsc{\chaptername~\thechapter}}}{0.2em}{\slshape\bfseries}
\titlelabel{\S~\thesection\quad}

\titlespacing*{\chapter}{0pt}{-1\baselineskip}%
{1\baselineskip}
\titlespacing*{\section}{0pt}{1\baselineskip}%
{0\baselineskip}
\titlespacing*{\subsection}{0pt}{0.5\baselineskip}%
{0\baselineskip}

{
\theoremstyle{change}
\theoremheaderfont{\bfseries}
\theorembodyfont{\normalfont}
\newtheorem{defi}{Definition.}[chapter]
\newtheorem{exam}[defi]{Example.}
\newtheorem{rem}[defi]{Remark.}
}

{
\theoremstyle{change}
\theoremheaderfont{\bfseries}
\theorembodyfont{\slshape}
\newtheorem{thm}[defi]{Theorem.}
\newtheorem{prop}[defi]{Proposition.}
\newtheorem{lem}[defi]{Lemma.}
\newtheorem{coro}[defi]{Corollary.}
}

{
\theoremstyle{nonumberplain}
\theoremheaderfont{\slshape}
\theorembodyfont{\normalfont}
\theoremsymbol{\mbox{$\Box$}}
\newtheorem{proof}{\hspace{1em}Proof.}
}

\author{My name}
\date{\today}

\title{\Huge\textbf{\centerline{Math}}\newline\newline\huge\textit{\rightline{\ }}}


\begin{document}
\maketitle
\tableofcontents
\chapter{This is a chapter}
\section{This is a section}
\begin{thm}
This is the first theorem.
\end{thm}
This is a paragraph
\begin{thm}
This is the second theorem.
\end{thm}
\begin{thm}
This is the third theorem.
\end{thm}
\end{document}

在此处输入图片描述

相关内容