![如果处罚措施同时发生会怎样?](https://linux22.com/image/460870/%E5%A6%82%E6%9E%9C%E5%A4%84%E7%BD%9A%E6%8E%AA%E6%96%BD%E5%90%8C%E6%97%B6%E5%8F%91%E7%94%9F%E4%BC%9A%E6%80%8E%E6%A0%B7%EF%BC%9F.png)
“我认为年龄和更大的融合是造成时间流逝速度的原因。”(山姆·梅尔维尔)
如果处罚措施同时发生会怎样?
假设我们有\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.)