I've just noticed that \v is inconsistent with respect to the
default scaling unit.  If one gives a digit with no scaling unit,
it performs as per the info docs, viz. v is assumed.  Equally, if
one provides a scaling unit, it performs properly.  However, if one
enters an arithmetic expression instead of a digit, \v behaves as if
'u' is the default scaling unit.  To demonstrate,

.ps 10
.vs 12
.sp |1i-1v
.nf
1. default scaling unit:\h'6p'\c
word \v'-1'word \v'1' word
.sp 2
2. p as scaling unit:\h'6p'\c
word \v'-12p'word \v'12p'word
.sp 2
3. arimthmetic expression:\h'6p'\c
word \v'-24000/2'word \v'24000/2'word

If you pass this snippet to groff (-Tps or -Tpdf), you'll see that
line 3 has no scaling unit but \v behaves as if 'u' were given.

Is this behaviour correct?  If so, should it be documented?  Or has
it already been documented in some recondite corner of the docs?

-- 
Peter Schaffter
https://www.schaffter.ca

Reply via email to