0 votes

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.3k points)

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 (2.6k 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 (2.6k 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 (2.6k 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
2 answers
PTXprint Apr 10, 2023 asked by mnjames (1.8k points)
0 votes
2 answers
+1 vote
9 answers
PTXprint Jul 15, 2021 asked by john_nystrom (296 points)
0 votes
3 answers
0 votes
3 answers
PTXprint Jun 1, 2023 asked by mlucas53 (143 points)
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
And I tell you that you are Peter, and on this rock I will build my church, and the gates of Hades will not overcome it.
Matthew 16:18
2,618 questions
5,350 answers
5,037 comments
1,421 users