Skip to content

Releases: adonese/array2latex

array2latex first beta release

12 Dec 12:20
Compare
Choose a tag to compare
Pre-release

This is the first beta release of array2latex. Beta because I plan to add other functionalities, but yet it is stable, and it just do the right thing in terms of converting numpy's arrays to LaTeX tables.

Release notes

  • Adding output_file feature, which basically allows you to store the result in a file.
  • There was a problem rises when there is extra space in the array
>>> print(a) # Where a is a numpy array
   [[0.3223, 942.4242],
   [23.232, 23.32 ]]
# The output will be something like this

# The output (with bugs) would look like this
>>> print(table)
   0.3223 & 942.4242\\
   23.232 & 23.32& \\

So that extra & in the second line is just wrong. We have resolved it such that you get the expected LaTeX valid syntax

>>> print(table)
   0.3223 & 942.4242\\
   23.232 & 23.32\\
  • We have also fixed other bugs.

Installation

You can either install it using pip or conda, with

pip install --upgrade array2latex
# or, using conda
conda update array2latex

You can also download array2latex-0.5-py2.py3-none-any.whl and build it using pip

$ cd path/to/arra2latex/
$ pip install array2latex