summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/csplain/base/plaina4.tex
blob: 5a5db96dae44df8fa67bbd85a4924de4ac9c8d25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
%  The size of A4 paper is 210mm x 297mm.
%  The following setting lets exactly 1in empty from each side of paper
%  (only the bottom margin with pagination is 1in+7mm) 
%  and these dimensions are taken into account also when
%  \magnification is used.

\immediate\message{\string\hsize=159.2 mm \string\vsize=239.2 mm}

\hsize= 159.2 mm
\vsize= 239.2 mm

{\catcode64=11                          % \catcode`\@=11

\gdef\m@g{\mag\count@
  \hsize=159.2truemm \vsize=239.2truemm \dimen\footins8truein
  \ifx\pdfpagewidth\undefined\else     % added by P. O. Nov 2012
     \recount@true\pdfpagewidth   % \recont@true added by P. O Apr. 2016
     \recount@true\pdfpageheight  % because media size is distribution-dependent
     \recount@true\pdfhorigin
     \recount@true\pdfvorigin
  \fi
}
\gdef\recount@true#1{#1=\expandafter\recount@trueA\the#1truept\relax}
{\catcode`p=12 \gdef\recount@trueA#1p#2{#1}}

}