% $Id: pdftexmagfix.tex 8570 2008-06-05 00:13:02Z karl $ % pdftex \magnification fix by Heiko Oberdiek and Ian Hutchinson, 2007. % See http://silas.psfc.mit.edu/pdftexpatch/ for background. % Public domain. % % This file is input from pdftex.ini and pdfetex.ini. % \ifx\pdfoutput\undefined \else \ifx\pdfoutput\relax \else \catcode`@=11 \def\m@g{% replace plain.tex's definition, but start the same: \mag\count@ \hsize6.5truein\vsize8.9truein\dimen\footins8truein % And add these commands to fix the pdf sizes to be in true units. \ppdfmag@fix\pdfhorigin \ppdfmag@fix\pdfvorigin \ppdfmag@fix\pdfpagewidth \ppdfmag@fix\pdfpageheight }% \def\ppdfmag@fix#1{#1=\expandafter\ppdfconvert@truept\the#1\relax}% % \begingroup \catcode`P=12 \catcode`T=12 \lowercase{% \endgroup \def\ppdfconvert@truept#1PT{#1truept}% }% \catcode`@=12 \fi \fi % % Here's a simple test file, from Ian: %\magnification \magstep5 %\hoffset -1 truein \voffset -1 truein %\parindent 0pt The top %\end % "The top" should come out truly in the upper-left corner.