[Tex/LaTex] Export Excel tables to Overleaf

exceloverleaftables

Good morning everyone,

I have been trying to export Excel tables to my Overleaf file. I have succeeded to some extent using \includegraphics command, but the problem with that is that the font size is not editable on Overleaf. The attached is done using the command.

enter image description here

I have also tried to convert Excel to a .tex file using an add-in excel2latex but it did not work very well on Overleaf.

Could you please provide more tips or advice?

Best Answer

One possible solution I can think of from the top of my head is to load the excel table with the python module pandas and than use the export as tex file function in pandas.

#As example:
import pandas as pd
df = pd.read_excel(excel_file.xlsx)
df.to_latex(output.tex)
Related Question