Article View: comp.text
Article #2297Re: Rotating troff 90 degrees?
From: Chris Lewis
Date: Tue, 13 Oct 1992 03:06
Date: Tue, 13 Oct 1992 03:06
53 lines
3059 bytes
3059 bytes
In article <23613@optima.cs.arizona.edu> rupley@cs.arizona.edu (John Rupley) writes: |In article <3868@ecicrl.ocunix.on.ca> clewis@ferret.ocunix.on.ca (Chris Lewis) writes: |>In article <1992Oct6.211220.20566@jarvis.csri.toronto.edu> acs@csri.toronto.edu (Alvin Chia-Hua Shih) writes: |>>I'm in need of being able to rotate a table and graph 90 degrees. |>>Is there any way to do this in troff? |>This isn't really "standard troff" functionality. However, if you |>can generate postscript (particularly an EPS) from the table or graph, |>most versions of troff will allow you to include this postscript |>in your document. That is, if you're driving postscript. |Am I missing the point here? Can one not, at an arbitrary page break in |the document, include the following? | [portrait text] |PS commands to change from portrait to landscape |troff commands to change line length and page length to landscape | [landscape text, tables (tbl) and figs (grap, pic, | or included PS)] |PS and troff commands for landscape back to portrait | [portrait text] That's what I was driving at, but with an extra step. Having it as an EPS, however, permits the integration to be a bit more seamless. James Clarke's code, for example, does precisely this. But without a little handwaving or hand-crafting, the autoscaling provided by groff (or psfig/pspic + ditroff) won't work. Ie: the EPS bounding box will be rotated 90 degrees from what is desired. If the picture is square, great, but to do the job "properly", the EPS BoundingBox has to be fudged (numbers shuffled). To the original poster - while you may not have groff, most of the other ditroffs do support this one way or another. Psfig, in particular, when added to generic ditroff (with Transcript or psroff PostScript drivers) is close to groff capability, but not quite as seamless. I wouldn't abandon troff for TeX just because of this. Furthermore, if you have CAT troff instead of DWB, you can *still* do this, but ONLY if you're using psroff 3 as your PostScript driver. With psfig for that matter for more seamless operation. [I should point out that DWB 3 is more-or-less equivalent to groff in this regard, *if* you have DWB 3 instead of DWB 2.] It's worth perusing the comp.text FAQ on this topic. -- Chris Lewis; clewis@ferret.ocunix.on.ca; Phone: Canada 613 832-0541 Psroff 3.0 info: psroff-request@ferret.ocunix.on.ca Ferret list: ferret-request@ferret.ocunix.on.ca
Technical Details
Message-ID:
<3879@ecicrl.ocunix.on.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!convex!news.utdallas.edu!corpgate!bnrgate!nrcnet0!cunews!revcan!ecicrl!clewisReferences:
<1992Oct6.211220.20566@jarvis.csri.toronto.edu> <3868@ecicrl.ocunix.on.ca> <23613@optima.cs.arizona.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!convex!news.utdallas.edu!corpgate!bnrgate!nrcnet0!cunews!revcan!ecicrl!clewis From: clewis@ferret.ocunix.on.ca (Chris Lewis) Newsgroups: comp.text Subject: Re: Rotating troff 90 degrees? Keywords: troff rotation Message-ID: <3879@ecicrl.ocunix.on.ca> Date: 13 Oct 92 03:06:42 GMT References: <1992Oct6.211220.20566@jarvis.csri.toronto.edu> <3868@ecicrl.ocunix.on.ca> <23613@optima.cs.arizona.edu> Organization: Elegant Communications Inc., Ottawa, Canada Lines: 53