1

i wrote this code to get output without margin spaces. but i saw there is some extra vertical space between charater A and up edge of pdf file. 1 inch vertical and horizontal extra space is the default margin space in PDFTeX.

output

is that a bug for plain tex?

1 Answer 1

1

You're missing \topskip:

\voffset=-1in
\hoffset=-1in
\parindent=0pt
\topskip=0pt

A
\bye

Old Answer

This is the intended behaviour of TeX, although it admittedly seems questionable today.

You can remove the "extra" 1in offset in modern engines, although this will likely confuse any layout-related packages that you load.

pdfTeX:

\pdfhorigin=0pt
\pdfvorigin=0pt

LuaTeX:

\pdfvariable horigin 0pt
\pdfvariable vorigin 0pt
2
  • thanks, but no difference.
    – Minoo
    Sep 4, 2022 at 3:06
  • @Minoo Whoops, I totally misread the question. See the new edit. Sep 4, 2022 at 3:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .