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
7 % This file is part of the LaTeX base system.
8 % -------------------------------------------
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
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.
29 % testpage.tex - created 21 January 1994.
30 % Copyright (C) 1994 by Rainer Schoepf
32 % Test of how accurately printer reproduces dimensions specified
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]{*************************************
%
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]{*************************************
%
49 \documentclass[\papertype]{article
}
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}
88 \newcommand{\sethelpcounter}[2]{%
89 \setlength{\help}{#2}\setcounter{#1}{\help}}
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}
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}
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
})
}
150 \put(
0,-
\value{textheight
})
{%
151 \framebox(
\value{textwidth
},
\value{textheight
})
{}}
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
}}}
163 \multiput(-
\value{mm
},
\value{y
})(-
\value{mm
},
0)
{25}%
164 {\line(
0,
1)
{\value{tmm
}}}
166 \addtoy{\value{frmm
}}
168 \multiput(-
\value{tenmm
},
\value{y
})(-
\value{tenmm
},
0)
{2}{%
169 \makebox(
0,
0)
{\arabic{foo
}}\addtocounter{foo
}{1}}
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
}}}
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}}
193 \sethelpcounter{x
}{\textwidth}
194 \sethelpcounter{y
}{-
0.45\textheight}
195 \putxy{\line(
1,
0)
{\value{in
}}}
199 \multiputxy(
\value{mm
},
0)
{25}{\line(
0,
1)
{\value{tmm
}}}
201 \addtox{\value{frmm
}}
203 \multiputxy(
\value{fvmm
},
0)
{5}{\line(
0,
1)
{\value{frmm
}}}
205 \addtox{\value{fvmm
}}
206 \addtoy{\value{fvmm
}}
208 \multiputxy(
\value{tenmm
},
0)
{2}{%
209 \makebox(
0,
0)
{\arabic{foo
}}\addtocounter{foo
}{1}}
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
}}}
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}}
235 \sethelpcounter{x
}{0.45\textwidth}
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
}}}
244 \addtoy{-
\value{frmm
}}
245 \multiputxy(
0,
\value{mm
})
{25}{\line(
1,
0)
{\value{tmm
}}}
248 \addtox{-
\value{tmm
}}
250 \addtoy{\value{tenmm
}}
251 \multiputxy(
0,
\value{tenmm
})
{2}{%
252 \makebox(
0,
0)
{\arabic{foo
}}\addtocounter{foo
}{1}}
255 \sethelpcounter{x
}{0.55\textwidth}
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
}}}
268 \addtox{\value{fifthin
}}
269 \addtoy{\value{twtin
}}
270 \multiputxy(
0,
\value{tenthin
})
{9}{%
271 \makebox(
0,
0)
{\arabic{foo
}}\addtocounter{foo
}{1}}
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
}}}
283 \addtoy{\value{frmm
}}
284 \multiputxy(
0,-
\value{mm
})
{25}{\line(
1,
0)
{\value{tmm
}}}
287 \addtox{-
\value{tmm
}}
289 \addtoy{-
\value{tenmm
}}
290 \multiputxy(
0,-
\value{tenmm
})
{2}{%
291 \makebox(
0,
0)
{\arabic{foo
}}\addtocounter{foo
}{1}}
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
}}}
308 \addtox{\value{fifthin
}}
309 \addtoy{-
\value{twtin
}}
310 \multiputxy(
0,-
\value{tenthin
})
{9}{%
311 \makebox(
0,
0)
{\arabic{foo
}}\addtocounter{foo
}{1}}
316 \setlength{\help}{\textwidth}
317 \addtolength{\help}{-
2in
}
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.
333 \ifthenelse{\equal{\doublesided}{y
}}{\newpage}{\end{document}}
338 \put(
0,-
\value{textheight
})
{%
339 \framebox(
\value{textwidth
},
\value{textheight
})
{}}
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
}}}
351 \multiput(-
\value{mm
},
\value{y
})(-
\value{mm
},
0)
{25}%
352 {\line(
0,
1)
{\value{tmm
}}}
354 \addtoy{\value{frmm
}}
356 \multiput(-
\value{tenmm
},
\value{y
})(-
\value{tenmm
},
0)
{2}{%
357 \makebox(
0,
0)
{\arabic{foo
}}\addtocounter{foo
}{1}}
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
}}}
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}}
381 \sethelpcounter{x
}{\textwidth}
382 \sethelpcounter{y
}{-
0.45\textheight}
383 \putxy{\line(
1,
0)
{\value{in
}}}
387 \multiputxy(
\value{mm
},
0)
{25}{\line(
0,
1)
{\value{tmm
}}}
389 \addtox{\value{frmm
}}
391 \multiputxy(
\value{fvmm
},
0)
{5}{\line(
0,
1)
{\value{frmm
}}}
393 \addtox{\value{fvmm
}}
394 \addtoy{\value{fvmm
}}
396 \multiputxy(
\value{tenmm
},
0)
{2}{%
397 \makebox(
0,
0)
{\arabic{foo
}}\addtocounter{foo
}{1}}
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
}}}
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}}
423 \sethelpcounter{x
}{0.45\textwidth}
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
}}}
432 \addtoy{-
\value{frmm
}}
433 \multiputxy(
0,
\value{mm
})
{25}{\line(
1,
0)
{\value{tmm
}}}
436 \addtox{-
\value{tmm
}}
438 \addtoy{\value{tenmm
}}
439 \multiputxy(
0,
\value{tenmm
})
{2}{%
440 \makebox(
0,
0)
{\arabic{foo
}}\addtocounter{foo
}{1}}
443 \sethelpcounter{x
}{0.55\textwidth}
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
}}}
456 \addtox{\value{fifthin
}}
457 \addtoy{\value{twtin
}}
458 \multiputxy(
0,
\value{tenthin
})
{9}{%
459 \makebox(
0,
0)
{\arabic{foo
}}\addtocounter{foo
}{1}}
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
}}}
471 \addtoy{\value{frmm
}}
472 \multiputxy(
0,-
\value{mm
})
{25}{\line(
1,
0)
{\value{tmm
}}}
475 \addtox{-
\value{tmm
}}
477 \addtoy{-
\value{tenmm
}}
478 \multiputxy(
0,-
\value{tenmm
})
{2}{%
479 \makebox(
0,
0)
{\arabic{foo
}}\addtocounter{foo
}{1}}
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
}}}
496 \addtox{\value{fifthin
}}
497 \addtoy{-
\value{twtin
}}
498 \multiputxy(
0,-
\value{tenthin
})
{9}{%
499 \makebox(
0,
0)
{\arabic{foo
}}\addtocounter{foo
}{1}}
504 \setlength{\help}{\textwidth}
505 \addtolength{\help}{-
2in
}
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.