Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!sun-barr!newstop!sun!angel!henry From: henry%angel@Sun.COM (Henry McGilton -- Software Products) Newsgroups: comp.text Subject: Mathematics in Tables with Troff Keywords: eqn, tbl, troff, mathematics, tables Message-ID: <124033@sun.Eng.Sun.COM> Date: 31 Aug 89 18:32:35 GMT Sender: news@sun.Eng.Sun.COM Distribution: usa Lines: 47 In article <1989Aug30.170333.6938@tessera.uucp>, jtc@tessera.uucp (J.T. Conklin) writes: > Is it possible to set equations in table in eqn/tbl/troff? > I've tried the following with unsatisfactory results: > > .EQ > delim %% > .EN > .TS > center; > c s > l l. > Geometric Measurements > _ > % pi r sup 2 % area of a circle > % 2 pi d % circumference of a circle > _ > .TE > And in article <315@unmvax.unm.edu>, brainerd@unmvax.unm.edu (Walt Brainerd), writes (quite correctly): * Two things to watch out for. * 1. Make sure you put it thru tbl first (before eqn). * It worked fine on my system. * 2. Make sure you use a symbol for the eqn delim that is not * generated by tbl (as a funny register name, for example). * This can be tested by running: * tbl | grep % You also might want to change tbl's options line to read: center delim(%%) ; so that tbl knows about the delimiters that eqn is using for in-line equations. +------------------+------------------------+---------------------------+ | Henry McGilton | I saw the future, | arpa: hmcgilton@sun.com | | Sun Microsystems | and it didn't work. | uucp: ...!sun!angel!henry | | Mt. View, CA | | | +------------------+------------------------+---------------------------+