確實,對 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 代表沒有經節。還有 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 顯示原文