0
64 次浏览

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 分) 发布 | 64 次浏览

1 个回答

0

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

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

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

相关问题

0
2 个回答 30 次浏览
我刚开始使用 PTXprint 我确实想使用 Paratext,但由于我使用的是 Mac,我正在等待 Paratext 10 发布 在此期间,我已经准备好了一份《诗篇》的译本(圣经其余部分则是较早的版本),并且我已经将诗篇第 ... PTXprint 中,我该如何跳过安装 Berean Sample Bible 或从在线仓库下载捆绑包这一步?拜托了,谢谢
vikslen 105 发布 提问于 二月 5
0
1 个回答 72 次浏览
一些同事在生成 PDF 文件时遇到了问题。我使用他们的项目副本复现了该问题,并且已经将该字体安装为“所有用户”可用。我们该如何继续排查此问题? 错误信息: 字体文件位于 c:\windows\fonts
[Expert]
sewhite
3.3k 发布
提问于 一月 28, 2025
PTXprint
0
2 个回答 176 次浏览
我们正在尝试使用 PTXprint 来出版一个圣经模块。在 PTXprint 的早期版本中,脚注可以正常显示。现在升级到 2.5.1 后,尽管我认为我已经尝试了所有复选框的组合,但脚注就是不再显示。我没有更改模块 sfm 文件中的任何内容,与之前成功的尝试相比。该文件中有这一行 \inc v s f x
anon399461 123 发布 提问于 七月 12, 2024
0
2 个回答 296 次浏览
I'm new to PTXprint and maybe I tried something too difficult to start with. I'm wanting to create an Ajami (Arabic ... email my archive file to [Email Removed] for further help?
anon420410 102 发布 提问于 九月 3, 2022
PTXprint
0
1 个回答 23 次浏览
我们有一份相当庞大的手工制作的连字符数据,通过 > Fonts+Scripts > Hyphenation > Import List... 从底层的 PT 项目导入到 PTXPrint 中 我找到了一个文件,看起来就是那次导入的结果: "D:\[path] ... 如,我想删除所有会导致行尾只留下一个字符(如 孤儿 )的选项,以及类似的行尾孤立字符情况
Tim 934 发布 提问于 六月 5
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
And I tell you that you are Peter, and on this rock I will build my church, and the gates of Hades will not overcome it.
Matthew 16:18
3,044 个问题
6,004 个回答
5,671 条评论
2,026 位用户