0 votes
25 views
Somewhere in the documentation I found the following instruction which I put in ptxprint-mods.tex.

\sethook{page}{-4}{\mark{\t@tle}}

This instruction has the effect of making the page in question (in this case page 4/iv of the roman-numeral pages of the front matter) be declared a "title" page which has the effect of surpressing  the rule across the top of the page under the header. So I am wondering what the other options for \t@tle are because now I want to force the first page of my glossary which for some reason isn't getting a header rule to have one.  I have searched everywhere to find a list of these but so far unsuccessfully. And as a trivial side question: Why do lot of these variables or constants have an @ in them?
PTXprint by (206 points) | 25 views

1 Answer

0 votes
Things with an @ in them are generally considered internal stuff that normal users shouldn't be using.  USFM is a (very) public set of commands, the \zwhatever stuff are meant to expose complex stuff for users, and there are various other ptx2pdf macros that don't have an @ in them, those are the public interfaces. As programmers, we try to keep public-interface calling conventions unchanging so that user's modifications don't get clobbered (which can lead to VERY strange and hard to debug results). Things with an @ sign in them are assumed to be private to the macros, and so we feel free to add/remove/rearrange arguments, etc. as necessary, and as long as we cope with refactoring the code-base properly, no one should notice.

Your glossary probably starts with \mt or similar, which is a title, and so the code inserts a \mark{\t@tle} there for you. There are only 2 magic values for \mark at the moment, {\t@tle} for title pages and {} which triggers the 'no verses' header style. Otherwise the first \mark on the page gives the book-chapter-verse for the start of the page and the last one gives the end reference.
Are you using the glossary-word header? If so, then to get that for a page that starts with a title, *AND a rule*, you probably want to insert a book-hook{GLO} or a page hook to insert  \mark{}.
Alternatively, if the rule isn't so important, you could use
\HEADFOOTset{H}{title}{l}{c}{r}{L}{C}{R}
to set the header contents (for a double-page spread) where l,c,r are left,centre and right contents on even numbered pages, and the capital versions are odd numbered pages.
by (1.1k points)
Just to say that these techniques are still not getting me the rule under the header on the first page of the glossary. All the subsequent pages have the rule. Similarly, the first page of the maps XXM doesn't have the rule, but all subsequent pages do have it. It looks kind of funny to have just these single pages without a rule when all the other pages have rules.

Related questions

0 votes
6 answers 404 views
PtxPrint is leaving significant white at the bottom of some pages for the config (Luke1-9). User is needing to ... extra white space. Screenshot 2022-02-17 144651562 792 117 KB
listentwice 1.2k asked Feb 17, 2022
0 votes
19 answers 1.1k views
Is it possible to create a Diglot/Discript on Facing Pages, using a Single Column? This has been requested by for Song Books, because ... to work (v2.0.30 and v2.1.8) Thanks, Mike
listentwice 1.2k asked Mar 17, 2022
0 votes
1 answer 38 views
I am working on a single-book publication. In the past for single books, I've been able to put a header with a ... toggle this on or off. What else can I do to troubleshoot?
Rebecca Peak 102 asked Jun 25
0 votes
1 answer 19 views
I am trying to create a discript book with decorative border. I started with a configuration that I had used last year, ... would be preferred. Thanks for any help you can give.
Kirk 123 asked Aug 4, 2025
0 votes
1 answer 285 views
I am wondering about the behavior of the page numbers in the header. In the screenshots below, the introduction to 1 John ... " same as it shows up with the scripture text pages?
mvk1000 206 asked May 30, 2024
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Don’t you know that you yourselves are God’s temple and that God’s Spirit dwells in your midst?
1 Corinthians 3:16
3,045 questions
6,005 answers
5,671 comments
2,026 users