grogers@m.cs.uiuc.edu (09/04/90)
I am using the Transcript version of psroff and psdit to include postscript images in my ditroff papers. I have some images that are too wide for the page, but could be printed in landscape mode. When I do this, I also need the figure title to rotate and print in landscape mode. Is there some way to do this with Troff and postscript? I can rotate the images (bitmaps) prior to processing by ditroff/psroff/psdit, but how can I get the figure title in rotated? Is this any easier to do with TeX? Maybe this will get me to switch. Greg Rogers University of Illinois at Urbana-Champaign Department of Computer Science 1304 W. Springfield Ave. Urbana, IL 61801 grogers@cs.uiuc.edu
mf@ircam.ircam.fr (Michel Fingerhut) (09/05/90)
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].