Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!aplcen!samsung!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!hplabs!hpfcso!hpldola!hp-lsd!jimr From: jimr@hp-lsd.COS.HP.COM (Jim Rogers) Newsgroups: comp.unix.questions Subject: Re: EQN and TBL Message-ID: <7370004@hp-lsd.COS.HP.COM> Date: 6 Dec 89 16:26:33 GMT References: <1891@onion.reading.ac.uk> Organization: HP Logic Systems Division - ColoSpgs, CO Lines: 46 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