I'm looking for a program or web-service that
- can convert Microsoft Excel 2013 spreadsheets to LATEX tables
And if possible:
- free
- works on Windows 7
The package Excel-to-LaTeX only works for Excel 2010 and earlier versions.
I'm looking for a program or web-service that
And if possible:
The package Excel-to-LaTeX only works for Excel 2010 and earlier versions.
If the way via an intermediate CSV file is OK, I suggest the following workflow:
Use xlsx2csv, a python script which is small, efficient and fast. In the most easiest case (Excel file with one sheet) you could get away with the command line:
python xlsx2csv.py data.xslx data.csv
Use csvtomd, another python script to get you to the Markdown format. Unfortunately it is a Python 3 script, so you need a separate Python 3 environment.(*) The command line here is:
> python3 path/to/your/csvtomd-dir/csvtomd.py data.csv >data.md
Use the excellent pandoc. Install it properly and make sure you have it on your path. Then call it like this:
> pandoc -f markdown -t latex -o data.tex data.md
And - voila! - if everything went well, data.tex
contains your Excel table as a LaTeX table.(+) BTW, all tools mentioned work perfectly on Windows 7.
(*) You can use e.g. Anconda to have Python 2.7 and Python 3.4 next to each other.
(+) Please note, pandoc
uses the flexible longtable
package to format its tables.
xlsx2latex <your xlsx-file>
. If you confirm it works with Excel 2013 files I will post an answer.