Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reliable means of exporting LibreOffice Calc 3 to LaTeX?

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?

like image 735
Qu0rk Avatar asked Nov 02 '25 09:11

Qu0rk


2 Answers

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.

like image 86
beacon_bonanza Avatar answered Nov 05 '25 15:11

beacon_bonanza


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.

like image 23
user3218615 Avatar answered Nov 05 '25 15:11

user3218615



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!