0 votes
159 views

How to I create a \sethook which points to a periph? (Or, can I?)

I’ve tried \sethook{before}{periph:publisher}{\def\PageBorder{}}, but that didn’t work.

This slide from the recent workshop would suggest that it might be possible, but I’m also wondering if there is a mistake in the syntax on that slide:

Why is there not a {before} or some other position information before the location marker?

PTXprint by (1.9k points) | 159 views

2 Answers

0 votes

Well caught, it should read \sethook{...}{id:GEN}{}

Are there start/end hook-points on periphs? The answer is not yet.

I can see how {start} and {end} would work, but setting a {before} or {after} on a periph seems like it would be ambiguous. Should it occur before the periph definition or before the periph invocation? (e.g. if you set it on {before}{periph:intnt} does it occur just after Malachi 4:6? after the page break? or at the end of the previous periphery in the INT book?)
And if someone puts a {before} hook for the coverfront periphery (contents of the front page), where should that go?

by (1.1k points)
0 votes

I forgot to say… work around: You can set hooks on stand-alone milestones, and use a changes file to add them wherever you want.

by (1.1k points)

Related questions

0 votes
5 answers 445 views
I'm trying to use hooks to set multiple borders in a doc. I can set the first one, and I can turn ... \PageBorder{path_to_border_2}} What am I doing wrong? Is that possible?
mnjames 1.9k asked Jan 2, 2023
+1 vote
1 answer 9 views
I'm missing white space separator between the book's name and the chapter number in reference range placed at the ... misconfigured something here? I don't know where to look.
odysiusbt 123 asked Jun 19
0 votes
1 answer 5 views
I noticed that when I add Front Matter PDF(s), those pages will be added before everything being typeset, including ... since I used relative path as suggested. Can anybody help?
odysiusbt 123 asked May 29
0 votes
1 answer 11 views
After updating to PTXprint 3.0.25, I am finding that the Shrink / Expand (by % text size) options (via right- ... text size) is working again. I anyone else experiencing the same?
[Expert]
jmkla
290
asked May 13
0 votes
5 answers 70 views
When I first create a project in PTXprint I can link it to an existing PT-project. I have noticed that sometimes ... , but it happens sometimes.) Hence my question came up.
Tim 934 asked Apr 24
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,037 questions
5,994 answers
5,661 comments
2,022 users