Another great improvement! That does indeed appear to correct all of the spacing issues.
The note reference superscripts appear to be significantly smaller than in the epubs (60% vs 75%); they’re at the edge of readable for those of us with “more mature” eyes, as my optometrist calls them. :)
The links in the TOC (the one the Mac shows in the sidepanel of Preview; I don’t know it’s called in PDF-world) work great, and the links in the embedded ToC also work, but the page numbers on the frontmatter show in the embedded ToC as all 0’s, although the page numbers on the pages themselves is correct. So, for example, the link for “Sun Wu and His Book” shows as page 0 in the ToC, but the actual page# shows as vi. As you can see, ditto for all the frontmatter, including the halftitlepage (“The Art of War”).
I tried 50+ links, and all of them worked. I did find a problem with one of the links, but it’s a source file problem (“note 626” in link 51 links to note 628 instead). I’ll submit a PR to fix it. I also found one with a word missing from the link.
On a related note, this is a general PDF problem I’ve long disliked, but the page# shown when hovering on a link is not the page# shown at the bottom of the page, but instead some made-up internal PDF page number. Nor can you “Go to” one of the actual page numbers, you instead have to do some internal math to guess at the PDF hidden page# to go to. I’m assuming there’s nothing you can do about this, just mentioning it because it’s one of the things I don’t like about PDF’s. :)
Really nice job, Lukas. This is looking great!