如何删除 \hyphenpenalty & \预容差对节/小节标题的影响

发布于 2024-08-30 01:16:00 字数 381 浏览 4 评论 0原文

在我的乳胶文档中,我设置了 \hyphenpenalty=15000\pretolerance=10000 来删除单词连字符并使文本边界均匀。

但我无法禁用节/小节标题的此效果。由于单词之间的空格过大,所有标题看起来都很糟糕。


image


是否有任何解决方案可以禁用 \hyphenpenalty=15000\pretolerance =10000 标题效果?

谢谢你!

In my latex document i've set \hyphenpenalty=15000 and \pretolerance=10000 to remove word hyphenation and make text bounds even.

But I can't disable this effect for section/subsection headers. All headers looks badly due to big spaces between words.


image


Are there any solution to disable \hyphenpenalty=15000 and \pretolerance=10000 effect for headers?

Thank you!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

望喜 2024-09-06 01:16:00

也许 titlesec 包可以帮助您。它允许您定义在每个切片命令处调用的命令。即使它被认为主要是为了改变外观,它也可能通过添加一些行来改变标题之前的值并改回标题之后的值来完成这项工作。

Maybe the titlesec package helps you. It let's you define commands to invoke at each sectioning command. Even if it is thought mainly to change the look, it might do the job by adding some lines that change the valuese before the heading and change back the values after the heading.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文