尽管 parskip=false,LaTeX 仍会拉伸垂直段落跳过

尽管 parskip=false,LaTeX 仍会拉伸垂直段落跳过

parskip=false尽管已设置(实际上默认情况下scrbook),我怎样才能阻止 LaTeX 在段落之间创建垂直空间来填充页面。

通常这不是问题,但如果下一页开始新的部分,而前一页没有足够的空间,那么就会变得非常丑陋。然后第一页上有很多空白,尽管 parskip 无法填满整个页面,但还是被最大程度地拉伸了。

\setlength{\parskip}{0pt plus 0pt minus 0pt}有没有比该页面更优雅的解决方案?

我不想设置这个,因为在没有太多空白的页面上,稍微拉伸一下可能会看起来更好。

以《福尔摩斯》的前几段为例:

\documentclass{scrbook}

\usepackage{fontspec}

\begin{document}
\chapter{Chapter}
To Sherlock Holmes she is always the woman.
I have seldom heard him mention her under any other name.
In his eyes she eclipses and predominates the whole of her sex.
It was not that he felt any emotion akin to love for Irene Adler.
All emotions, and that one particularly, were abhorrent to his cold, precise but admirably balanced mind.
He was, I take it, the most perfect reasoning and observing machine that the world has seen, but as a lover he would have placed himself in a false position.
He never spoke of the softer passions, save with a gibe and a sneer.
They were admirable things for the observer—excellent for drawing the veil from men’s motives and actions.
But for the trained reasoner to admit such intrusions into his own delicate and finely adjusted temperament was to introduce a distracting factor which might throw a doubt upon all his mental results.

Grit in a sensitive instrument, or a crack in one of his own high-power lenses, would not be more disturbing than a strong emotion in a nature such as his.
And yet there was but one woman to him, and that woman was the late Irene Adler, of dubious and questionable memory.
I had seen little of Holmes lately.
My marriage had drifted us away from each other.
My own complete happiness, and the home-centred interests which rise up around the man who first finds himself master of his own establishment, were sufficient to absorb all my attention, while Holmes, who loathed every form of society with his whole Bohemian soul, remained in our lodgings in Baker Street, buried among his old books, and alternating from week to week between cocaine and ambition, the drowsiness of the drug, and the fierce energy of his own keen nature.

He was still, as ever, deeply attracted by the study of crime, and occupied his immense faculties and extraordinary powers of observation in following out those clues, and clearing up those mysteries which had been abandoned as hopeless by the official police.
From time to time I heard some vague account of his doings: of his summons to Odessa in the case of the Trepoff murder, of his clearing up of the singular tragedy of the Atkinson brothers at Trincomalee, and finally of the mission which he had accomplished so delicately and successfully for the reigning family of Holland.
Beyond these signs of his activity, however, which I merely shared with all the readers of the daily press, I knew little of my former friend and companion.

One night—it was on the twentieth of March, 1888—I was returning from a journey to a patient (for I had now returned to civil practice), when my way led me through Baker Street.
\section{test}
As I passed the well-remembered door, which must always be associated in my mind with my wooing, and with the dark incidents of the Study in Scarlet, I was seized with a keen desire to see Holmes again, and to know how he was employing his extraordinary powers.
\end{document}

编辑

\raggedbottom也许一个解决方案是在章节的第一页自动调用。我如何\flushbottom在下一页再次自动调用?

答案1

parskip=never消除了 中的拉伸成分\parskip

答案2

你真倒霉。一本书应该有等高页面,所以这\flushbottom是有效的。但是,之前的文字\section太短,无法填满页面,因此会发送未满的页面,因为没有考虑将章节标题放在底部的替代方案,因为章节标题后只有一行文字的空间。

\section您可以通过修改以下文本的开头来验证这一点

\section{test}
As \pagebreak I passed the well-remembered door, [...]

如果您编译它,您会看到章节标题与俱乐部行一起出现在第一页。

有什么替代方案?如果你\looseness=1在第二段之前添加,例如

[...] which might throw a doubt upon all his mental results.

\looseness=1
Grit in a sensitive instrument, or a crack in one of his own high-power lenses, [...]

您增加了一行,但文本仍然太短。其他段落不会从此设置中受益,因为它们的最后一行太短。

\enlargethispage{-3\baselineskip}现在在后面添加\looseness=1,页面排版时段落之间将没有空格。这样页面将比正常情况短三行,但如果前一页是空白或较短,这个技巧可能几乎不会被注意到。

当文档定稿并且您已确定了章节标题的形状以及最重要的文本块的尺寸时,请保留这些技巧。更改这些设置可能会导致您的调整过时,甚至可能对分页造成不利影响。

相关内容