Skip to main content

Convert a file with a LaTeX tabular to Excel

Project description

Convert a LaTeX tabular file to an xls file

Description

With this tool you can convert LaTeX tabular files to Excel

Installation

Install the tool by:

pip install tabular2xls

In case you want to include CBS color definitions, install with:

pip install tabular2xls[cbs]

or, alternatively, install the cbsplotlib package yourself:

pip install cbsplotlib

Usage

Run the following command:

tabular2xls tabular_file.tex

where the .tex file is a file containing a LaTeX tabular which is converted to an Excel file

Full Help

Get the full help by running:

tabular2xls.exe --help

which gives the following output:

usage: tabular2xls [-h] [--version] [--output_filename OUTPUT_FILENAME] [--output_directory OUTPUT_DIRECTORY]
                   [--search_and_replace [SEARCH_AND_REPLACE ...]] [-v] [-vv] [--multi_index] [--encoding ENCODING]
                   FILENAME

Tool to convert latex tabulars into xls files

positional arguments:
  FILENAME              Tabular file name

options:
  -h, --help            show this help message and exit
  --version             show program's version number and exit
  --output_filename OUTPUT_FILENAME
                        Name of the xls output file. Must have extension .xlsx
  --output_directory OUTPUT_DIRECTORY
                        Name of the output directory. If not given, it is determined by the output file name
  --search_and_replace [SEARCH_AND_REPLACE ...]
                        Search en Replace patterns in case you want to change strings.By default, cdots en ast are
                        replaced by . and * vervangen, respectively
  -v, --verbose         set loglevel to INFO
  -vv, --debug          set loglevel to DEBUG
  --multi_index         Force a multiindex data frame
  --encoding ENCODING   Set the encoding of the text file. Default is utf-8

Note

This project has been set up using PyScaffold 4.0.1. For details and usage information on PyScaffold see https://pyscaffold.org/.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tabular2xls-0.4.4.tar.gz (34.4 kB view hashes)

Uploaded Source

Built Distribution

tabular2xls-0.4.4-py2.py3-none-any.whl (11.4 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page