Skip to content

Instantly share code, notes, and snippets.

@Liam0205
Last active May 20, 2018 02:46
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
demo for box opening and closing
% \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