Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!husc6!seismo!mcvax!enea!tut!jsa From: jsa@tut.UUCP Newsgroups: comp.graphics,comp.unix.wizards Subject: Re: Horizontal format with pic or Postscript? Message-ID: <1459@korppi.tut.fi> Date: Thu, 11-Jun-87 03:55:09 EDT Article-I.D.: korppi.1459 Posted: Thu Jun 11 03:55:09 1987 Date-Received: Sun, 14-Jun-87 20:46:11 EDT References: <1642@pbhye.UUCP> Organization: Tampere University of Technology, Finland Lines: 96 Xref: utgpu comp.graphics:723 comp.unix.wizards:2487 in article <1642@pbhye.UUCP>, josh@pbhye.UUCP (Joshua Stein) says: > Xref: tut comp.graphics:533 comp.unix.wizards:1834 > >screen becomes compressed when printed on a laser printer. The diagram is wide > and I am at a loss as to how to tell either pic (if this possible) or >Postscript(the two available graphics packages) how to rotate the diagram and > print it horizontally (actually the laser printer would take care of the > printing if I could just get the generated bit map correct). > I had a kind a similar problem when trying to get large tables (run through tbl and then ditroff ) to landscape -format to our APPLE (postscript) laserwriter. What I did was to take ditroff's postscript output to a file and then modify the postscript file to be printed horizontally. Here's the script and the lines to be added and the manual page. --------------- /usr/local/2land ---------------------- #! /bin/sh for i do cp $i $i~ ed $i <<'LOPPU' >/dev/null 2>&1 /initmatrix/2 . r /usr/local/.2land.rot w q LOPPU done --------------- /usr/local/.2land.rot ------------------- 0 11.5 72 mul translate 270 rotate --------------- /usr/man/manl/2land.l ------------------- .TH 2LAND 1L 6/3/87 .SH NAME 2land, convert postscript -files to landscape format for laser writer. .SH SYNOPSIS .IR 2land file [file...] .SH DESCRIPTION The .IR 2land program converts postscript files to landscape format for APPLE laser writer. .PP This program is mostly useful is you wish to print out tables which require rather a wide paper. The reason to make this program was that there was absolutely .IR no way to print a file in landscape format after having run it through .IR ditroff (1). .PP What the program actually does is that it finds the place in a postscript file immediately after first 2 initmatrix -commands, which is the way ditroff initializes the scaling. Then using .IR ed (1) it puts there commands to relocate the place of the origin and to rotate the printing direction by 270 degrees. .PP This program actually modifies your postscript file, but it does leave you the original one as well. The name of the original file is extended like emacs does (adding a '~' to the end of the name). .PP Remember, that in landscape -format page length is about 6.5 inches and line length is about 11.5 inches. DO NOT FORGET TO TELL THAT TO DITROFF !! .SH "AUTHORS" jsa@tut.fi .SH FILES .IR/usr/local/2land - the command itself .br .IR /usr/local/.2land.rot - this has the information to be added .SH "SEE ALSO" .IR lwf (1) - which handles normal text perfectly. .SH BUGS This is .IR NOT a filter, because sed can't cope with multiple line searches. ----------------------------------- I hope this is of some help. -- Jari Salo Tampere University of Technology UUCP: jsa@tut.UUCP Computer Systems Laboratory Internet: jsa@tut.fi PO box 527 Tel: 358-(9)31-162590 SF-33101 Tampere, Finland