0 votes
220 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. Rather I’m trying to add them directly into PTXprint.

In the Front Matter section of PTXprint, I’ve added

\rem ----------Page vi----------------
\periph Maps
\fig |src="map.png" size="page" pgpos="t"\fig*

I’ve gotten it to find the file by putting it in the local\ptxprint\config\tmpPics folder, but it seems like there ought to be a better (more permanent) location. Where does PTXprint search for images?

More importantly, the file isn’t printing and I’m getting a line in my log which says.
Placement for image 1(at FRT0.1) could not be understood. Image Lost!
Any ideas why?

PTXprint by (1.9k points) | 220 views

2 Answers

0 votes

You can add a path to the image file, and it should pick it up from there, for example:

\fig |src="C:\My Paratext 9 Projects\XYZ\local\LogoGrayscale.jpg" size="col" pgpos="h" scale="0.18"\fig*

As far as I know, this will work even if Pictures are turned off for the publication.

by (3.2k points)

Thank you. I had hoped to avoid absolute paths, but I’m not sure it really matters. Just one of those things I try to avoid without any defendible reason. Anyway, that works fine.

I figured out why my original code wasn’t working, though. The problem was the pgpos='t' part. When I changed that to pgpos='h', it worked fine.

0 votes

I think PTXprint normally populates the local figures from figures in {Paratext}/{project}/figures. It is entirely possible, however, that that only works if the figure is listed in the piclist.
You can use relative paths, rather than absolute ones, e.g. “…/…/…/figures/map.png”, which would make it more transferable.

If you have pictures enabled for the publication, you should be able to put \zfiga|intromap\* in the USFM, use the normal piclist editor with an anchor ref of 'INT intromap (I believe).

by (1.1k points)

Related questions

0 votes
2 answers 197 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
3 answers 382 views
We have some front and back matter which contains clickable hyperlinks / URLs to our website and facebook messenger as part ... is fantastic btw, thanks for all your hard work.
andy_pi 104 asked Apr 28, 2021
0 votes
4 answers 343 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
+1 vote
9 answers 740 views
I would love to see some well-formatted examples of front matter that users are successfully using with PTXPrint.
john_nystrom 312 asked Jul 15, 2021
0 votes
3 answers 241 views
I have four pages of local-to-PTXprint FRT matter. Page numbering is set to begin on the second page. Numbers ii and iii ... to keep the numbers on the bottom of the page? Thanks.
mlucas53 148 asked Jun 1, 2023
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
For where two or three gather in my name, there am I with them.
Matthew 18:20
3,037 questions
5,995 answers
5,661 comments
2,022 users