|
Edit Links |
Tips /
CopyTablesFromSpreadsheetsCategories: Tips << WordCount | Page list | Correcting split Subversion keywords >>Pasting data from a spreadsheet into LyXAs of Lyx 1.5, you can get data copied from a spreadsheet into Lyx using the "Paste Special" command:
-- Zeyn On the mailing list Samar Singh indicated a great and apparently undocumented way to get tabular data inside a Lyx table: 1. open your xls file with gnumeric or open office. 2. Select the requisite number of columns and rows 3. Come back to your lyx document 4. Insert a table which has at least the selected number of rows and columns 5. Go to the cell on your lyx table where you want the top left corner of the section to be placed. 6. Click the middle button on your mouse (if you only have two buttons, press both buttons simultaneously). That should be it. The experts tell me this should not work but unfortunately for the theory, it does for me. samar -- samar j. singh Kenward Vaughan added: ... it is VERY important that you do NOT instigate any typing in the
table when you do this. If you click in the 1st box of the table and
see a red-bordered box inside, before you click the middle mouse
button, this paste won't work. It will instead paste the whole excel
contents into that one cell.
Simply _position_ the cursor over the cell before ...
I myself have tried this succesfully on Windows with Excel and Lyx 1.3.6 -- and by the way, instead of the middle mouse button sometimes it also worked to paste via menu selection or C-v shortcut (but not always). -- For my Excel 2002 on WinXP and LyX on Win V136-1 it also works by direcly copying the cells from excel, without opening it in openoffice or gnumeric. The only nasty thing is that the last column gets an additional square character. -- Laura Tables using EPSIn OpenOffice, it is possible to export tables as EPS and include it into Lyx with all the formatting (color, fonts, borders etc) exactly like in OO Calc Follow these steps:
See WinGraphics for more EPS related exports Tables using Calc2LatexCalc2LaTeX is an OpenOffice macro to convert OOCalc tables to LaTeX. It works well and is easy to use. You can paste the result in a LaTeX file and then import it in LyX. -- Charles Tables using GnumericGnumeric is a spread-sheet program with a good LaTeX export. Follow these steps:
\def\inputGnumericTable{}
Notes:
\addtocounter{table}{-1}
Otherwise the numbering of the tables is not correct.
\usepackage{marvosym}
--Marcus |