0 votes
358 views

I haven’t been able to find a list/description of the codes used in the front matter. The samples that are generated provide some good help, but there are still some gaps in my understanding.

Specifically, is there a way to get a page break (for example, I would like a blank page after my title page, and \pb doesn’t seem to work.

Also I have an “i” page number at the top of one page, and no matter where I put \nopagenums, it still seems to show up.

Is there a way to get a border / PDF overlay on just one page of the front matter (like, for example, the title page - so there is some graphic, but the text is produced by the front matter SFM)?

PTXprint by (1.4k points) | 358 views

4 Answers

0 votes

There’s a summary of the codes on this slide, and the Table of Contents parameter options are explained on the next slide but yes - they should be documented somewhere more accessible to all users.

The best way to understand how the \nopagenums and \dopagenums codes work is to look at the

"C:\Program Files\PTXprint\ptxprint\FRTtemplateAdvanced.txt" file. The \pb (pagebreak) won’t work unless there is some other content on that page. Even an invisible line like \ip \bd ~ \bd* on that page should be enough to trigger the pagebreak.

Sorry that this is still quite messy, and un-intuitive. We’ll keep working to improve things…

by (3.2k points)
0 votes

I want to add publisher name, “Pakistan Bible Society” in inner title and logo of Bible society before name.
How I can do that?
image

by (140 points)
reshown
0 votes

@sajid.imdad In the Front Local settings, you can insert a figure/logo directly by adding a line that looks like this just before the final PBS line:

\fig |src="C:\My Paratext 9 Projects\XYZ\local\figures\MyLogo.png" size="span" pgpos="h" scale="0.18" copy="None"\fig*

pgpos=“h” tells it to place the logo “here”
scale=“0.18” tells it to make it 18% of full size (adjust as needed)
Setting copy=“None” ensures that it doesn’t end up in the list of illustration credits.

If you need to add some space (e.g. 10pt) between the logo and the text, you can use:
\zgap|10pt\*
or something similar between the elements.

by (3.2k points)
0 votes

By the way, the more recent versions of PTXprint have buttons on the right side of the View+Edit window that allow you to insert useful snippets as shown:

It is then easy to edit the fields as needed on the left.

by (3.2k points)

Thanks… I have tried it first but was not working. Let me check it again.

I have been trying to follow above instruction even tried button. But following msg is appearing.
image
after press ok, PTXprint shows this.
image

PTXprint (the application) calls XeTeX to do the actual typesetting. XeTeX then either directly calls or writes a file for xdvipdfmx.
I’ve seen xdvipdfmx crash, but it looks like something is making the usually rock-solid XeTeX program crash. The causes I’ve seen / can imagine are:

  1. A bug / corruption in a font (seen this, especially with graphite fonts) crashes the harfbuz font-rendering library. (The case I saw, the same text also failed in graphite-enabled libreoffice) - make sure that you’re using the latest version of the fonts used.
  2. A corrupted image, or one with unusual extra features (I vaguely remember seeing this)
  3. A bug in some rarely-used part of a system library.

I suspect the image is the cause. If you make the \fig ... line to be \rem \fig... and the issue goes away, then I’d suspect the image even more strongly. Opening the image in an image editor and saving it (as JPEG, PDF or PNG) might solve everything.

Related questions

0 votes
1 answer 8 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 236 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 168 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 230 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 203 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
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
And let us consider how we may spur one another on toward love and good deeds, not giving up meeting together, as some are in the habit of doing, but encouraging one another—and all the more as you see the Day approaching.
Hebrews 10:24-25
3,038 questions
5,994 answers
5,661 comments
2,022 users