TeX 以及如何不输出特定页面上的脚注/标题

TeX 以及如何不输出特定页面上的脚注/标题

标题页,任意页面,无页眉/页脚使用 plain+etex+opmac,以每页为基础。

是否有手动编码页面宏的解决方案,以放宽页面的页脚/标题。显然,在“想法”下面不是解决方案。

\tit Title % Some title command in plain tex

\def\nofootline{\footline{}} % would show an "empty" footline

\nofootline % the \nofootline is applied

\vfill\break % this would end the page

\let\nofootline{\relax} % no longer have the \nofootline having any effect

并且 hoc 处的页面将具有最初定义的脚注。

答案1

也许你正在寻找类似的宏\onlythispage

\def\onlythispage#1=#2{%
   \expandafter\xdef\csname saved\string#1\endcsname{\the#1}%
   \global#1={#2\global#1=\expandafter\expandafter\expandafter
                           {\csname saved\string#1\endcsname}}
}
\def\nofootline{\onlythispage\footline={}} % would show an "empty" footline

\nofootline % the \nofootline is applied

Text, empty footline is here.

\vfill\break % this would end the page

Text, the original footline is here.

\end

相关内容