Mark asked that there be something here about how to add pages from a PDF.
(see also inserting an entire PDF)
So, urm, here’s a first go.
Let’s assume we have a 2 page PDF… I’ve just made one. Here it is in 2 page view:
I’m using one of the test files, which has fancy section headers and single page ‘books’ for GEN, LEV (the page with roses), and MRK, which has 2 pages:
Put the file into the project’s
/figureson linux). This simple step means that the file becomes available to others too, or even your other computers, when you’ve done send+receive with Paratext enough times on enough computers.
Open the figures tab on PTXprint and click on ‘Add’
Select the PDF file
Set the anchor reference. For this example, I’m working in a test file that has nothing between LEV 1.7 and MRK 1:1. I’ll tell it to include the image after LEV 1.7.
Select the page of the PDF file that we want, by entering page=1 in the extras box:
Set the size… We want page numbers here, so I’ll select
Page (in Margins)
Press print, oh, look there it is:
Lets add the other page, this time without page numbers… so Add image, select the file, and the page number. Hey, that’s odd, why is page=1 still there? (@mjpenny)? Set the anchor,
LEV 1.7again, set the page size to be
Page (to Edge)And hit print…
Oh. No picture.
It seems that while TeX can cope with multple copies of ‘the same image’ (even if it is page 2, not page 1) on the same reference, the user interface doesn’t want to do that for us. It just ignores the second page.
Let’s set the anchor for the first page to
LEV 1.6 and the second to
LEV 1.7 (remember to use a dot, not a colon when giving the anchor references!)
TaDa! we have both pages. Things to notice:
- The two pages are treated as separate images when you do it this way.
- If we select
Page (to Margins), then the grid lines, and page headers and footers get included, if we say
Page (to Edge)they don’t.
- If you looked carefully, then you’d see that there’s a rose on LEV1.6 as well as the full page image. XeTeX doesn’t mind multiple images anchored to one verse, it was just the user interface getting uppity and not writing the file.
- Mirroring and rotation work (though perhaps mirroring isn’t the nicest thing to do to text!)