Skip to content

Instantly share code, notes, and snippets.

@Liam0205 Liam0205/everypar.tex Secret
Last active May 20, 2018

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
You can’t perform that action at this time.