如果处罚措施同时发生会怎样?

如果处罚措施同时发生会怎样?

“我认为年龄和更大的融合是造成时间流逝速度的原因。”(山姆·梅尔维尔)

如果处罚措施同时发生会怎样?

假设我们有\penalty

答案1

两者不合并,因此将取两者中较小的一个惩罚,

相邻惩罚的情况是 TeXBook 中的一个问题:

\dangerexercise What happens if you say |\nobreak\break| or
|\break\nobreak|?
\answer You get a forced break as if\/ |\nobreak| were not present, because
|\break| cannot be cancelled by another penalty. In general if you
have two penalties in a row, their combined effect is the same as a single
penalty whose value is the minimum of the two original values, unless
both of those values force breaks. \ (You get two breaks from
|\break\break|; the second one creates an empty line.)

相关内容