| 1 |
% $Id: test-showstream-only.tex 873 2021-11-09 16:13:48Z karl $ |
| 2 |
% Public domain. Originally by Marcel Kr\"uger, 2021. |
| 3 |
% |
| 4 |
% Test basic \showstream output, and that no error code is returned if |
| 5 |
% only redirected \show commands occurred in a run. |
| 6 |
|
| 7 |
\pdfcompresslevel=0 \pdfobjcompresslevel=0 |
| 8 |
\pdfoutput=1 |
| 9 |
\catcode`\{=1 \catcode`\}=2 |
| 10 |
\output={\global\advance\count0 by 1 \shipout\box255 } |
| 11 |
|
| 12 |
\begingroup |
| 13 |
\chardef\showout=1 % \newwrite\showout |
| 14 |
\showstream=\showout |
| 15 |
% \show\stillVisible |
| 16 |
\immediate\openout\showout"\jobname.xray" |
| 17 |
\count0=42 |
| 18 |
\showthe\count0 |
| 19 |
\show\undefined |
| 20 |
\show\par |
| 21 |
\setbox0\hbox{Hello world} |
| 22 |
\showbox0 |
| 23 |
\immediate\closeout\showout |
| 24 |
\endgroup |
| 25 |
% \show\backToNormal |
| 26 |
\end |