答案1
谢谢 Ulrike,效果很好!我定义了一个命令来打印装订标记...
\newcommand\showbindingmarks[1]{%
\AddToHookNext{shipout/background}{%
\put(#1,-0.11\paperheight){\rule{1pt}{1pt}}%
\put(#1,-0.22\paperheight){\rule{1pt}{1pt}}%
\put(#1,-0.33\paperheight){\rule{1pt}{1pt}}%
\put(#1,-0.44\paperheight){\rule{1pt}{1pt}}%
\put(#1,-0.55\paperheight){\rule{1pt}{1pt}}%
\put(#1,-0.66\paperheight){\rule{1pt}{1pt}}%
\put(#1,-0.77\paperheight){\rule{1pt}{1pt}}%
\put(#1,-0.88\paperheight){\rule{1pt}{1pt}}%
}}
\newcommand\oddbindingmarks{\showbindingmarks{0pt}}
\newcommand\evenbindingmarks{\showbindingmarks{\paperwidth-1pt}}
然后我将其放入 fancyhdr 配置中:
\fancyhead[OR]{\oddbindingmarks}% Top right header
\fancyhead[EL]{\evenbindingmarks}% Top left header