blob: 79b640f9a94c5f952618c482abb0408dac3e63bf (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
% check underflow
\documentclass{article}
\usepackage[dvips]{color}
\usepackage{atbegshi}
\begin{document}
black
\newpage
\AtBeginShipoutNext{\AtBeginShipoutDiscard}
{\color{red}
start red (but discarded)
\newpage
\AtBeginShipoutNext{\AtBeginShipoutDiscard}
{\color{blue}
start blue (but discarded)
\newpage
\AtBeginShipoutNext{\AtBeginShipoutDiscard}
{\color{green}
start green (but discarded)
\newpage
end green}
\newpage
end blue}
\newpage
end red}
\newpage
black
\newpage
\AtBeginShipoutNext{\AtBeginShipoutDiscard}
{\color{red}
start red (but discarded)
{\color{blue}
start blue (but discarded)
\newpage
end blue}
end red}
\newpage
black
\newpage
{\color{yellow}
start yellow
\newpage
\AtBeginShipoutNext{\AtBeginShipoutDiscard}
end yellow (but discarded)}
\end{document}
|