确实,欺骗 TeX 很容易,要么使用仅包含零宽或不可断空格的标题(那里需要有一些内容),
或者您甚至可以在 ptxprint-mods.tex 中放入类似这样的内容:
\makeatletter
\sethook{page}{-4}{\mark{\t@tle}}
\sethook{page}{-5}{\mark{\t@tle}}
\makeatother
这应该能让 TeX 相信第 -4 页和第 -5 页(即 iv 和 v 页)以标题开始,即使您实际上有一个从第 3 页延伸到第 5 页的长段落而没有换页。(希望不是这样!)
但是,如果您希望更改在所有地方发生,那么不撒谎说明页面上有什么,而是告诉它您希望它做什么,这样更有意义。
如果目前奇数页的页码在右上角,偶数页的页码在左上角,那么要让所有非标题、非经文文本的页码位于底部中间,您可以说类似这样的话:
\def\RHnoVoddright{\empty}
\def\RHnoVevenleft{\empty}
\def\RFnoVoddcenter{\pagenumber}
\def\RFnoVevencenter{\pagenumber}
-
RH 表示页眉(running header),RF 表示页脚(running footer),
-
noV 表示无经文(no verses)。还有 title 用于标题页,该槽位为空表示普通页面。
-
even/odd 指的是页码,
-
left/right/center 是页眉/页脚中的三个位置。
对于想要了解更多晦涩命令的人,文档在这里。
Indeed, lying to TeX is quite easy, either with titles that just contain a zero-width or non-breaking space (there needs to be something),
Or you could even put something like this in ptxprint-mods.tex
\makeatletter
\sethook{page}{-4}{\mark{\t@tle}}
\sethook{page}{-5}{\mark{\t@tle}}
\makeatother
Which ought to convince TeX that page -4 and -5 (iv and v) start with a title, even if you actually have a very long paragraph going from page 3 to page 5 without a break. (hopefully you don’t!).
But if you want the change to occur everywhere, then it makes sense to not lie about what’s on the page, but to tell it what you want it to do.
If at present you have a page number on the top-right of odd pages and top-left of even numbered pages, then to make all non-title, non-verse text have page numbers at the middle-bottom, you’d want to say something like:
\def\RHnoVoddright{\empty}
\def\RHnoVevenleft{\empty}
\def\RFnoVoddcenter{\pagenumber}
\def\RFnoVevencenter{\pagenumber}
-
RH means running header, RF running footer,
-
noV means no verses. There is also title for title page, and nothing in that slot means normal pages.
-
even/ odd is referring to the page numbers,
-
left/right/center are the 3 the position within the header / footer.
For those that want learn more cryptic commands, the documentation is here.
机器翻译自 English