Skip to content

Simple script which creates a latex table from an Excel table while keeping the background color.

License

Notifications You must be signed in to change notification settings

AliceWi/excel2latex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

excel2latex

Simple script which creates a latex table from an Excel table while keeping the background color.

How to use

Install environment

You will need python, pandas and openpyxl.

conda env create -f environment.yml 

Generate LaTeX script

Replace TABLE and SHEET with your filename and sheet name.

python excel2latex.py TABLE.xlsx SHEET

This command will generate 2 files "color_definitions.txt" and "latex_table.txt".

Include in .tex

You need the package:

\usepackage{colortbl}

After that include the color definitions and the table.

Notes

  • If no background color is set in excel, openpyxl will translate that to black.

About

Simple script which creates a latex table from an Excel table while keeping the background color.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages