jtc@tessera.uucp (J.T. Conklin) (08/31/89)
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 I'd appreciate any pointers on how to do this properly. Thanks, --jtc -- J.T. Conklin ...!{ubc-cs,uunet}!van-bc!tessera!jtc
brainerd@unmvax.unm.edu (Walt Brainerd) (08/31/89)
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 > 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 <file> | grep % -- Walt Brainerd Unicomp, Inc. brainerd@unmvax.cs.unm.edu 2002 Quail Run Dr. NE Albuquerque, NM 87122 505/275-0800
jtc@tessera.uucp (J.T. Conklin) (08/31/89)
In article <315@unmvax.unm.edu> brainerd@unmvax.unm.edu (Walt Brainerd) writes: >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). I had my pipeline set up "soelim doc.mm | eqn | tbl | eroff", as eqn complained about "unquoted troff commands". This should have tipped me off, but I was too rushed to notice. I've just checked my tbl output and it does use "%" in a register name. Once I changed the %'s to $'s everything worked fine. Now I wonder why the eqn manual suggests using %'s as delimiters. Thanks for your help, --jtc -- J.T. Conklin ...!{ubc-cs,uunet}!van-bc!tessera!jtc
murray@sq.sq.com (Murray Maloney) (08/31/89)
In article <315@unmvax.unm.edu> brainerd@unmvax.unm.edu (Walt Brainerd) writes: >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 >> >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 <file> | grep % Make that three things: 3. The tbl global options line in this case should read center delim(%%); Tbl must be informed that it may encounter eqn input. ******************************************************************************** Murray C. Maloney uucp: {utai|utzoo|uunet}!sq!murray Documentation Specialist Internet: murray@sq.com SoftQuad Inc. Phone: (416) 963-8337
kk@hpl-opus.HP.COM (Konstantinos Konstantinides) (08/31/89)
>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 > >I'd appreciate any pointers on how to do this properly. > >Thanks, According to the tbl manual (and it works fine for me), you should have .TS center, delim (%%); c s ^^^^^^^^^^ ................... ------------------------------ K. Konstantinides
henry%angel@Sun.COM (Henry McGilton -- Software Products) (09/01/89)
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 <file> | 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 | | | +------------------+------------------------+---------------------------+