Re: arithmetic in a lyx doc

2002-09-05 Thread Dekel Tsur
On Thu, Sep 05, 2002 at 08:43:04PM +1000, John Sheahan wrote: > > It is possible using latex code: > > \newcounter{tmp} > > \setcounter{tmp}{0} > > \addtocounter{tmp}{10} > > \addtocounter{tmp}{5} > > \arabic{tmp} > > > > To save typing, you can use > > \newcommand{\add}[1]{\addtocounter{tmp}{#1}

Re: arithmetic in a lyx doc

2002-09-05 Thread John Sheahan
On Wed, Sep 04, 2002 at 07:44:15PM +0300, Dekel Tsur wrote: > On Tue, Sep 03, 2002 at 10:32:00PM +1000, John Sheahan wrote: > > Hi > > > > In my lyx doc I'd like to be able to add up a couple of > > numbers, perhaps in a table, maybe in a paragraph, get a total > > > > and then be able to copy

Re: arithmetic in a lyx doc

2002-09-04 Thread Dekel Tsur
On Tue, Sep 03, 2002 at 10:32:00PM +1000, John Sheahan wrote: > Hi > > In my lyx doc I'd like to be able to add up a couple of > numbers, perhaps in a table, maybe in a paragraph, get a total > > and then be able to copy the result (sort of like a label) > somewhere else in the document, as a s

Re: arithmetic in a lyx doc

2002-09-03 Thread Andre Poenitz
On Tue, Sep 03, 2002 at 10:32:00PM +1000, John Sheahan wrote: > and then be able to copy the result (sort of like a label) > somewhere else in the document, as a summary. > > Is this possible somehow? Somehow... hm... You could put them in a math array and call maple or octave with math-extern

arithmetic in a lyx doc

2002-09-03 Thread John Sheahan
Hi In my lyx doc I'd like to be able to add up a couple of numbers, perhaps in a table, maybe in a paragraph, get a total and then be able to copy the result (sort of like a label) somewhere else in the document, as a summary. Is this possible somehow? regards, john