0 votes
339 views
I'm getting Luke and Acts ready to be printed as a booklet, and I can't figure out how to put an intermediate title page before the beginning of Acts.
PTXprint by (102 points) | 339 views

3 Answers

0 votes
There are several different ways to insert USFM which isn't in the paratext files. One option is to use the changes.txt file, but that gets a bit messy, with you needing to double every slash.
You could try using a hook, but the problem with hooks is that in hooks numbers are considered to be numbers, not things that might be part of a marker, i.e.  \mt1 will be understood as \mt 1.

The most initially complex, but maybe eventually the easiest once you're used to it, is to make a 'trigger file'. If your project is called MYPROJ, and the configuration testing, then for a glossary the file would  need to go into
{paratextDir}/MYPROJ/shared/ptxprint/testing/triggers
with the name A9GLOMYPROJ-testing.SFM.triggers

In that file, you can put one or more trigger entries, e.g. like this:

\AddTrigger GLObookstart-preverse
\mt1 ~
\zgap|8em \*
\zrule|width="0.5"\*
\zgap|1em \*
\mt1 GLOSSARY
\zgap|1em\*
\zrule|width="0.5"\*
\pb
\EndTrigger

The trigger entries can be anchored to any verse or \k keyword\k* entry, etc.  much like figures (though to get the figure-like position you need to add a suffix "-preverse" as here), and should allow you to include any valid USFM.  If you use no suffix, then the USFM is triggered after the triggering verse number, for verses, and possibly not at all for other locations.

Of course, you'd need to use 45ACT...SFM.triggers and ACTbookstart-preverse
by (1.1k points)
0 votes

Building on DG's comment: "One option is to use the changes.txt file, but that gets a bit messy, with you needing to double every slash."

There is an easy way to do this though:

Then on the changes.txt tab that appears, use the Code snippets to insert the rule which will add a title page to EVERY book:

You may want to change the piece in Yellow to say something else, or remove it completely. If you don't want any name to appear under the Book name, then use \is ~ to indicate a space there. You can change the codes as needed, but essentially you are injecting some text into the USFM file as it gets processed (this is NOT stored in your Paratext file).

If you only want this to happen before ACT and not also at LUK, then change the beginning of the rule to say:

at ACT '(?ms)(\\h )(.+?\r?\n)(.+?)(\r?\n)(\\mt)' > '\1\2\3\4\\zgap|2in\\*\4\\mt \2\\is ~\4\\zrule\\*\4\\pb\4\5'

by (3.2k points)
0 votes

An obvious easier way is just to compile Luke and Acts as separate PDF files and then create title pages as separate pdf files also and combine them using a PDF combiner tool online. 

Adobe has a tool to do this: https://www.adobe.com/ca/acrobat/online/merge-pdf.html

Of course if the technique that @Mark P showed works for you then that would be a cleaner way :-)

by (123 points)

Related questions

0 votes
1 answer 19 views
I've produced a PDF file with PTXprint. When I open it with Firefox on my desktop, Firefox displays the title of ... reader won't see this confusing title in the wrong language.
bit 495 asked Nov 17, 2025
0 votes
1 answer 15 views
I am working on a single-book publication. In the past for single books, I've been able to put a header with a ... toggle this on or off. What else can I do to troubleshoot?
Rebecca Peak 102 asked Jun 25
0 votes
1 answer 179 views
The command line help says -b BOOKS, --books BOOKS Reference list to print (as in Choose Books) in the github ... while trying to install ptxprint on a new Linux machine also.)
mnjames 1.9k asked May 10, 2023
0 votes
2 answers 282 views
I was playing around with ornaments and there was a ptxprint-premods.tex that showed up at some point on the Advanced ... edit the file in PTXprint anymore. Sadness sets in...
jeffh 1.4k asked Apr 8, 2024
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Give proper recognition to those widows who are really in need.
1 Timothy 5:3
3,037 questions
5,995 answers
5,661 comments
2,022 users