% This is A4-9.DOC as of 10 Oct 89 %--------------------------------------------------------- % (c) 1989 by J.Schrod. copy conditions see below. % % Macro package for a non-arbitrary A4 page layout % LaTeX style option % MAKEPROG is needed % % % DATE PERSON REMARK % 89-10-05 -js first version % % author's current address: % % Detig$\,\cdot\,$Schrod \TeX{}sys % Joachim Schrod % Kranichweg 1 % % D-6074 R\"odermark-Urberach % FR Germany % % Tel. (+6074) 1617 % Bitnet: XITIJSCH@DDATHD21 % should be progtex... \hoffset=2cm \advance\hoffset by -1in \voffset=2cm \advance\voffset by -1in \normalsize % this sets \baselineskip \dimen@=198mm \count@=\dimen@ % value in sp \advance \count@ by -\topskip % \topskip and \baselineskip will be \divide \count@ by \baselineskip % coerced to integer, value is in sp \textheight=\count@\baselineskip % \count@ equals the number of lines - 1 \advance \textheight by \topskip \topmargin=297mm \advance \topmargin by -\textheight % place for top and bottom margin \divide \topmargin by 3 % place for top margin \advance \topmargin by -20mm % driver margin \advance \topmargin by -\headheight \advance \topmargin by -\headsep \textwidth=140.1mm \if@twoside \oddsidemargin=6mm % 26mm - 20mm (driver margin) \evensidemargin=24mm % 44mm - 20mm (driver margin) \marginparwidth=33mm % half of total vertical margin \else \oddsidemargin=17mm % 37mm - 20mm (driver margin) \marginparwidth=22mm % third of total vertical margin \evensidemargin=\maxdimen % usage should result in an error message \fi \endinput