![如何才能使两个定理之间保持适当的距离?](https://linux22.com/image/477804/%E5%A6%82%E4%BD%95%E6%89%8D%E8%83%BD%E4%BD%BF%E4%B8%A4%E4%B8%AA%E5%AE%9A%E7%90%86%E4%B9%8B%E9%97%B4%E4%BF%9D%E6%8C%81%E9%80%82%E5%BD%93%E7%9A%84%E8%B7%9D%E7%A6%BB%EF%BC%9F.png)
我有以下 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}