0 votes
12 views

I noticed that when I add Front Matter PDF(s), those pages will be added before everything being typeset, including the local front matter. I wonder if it is possible to insert the additional PDF(s) after the local front matter and before the scripture material.

I've tried the steps mentioned in Inserting an entire PDF to add TeX command to insert the PDF before my first book, but it's not working. Specifically, here's what I've tried:

\setbookhook{start}{GEN}{\includepdf{../../mypdf.pdf}}

I put the PDF file in the right folder, that is two directories above the working directory, so PTXprint should be looking for the file in `.../PROJECT/local/`. But nothing is inserted into the final PDF. I'm using Windows, but it shouldn't be a problem since I used relative path as suggested. Can anybody help?

PTXprint by (123 points) | 12 views

1 Answer

+1 vote
Best answer

The latest version 3.0.32 includes an enhanced way of including PDFs exactly where you need them within Front Matter. Here are some notes on how to use this \zpdf command which functions as a milestone:

This \zpdf code can go anywhere within SFM text, including in your Front Matter (FRTlocal.sfm), and will insert the PDF file specified. Notice that you must use /forward/slashes (not\back\slashes) for your path separators; and it is ideal to place the PDFs in the project's "shared" folder so that they get shared using send/recv in Paratext and so that PTXprint can find them in the same place regardless of user.

The simplest form of the command is this:

\zpdf|file="../../../shared/IntroPages.pdf"\*

or if you really need a hardcoded path (which isn't relative to PTXprint's settings) you can also do this:

\zpdf|file="C:/Temp/IntroPages.pdf"\*

And if you need to scale, or rotate or select just one page from a longer PDF, then that's also possible with the extra parameters:

\zpdf|file="../../../shared/Filename.pdf" page="3" scale="750" rotate="270"\*

Note here that for scale, 1000 = 100%, so 500 would be 50% etc. So in the above example, only page 3 from the Filename.pdf will be inserted, scaled to 75% size, and rotated 270 degrees.

Within the context of your Front Matter material you may want to add one or more Intro Pages like this:

...
\pc \zimagecopyrights
\rem ----------Page 3----------------
\periph Intro Matter|id="importedpdf"
\zpdf|file="../../../shared/IntroPages.pdf"\*
\rem ----------Page 4----------------
\periph Table of Contents|id="contents"
\mt3 \zvar|toctitle\*
\ip \ztoc|main\*
...
by (3.2k points)
selected by

Related questions

0 votes
1 answer 242 views
I need to "span cells" in a table row, as specified in the USFM 3.0 spec document: Example from the USFM ... Local Front Matter file independent of the USFM encoding of a project?
KimB 670 asked Jul 12, 2024
0 votes
1 answer 170 views
Anybody else have -2pt=-7pt printed at the top of their title page? Any idea how to get rid of it? It is not anything I have typed anywhere in the program. ?
mvk1000 206 asked May 30, 2024
0 votes
2 answers 238 views
I'd like to add a map to the front matter in a book. The figure (and the front matter in general) aren't in PT. ... (at FRT0.1) could not be understood. Image Lost! Any ideas why?
mnjames 1.9k asked Apr 10, 2023
0 votes
2 answers 213 views
I'm using 2.1.19 In the Peripherals tab, when you click on View/Edit Front Matter, why would someone need to click ... if there is any problem with editing it in the main window.
Ben Pehrson 280 asked May 1, 2022
0 votes
4 answers 362 views
I haven't been able to find a list/description of the codes used in the front matter. The samples that are generated ... , but the text is produced by the front matter SFM)?
jeffh 1.4k asked Mar 27, 2022
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Accept the one whose faith is weak, without quarreling over disputable matters.
Romans 14:1
3,041 questions
6,000 answers
5,667 comments
2,024 users