Creating tables in LaTeX is a labor-intensive process that is prone to errors. This program remedies this by allowing you to generate a table in a matter of seconds. By inputting a tab-delimited .txt
file, this program generates a .tex
file containing a table with default formatting.
Because this program only accepts tab-delimited .txt
files, it is very important that you make sure to export your Excel Workbook as one. Follow the steps below to learn how to do this:
- In Excel, go to File -> Save As.
- After specifying a name for your file, click the dropdown and select "Tab delimited text (.txt)".
-
Click Save. (NOTE: If you are prompted with a data-loss warning, ignore it and continue)
-
Done! Now you can use this file to generate a LaTeX table.
To start using LaTeX-Table-Generator, follow the steps below:
- Clone the GitHub repository to your local computer (learn how here).
- Open Terminal and navigate to the location of the repository.
- In Terminal, type
python table_generator.py
. Hit enter. - Before continuing, confirm that your Terminal window looks like the picture below (NOTE: You may have to resize your console window)
- Enter the full system path of your tab-delimeted file. Hit enter.
- When prompted, enter the name of the output file without extension (it will output as a
.tex
file). Hit enter.
- The file has been created! Your Terminal window should look like the picture below.
- Locate the output file in the
/Outputs/
folder within the repository directory.
You can now open the .tex
file in your preferred LaTeX environment. Below is an example of a generated table in TexStudio.
The picture below shows the only error message this application provides.
The most common causes of this error are:
- Input file is not a
.txt
file - Input file is not tab-delimited
- Input file does not exist
- File path is wrong
If your issues still persists, please create an issue on the GitHub project's page, providing details and pictures as necessary.
Send me an email or contact me via my personal site.