1 % This file is public domain.
2 % Originally written 1995, Geoffrey Tobin.
3 % The author has expressed the hope that any modification will retain enough content to remain useful. He would also appreciate being acknowledged as the original author in the documentation.
4 % This declaration added 2008/11/14 by Clea F. Rees with the permission of Geoffrey Tobin.
6 % TeX source file for creating TRIPVDU.DVI, a torture file for DVItoVDU
7 % (using the same philosophy as Donald Knuth's torture test for TeX).
14 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
16 % This page is completely empty but has some \special stuff.
20 \special{DVItoVDU should warn user that it is ignoring this stuff.}
24 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
26 % This page has 1 black pixel at (0,0).
28 \message{1 black pixel at (0,0).}
29 \hrule height 1sp width 1sp depth 0sp
32 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
34 % This page will fill an A4 sheet with black pixels, assuming A4 paper is
35 % 8.3in by 11.7in and (0,0) is 1in from the top and left edges.
37 \message{A4 sheet full of black pixels.}
38 {% change page size and location temporarily
43 % Because ref pts of rules are at BOTTOM left corner we first need to output
44 % a rule that will guarantee Minv = -1in, then output the large rule with
45 % slightly less than A4 height.
46 \hrule height 1sp width 8.299in depth 0sp
47 \hrule height 11.695in width 8.299in depth 0sp
50 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
52 % This page is 1 pixel wider than page 3.
53 % DVItoVDU should detect that page is too wide for A4 paper.
55 \message{As above but 1 pixel too wide.}
56 \hrule height 1sp width 8.301in depth 0sp
57 \hrule height 11.695in width 8.301in depth 0sp
60 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
62 % This page is 1 pixel longer than page 3.
63 % DVItoVDU should detect that page is too low for A4 paper.
65 \message{As above but 1 pixel too low.}
66 \hrule height 11.701in width 8.299in depth 0sp
69 }% reset page size and location
71 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
73 % This page has a rulelist with a full ruletable (= 300 rules).
74 % Note that DVItoVDU does not impose any limits
75 % on the number of rules or characters in a page. Pages 6 to 9
76 % test the list manipulating code in DVIReader and DVItoVDU.
78 \message{Page with ruletablesize rules.}
82 \hrule height 1sp width \hsize % 1 pixel high
88 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
90 % This page has ruletablesize+1 rules (so rulelist has 2 nodes).
92 \message{Page with ruletablesize+1 rules.}
95 \hrule height 1sp width \hsize % 1 pixel high
101 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
103 % This page has a charlist with a full chartable (= 3000 characters).
105 \message{Page with chartablesize characters from one font.}
107 {\small \offinterlineskip
110 \leftline{iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
111 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii} % 100 chars
117 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
119 % This page has chartablesize+1 characters (so charlist has 2 nodes).
121 \message{Page with chartablesize+1 characters from one font.}
122 {\small \offinterlineskip
125 \leftline{iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
126 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii} % 100 chars
129 \leftline{i} % the extra character
133 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
136 \message{Multiple TeX page counters.}
137 \footline={\hss\tenrm\folio\hss} % turn on page numbers
139 \count1=1 \count2=2 \count3=3 \count4=4 \count9=9
141 This is \TeX\ page [0.1.2.3.4.....9].
144 \count1=0 \count2=0 \count3=0 \count4=0 \count9=0 % reset TeX counters
146 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
149 \message{Negative TeX page.}
152 This is \TeX\ page [-11].
155 \pageno=12 % DVI page = TeX page again
156 \nopagenumbers % turn off page numbers again
158 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
160 % This page has characters from many fonts.
161 % Note that the page is off the right edge of A4 paper.
163 \message{Page with characters from many fonts.}
164 % avoid redefining plain TeX's \i, \j etc.
166 \font\Fc=cmr5 scaled\magstep5
167 \font\Fe=cmr10 scaled\magstep5
169 \font\Fh=cmbx10 scaled\magstep5
171 \font\Fk=cmsl10 scaled\magstep5
173 \font\Fn=cmtt10 scaled\magstep5
178 \leftline{\Fb These characters are from CMR5 at mag 1000.}
179 \leftline{\Fc These characters are from CMR5 at mag 2488.}
180 \leftline{\tenrm These characters are from CMR10 at mag 1000.}
181 \leftline{\Fe These characters are from CMR10 at mag 2488.}
182 \leftline{\Fg These characters are from CMBX10 at mag 1000.}
183 \leftline{\Fh These characters are from CMBX10 at mag 2488.}
184 \leftline{\Fj These characters are from CMSL10 at mag 1000.}
185 \leftline{\Fk These characters are from CMSL10 at mag 2488.}
186 \leftline{\Fm These characters are from CMTT10 at mag 1000.}
187 \leftline{\Fn These characters are from CMTT10 at mag 2488.}
188 \leftline{\Fo These characters are from CMSS10 at mag 1000.}
189 \leftline{\Fp These characters are from CMCSC10 at mag 1000.}
190 \leftline{\Fq These characters are from CMDUNH10 at mag 1000.}
193 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
195 % This page has characters from many fonts, some of which have no corresponding
196 % PXL file. DVItoVDU should warn user about non-existent font files and
197 % continue as best it can by loading dummy font info.
198 % Note that the page is off the right edge of A4 paper.
200 \message{Page with characters from fonts at unknown magnifications.}
201 % PXL files do not exist at the requested magnifications:
202 \font\Fr=cmr5 scaled 500
203 \font\Fs=cmr5 scaled 3000
204 \font\Ft=cmr10 scaled 200
205 \font\Fu=cmr10 scaled 5000
206 \font\Fv=cmsl10 scaled 49
207 \font\Fw=cmsl10 scaled 10000
209 \leftline{\Fr CMR5 at mag 500 does not exist.}
210 \leftline{\Fb These characters are from CMR5 at mag 1000.}
211 \leftline{\Fs CMR5 at mag 3000 does not exist.}
212 \leftline{\Ft CMR10 at mag 200 does not exist.}
213 \leftline{\tenrm These characters are from CMR10 at mag 1000.}
214 \leftline{\Fu CMR10 at mag 5000 does not exist.}
215 \leftline{\Fv CMSL10 at mag 49 does not exist.}
216 \leftline{\Fj These characters are from CMSL10 at mag 1000.}
217 \leftline{\Fw CMSL10 at mag 10000 does not exist.}
220 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
222 % This page has a paragraph illustrating most of the characters from the
223 % standard roman TeX text font.
225 \message{Standard paragraph.}
227 Our task is to create a paragraph illustrating what a typical piece of text
228 looks like in the standard \TeX\ font. It should be stressed that not all
229 \TeX\ fonts can be used for typesetting text. We need to show most of the
230 characters in this font---for instance, something like ``the quick brown fox
231 jumps over a lazy dog'' would use all the lower-case letters. Hmmm \dots\
232 how about ``THE QUICK BROWN FOX JUMPS OVER 9876543210 LAZY DOGS'' to make
233 sure we show all the upper-case letters and digits? Such a paragraph would
234 hardly be typical! Then there's ligatures (try and fit in words like
235 fluffy, waffle, firefly, difficult) and examples of kerning (boxer, cooked,
236 vowel). Not to mention the various accents and other special letters:
237 prot\'eg\'e, r\^ole, na\"\i ve, \AE sop's \OE vres en fran\c cais.
238 But how do we put all this stuff into a paragraph that makes sense!?
241 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
244 \message{Page in bottom half of A4 paper.}
246 \centerline{Page in bottom half of A4 paper.}
249 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
252 \message{Page completely above left of A4 paper.}
255 \leftline{Page completely above left of A4 paper.}
258 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
261 \message{Page completely below right of A4 paper.}
265 \rightline{Page completely below right of A4 paper.}
268 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
271 \message{Page beyond all edges of A4 paper.}
276 \line{Page beyond all edges of A4 paper.\hfil
277 Page beyond all edges of A4 paper.}
279 \line{Page beyond all edges of A4 paper.\hfil
280 Page beyond all edges of A4 paper.}
282 \voffset 0in \hoffset 0in % offsets back to normal