0 votes
239 vues

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 par (1,9k points) | 239 vues

2 Réponses

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.

par (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).

par (1,1k points)

Questions connexes

0 votes
1 réponse 253 vues
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 posée juil. 12, 2024
0 votes
2 réponses 216 vues
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 posée mai 1, 2022
0 votes
3 réponses 429 vues
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 posée avr. 28, 2021
0 votes
1 réponse 16 vues
J'ai remarqué que lorsque j'ajoute des PDF de matière préliminaire, ces pages sont ajoutées avant tout ce qui est ... un chemin relatif comme suggéré. Pouvez-vous m'aider ?
odysiusbt 123 posée mai 29
0 votes
1 réponse 175 vues
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 posée mai 30, 2024
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
I appeal to you, brothers and sisters, in the name of our Lord Jesus Christ, that all of you agree with one another in what you say and that there be no divisions among you, but that you be perfectly united in mind and thought.
1 Corinthians 1:10
3,044 questions
6,003 réponses
5,671 commentaires
2,026 utilisateurs