帕斯基普和提案

帕斯基普和提案

我正在写论文,希望文本段落之间留有间距。所以我用了

\usepackage{parskip}

现在的问题是,出于某种原因,它会删除文本某些部分的空格,而这些部分应该有一些空格。例如,在新的定理或命题之前,如您在以下示例中所见:

\documentclass[12pt, a4paper]{book}

\usepackage{parskip}    % paragraph spacing: without this command there is spacing between the paragraph and the proposition

\usepackage{amsthm}
\theoremstyle{plain}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{proposition}{Proposition}[section]

\begin{document}
\chapter{Introduction}
This is some text

This is other text in another paragraph

\begin{proposition}
This is the proposition
\end{proposition}

\end{document}

我该如何预防?

编辑: parskip 包还会在文本的某些部分毫无明显原因地添加随机空格,请参见标题,即使代码并未暗示存在这些空格:

\section{Simulation and sensitivity analysis}
Some text some text Some text some text Some text some text Some text some 
text Some text some text
Some text some text Some text some text Some text some text Some text some 
text Some text some text
Some text some text Some text some text Some text some text Some text some 
text Some text some text

Some text some text Some text some text Some text some text Some text some 
text Some text some text
Some text some text Some text some text Some text some text Some text some 
text Some text some text
Some text some text Some text some text Some text some text Some text some 
text Some text some text

在此处输入图片描述

答案1

作为这个答案说:使用\begin{figure}[H],就像任何大框一样,可能会产生带有大量空白的不良分页符。尽量避免[H]使用 ,而改用[!htp]


这个问题在评论中得到了回答,由于没有人写答案,所以我把这个答案变成了社区维基答案。这是为了从未回答列表中删除此问题。原始答案来自@egreg。鼓励 OP 选择此答案以删除问题状态为未回答。如果在评论中回答的人决定做出回答,OP 可以并且应该选择该答案。

相关内容