[net.unix] DiTroff problem.. help !!

oz@yetti.UUCP (Ozan Yigit) (03/24/86)

We have a problem with ditroff. The following piece of eqn code
causes ditroff to "word overflow". We are running the regular
ditroff (the one from 1978 I think..), and have made no mods
to it. Any suggestions would be appreciated. Perhaps you should
try this fragment with your Troff and see what results you get.
I would be especially interested in what "Documenter's workbench"
eqn/ditroff does with this. If you know of any fixes, or if
you have any suggestions, please, please throw them in this direction.

Oz
---------------------- SNIP -------------------------------------
.nr PS 12
.nr VS 17
.ps 12
.vs 17p
.EQ
delim $$
gsize 12
define # 'above'
.EN
.EQ
P A P sup T ~=~ roman size 12 {
left (
matrix { ccol { 4 # x # ~ # x # ~ # ~ # ~ # x }
         ccol { x # 5 # x # x # ~ # ~ # ~ # x }
         ccol { ~ # x # 6 # x # ~ # ~ # ~ # x }
         ccol { x # x # x # 7 # ~ # ~ # ~ # x } } ~~
matrix { ccol { ~ # ~ # ~ # ~ # 1 # x # ~ # x }
         ccol { ~ # ~ # ~ # ~ # x # 2 # x # x }
         ccol { ~ # ~ # ~ # ~ # ~ # x # 3 # x }
         ccol { x # x # x # x # x # x # x # 8 } } right ) }
~~~~~~~
Q A Q sup T ~=~ roman size 12 {
left (
matrix { ccol { 4 # x # ~ # x # x # ~ # ~ # ~ }
         ccol { x # 5 # x # x # x # ~ # ~ # ~ }
         ccol { ~ # x # 6 # x # x # ~ # ~ # ~ }
         ccol { x # x # x # 7 # x # ~ # ~ # ~ } } ~~
matrix { ccol { x # x # x # x # 8 # x # x # x }
         ccol { ~ # ~ # ~ # ~ # x # 1 # x # f }
         ccol { ~ # ~ # ~ # ~ # x # x # 2 # x }
         ccol { ~ # ~ # ~ # ~ # x # f # x # 3 } } right ) }
.EN
---------------------------------------------------------------
-- 

Usenet: [decvax|allegra|linus|ihnp4]!utzoo!yetti!oz
Bitnet: oz@[yusol|yuyetti]
	FREE SOFTWARE FOUNDATION vs. EMPIRE. Watch for
	things to come..

liam@cs.qmc.ac.uk (William Roberts) (04/02/86)

Ditroff produces a "Word overflow" message when it assembles a
word that is too long.  Eqn produces very long strings and
makes extensive use of unpaddable space characters, so it has
a tendency to make long words, since space and newline are the
only word delimiters...

You need to change the #defined constant WDSIZE in tdef.h to something
larger and recompile.  It is 270 on our system and that ran
your matrix example with no troubles.
-- 

William Roberts                 ARPA: liam@UK.AC.qmc.cs
Queen Mary College              UUCP: liam@qmc-cs.UUCP
LONDON, UK