0 票
109 次瀏覽

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 點) 提出 | 109 次瀏覽

1 個回答

0 票

我首先猜測,檔案後方可能還有另一個 \sethook{before}{q2}{}。
與某些會額外新增指令的機制不同,\sethook、\setbookhook、setbetweenhook 等指令會取代同一掛鉤點(hook point)先前定義的內容。
這有點棘手,但你可以透過包含一個必定會導致程序崩潰的內容來檢查掛鉤是否被觸發(或 .tex 檔案是否被讀取),例如 \errormessage{Q2 HOOK}。
這樣你就能在崩潰報告中看到該訊息(以及崩潰前發生的事情)。

如果你設定的掛鉤確實被激活了,但你仍然看到該處發生分頁,那麼可能是有其他內容增加了額外的間距,從而允許了分頁(這需要仔細檢查 .tex 檔案中的其他內容,或進行樣式檢查)。
 

機器翻譯自 English
由 (1.1k 點) 提出

相關問題

0 票
2 個回答 152 次瀏覽
我剛開始使用 PTXprint 我確實想使用 Paratext,但因為我使用的是 Mac,所以我正在等待 Paratext 10 發布 在此之前,我已經準備好了一份詩篇的翻譯(以及聖經其他部分較早的版本),並將詩篇 1 格式 ... 在 PTXprint 中,我該如何跳過安裝 Berean Sample Bible 或從線上儲存庫下載套件?請多多指教,謝謝
vikslen 105 提出 已提問 2月 5
0 票
1 個回答 270 次瀏覽
有些同事在製作 PDF 檔案時遇到問題。我使用他們專案的副本重現了這個問題,並且在將他們使用的字型安裝為「所有使用者」之後也是如此。我們該如何繼續排查這個問題? 錯誤訊息: 字型檔案位於 c:\windows\fonts
[Expert]
sewhite
3.3k 提出
已提問 1月 28, 2025
0 票
2 個回答 285 次瀏覽
我們正在嘗試使用 PTXprint 來出版一個聖經模組。在較早版本的 PTXprint 中,腳註都能正常顯示。現在我升級到 2.5.1 之後,儘管我試過各種勾選框的組合,它們就是不會出現。我沒有對模組的 sfm 檔案做任何更動,與之前成功的嘗試相同。該檔案中有 \inc v s f x 這一行。
anon399461 123 提出 已提問 7月 12, 2024
0 票
2 個回答 442 次瀏覽
我是 PTXprint 的新手,也許一開始嘗試的難度太高了 我想建立一個 Ajami(阿拉伯文風格)文字專案,但一直出現字型找不到的錯誤 我已經選定了 Scheherazade 字型,它應該是用於整個文件的 以下是我收到的錯誤訊息 ... 有人知道我做錯什麼了嗎? 或者我應該直接將我的檔案存檔寄給 [Email Removed] 以獲得進一步的協助嗎?
anon420410 102 提出 已提問 9月 3, 2022
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Don’t you know that you yourselves are God’s temple and that God’s Spirit dwells in your midst?
1 Corinthians 3:16
3,062 個問題
6,022 個回答
5,693 則評論
2,036 位使用者