Improve build script for amsmath
[latex2e.git] / latex2e-20160201 / base / testpage.tex
blob4bbefc54112dd27af5fc7f78b157e7542cad675a
1 % \iffalse meta-comment
3 % Copyright 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009
4 % The LaTeX3 Project and any individual authors listed elsewhere
5 % in this file.
6 %
7 % This file is part of the LaTeX base system.
8 % -------------------------------------------
9 %
10 % It may be distributed and/or modified under the
11 % conditions of the LaTeX Project Public License, either version 1.3c
12 % of this license or (at your option) any later version.
13 % The latest version of this license is in
14 % http://www.latex-project.org/lppl.txt
15 % and version 1.3c or later is part of all distributions of LaTeX
16 % version 2005/12/01 or later.
18 % This file has the LPPL maintenance status "maintained".
20 % The list of all files belonging to the LaTeX base distribution is
21 % given in the file `manifest.txt'. See also `legal.txt' for additional
22 % information.
24 % The list of derived (unpacked) files belonging to the distribution
25 % and covered by LPPL is defined by the unpacking scripts (with
26 % extension .ins) which are part of the distribution.
28 % \fi
29 % testpage.tex - created 21 January 1994.
30 % Copyright (C) 1994 by Rainer Schoepf
32 % Test of how accurately printer reproduces dimensions specified
33 % by LaTeX output.
35 \typeout{}
36 \typeout{*****************************************************}
37 \typeout{* Type paper type in form of document class option,}
38 \typeout{* e.g., `a4paper' or `letterpaper' (without the quotes).}
39 \typein[\papertype]{*************************************%
40 **************}
42 \typeout{}
43 \typeout{*****************************************************}
44 \typeout{* Do you want to produce two test pages for use with}
45 \typeout{* a double sided printer? (y/n)}
46 \typein[\doublesided]{*************************************%
47 **************}
49 \documentclass[\papertype]{article}
51 \usepackage{ifthen}
53 \pagestyle{empty}
55 \nofiles
57 \setlength{\oddsidemargin}{0pt}
58 \setlength{\evensidemargin}{0pt}
59 \setlength{\marginparwidth}{1in}
60 \setlength{\marginparsep}{0pt}
62 \setlength{\topmargin}{0pt}
63 \setlength{\headheight}{0pt}
64 \setlength{\headsep}{0pt}
65 \setlength{\topskip}{0pt}
67 \setlength{\footskip}{0pt}
69 \setlength{\textwidth}{\paperwidth}
70 \addtolength{\textwidth}{-2in}
71 \setlength{\textheight}{\paperheight}
72 \addtolength{\textheight}{-2in}
74 \setlength{\parindent}{0pt}
76 \setlength{\unitlength}{1sp}
79 \newcounter{textheight}
80 \newcounter{textwidth}
82 \setcounter{textheight}{\textheight}
83 \setcounter{textwidth}{\textwidth}
85 \newlength{\help}
86 \newcounter{help}
88 \newcommand{\sethelpcounter}[2]{%
89 \setlength{\help}{#2}\setcounter{#1}{\help}}
91 \newcounter{in}
92 \newcounter{halfin}
93 \newcounter{fifthin}
94 \newcounter{tenthin}
95 \newcounter{twtin}
97 \setlength{\help}{1in}
98 \setcounter{in}{\help}
100 \setlength{\help}{0.5in}
101 \setcounter{halfin}{\help}
103 \setlength{\help}{0.2in}
104 \setcounter{fifthin}{\help}
106 \setlength{\help}{0.1in}
107 \setcounter{tenthin}{\help}
109 \setlength{\help}{0.05in}
110 \setcounter{twtin}{\help}
113 \newcounter{mm}
114 \newcounter{tmm}
115 \newcounter{frmm}
116 \newcounter{fvmm}
117 \newcounter{tenmm}
119 \setlength{\help}{1mm}
120 \setcounter{mm}{\help}
122 \setlength{\help}{2mm}
123 \setcounter{tmm}{\help}
125 \setlength{\help}{4mm}
126 \setcounter{frmm}{\help}
128 \setlength{\help}{5mm}
129 \setcounter{fvmm}{\help}
131 \setlength{\help}{10mm}
132 \setcounter{tenmm}{\help}
134 \newcounter{foo}
136 \newcounter{x}
137 \newcounter{y}
139 \newcommand{\addtox}{\addtocounter{x}}
140 \newcommand{\addtoy}{\addtocounter{y}}
142 \newcommand{\putxy}{\put(\value{x},\value{y})}
143 \newcommand{\multiputxy}{\multiput(\value{x},\value{y})}
145 \begin{document}
147 \begin{picture}(0,0)
148 \scriptsize
150 \put(0,-\value{textheight}){%
151 \framebox(\value{textwidth},\value{textheight}){}}
153 % left mm ruler
154 \setcounter{x}{0}
155 \sethelpcounter{y}{-0.45\textheight}
156 \putxy{\line(-1,0){\value{in}}}
158 \addtox{-\value{fvmm}}
159 \addtoy{-\value{tmm}}
160 \multiputxy(-\value{fvmm},0){5}{\line(0,1){\value{frmm}}}
162 \addtoy{\value{mm}}
163 \multiput(-\value{mm},\value{y})(-\value{mm},0){25}%
164 {\line(0,1){\value{tmm}}}
166 \addtoy{\value{frmm}}
167 \setcounter{foo}{1}
168 \multiput(-\value{tenmm},\value{y})(-\value{tenmm},0){2}{%
169 \makebox(0,0){\arabic{foo}}\addtocounter{foo}{1}}
171 % left in ruler
172 \setcounter{x}{0}
173 \sethelpcounter{y}{-0.55\textheight}
174 \putxy{\line(-1,0){\value{in}}}
176 \addtox{-\value{tenthin}}
177 \addtoy{-\value{tenthin}}
178 \multiputxy(-\value{tenthin},0){10}{\line(0,1){\value{fifthin}}}
180 \addtox{\value{twtin}}
181 \addtoy{\value{twtin}}
182 \multiputxy(-\value{tenthin},0){10}{\line(0,1){\value{tenthin}}}
184 \setcounter{foo}{1}
186 \addtox{-\value{twtin}}
187 \addtoy{\value{tenthin}}
188 \addtoy{\value{tenthin}}
189 \multiputxy(-\value{tenthin},0){9}{%
190 \makebox(0,0){\arabic{foo}}\addtocounter{foo}{1}}
192 % right mm ruler
193 \sethelpcounter{x}{\textwidth}
194 \sethelpcounter{y}{-0.45\textheight}
195 \putxy{\line(1,0){\value{in}}}
197 \addtox{\value{mm}}
198 \addtoy{-\value{mm}}
199 \multiputxy(\value{mm},0){25}{\line(0,1){\value{tmm}}}
201 \addtox{\value{frmm}}
202 \addtoy{-\value{mm}}
203 \multiputxy(\value{fvmm},0){5}{\line(0,1){\value{frmm}}}
205 \addtox{\value{fvmm}}
206 \addtoy{\value{fvmm}}
207 \setcounter{foo}{1}
208 \multiputxy(\value{tenmm},0){2}{%
209 \makebox(0,0){\arabic{foo}}\addtocounter{foo}{1}}
211 % right in ruler
212 \sethelpcounter{x}{\textwidth}
213 \sethelpcounter{y}{-0.55\textheight}
214 \putxy{\line(1,0){\value{in}}}
216 \addtox{\value{tenthin}}
217 \addtoy{-\value{tenthin}}
218 \multiputxy(\value{tenthin},0){10}{%
219 \line(0,1){\value{fifthin}}}
221 \addtox{-\value{twtin}}
222 \addtoy{\value{twtin}}
223 \multiputxy(\value{tenthin},0){10}{%
224 \line(0,1){\value{tenthin}}}
226 \setcounter{foo}{1}
227 \addtox{\value{twtin}}
228 \addtoy{\value{tenthin}}
229 \addtoy{\value{tenthin}}
230 \multiputxy(\value{tenthin},0){9}{%
231 \makebox(0,0){\arabic{foo}}\addtocounter{foo}{1}}
234 % top mm ruler
235 \sethelpcounter{x}{0.45\textwidth}
236 \setcounter{y}{0}
237 \putxy{\line(0,1){\value{in}}}
239 \addtox{-\value{tmm}}
240 \addtoy{\value{fvmm}}
241 \multiputxy(0,\value{fvmm}){5}{\line(1,0){\value{frmm}}}
243 \addtox{\value{mm}}
244 \addtoy{-\value{frmm}}
245 \multiputxy(0,\value{mm}){25}{\line(1,0){\value{tmm}}}
247 \setcounter{foo}{1}
248 \addtox{-\value{tmm}}
249 \addtoy{-\value{mm}}
250 \addtoy{\value{tenmm}}
251 \multiputxy(0,\value{tenmm}){2}{%
252 \makebox(0,0){\arabic{foo}}\addtocounter{foo}{1}}
254 % top in ruler
255 \sethelpcounter{x}{0.55\textwidth}
256 \setcounter{y}{0}
257 \putxy{\line(0,1){\value{in}}}
259 \addtox{-\value{tenthin}}
260 \addtoy{\value{tenthin}}
261 \multiputxy(0,\value{tenthin}){10}{\line(1,0){\value{fifthin}}}
263 \addtox{\value{twtin}}
264 \addtoy{-\value{twtin}}
265 \multiputxy(0,\value{tenthin}){10}{\line(1,0){\value{tenthin}}}
267 \setcounter{foo}{1}
268 \addtox{\value{fifthin}}
269 \addtoy{\value{twtin}}
270 \multiputxy(0,\value{tenthin}){9}{%
271 \makebox(0,0){\arabic{foo}}\addtocounter{foo}{1}}
273 % bottom mm ruler
274 \sethelpcounter{x}{0.45\textwidth}
275 \setcounter{y}{-\textheight}
276 \putxy{\line(0,-1){\value{in}}}
278 \addtox{-\value{tmm}}
279 \addtoy{-\value{fvmm}}
280 \multiputxy(0,-\value{fvmm}){5}{\line(1,0){\value{frmm}}}
282 \addtox{\value{mm}}
283 \addtoy{\value{frmm}}
284 \multiputxy(0,-\value{mm}){25}{\line(1,0){\value{tmm}}}
286 \setcounter{foo}{1}
287 \addtox{-\value{tmm}}
288 \addtoy{\value{mm}}
289 \addtoy{-\value{tenmm}}
290 \multiputxy(0,-\value{tenmm}){2}{%
291 \makebox(0,0){\arabic{foo}}\addtocounter{foo}{1}}
294 % bottom in ruler
295 \sethelpcounter{x}{0.55\textwidth}
296 \setcounter{y}{-\textheight}
297 \putxy{\line(0,-1){\value{in}}}
299 \addtox{-\value{tenthin}}
300 \addtoy{-\value{tenthin}}
301 \multiputxy(0,-\value{tenthin}){10}{\line(1,0){\value{fifthin}}}
303 \addtox{\value{twtin}}
304 \addtoy{\value{twtin}}
305 \multiputxy(0,-\value{tenthin}){10}{\line(1,0){\value{tenthin}}}
307 \setcounter{foo}{1}
308 \addtox{\value{fifthin}}
309 \addtoy{-\value{twtin}}
310 \multiputxy(0,-\value{tenthin}){9}{%
311 \makebox(0,0){\arabic{foo}}\addtocounter{foo}{1}}
314 \end{picture}
316 \setlength{\help}{\textwidth}
317 \addtolength{\help}{-2in}
319 \vfill
320 \mbox{}\hfill
321 \begin{minipage}{\help}
322 The frame on this page should be one
323 inch from each edge of the paper.\\[10pt]
324 The rulers at the four edges will indicate how much of the page is
325 useable. The ticks of the left and top rulers are $1 {\rm mm}$ apart.
326 The large ticks are $.1''$ apart.
327 \end{minipage}
328 \hfill\mbox{}
330 \vfill
331 \mbox{}
333 \ifthenelse{\equal{\doublesided}{y}}{\newpage}{\end{document}}
335 \begin{picture}(0,0)
336 \scriptsize
338 \put(0,-\value{textheight}){%
339 \framebox(\value{textwidth},\value{textheight}){}}
341 % left mm ruler
342 \setcounter{x}{0}
343 \sethelpcounter{y}{-0.45\textheight}
344 \putxy{\line(-1,0){\value{in}}}
346 \addtox{-\value{fvmm}}
347 \addtoy{-\value{tmm}}
348 \multiputxy(-\value{fvmm},0){5}{\line(0,1){\value{frmm}}}
350 \addtoy{\value{mm}}
351 \multiput(-\value{mm},\value{y})(-\value{mm},0){25}%
352 {\line(0,1){\value{tmm}}}
354 \addtoy{\value{frmm}}
355 \setcounter{foo}{1}
356 \multiput(-\value{tenmm},\value{y})(-\value{tenmm},0){2}{%
357 \makebox(0,0){\arabic{foo}}\addtocounter{foo}{1}}
359 % left in ruler
360 \setcounter{x}{0}
361 \sethelpcounter{y}{-0.55\textheight}
362 \putxy{\line(-1,0){\value{in}}}
364 \addtox{-\value{tenthin}}
365 \addtoy{-\value{tenthin}}
366 \multiputxy(-\value{tenthin},0){10}{\line(0,1){\value{fifthin}}}
368 \addtox{\value{twtin}}
369 \addtoy{\value{twtin}}
370 \multiputxy(-\value{tenthin},0){10}{\line(0,1){\value{tenthin}}}
372 \setcounter{foo}{1}
374 \addtox{-\value{twtin}}
375 \addtoy{\value{tenthin}}
376 \addtoy{\value{tenthin}}
377 \multiputxy(-\value{tenthin},0){9}{%
378 \makebox(0,0){\arabic{foo}}\addtocounter{foo}{1}}
380 % right mm ruler
381 \sethelpcounter{x}{\textwidth}
382 \sethelpcounter{y}{-0.45\textheight}
383 \putxy{\line(1,0){\value{in}}}
385 \addtox{\value{mm}}
386 \addtoy{-\value{mm}}
387 \multiputxy(\value{mm},0){25}{\line(0,1){\value{tmm}}}
389 \addtox{\value{frmm}}
390 \addtoy{-\value{mm}}
391 \multiputxy(\value{fvmm},0){5}{\line(0,1){\value{frmm}}}
393 \addtox{\value{fvmm}}
394 \addtoy{\value{fvmm}}
395 \setcounter{foo}{1}
396 \multiputxy(\value{tenmm},0){2}{%
397 \makebox(0,0){\arabic{foo}}\addtocounter{foo}{1}}
399 % right in ruler
400 \sethelpcounter{x}{\textwidth}
401 \sethelpcounter{y}{-0.55\textheight}
402 \putxy{\line(1,0){\value{in}}}
404 \addtox{\value{tenthin}}
405 \addtoy{-\value{tenthin}}
406 \multiputxy(\value{tenthin},0){10}{%
407 \line(0,1){\value{fifthin}}}
409 \addtox{-\value{twtin}}
410 \addtoy{\value{twtin}}
411 \multiputxy(\value{tenthin},0){10}{%
412 \line(0,1){\value{tenthin}}}
414 \setcounter{foo}{1}
415 \addtox{\value{twtin}}
416 \addtoy{\value{tenthin}}
417 \addtoy{\value{tenthin}}
418 \multiputxy(\value{tenthin},0){9}{%
419 \makebox(0,0){\arabic{foo}}\addtocounter{foo}{1}}
422 % top mm ruler
423 \sethelpcounter{x}{0.45\textwidth}
424 \setcounter{y}{0}
425 \putxy{\line(0,1){\value{in}}}
427 \addtox{-\value{tmm}}
428 \addtoy{\value{fvmm}}
429 \multiputxy(0,\value{fvmm}){5}{\line(1,0){\value{frmm}}}
431 \addtox{\value{mm}}
432 \addtoy{-\value{frmm}}
433 \multiputxy(0,\value{mm}){25}{\line(1,0){\value{tmm}}}
435 \setcounter{foo}{1}
436 \addtox{-\value{tmm}}
437 \addtoy{-\value{mm}}
438 \addtoy{\value{tenmm}}
439 \multiputxy(0,\value{tenmm}){2}{%
440 \makebox(0,0){\arabic{foo}}\addtocounter{foo}{1}}
442 % top in ruler
443 \sethelpcounter{x}{0.55\textwidth}
444 \setcounter{y}{0}
445 \putxy{\line(0,1){\value{in}}}
447 \addtox{-\value{tenthin}}
448 \addtoy{\value{tenthin}}
449 \multiputxy(0,\value{tenthin}){10}{\line(1,0){\value{fifthin}}}
451 \addtox{\value{twtin}}
452 \addtoy{-\value{twtin}}
453 \multiputxy(0,\value{tenthin}){10}{\line(1,0){\value{tenthin}}}
455 \setcounter{foo}{1}
456 \addtox{\value{fifthin}}
457 \addtoy{\value{twtin}}
458 \multiputxy(0,\value{tenthin}){9}{%
459 \makebox(0,0){\arabic{foo}}\addtocounter{foo}{1}}
461 % bottom mm ruler
462 \sethelpcounter{x}{0.45\textwidth}
463 \setcounter{y}{-\textheight}
464 \putxy{\line(0,-1){\value{in}}}
466 \addtox{-\value{tmm}}
467 \addtoy{-\value{fvmm}}
468 \multiputxy(0,-\value{fvmm}){5}{\line(1,0){\value{frmm}}}
470 \addtox{\value{mm}}
471 \addtoy{\value{frmm}}
472 \multiputxy(0,-\value{mm}){25}{\line(1,0){\value{tmm}}}
474 \setcounter{foo}{1}
475 \addtox{-\value{tmm}}
476 \addtoy{\value{mm}}
477 \addtoy{-\value{tenmm}}
478 \multiputxy(0,-\value{tenmm}){2}{%
479 \makebox(0,0){\arabic{foo}}\addtocounter{foo}{1}}
482 % bottom in ruler
483 \sethelpcounter{x}{0.55\textwidth}
484 \setcounter{y}{-\textheight}
485 \putxy{\line(0,-1){\value{in}}}
487 \addtox{-\value{tenthin}}
488 \addtoy{-\value{tenthin}}
489 \multiputxy(0,-\value{tenthin}){10}{\line(1,0){\value{fifthin}}}
491 \addtox{\value{twtin}}
492 \addtoy{\value{twtin}}
493 \multiputxy(0,-\value{tenthin}){10}{\line(1,0){\value{tenthin}}}
495 \setcounter{foo}{1}
496 \addtox{\value{fifthin}}
497 \addtoy{-\value{twtin}}
498 \multiputxy(0,-\value{tenthin}){9}{%
499 \makebox(0,0){\arabic{foo}}\addtocounter{foo}{1}}
502 \end{picture}
504 \setlength{\help}{\textwidth}
505 \addtolength{\help}{-2in}
507 \vfill
508 \mbox{}\hfill
509 \begin{minipage}{\help}
510 The frame on this page should be one
511 inch from each edge of the paper.\\[10pt]
512 The rulers at the four edges will indicate how much of the page is
513 useable. The ticks of the left and top rulers are $1 {\rm mm}$ apart.
514 The large ticks are $.1''$ apart.
515 \end{minipage}
516 \hfill\mbox{}
518 \vfill
519 \mbox{}
521 \end{document}