Debian Codegraph @

texmf-dist/doc/pdftex/tests/22-showstream/test-showstream-basic.tex

raw
1 % $Id: test-showstream-basic.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 it doesn't interfere with
5 % regular \show commands when inactive.
6 % It should print the meaning of \stillVisible and \backToNormal while the
7 % remaining \show commands should not lead to any terminal interaction but
8 % get written to the .xray file.
9
10 \pdfcompresslevel=0 \pdfobjcompresslevel=0
11 \pdfoutput=1
12 \catcode`\{=1 \catcode`\}=2
13 %\output={\global\advance\count0 by 1 \shipout\box255 }
14
15 \begingroup
16 \chardef\showout=1 % \newwrite\showout
17 \showstream=\showout
18 \show\stillVisible
19 \immediate\openout\showout"\jobname.xray"
20 \count0=42
21 \showthe\count0
22 \show\undefined
23 \show\par
24 \setbox0\hbox{Hello world}
25 \showbox0
26 \immediate\closeout\showout
27 \endgroup
28 \show\backToNormal
29 \end