[OS X TeX] Typesetting plain TeX documents with /magnification gives odd results
Frank STENGEL
fstengel at mac.com
Tue May 31 21:39:48 CEST 2005
Le 31 mai 05 à 17:54, Benjamin Lotto a écrit :
> Using TeXShop 2.02 under OS X 10.4.1 (Tiger) with TeX installed via
> i-Installer.
>
> Typsetting plain TeX documents using \magnification=1200 (or
> anything else other than 1000) produces odd results regarding the
> placement of text on the page. For example, the simple document
<snip>
The problem is that after magnifying you have to reset the pdf page
dimensions. Let me quote Bruno Voisin on the subject:
> I'm reposting here a reply to a similar question from a couple of
> days ago. In short: replace \magnification=\magstep3 by
>
> \mag=\magstep3
> \input pdftexconfig
> \hsize=210truemm \advance\hsize by-2truein
> \vsize=297truemm \advance\vsize by-2.1truein
>
> The \hsize and \vsize here are for A4 paper, assuming 1-inch wide
> margins (with additional 0.1 inch for the footer) which is plain
> TeX's default.
>
> The idea is that, after setting a magnification using TeX's
> primitive \mag, you need to reset not only \hsize and \vsize in
> true units, as does plain TeX's \magnification macro, but also the
> pdfTeX-specific parameters \pdfpageheight and \pdfpagewidth which
> define the mediabox (the size of the sheet of paper) and possibly
> also \pdfhorigin and \pdfvorigin. The file pdftexconfig.tex
> (actually /Library/teTeX/share/texmf.gwtex/tex/generic/config/
> pdftexconfig.tex) does this, and contains values defined when
> installing gwTeX (when you chose the paper size).
--
Frank STENGEL (fstengel<at>mac.com)
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
More information about the macostex-archives
mailing list