I am trying to export a LaTeX table from LibreOffice Calc. I am not using Excel because I am running Ubuntu.

I have tried using the calc2LaTeX macro, but have not been able to make it work for LibreOffice 3.

I am looking for something with the functionality of the Excel2LaTeX plugin (available here).

Has anyone been able to do this using LibreOffice Calc 3?

有帮助吗?

解决方案 2

Maybe not the most efficent way, but here's what I would do:

Save the spreadsheet in csv-format.

In LyX: File -> Import -> Table

Then: View -> View source.

Copy the code and paste it in your document.

其他提示

For an alternative try using Gnumeric (sudo apt-get install gnumeric). Once you have data entered ready to export, go to Data->Export Data->Export into Other Format. You can then choose either a LaTeX table fragment (just the data rows with & separators and \\ line endings) or a full LaTeX document with lots of parameters set by Gnumeric, and the table inserted.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top