Skip to content
RyanJBuchananPublic

About

Convert .csv files to .tex code instantly!

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

CSVTex: CSV to LaTeX Table Converter

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.

Features

  • 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 table and tabular block with horizontal rules (\hline).

Usage

1. Using the Haskell Interpreter (No compilation required)

runghc csv_to_latex.hs data.csv

2. Using the Compiled Binary

./csv2tex data.csv

Input/Output

  • 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.

Requirements

  • GHC (Glasgow Haskell Compiler): To compile or run the script.

About

Convert .csv files to .tex code instantly!

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages