0 票
108 次浏览

Some more weirdness... We are trying to get \q2's to stay with the preceding \q1's (see https://support.bible/13086/get-q2-to-stay-with-the-previous-q1), and are having good luck with this command in our test projects:

\sethook{before}{q2}{\nobreak}

But in our real project, the command is not getting applied. I thought maybe the ptxprint-mods.tex file wasn't getting loaded, but we have \qs (Selah) processing in that file as well, and when that is commented out, the Selah processing goes away in the output. I've been poking through the .tex file and the XeTeX Log, and do see:

Reading optional file "../../../shared/ptxprint/PSA_1_a_72/ptxprint-mods.tex"
 (../../../shared/ptxprint/PSA_1_a_72/ptxprint-mods.tex) 

which confirms that.

So the .tex file is getting processed, but we still have dangling \q2's at the top of pages.

What else might be the problem?

PTXprint 中 由 (1.4k 分) 发布 | 108 次浏览

1 个回答

0 票

我的第一个猜测是,文件中后面可能还有另一个 \sethook{before}{q2}{}。
与某些添加额外命令的情况不同,\sethook、\setbookhook、setbetweenhook 等命令会替换同一钩子点之前定义的任何内容。
这有点棘手,但你可以通过包含一个肯定会引发进程崩溃的内容来检查钩子是否被触发(或 .tex 文件是否被读取),例如 \errormessage{Q2 HOOK}
这样你就能在崩溃报告中看到它(以及之前发生了什么)。

如果你设置的钩子确实被激活了,但你仍然看到在那里发生了分页,那么可能是某些内容添加了额外的间距,从而允许了分页(这需要仔细检查 .tex 文件中的其他内容,或进行样式检查)。
 

机器翻译自 English
由 (1.1k 分) 发布

相关问题

0 票
2 个回答 152 次浏览
我刚开始使用 PTXprint 我确实想使用 Paratext,但由于我使用的是 Mac,我正在等待 Paratext 10 发布 在此期间,我已经准备好了一份《诗篇》的译本(圣经其余部分则是较早的版本),并且我已经将诗篇第 ... PTXprint 中,我该如何跳过安装 Berean Sample Bible 或从在线仓库下载捆绑包这一步?拜托了,谢谢
vikslen 105 发布 提问于 二月 5
0 票
1 个回答 270 次浏览
一些同事在生成 PDF 文件时遇到了问题。我使用他们的项目副本复现了该问题,并且已经将该字体安装为“所有用户”可用。我们该如何继续排查此问题? 错误信息: 字体文件位于 c:\windows\fonts
[Expert]
sewhite
3.3k 发布
提问于 一月 28, 2025
PTXprint 中
0 票
2 个回答 285 次浏览
我们正在尝试使用 PTXprint 来出版一个圣经模块。在 PTXprint 的早期版本中,脚注可以正常显示。现在升级到 2.5.1 后,尽管我认为我已经尝试了所有复选框的组合,但脚注就是不再显示。我没有更改模块 sfm 文件中的任何内容,与之前成功的尝试相比。该文件中有这一行 \inc v s f x
anon399461 123 发布 提问于 七月 12, 2024
0 票
2 个回答 441 次浏览
我是 PTXprint 的新手,也许一开始尝试的项目太难了 我想创建一个 Ajami(阿拉伯文风格)文字项目,但我一直收到关于找不到字体的错误 我选择了 Scheherazade 字体,它应该用于整个文档 以下是我收到的错误信息 ... ,我哪里做错了? 或者我应该把我的存档文件通过电子邮件发送到 [Email Removed] 以获取进一步的帮助?
anon420410 102 发布 提问于 九月 3, 2022
PTXprint 中
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
They devoted themselves to the apostles’ teaching and to fellowship, to the breaking of bread and to prayer.
Acts 2:42
3,062 个问题
6,022 个回答
5,693 条评论
2,036 位用户