You can use pdftex, if you want to profit from e-TeX extensions; on TeX Live it's available for DVI output as etex
or, from the command line,
pdftex --output-format=dvi
Plain TeX has not many page format parameters: the upper left corner of the type block is 1in from the left edge and 1in from the upper edge of the paper.
In order to shift the text block it's necessary to either modify the output routine or to set \hoffset
and \voffset
. So
\hoffset=-72.27truept
\voffset=-72.27truept
\special{papersize=72.27pt,72.27pt}
\hsize=72.27truept
\vsize=72.27truept
\parindent=0pt
\nopagenumbers
\input pstricks
\pspicture(72.27pt,72.27pt)
\psframe(72.27pt,72.27pt)
\endpspicture
\bye
Without \nopagenumbers
you'd have the number "printed" outside the page area.
A modified output routine that makes unnecessary to act on \hoffset
and \voffset
is
\catcode`@=11
\def\xportoutput#1#2{%
\shipout\vbox{\vglue#1\relax
\moveright#2\vbox{\makeheadline\pagebody\makefootline}}%
\advancepageno
\ifnum\outputpenalty>-\@MM \else\dosupereject\fi}
\catcode`@=12
\output{\xportoutput{-72.27truept}{-72.27truept}}
One can change the two parameters to \xportoutput
, for example to adapt the position of the text block to A4 paper. The arguments are respectively the horizontal and the vertical displacements with respect to the default reference point. It's better to use truept
in order not to apply the \mag
factor.