🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.text
Article #126

PostScript/LaserWriter blues

#126
From: Mark Wallen
Date: Tue, 17 Dec 1985 22:35
74 lines
2197 bytes
I'm still having a problem with line drawing and/or
positioning with troff and our LaserWriter.  The troff
(not ditroff) macros included below provide a simple
failure case.  The output should be two pages with
a set of 4 L shaped crop marks (which are intended to
show the framing of a smaller sized page).  The horizontal
lines should be 9.25 inches apart, while the vertical
ones should be 6.125 inches apart.  It works
fine on our other troff previewers, but on the LaserWriter
it produces 3 pages of, well, see for yourself.

To run, just put the text below in a file and
feed to ptroff (use no macros packages).

Mark Wallen

UC San Diego
wallen@nprdc.arpa
ucbvax!sdcsvax!sdcsla!wallen.uucp

----------cut here--------------------
.xx cW == size of crop mark side
.nr cW .125i
.xx lM == size of left margin
.nr lM .8125i
.po \n(lMu+.25i+\n(cWu
.ll 4.5i
.lt 4.5i
.nr ux 0.60i
.nr bx \n(.pu-(9.25i-1.i+\n(cWu)
.wh 0 he
.wh -\n(bxu fo
.de he
.cM top
'sp \\n(uxu-\\n(uXu
.tl '''\\*(HA     \\s10%\\s0'
'sp .25i
..
.de cM
.nr ,l \\n(.l
.ls 1
.ll 7.53i-\\n(.ou
'po -(\\n(cWu+\\n(lMu)
'ti 0
.ie ~\\$1~top~ \{\
'	sp |\\n(cWu
.	nr , 0-\\n(cWu
.\}
.el \{\
.	nr , \\n(cWu
.\}
.xx .tm cM \\$1 po=\\n(.o cW=\\n(cW ,=\\n,
'ti 0
\l'\\n(cWu\(ul'\L'\\n,u'\h'6.125i-\w'\(br''\L'-\\n,u'\l'\\n(cWu\(ul'
'br
.ll \\n(,lu
.ls
.if ~\\$1~top~ \{\
'	sp |\\n(cWu
.\}
'po +(\\n(cWu+\\n(lMu)
..
.de fo
.TM fo \\n(nl \\n(.t x=\nx	qB=\\n(qB
.nr dn 0
.xx cut mark
'sp |9.25i+\\n(cWu
.cM bottom
'bp
..
.ds HA test
.sp
this is a bunch of test text.
.bp
Technical Details
Message-ID: <1040@sdcsla.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!petrus!bellcore!decvax!ittatc!dcdwest!sdcsvax!sdcsla!wallen

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site sdcsla.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!petrus!bellcore!decvax!ittatc!dcdwest!sdcsvax!sdcsla!wallen
From: wallen@sdcsla.UUCP (Mark Wallen)
Newsgroups: net.text
Subject: PostScript/LaserWriter blues
Message-ID: <1040@sdcsla.UUCP>
Date: Tue, 17-Dec-85 17:35:32 EST
Article-I.D.: sdcsla.1040
Posted: Tue Dec 17 17:35:32 1985
Date-Received: Fri, 20-Dec-85 01:37:36 EST
Distribution: net
Organization: U.C. San Diego, Cognitive Science Lab
Lines: 74