A lightweight Haskell utility designed to convert standard .csv files into professionally formatted LaTeX tabular environments. This tool was developed to streamline the inclusion of simulation data into academic papers.
- Automatic Header Detection: Uses the first row of the CSV as the table header.
- LaTeX Special Character Escaping: Automatically handles characters like
_,&,%,$, and#to prevent LaTeX compilation errors. - Customizable Environment: Generates a standard
tableandtabularblock with horizontal rules (\hline).
runghc csv_to_latex.hs data.csv./csv2tex data.csv- Input: A standard comma-separated values (
.csv) file. - Output: A LaTeX (
.tex) file with the same base name, containing a ready-to-use table environment.
- GHC (Glasgow Haskell Compiler): To compile or run the script.