🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text
Article #1791

Re: Landscape printing with ditroff

#1791
From: Michel Fingerhut
Date: Wed, 05 Sep 1990 08:15
25 lines
1346 bytes
I modified psroff so as to allow printing in landscape mode.  Actually
this is trivial: you pipe the postscript file into the command
	sed -e "s/0 72 11.69 mul translate/0 0 translate 90 rotate/"
(for A4 paper, as in Europe.  For 8.5x11, replace the 11.69 by 11).

The modification to psroff was to add a flag, "-r", which, if used, piped
through that command, as follows:

	# add at the beginning of psroff
	rot=cat

	# add a flag check
	-r)     rot=rot1.ps ;;

	# modify the pipe at the end
	if test "$nospool" = "1" ; then
	    $dit | $psdit | $rot | $man
	else
	    $dit | $psdit | $rot | $man | $spool
	fi

where rot1.ps is a file containing the single sed line above.  We actually
have yet another flag, -2r, which pipes through rot2.ps, which takes every two
pages, reduces them, and prints them side by side (rotated).  [Solution left
for the reader.  Enquire if not found within a reasonable time].
Technical Details
Message-ID: <1990Sep5.081549.24274@ircam.ircam.fr>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker!bloom-beacon!eru!hagbard!sunic!mcsun!inria!ircam!mf
References: <8800041@m.cs.uiuc.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker!bloom-beacon!eru!hagbard!sunic!mcsun!inria!ircam!mf
From: mf@ircam.ircam.fr (Michel Fingerhut)
Newsgroups: comp.text
Subject: Re: Landscape printing with ditroff
Message-ID: <1990Sep5.081549.24274@ircam.ircam.fr>
Date: 5 Sep 90 08:15:49 GMT
References: <8800041@m.cs.uiuc.edu>
Organization: IRCAM, Paris (France)
Lines: 25