🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #3645

Re: Landscape page orientation

#3645
From: Wolfgang S. Rupprecht
Date: Tue, 13 Nov 1990 01:55
87 lines
3190 bytes
CXT105@psuvm.psu.edu (Christopher Tate) writes:
>The origin is located at the corner of the PHYSICAL page.  The actual
>boundaries of the printable page are smaller than the physical page,
>so you have to compensate for that.

Is the origin supposed to be at the lower-left *exactly*?

I have just undertaken a small treasure hunt into the inner working of
printing latex via these two avenues:

	latex -> dvijep -> LaserJetII 
	latex -> dvi2ps -> Adobe-PS-Cart -> LaserJetII

There is a noticeable difference in page centering using these two
methods.  The problem boils down to the fact that dvi2ps assumes that
the lower-left physical page is *exactly* (0,0), just as you have
said.

The printer seems to think that the lower left of the paper is (0.07
in, 0.07 in) in from the origin.  This comes out to the edge of the
paper being roughly at (5,5) on the initial postscript coordinate
system.  Is there a definitive standard on the exact location of the
origin relative to the lower left of the physical page?

If this is a bug, is there some way to fix it up the offset?
Setmargins seems to have much too coarse a granularity to fix up a 5
pt. offset.  Setmargins claims to have a 16 pixel (0.05 inch, or 3.8
pt.) granularity.  So far, I have simply added a 5 pt. offset to each
axis in dvi2ps, but this still leaves my margins off the page for
normal postscript files.

-wolfgang

In case anyone else feels like wasting an otherwise perfectly good
sheet of paper and measuring their PS printer's offset, here is my
ruler hack.

%!
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%									     %%
%%	File:     ruler.ps						     %%
%%	Author:   Wolfgang S. Rupprecht <wolfgang@wsrcc.com>		     %%
%%	Created:  Mon Nov 12 20:39:34 EST 1990				     %%
%%	Contents: ruler (graph paper) generator for measuring		     %%
%%		  virtual->physical coordinate system offsets		     %%
%%		  and distortions					     %%
%%									     %%
%%	Copyright (c) 1990 Wolfgang S. Rupprecht.			     %%
%%	All rights reserved.						     %%
%%									     %%
%%	$Header$							     %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

/Times-Roman findfont 18 scalefont setfont

0 72 612
{
    newpath
    dup 
    0 moveto
    dup
    792 lineto
    stroke
    dup
    8 add 80 moveto
    4 string cvs show
} for

0 72 792
{
    newpath
    dup
    0 exch moveto
    dup
    612 exch lineto
    stroke
    dup
    8 add 80 exch moveto
    4 string cvs show
} for

showpage

% end
-- 
Wolfgang Rupprecht    wolfgang@wsrcc.com (or) uunet!wsrcc!wolfgang
Snail Mail Address:   Box 6524, Alexandria, VA 22306-0524
Technical Details
Message-ID: <1990Nov13.015548.15231@wsrcc.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!usaos!wsrcc.com!wolfgang
References: <AAS.90Nov7093033@boeygen.nr.no> <21532@well.sf.ca.us> <90313.151629CXT105@psuvm.psu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!usaos!wsrcc.com!wolfgang
From: wolfgang@wsrcc.com (Wolfgang S. Rupprecht)
Newsgroups: comp.lang.postscript
Subject: Re: Landscape page orientation
Message-ID: <1990Nov13.015548.15231@wsrcc.com>
Date: 13 Nov 90 01:55:48 GMT
References: <AAS.90Nov7093033@boeygen.nr.no> <21532@well.sf.ca.us> <90313.151629CXT105@psuvm.psu.edu>
Organization: Wolfgang S Rupprecht Computer Consulting, Washington DC.
Lines: 87