0 votes
232 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) | 232 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
1 answer 239 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
2 answers 205 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 411 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
1 answer 10 views
I noticed that when I add Front Matter PDF(s), those pages will be added before everything being typeset, including ... since I used relative path as suggested. Can anybody help?
odysiusbt 123 asked May 29
0 votes
1 answer 169 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
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
For we were all baptized by one Spirit so as to form one body—whether Jews or Gentiles, slave or free—and we were all given the one Spirit to drink.
1 Corinthians 12:13
3,038 questions
5,994 answers
5,661 comments
2,022 users