Tommaso Cucinotta wrote:
Tommaso Cucinotta ha scritto:
to what I was needing. Probably a simple gnumeric->LaTeX
"filter" that uses "ssconvert" is sufficient:
Just tried and seems to work. You just need to export with
"ssconvert -T Gnumeric_html:latex in.gnumeric out.tex", so
Great - that was the missing piece. An external inset can
be written using ssconvert then!
to get also the table formatting that you set-up in gnumeric,
then import in LyX through the "Insert->File->Child Document",
specifying as "Type" of import the voice "Input".
So, probably the only "functionality" that might be added to LyX
could be an in-line preview of the file (isn't it automagic if you
set-up the entire .gnumeric->.tex->.eps filetrs chain ?), plus the
automatic opening of gnumeric when you click or double-click
on the preview.
You get the preview "for free" if we set up conversion all the way
from .gnumeric to .eps (via .tex).
I was thinking of only converting to .tex, and have LyX include
the generated .tex file directly. This has several advantages:
* gnumeric exports the spreadsheet as a longtable. If you make
a .eps, then this is limited to a single page. And you'll get
one big figure that cannot be broken across pages. (This is
sometimes a problem when there are more figures than text).
A longtable imported as .tex have no such problems. It can
start anywhere on the page because it will be broken, and
it can go on for many pages - again because it supports
page breaking.
* Importing gnumeric as a longtable means that style choices in
LyX (font etc.) can affect the longtable layout. Using eps means
LyX cannot affect the output in any way.
* Finally, longtables work equally well with all the latex exporters,
i.e. both latex and pdflatex.
"No automatic preview" seems to be the only disadvantage of importing .tex
Now, of course a preview is possible anyway because we can specify a
different
converter for previewing.
Helge Hafting