Alternatif lain yang baru saja saya sadari ada adalah menyertakan以下内容 di ptxprint-mods.txt:
\def\llapChapter{\edef\printchapter{\llap{\printchapter}}}
\setbookhook{start}{SNG}{\let\PrepChapterNumber\llapChapter}
\setbookhook{end}{SNG}{\let\PrepChapterNumber\relax}Ini akan mengatur nomor bab agar menonjol ke margin kiri (sepenuhnya), dengan hook yang mengatur agar hal itu hanya terjadi di SNG.
Saya juga sedang bekerja untuk membuat margin kiri, margin kanan, dan perataan memiliki efek pada nomor bab...
Kondisi saat ini di versi uji (github):
Jika perataan diatur ke 'kanan', maka margin kanan (atau, karena rightmargin tidak bisa diatur negatif, leftmargin jika rightmargin dibiarkan 0) menentukan di mana tepi kanan nomor bab berada. (relatif terhadap margin kiri). Ini akan membuat potongan kode di atas tidak diperlukan, begitu fitur ini masuk ke versi yang dirilis.
Untuk pengaturan perataan lainnya, margin kiri menggeser sisi kiri nomor bab relatif terhadap margin.
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.
Diterjemahkan secara otomatis dari English