Article View: comp.text.tex
Article #10968latex page parameters
From: barr
Date: Wed, 06 Jan 1993 01:24
Date: Wed, 06 Jan 1993 01:24
76 lines
2812 bytes
2812 bytes
Somewhere I got a neat graphic showing what all the page parameters
do. In answer to a colleague who thought that altering \headheight would
change the pagination, I decided to do it up in latex. Since others may
find it useful, I am posting it here.
Michael Barr
%%%%%%%%%%%%%%%%%%%% start here %%%%%%%%%%%%%%%%%%%%%%
\documentstyle{article}
\def\pbox(#1,#2)#3{\put(#1,#2){\makebox(0,0){#3}}}
\newcount\x \newcount\y \newcount \l
\def\harr(#1,#2)#3#4{\x=#1 \y=#2 \l=#4
\pbox(\x,\y){#3}\advance \x by 15 \divide \l by 2 \advance \l by -15
\put(\x,\y){\vector(1,0)\l} \advance \x by -30
\put(\x,\y){\vector(-1,0)\l}}
\def\varr(#1,#2)#3#4{\x=#1 \y=#2 \l=#4
\pbox(\x,\y){#3}\advance \y by 10 \divide \l by 2 \advance \l by -10
\put(\x,\y){\vector(0,1)\l} \advance \y by -20
\put(\x,\y){\vector(0,-1)\l}}
\def\bx(#1,#2)(#3,#4){\put(#1,#2){\framebox(#3,#4){}}}
\textwidth=7.5in
\textheight=10in
\thispagestyle{empty}
\oddsidemargin=-.5in
\headheight=0in
\topmargin=-.5in
\headsep=0in
\begin{document}
\unitlength=.01in
\begin{picture}(700,800)
\bx(0,0)(700,800)
\put(80,0){\line(0,1){800}}
\put(0,720){\line(1,0){700}}
\harr(40,400)1{80}
\varr(350,760)2{80}
\bx(160,80)(300,60)
\pbox(325,110){footer}
\varr(250,110){12}{60}
\bx(160,180)(300,400)
\bx(520,180)(140,400)
\bx(160,620)(300,60)
\pbox(350,380){text}
\harr(310,250)8{300}
\varr(250,380)7{400}
\harr(490,550)9{60}
\harr(120,550)3{80}
\harr(590,250){10}{140}
\pbox(590,390){margin}
\pbox(590,370){notes}
\pbox(280,650){header}
\varr(350,650)5{60}
\varr(310,600)6{40}
\varr(310,160){11}{40}
\varr(310,700)4{40}
\end{picture}
\kern10pt
\leavevmode
\kern20pt
\def\!{$\backslash$}
\begin{tabular}{ll@{\kern1in}ll}
1&\tt \!hoffset&7&\tt \!textheight\\
2&\tt \!voffset&8&\tt\!textwidth\\
3&\tt \!oddsidemargin+1in&9&\tt \!marginparsep\\
4&\tt \!topmargin+1in&10&\tt \!marginparwidth\\
5&\tt \!headheight&11&\tt \!footskip\\
6&\tt \!headsep&12&\tt \!footheight
\end{tabular}
\kern10pt Note: The {\tt \!oddsidemargin} (as well as the {\tt
\!evensidemargin}, not shown but having the same effect on even numbered
pages when the {\tt twoside} option is chosen) is inch less than its
actual values, so that a negative distance is required to have less than
a one inch top or left margin. This is a \LaTeX\ version of a diagram
credited to Kent McPherson.
\end{document}
Technical Details
Message-ID:
<9301060124.AA23530@triples.math.mcgill.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ucselx!network.ucsd.edu!mvb.saic.com!info-texShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ucselx!network.ucsd.edu!mvb.saic.com!info-tex From: <barr@triples.Math.McGill.CA> Newsgroups: comp.text.tex Subject: latex page parameters Message-ID: <9301060124.AA23530@triples.math.mcgill.ca> Date: Tue, 5 Jan 93 20:24:43 EST Organization: Info-Tex<==>Comp.Text.Tex Gateway X-Gateway-Source-Info: Mailing List Lines: 77