EQN and TBL

Jim Rogers jimr at hp-lsd.COS.HP.COM
Thu Dec 7 03:26:33 AEST 1989


Upon further study I find that text blocks, as useful as they are, are
**not** necessary for combining tbl and eqn.

The keys to this combination are explained in page 16 of the tbl 
technical discussion in the book "UNIX (R) System V Documentor's
Workbench User's Guide" printed by Prentice Hall.  This book is part of
the AT&T UNIX (R) System V series.

The most important issue in getting eqn and tbl to work together seems to
be the relative order in which they are invoked.  The book states that
eqn should **always** be invoked after tbl on files which have equations
inside tables.

	i.e   
		tbl foo.text | eqn | troff -mm

The example used in the book, which only works with the order shown above,
is:


.EQ
delim $$
.EN

.TS
doublebox;
c c
l l.
Name	Definition
.sp
.vs +2p
Gamma	$GAMMA (z) = int sub 0 sup inf t sup {z-1} e sup -t dt$
Sine	$sin (x) = 1 over 2i ( e sup ix - e sup -ix )$
Error	$roman erf (z) = 2 over sqrt pi int sub 0 sup z e sup {-t sup 2} dt$
Bessel	$J sub 0 (z) = 1 over pi int sub 0 sup pi cos (z sin theta )d theta $
Zeta	$ zeta (s) = sum from k=1 to inf k sup -s ~~( Re~s > 1)$
.vs -2p
.sp 2p
.TE



Sorry for the earlier misinformation.


Jim Rogers



More information about the Comp.unix.questions mailing list