demo for box opening and closing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% \UseBox 直接忽略参数 | |
\def\UseBox#1{\relax} | |
\newbox\parbox | |
\everypar{\setbox\parbox= | |
\vbox\bgroup | |
\everypar{} | |
\def\par{\egroup\UseBox\parbox}} | |
% 因此,"Hello world!" 被吃进盒子之后没有机会输出 | |
Hello world! | |
\everypar{} | |
% 由于 \everypar 被重定义为空,因此 "Hello Liam!" 正常输出 | |
Hello Liam! | |
\bye |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment