I usually do all of my tables using Google Docs spreadsheet. This is a good and quick way to organize information and create quick tables.
Now I am writing a document in Latex and I would like to port the tables.
I tried downloading the sheet as a CSV file and then using the csvsimple
package to convert it into latex, but this has several faults (does not copy cell borders, does not respect page width and height, etc), and in the end with all the configurations it is almost just as complex as creating the tables myself.
I recognize some of the problems are inherent to the CSV file format (no package can guess information that the CSV file does not contain), so I was wondering: Is any other way of quickly porting my Google Doc tables to latex?
Here is a link with a simple set of three tables and a graph that I would like to port to latex:
Best Answer
This is exactly the same problem I and my classmates were having when writing our lab reports on Experimental Physics. Since we work in groups it's great to have data on the cloud. The problem was converting sometimes dozens of tables to Latex...
So, I and a classmate of mine came up with LatexKit, a google sheets add-on that creates and exports to your Google Drive a text file containing the tabular environment of a given table.
For your case, this won't handle page width or height, nor copy the exact borders you have configured (although there is a way to overcome this, keep reading), but it can help you get started with little trouble and systematically for multiple tables.
This add-on is developed using Google apps script so, unfortunately, the lack of some features is not easily overcomeable.
It does, however, help a lot when converting tables from Google Sheets to Latex
It has some additional features that could help you or someone else in the future.
Current Features:
Handles multirow and multicolumn environment using the multirow package
Handles uncertainties notation $\pm$ (especially useful to us at experimental physics)
Features that can or will be implemented (given the time and will of the community):
Here's LatexKit in action
This is the table on the spreadsheet:
This is the exact code produced by LatexKit using the template 'grid':
This is the result when compiled in Latex:
This is really a project to the community so we would gladly take your advice to improve!