🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #6936

Cut marks and pscat/ptroff

#6936
From: David S. Goldberg
Date: Tue, 01 Mar 1988 13:56
50 lines
2088 bytes
A while back I asked about getting rid of cut marks from ptroff output.
Since I had someone ask me about anything I found out, I'm assuming that I
wasn't the only person interested.

What I found, to my relief, is that the problem is not in the troff source
or in the transcript source (I suppose it really isn't a problem, its a
feature, but...).  Anyway, I found that the cutmarks are defined in the
macro packages (at least on Ultrix 1.2 and 2.2, so I assume other Berkely type
systems are the same, I don't know about AT&T).  In
/usr/lib/tmac/tmac.{e,s,an} and any others you might use, look for lines in
the new page macro of the form .if t - where - is a call to another macro.
This macro is likely to be the "cut mark" macro.  In ms it is called CM, and
is even mentioned in the man page.  In the CM macro look for a line like
.tl '--' '--'.  Replace the -'s with blanks. (Deleting the line caused my
pages to be thrown off by a line).  Then you are set.  Follows are the diffs
of tmac.e tmac.s and tmac.an respectively.

RCS file: RCS/tmac.e,v
retrieving revision 1.1
diff  -r1.1 tmac.e
188c188,189
< .tl '\(rn''\(rn'
---
> \" .tl '\(rn''\(rn'
> .tl '  ''  '

RCS file: RCS/tmac.s,v
retrieving revision 1.1
diff  -r1.1 tmac.s
664c664,665
< .tl '--''--'
---
> \" .tl '--''--'
> .tl '  ''  '

RCS file: RCS/tmac.an,v
retrieving revision 1.1
diff  -r1.1 tmac.an
88c88,89
< .tl '|--'
---
> \" .tl '|--'
> .tl '   '
--------------------------------------------------------------------------
Dave Goldberg	             ARPA: dsg@mitre-bedford.arpa
The Mitre Corporation        UUCP: linus!mbunix!dsg
MS B015
Bedford, MA 01730
617-271-2460
Technical Details
Message-ID: <25782@linus.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!hao!gatech!linus!mbunix!dsg

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!hao!gatech!linus!mbunix!dsg
From: dsg@mitre-bedford.ARPA (David S. Goldberg)
Newsgroups: comp.lang.postscript
Subject: Cut marks and pscat/ptroff
Message-ID: <25782@linus.UUCP>
Date: 1 Mar 88 13:56:18 GMT
Sender: news@linus.UUCP
Reply-To: dsg@mitre-bedford.ARPA (Goldberg)
Organization: The MITRE Corporation, Bedford, Mass.
Lines: 49