+1 vote
29 views
We have a use case where the team wants to distribute individual chapters to different team members for review. There is a code snippet to force books to start on an odd page. \setbookhook{start}{MAT}{\zNeedOddPage}

Is there a similar code that can be used to force chapters to start on an odd page?
PTXprint by (148 points) | 29 views

1 Answer

0 votes

There might be a better/different way to do this in the .tex file using a hook, but there's also a simple method using changes.txt to inject a \pb (pagebreak) and \zNeedOddPage before every chapter number:

"\\c" > "\\pb\n\\zNeedOddPage\n\\c"

This seems to work well enough.

by (3.2k points)
Thanks, Mark. This does work for a single language. What I failed to mention is that the above project is a diglot with a source (Secondary) and a target (Primary) language. Applying the code, each chapter starts on an even page in the PDF. It looks like an unnecessary blank page is added before the first chapter. I've tried adding the script to just the Primary project and also to both the Primary and the Secondary project. No change.

I should also note that \there is a \cl before \c 1.

On a side note, is there a way to exclude \c 1 so that the first chapter starts on the same page as the book title?
I'm trying that string out in my changes.txt  and it is starting every chapter (except chapter 1) on a new page, but it is not starting every chapter on an odd page.

PtxPrint 3.01.

Page-breaks in diglots are much more of a polite request to start the next column on a new page rather than the 'stop reading HERE and print everything you have so far' that they are in normal text. Normally, of course, you want that, otherwise a \pb in one column will stop the next from getting aligned properly.
 This means that \zneedoddpage probably won't work as expected for a diglot.

Thanks. This makes sense and matches our experience.
We came up with a work around for the draft copies for this case. Check "Start all other chapters on a new page" on the Body tab. If appearance is not critical, use "Document Based" algorithm on the Diglot tab. All chapters other than \c 1 will start on a new page. We manually add \pb where needed in the usfm file to push chapters that start on an even page to an odd page. This also works with the "Scored" algorithm. More \pb's are needed since not every chapter starts on a new page, but the page appearance is nicer.

Related questions

0 votes
2 answers 120 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
1 answer 15 views
Hello everyone! I presented PTXprint to a team recently and they are excited to use it. They have been copy/pasting ... the left page number odd for these community check sheets?
KR 151 asked Nov 17, 2025
0 votes
1 answer 109 views
The other section headings all appear in the text correctly, but the section heading for \c 1 is ... /view?usp=sharing> hopefully this link works. Thanks
anon095293 129 asked Mar 24, 2025
0 votes
2 answers 85 views
In both the base LTR project and the transliterated RTL project PTXprint behaves as expected and produces usable output. But ... Win 10 Pro 22H2 build 19045.5608 PTXprint v2.7.27
Mark Skinner 104 asked Mar 21, 2025
0 votes
1 answer 54 views
Hi I'm working on a layout and I wanted to limit my page borders to chapter 24, verse 10, as shown in the screenshot. ... for the rule I used. Thank you in advance for your help.
Roger Beramgoto Nado 125 asked Dec 13, 2024
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
So Peter was kept in prison, but the church was earnestly praying to God for him.
Acts 12:5
3,037 questions
5,994 answers
5,661 comments
2,022 users