Article View: comp.text
Article #6619Re: Negative Spacing in TROFF Diversions
From: Jaap Akkerhuis
Date: Fri, 22 Dec 1989 18:16
Date: Fri, 22 Dec 1989 18:16
71 lines
1987 bytes
1987 bytes
Excerpts from netnews.comp.text: 22-Dec-89 Negative Spacing in TROFF D..
Henry -- S. Products@Sun (1622)
Stuff deleted...
> I'm trying to work around an annoying
> problem placing PIC diagrams inside tables.
> When I format this through PIC | TBL | TROFF and so on, the top of the picture
> always comes out at the baseline of the text `some stuff'. So
> I tried moving the diagram up by placing a .sp -1v right at the
> start of the text block (which gets thrown into a diversion), and
> the whole contents of the text block just disappear.
Well, you are tackling the problem from the wrong end. Let tbl or pic do
the work for you. See attached files for details.
jaap
: ---- CUT HERE ----
: This is a shar archive. Extract with sh, not csh.
: This archive ends with exit, so do not worry about trailing junk.
: The rest of this file will extract:
: example
echo x - example
sed -e 's/^X//' > example <<'!End-Of-example!'
X.TL
XA test of pic in tables
X.AU
XJaap Akkerhuis
X.FS
X\(co Copyright 1989 Jaap Akkerhuis, All Rights Reserved
X.FE
X.SH
XWork done by tbl with spanned vertical column
X.LP
X.TS
Xtab(@);
Xl l l.
Xsome stuff@ @more stuff
X\^@T{
X.PS
Xbox
X.PE
XT}@\^
X\^@ @\^
X.TE
X.SH
XWork done by pic with invisble boxes
X.LP
X.TS
Xtab(@);
Xl l l.
XT{
X.PS
Xbox invis "some" "stuff"
X.PE
XT}@T{
X.PS
Xbox
X.PE
XT}@T{
X.PS
Xbox invis "more stuff"
X.PE
XT}
X.PE
X.TE
X
!End-Of-example!
exit
Technical Details
Message-ID:
<QZYaxkS00Ukm89UEw=@andrew.cmu.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!tut.cis.ohio-state.edu!pt.cs.cmu.edu!andrew.cmu.edu!jaap+References:
<129555@sun.Eng.Sun.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!tut.cis.ohio-state.edu!pt.cs.cmu.edu!andrew.cmu.edu!jaap+ From: jaap+@andrew.cmu.edu (Jaap Akkerhuis) Newsgroups: comp.text Subject: Re: Negative Spacing in TROFF Diversions Message-ID: <QZYaxkS00Ukm89UEw=@andrew.cmu.edu> Date: 22 Dec 89 18:16:16 GMT References: <129555@sun.Eng.Sun.COM> Organization: Information Technology Center, Carnegie Mellon, Pittsburgh, PA Lines: 71 In-Reply-To: <129555@sun.Eng.Sun.COM>