Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Liam0205
Last active May 20, 2018 02:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Liam0205/1d8b9bd2f401eb0ea970a47693723ab1 to your computer and use it in GitHub Desktop.
Save Liam0205/1d8b9bd2f401eb0ea970a47693723ab1 to your computer and use it in GitHub Desktop.
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