0 votes
175 views

Hi Folks,
When I check the following, PTXprint is creating following error (below screenshots):
PT Project has following markers with text:

In PTXprint check option:

image

PTXprint [2.3.30] - Error!
Failed to create: SKR_skr-5x7-2Col_MAT_ptxp.pdf
! .
\gettop@param #1->\edef \p@ramcheck
{#1}\ifx \p@ramcheck \empty \else \trace…
\getp@ram …ramfalse \fi \else \gettop@param {#1}
\fi \global \let \p@@r@m =…
\endlastp@rstyle …aceafter}{\m@rker }{\styst@k }
\global \let \spaceafterp@…
@p@rstyle #1->\endlastp@rstyle {#1}
\ifn@npublishable \else \mcpushunderms {…
@@p@rstyle …e }\else \let \n@xt @p@rstyle \fi
\fi \fi \x@ \n@xt \x@ {\ne…
\t@mp ->متّی\mt1
متّی

l.7 \mt2 د
ی راہِیں اِنجِیل

This might be related to a USFM marker error (using an unsupported marker).
Try running ‘Basic Checks’ in Paratext to validate markers.

PTXprint Version 2.3.30

PTXprint by (140 points)
reshown | 175 views

4 Answers

0 votes

Sadly, that snippet from the log (the bit with all the \ifx...\fi and so on in it) is too short to be very useful. (I think the python code just counts a certain number of lines, which in this case isn’t enough.) Nor can I recreate the bug with a test project here. Could you go to the ‘Help’ tab, create an archive, and submit it to [Email Removed] please?

by (1.1k points)
0 votes

Thanks, I have sent an email with the archive.

by (140 points)
0 votes

OK, I’ve had a look at the archive. The error comes into the class of “Something very odd is happening”
The error was because TeX was trying to turn the text متّی\mt1 متّی into part of the running header line (\h).
\h is a special line which, because of how it is used in PTXprint, must occur on a line on its own, with no other USFM markers following it. The final USFM has a line:

\h متّی\mt1 متّی
Which is the cause.

Your input SFM file does not seem to contain this line, but it’s there’s one by the time the file gets to TeX. So I guessed that it is the changes file, and sure enough, turning off the changes file fixes the problem.

Digging deeper, I find this line, in changes.txt

"(\\toc3 (.+?)\s+)" > "\1\\h \2"

That line puts \h on the same line with whatever follows it.
The following is a version which will not cause crashes:

"(\\toc3 (.+?)\s+)" > "\1\\h \2\n"

The \n at the end, adding a new line.

by (1.1k points)
0 votes

Thanks David. It is working now.

by (140 points)

Related questions

0 votes
1 answer 220 views
Is there a good way to extract Section Headings to help create Book Outlines? I tried copy/paste from the Section Headings ... required once we have a list. Thank you, SIL+LSS+PNG
SIL LSS PNG 411 asked Apr 30, 2019
0 votes
1 answer 13 views
I am using PTXprint 3.0.11 but haven't used it for a while so there are new features. I want to print select verses using the configuration I used previously. thanks!
MnKN 134 asked Feb 21
0 votes
2 answers 15 views
In the Pictures pane, when I click the checkbox next to Include Pictures (Illustrations), I get the following error message ... \\Tangkhul_Petia\\..\\Tavua' PTXprint Version 3.0.8
petia_downey 111 asked Jan 26
0 votes
1 answer 10 views
I am getting the following error message when I select a project on the Basic pane. I have two separate projects in C:\\ ... 9 Projects\\Tangkhul\\..\\Tavua' PTXprint Version 3.0.8
petia_downey 111 asked Jan 26
0 votes
1 answer 12 views
I'm running Ubuntu 25.04, and I installed ptxprint like this: sudo apt install python3-ptxprint I experience ... this version of Python does not have the _posix_flavour attribute.
bit 495 asked Oct 8, 2025
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
But if we walk in the light, as he is in the light, we have fellowship with one another, and the blood of Jesus, his Son, purifies us from all sin.
1 John 1:7
3,037 questions
5,994 answers
5,661 comments
2,022 users