On Thu, May 5, 2011 at 6:22 AM, Andrew Parsloe <apars...@clear.net.nz> wrote:
> I meant something more on these lines: you have a table in LyX with a few
> columns of figures; you want the totals of the columns, perhaps a grand
> total. The numbers aren't at this point fixed. New data may arise as you
> work on your document. Yes you could open a spreadsheet program but it's
> just two or three columns and there's a certain overkill about that.
>
> Alternatively, you can put \usepackage{spreadtab} in your preamble and, as
> things are at present, open an ERT inset, write
> \begin{spreadtab}{{tabular}{|c|c|c|}}, construct the table with the figures,
> ampersands, newline markers \\, spreadtab's sum() command, and finish with
> \end{spreadtab}. It's now there in your document easily accessible for any
> adjusted figures to be entered. This is what I do now. LyX doesn't do any
> calculating.
>
> But it is easier to enter figures and text into a table in LyX proper rather
> than ERT. My request was for a button on the table toolbar that would change
> LyX's \begin{tablular}{|c|c|c|} into \begin{spreadtab}{{tabular}{|c|c|c|}},
> and \end{tabular} into \end{spreadtab}, and a few 'tidying up' operations
> like replacing \tabularnewline with \\.
>
This could be easy and acceptable enough. If you may want to file an
enhancement request on bug tracker.

Regards
Liviu


> Again, no request that LyX acquire
> calculating abilities. Rather, the ability to replace one environment,
> tabular, with another, spreadtab. The calculational abilities are in
> spreadtab and, as far as LyX is concerned, are a side-effect of the
> environment change. LyX doesn't need to acquire spreadsheet capabilities. I
> have no wish to see it heading down the road of OpenOffice.
>
> Andrew
>



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail

Reply via email to