| 1 |
% $Id: aftergroupout.tex 70774 2024-03-26 15:39:45Z karl $ |
| 2 |
% Public domain. Based on a post by David Carlisle to tex-live, |
| 3 |
% https://tug.org/pipermail/tex-live/2024-March/050292.html |
| 4 |
% |
| 5 |
% See ./unbalanced-braces.tex for background. |
| 6 |
% |
| 7 |
\catcode`\{=1 \catcode`\}=2 |
| 8 |
\pdfoutput = 1 |
| 9 |
\pdfmapline{cmr10 CMR10 <cmr10.pfb} |
| 10 |
\font\f = cmr10 \f |
| 11 |
\hsize=6in |
| 12 |
\vsize=9in |
| 13 |
\parfillskip=0pt plus1fil |
| 14 |
|
| 15 |
% with original TL24 binaries, \aftergroup on the \output routine didn't work. |
| 16 |
\def\xxx{\aftergroup A\global\let\xxx\relax} |
| 17 |
|
| 18 |
\output{\xxx\global\advance\count0 by 1 \shipout\box255} |
| 19 |
|
| 20 |
page1 |
| 21 |
|
| 22 |
\penalty-10000 |
| 23 |
|
| 24 |
page2 |
| 25 |
|
| 26 |
\end |