0 votes
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)

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.8k 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)
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
I urge you, brothers and sisters, to watch out for those who cause divisions and put obstacles in your way that are contrary to the teaching you have learned. Keep away from them.
Romans 16:17
3,032 questions
5,987 answers
5,653 comments
2,019 users