Closed mateibarbu19 closed 1 year ago
As to to whether this behavior is by design, the answer is yes. But can we change the behavior so that after-toc
refers to the first recto page after the toc? I think the answer is also yes. I've submitted a PR with the proposed change.
This change will require a documentation update.
Thanks for your help! I will close the issue since any discussions on this matter can follow on the PR.
Actually, the PR will close the issue, so I prefer to keep it open until then. But I should be merging it shortly.
I think it's safe to reclassify this as a bug. The converter already skips the verso page after a chapter, and the toc in a book acts as a chapter. It seems unlikely someone would want to start content on the verso page. So we can think of "after-toc" in a prepress book to mean the first recto page after the last page of the toc.
Another reason I can say that is because the "body" keyword in a prepress book that uses the toc in the default location uses this same logic. So there is already precedence for it.
Hello,
I noticed that when enabling prepress mode, the first chapters page is 2, instead of 1.
Is this a bug, or am I doing something wrong? I tried to follow the source code, but failed due to lack of knowledge.
My source file,
source.adoc
:My theme file,
theme.yaml
:Run: