[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Using '.vs 0' inside TBL macro
From: |
Yair Lenga |
Subject: |
Using '.vs 0' inside TBL macro |
Date: |
Mon, 12 Dec 2005 09:24:21 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050719 Red Hat/1.7.10-1.1.3.1 |
Hi,
I'm using groff with a set of custom macros. My package works OK with
1.17 (my own build), and with 1.18.1 (Red Hat). When I tried to upgrade
to 1.19.2 (for improved color macros), I found that my tables are not
showing up properly. I found a comment in the NEWS:
o Since version 1.19 you can say `.vs 0'. Older versions emit a warning
and convert this to `.vs \n[.V]'.
This seems to break my tables, which have been using '.vs 0' to disable
vertical movement inside gtbl macro. I'm using the following
.TS
tab (~)
l r l r ;
a~b~c~d
e~f~g~h
.XYZ
i~j~k~l
.TE
Where "XYZ" is a macro for some "special effect" using
.de XYZ
.vs 0
AAA
BBB
.vs
..
In 1.17/1.18, this will result in "AAA" and "BBB" printed at the same
line as "i~j", without extra spacing. In 1.19.2 I'm getting:
a b c d
e f g h
AAA
BBB
i j k l
My goals was to use a macro that will create "special effect", without
any vertical movement. (The real macro uses drawing commands - looks
better, but example is much larger). In version 1.19.2 the '.vs 0'
actually result in default line movement.
I'm not sure if the new behavior (.vs 0 => converted to .vs <default>)
is intentional. If this is the case, how can I get the old "no vertical
movement" option. The groff-1 info page provide example about '.vs 0' -
implying that this is accepted value.
Please fix/bring back the old '.vs 0'
Many thanks,
Yair
--
Yair Lenga
Director
The Yield Book
Phone: 212-816-7468
Fax: 212-816-7766
Email: address@hidden
Citigroup Global Markets Inc.
.defcolor blue rgb #00f
.defcolor red rgb #f00
.\" Begin_Document:
.nf
.de TSHADOW
.vs 0
---
|||
.vs
..
.\" Begin_Page: Credit Focus\nPortfolio Overview
.pl 8.500i
.sp 0.500i
.po 0.500i
.\" Set_X: Left=0.00, Size=10.00
.ll 10i
.in 0.00i
.\" End Table
.sp 0.075i
.\" End_Column:
.nr BTM1 \n[BTM1]>?\n[.d]
.\" Begin_Column:
.rt \n[TOP1]u
.\" Set_X: Left=2.00, Size=3.33
.ll 5.33i
.in 2.00i
.\" Relative: (0.2, 0.333333333333333)
.sp 0.075i
.ce 999
.ft HB
.ps 10
.vs 12
Portfolio Sector Breakdown
.ce 0
.\" Begin Table (15 x 5)
.sp 0.075i
.ps 8
.vs 10
.TS
tab(~) allbox ;
LF(HB)P8 2 NF(HB)P8 2 s 2 s 2 NF(HB)P8 .
~BBBCORP~Credit
.T&
LF(HB)P8 NF(HB)P8 NF(HB)P8 NF(HB)P8 NF(HB)P8 .
~# Issues~MktVal~% MktVal~% MktVal
_
.TSHADOW 200 5
Total~1,228~790 MM~100.0~
.T&
LF(HR)P8 NF(HR)P8 NF(HR)P8 NF(HR)P8 NF(HR)P8 .
_
.TSHADOW 200 5
Cash~~~~
.TSHADOW 200 5
Treasury~~~~
.TSHADOW 200 5
Gvt Spon~~~~
.T&
LF(HB)P8 NF(HB)P8 NF(HB)P8 NF(HB)P8 NF(HB)P8 .
Credit~1,228~790 MM~100.0~100.0
.T&
LF(HR)P8 NF(HR)P8 NF(HR)P8 NF(HR)P8 NF(HR)P8 .
Industrial~781~488 MM~61.7~61.7
Utility~235~162 MM~20.5~20.5
Financial~166~79,779 M~10.1~10.1
Svgn/Prov~46~60,714 M~7.7~7.7
Other Corp~~~~
.TSHADOW 200 5
Mortgage~~~~
.TSHADOW 200 5
ABS~~~~
.TSHADOW 200 5
Other~~~~
.T&
lw(0.67i-2n) lw(0.30i-2n) lw(0.30i-2n) lw(0.30i-2n) lw(0.30i-2n) .
.TE
- Using '.vs 0' inside TBL macro,
Yair Lenga <=