0 votes
76 views
For recording I would like to hand out each reader their chapter(s) to read on separate pages, in such a way that paragraphs are never split across pages.

Printing out each chapter on a new page works well by adding '\\c ' > '\\pb\\c ' in the changes.txt. (Thanks for that hint I found in this forum!)

However I haven't found a way to prevent paragraphs from breaking across pages. Is there a way to accomplish this? I would find that very helpful!

Thanks for any help!
Roland
PTXprint by (245 points) | 76 views

1 Answer

0 votes
Add (to your ptxprint-mods.tex) the following line:

\interlinepenalty 10000

Which should (I tested it) disable all paragraph breaking, including where you want it because the page length will overflow otherwise. You could thus do something like this instead:


\def\NoSplitParagraphs{\interlinepenalty 10000}
\def\AllowSplitParagraphs{\interlinepenalty 9999}
\NoSplitParagraphs

and then add some changes.txt rules that do things like:

at ROM 94:12 "\\p" > "\\p\\AllowSplitParagraphs"
at ROM 96:1 "\\p" > "\\p\\NoSplitParagraphs"

(You cannot put \interlinepenalty 1000 directly into the USFM, because TeX is told to treat numbers as letters in USFM, in order to allow \s1 etc)
by (1.1k points)
But you don't want to do that. What if you have too much text for a page, what is TeX supposed to do? If you block all page breaks it has to overfill the page and run off the end of the PDF page and text will be lost. This is why TeX doesn't really like you doing that kind of thing. If TeX is breaking the pages in the wrong place, that is a different question. But it's not suddenly going to resize the text to fit it on the page just because you say not to break the page. It will just run off the bottom and lose text. Not good.

Related questions

0 votes
2 answers 19 views
I'm having pretty good success using this command to prevent breaks before a specific marker (e.g. to always keep a ... to help: \setbetweenhook{pc}{p}{\nobreak} Any suggestions?
jeffh 1.4k asked Nov 26, 2025
0 votes
5 answers 494 views
I'm trying to print a diglot, but am ending up with orphan paragraphs. It seems like PTXprint is putting paragraphs ... paratext file?) Screenshot 2021-04-22 1638341301 922 129 KB
anon043588 110 asked Apr 22, 2021
0 votes
2 answers 128 views
It seems that the "Start 1st Chapter on a New Page" option is not working in PTXPrint 2.7.6. If I select "All Chapters" ... I'm missing? Chapter 1 is marked with \c 1 in Paratext.
marvinson 304 asked Dec 6, 2024
0 votes
9 answers 508 views
I'm creating an output for a bunch of study Bible content. In this layout, all of the notes are left justified ... of the measure as possible before breaking to the next line?
[Expert]
jmkla
290
asked Feb 21, 2023
0 votes
2 answers 264 views
When I run the Unmatched Pairs of Punctuation Check (PT 8 or 9), almost every opening quotation mark that starts a quote ... this case!). Any ideas on how to resolve this problem?
viverechristus 296 asked Aug 21, 2020
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
I urge you, brothers and sisters, to watch out for those who cause divisions and put obstacles in your way that are contrary to the teaching you have learned. Keep away from them.
Romans 16:17
3,038 questions
5,994 answers
5,661 comments
2,022 users