0 votes
143 views
I cannot figure out how to do this.  I turn on the TOC options, and check the TOC1 box and my TOC just says that John begins on page 1.
The support agent says I should put the \ztoc3\ marker in my front matter.
When I try that, I get this error:

PTXprint [3.0.7] - Error!
Failed to create: BSBIAe_Default_JHN_ptxp.pdf
! Undefined control sequence.
l.11 \ztoc3
     \
------------------------------------------------------------------------------------------
This might be related to a USFM marker error (using an unsupported marker).
Try running 'Basic Checks' in Paratext to validate markers.
It could also be related to an unrecognized setting in ptxprint_mods.tex

PTXprint Version 3.0.7
PTXprint by [Expert]
(3.3k points)
| 143 views

2 Answers

0 votes
In Paratext there is a \toc2 at the beginning of the book that says

          \toc2 Juan

In PTXPrint I set the Table of Contents to use toc2

In the changes.txt file I added the following two lines:

"\\toc2 Juan" > ""
"(\\c (\d+))\s+" > "\1\\toc2 Juan \2"

The first line removes the first \toc2 so that the Table of Contents doesn't start with just Juan

The second line inserts a \toc2 after each \c so that it can be used to create the resulting TOC

The output of the TOC now looks like this:

Juan 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Juan 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Juan 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Juan 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Juan 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Juan 6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Juan 7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
by (9.9k points)
edited by

Thanks for replying. I have a major problem trying this though. When I added those two rules in changes.txt none of the text in the book prints, just the book title. 
This is what my changes.txt looks like: (the book has "\toc2 John" in it. 

PTX print developers: Phil and I have not solved this mystery. See issue  #1122.

Sewhite - try this for the second line:

"(\\c (\d+))\s+" > "\1\\toc2 Juan \2"

When I took out the \n\r markers it works now for me. Not sure why it worked the other day.
Great, now working. (after a hiccup where I thought I had made the text in changes.txt but maybe I had not? )
+2 votes

There is a snippet about this in snippets.md describing what to insert in your changes.txt

by (656 points)

Related questions

0 votes
1 answer 35 views
Our poetry is all in sfm \q1 and most of the lines are short enough to be within the margin. However a few times when the ... when a \q1 line runs more than one line on the page.
debbodaneejo 118 asked Feb 4
0 votes
1 answer 38 views
I've produced a PDF file with PTXprint. When I open it with Firefox on my desktop, Firefox displays the title of ... reader won't see this confusing title in the wrong language.
bit 495 asked Nov 17, 2025
0 votes
1 answer 162 views
First time user, trying to sort out format codes for printing new testament. Also how \toc1, \toc2, \toc3 are used in ptxprint
anon762804 102 asked May 23, 2024
0 votes
3 answers 537 views
this is my first time using ptx print but I'm finding it fairly straightforward. However, despite selecting Book (/h) to ... easy to do in the preview app). Thanks for any help.
ASmith 169 asked May 23, 2024
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
3,045 questions
6,005 answers
5,671 comments
2,026 users