如何防止LaTeX在段落之间填充空格,以便下一节在下一页的顶部开始? [英] How do I prevent LaTeX from padding spaces between paragraphs so that next section begins at top of next page?

查看:699
本文介绍了如何防止LaTeX在段落之间填充空格,以便下一节在下一页的顶部开始?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两栏的论文,篇幅限制非常严格.

I have a two-column paper where space restrictions are very tight.

我刚刚查看了我的手稿的最新版本,发现上半部分包含一个图形(如预期的那样),但是下半部分的段落之间有很多垂直空间(足以挤压10行),并且LaTeX可能添加了它,以便在下一页的开头将在页面顶部开始一个新的编号部分.

I just looked at my last version of the manuscript and saw that the upper half contains a figure (as expected), but in the lower half there is a lot of vertical space between paragraphs (enough to squeeze 10 more lines), and that LaTeX probably added it so that in the beginning of the next page a new numbered section will begin at the top of the page.

我知道有一种方法可以对此进行调整,因此LaTeX不会这么努力,但是我不确定如何.有什么帮助吗?谢谢!

I know there's a way to adjust this so LaTeX doesn't try so hard, but I'm not sure how. any help? Thanks!

推荐答案

控制段落间距的参数称为\parskip(请参见

The parameter that controls inter-paragraph spacing is called \parskip(See Paragraph Spacing ). You set it (with "rubber" values) using something like:

 \setlength{\parskip}{1cm plus4mm minus3mm}

\parskip的默认值取决于类. "+"和-"部分告诉TeX它可以调整多少值来改善布局(即,使间距具有弹性,因此用橡胶"表示).减少(或消除)橡胶的加"部分可能会有帮助.

The defualt value of \parskip is class dependent. The "plus" and "minus" parts tell TeX how much it can adjust the value to improve the layout (that is they make the spacing elastic, thus the "rubber" designation). Reducing (or eliminating) the "plus" part of the rubber might help.

请注意,如果过多限制TeX,则可能导致其他布局瑕疵.

Watch out though, you can cause other layout artifacts if you constrain TeX too much.

要考虑的其他事项:

  • The widow and club penalties probably apply section headings, and may be affecting TeX's layout choices (see https://stackoverflow.com/questions/512967/how-can-one-keep-a-section-from-being-at-the-end-of-a-page-in-latex for a discussion).
  • You may also want to consider messing with \baselineskip which controls the allowed spacing between lines of text and can also have rubber values.
  • This is a common problem, and there are probably some fairly sophisticated treatments already prepared on CTAN.

这篇关于如何防止LaTeX在段落之间填充空格,以便下一节在下一页的顶部开始?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆