summaryrefslogtreecommitdiff
path: root/systems/doc/pdftex/tests/22-showstream/test-showstream-only.tex
blob: 79ba311583b3ac234c08944d41f9f36f3588900d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
% $Id: test-showstream-only.tex 873 2021-11-09 16:13:48Z karl $
% Public domain. Originally by Marcel Kr\"uger, 2021.
%
% Test basic \showstream output, and that no error code is returned if
% only redirected \show commands occurred in a run.

\pdfcompresslevel=0 \pdfobjcompresslevel=0
\pdfoutput=1
\catcode`\{=1 \catcode`\}=2
\output={\global\advance\count0 by 1 \shipout\box255 }

\begingroup
\chardef\showout=1 % \newwrite\showout
\showstream=\showout
% \show\stillVisible
\immediate\openout\showout"\jobname.xray"
\count0=42
\showthe\count0
\show\undefined
\show\par
\setbox0\hbox{Hello world}
\showbox0
\immediate\closeout\showout
\endgroup
% \show\backToNormal
\end