0
66 次瀏覽

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

1 個回答

0

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

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

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

相關問題

0
2 個回答 30 次瀏覽
我剛開始使用 PTXprint 我確實想使用 Paratext,但因為我使用的是 Mac,所以我正在等待 Paratext 10 發布 在此之前,我已經準備好了一份詩篇的翻譯(以及聖經其他部分較早的版本),並將詩篇 1 格式 ... 在 PTXprint 中,我該如何跳過安裝 Berean Sample Bible 或從線上儲存庫下載套件?請多多指教,謝謝
vikslen 105 提出 已提問 2月 5
0
1 個回答 72 次瀏覽
有些同事在製作 PDF 檔案時遇到問題。我使用他們專案的副本重現了這個問題,並且在將他們使用的字型安裝為「所有使用者」之後也是如此。我們該如何繼續排查這個問題? 錯誤訊息: 字型檔案位於 c:\windows\fonts
[Expert]
sewhite
3.3k 提出
已提問 1月 28, 2025
0
2 個回答 176 次瀏覽
我們正在嘗試使用 PTXprint 來出版一個聖經模組。在較早版本的 PTXprint 中,腳註都能正常顯示。現在我升級到 2.5.1 之後,儘管我試過各種勾選框的組合,它們就是不會出現。我沒有對模組的 sfm 檔案做任何更動,與之前成功的嘗試相同。該檔案中有 \inc v s f x 這一行。
anon399461 123 提出 已提問 7月 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 提出 已提問 9月 3, 2022
0
1 個回答 23 次瀏覽
我們擁有一份相當龐大的手工製作的連字號(hyphenation)數據清單,透過 > Fonts+Scripts > Hyphenation > Import List... 從底層的 PT 專案匯入到 PTXPrint 中 我找到了這裡的一個檔案,看起來就是那次匯 ... 會在列印行尾留下僅一個字符(如「孤兒字」)的選項,以及類似的情況(行尾孤立的字符)
Tim 934 提出 已提問 6月 5
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,044 個問題
6,004 個回答
5,671 則評論
2,026 位使用者