我剛意識到存在的另一個選項是,在 ptxprint-mods.txt 中包含以下內容:
\def\llapChapter{\edef\printchapter{\llap{\printchapter}}}
\setbookhook{start}{SNG}{\let\PrepChapterNumber\llapChapter}
\setbookhook{end}{SNG}{\let\PrepChapterNumber\relax}這會將章節號設定為完全伸入左頁邊,並透過鉤子(hooks)設定使其僅在 SNG 中發生。
我也一直在研究讓左頁邊、右頁邊和對齊方式對章節號產生影響……
目前(github)測試版中的狀態:
如果對齊方式設定為「右對齊」,則右頁邊(或者,由於 rightmargin 無法設定為負值,若 rightmargin 保持為 0,則為 leftmargin)指定章節號右邊緣的位置。(相對於左頁邊)。一旦此功能進入發布版本,上述程式碼片段將不再必要。
對於其他對齊設定,左頁邊會相對於頁邊縮排或外縮章節號的左側。
Another option which I've just realised exists is to include the following in ptxprint-mods.txt:
\def\llapChapter{\edef\printchapter{\llap{\printchapter}}}
\setbookhook{start}{SNG}{\let\PrepChapterNumber\llapChapter}
\setbookhook{end}{SNG}{\let\PrepChapterNumber\relax}This will set the chapter number to stick out into the left-margin (entirely), with the hooks setting that to only happen in SNG.
I've also been working on making left-margin, right-margin, and justification have an effect on chapter numbers...
Current state in (github) test-version:
If justification is set to 'right', then the right margin (or, since rightmargin can't be set negative, leftmargin if the rightmargin is left at 0) specifies where the right-hand edge of the chapter number sits. (relative to the left margin). This will make the above piece of code unnecessary, once it makes it to a released version.
For other justification settings, left margin indents / outdents the left side of the chapter number relative to the margin.
機器翻譯自 English