0 votes
60 vues

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 par (1,4k points) | 60 vues

1 Réponse

0 votes

My first guess is that you might have another \sethook{before}{q2}{}, later in the file.
Unlike some other things which add extra commands, the \sethook, \setbookhook, setbetweenhook,  etc, replace anything previously defined at the same hook point.
It's a bit nasty, but you can check that a hook is getting fired (or the .tex file getting read) by including something guaranteed to crash the process. e.g. \errormessage{Q2 HOOK}
Then you'll be able to see that in the crash report (and what happened just before).

If the hook you're setting IS getting activated, but you're still seeing page-breaks there, then it's a possibility that something is adding some extra spacing which is allowing a break, (which would call for a careful read of what else is in the .tex file, or a styling check).
 

par (1,1k points)

Questions connexes

0 votes
2 réponses 30 vues
Je débute tout juste avec PTXprint. Je souhaite utiliser Paratext, mais, comme j'utilise un Mac, j'attends la sortie de ... 'un bundle depuis un dépôt en ligne ? Merci d'avance.
vikslen 105 posée févr. 5
0 votes
1 réponse 72 vues
Some colleagues have a problem making a PDF file. I have reproduced the problem, with a copy of their project, and ... problem? Error message: Font file is in c:\windows\fonts
[Expert]
sewhite
3,3k
posée janv. 28, 2025
0 votes
2 réponses 176 vues
We are trying out PTXprint for a publication of a Bible module. In an earlier version of PTXprint the foonotes were coming through ... attempts. That file has the line \inc v s f x
anon399461 123 posée juil. 12, 2024
0 votes
2 réponses 295 vues
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 posée sept. 3, 2022
0 votes
1 réponse 20 vues
Nous disposons d'une liste importante de données de césure manuelles, importées dans PTXPrint depuis un projet PT sous- ... de même pour les caractères isolés en fin de ligne.
Tim 934 posée juin 5
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
But if we walk in the light, as he is in the light, we have fellowship with one another, and the blood of Jesus, his Son, purifies us from all sin.
1 John 1:7
3,044 questions
6,003 réponses
5,671 commentaires
2,026 utilisateurs