0 votes

I'd like to include multiple introduction articles to the ToC. So it would look like this:

Article 1 .... i

Article 2 .... ii

Article 3 ... iii

Book 1 .... 1

But I can't get it to work. If I add \toc1 lines into either the FRTlocal.sfm file or into the PT INT book that it's pulling from, I get one toc entry (the final \toc1 that I add). And it has page number 1, not the roman numeral number that it ought to have. Also, very oddly, in the temporary _ptpx.toc file it's listed with the id code of Book 1 (which means that code is used twice). I'd expect it to either use \id FRT or \id INT. And if it requires different id's for each \toc1, I'd expect that adding in \id lines would reset things even if they weren't at the beginning of the file.

Any idea of how I could do this?

PTXprint by (1.6k points)

1 Answer

0 votes

I realize that you are trying to automate this completely, and hope that MH might have a more elegant and longer-term solution for you. But in the meantime, have you considered using \ztocbefore and manually adding the entries at the start of the generated ToC?

by (2.3k points)
Yes, I had considered that. In typical fashion, I spent an hour or two trying to get it to work with no success, then as soon as you suggested it, I tried the same thing again and it worked! It's sufficient; since it's an intro, I won't need to worry about page numbers changing as I continue work (like pagination).

A couple questions:

I actually thought the --- \cat toc\cat* --- information in the repository might be a mistake until I saw your example here. Is that needed one time, and then after that it's not needed?

Is it possible to turn \ztocbefore off? For example, if I'm printing an OT ToC and then a NT one, can I have the intros before the OT toc but not before the NT one?

Related questions

0 votes
1 answer
PTXprint Sep 30, 2023 asked by anon088806 (115 points)
0 votes
3 answers
PTXprint Jun 19, 2023 asked by anon041638 (112 points)
0 votes
2 answers
PTXprint Oct 5, 2021 asked by mnjames (1.6k points)
0 votes
2 answers
PTXprint Aug 31, 2021 asked by rickarellanes (166 points)
+2 votes
1 answer
PTXprint May 7, 2021 asked by Kent Spielmann (1.8k points)
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
How good and pleasant it is when God’s people live together in unity!
Psalm 133:1
2,447 questions
5,134 answers
4,833 comments
1,231 users