Skip to main content

ArrayTeX

Project description

ArrayTeX

PyPI Status Python Version License

Read the documentation at https://arraytex.readthedocs.io/ Tests Codecov

pre-commit Black

Convert a numpy.NDArray to various LaTeX forms.

>>> import numpy as np
>>> import arraytex as atx
>>> A = np.array([[1, 2, 3], [4, 5, 6]])
>>> print(atx.to_matrix(A))
\begin{bmatrix}
1 & 2 & 3 \\
4 & 5 & 6 \\
\end{bmatrix}

Inspired by @josephcslater's array_to_latex.

Features

  • Support for different environment delimiters (bmatrix or pmatrix) and different number formatters (:.2f, :.3e, etc.).

Requirements

  • python >= 3.8

Installation

You can install ArrayTeX via pip from PyPI:

$ pip install arraytex

Usage

Please see the docs for more information.

Contributing

Contributions are very welcome. To learn more, see the Contributor Guide.

License

Distributed under the terms of the MIT license, ArrayTeX is free and open source software.

Issues

If you encounter any problems, please file an issue along with a detailed description.

Credits

This project was generated from @cjolowicz's Hypermodern Python Cookiecutter template.

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

arraytex-0.0.2.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

arraytex-0.0.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file arraytex-0.0.2.tar.gz.

File metadata

  • Download URL: arraytex-0.0.2.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for arraytex-0.0.2.tar.gz
Algorithm Hash digest
SHA256 f7f2c24285cb5ddda90cc6243a547557e32e4162fe3acb55c67c4b712ea78b3f
MD5 00f85581b7d13c7e585d030fe98f41ee
BLAKE2b-256 d9e5b516e23cfb31d60ab584b002ac34d8f0d2e732efec84ae0f917afe8a5f6a

See more details on using hashes here.

File details

Details for the file arraytex-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: arraytex-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for arraytex-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 80053c7166754b7456e3399de86d2a511c205af887d6d1235c6b81aaf90818d0
MD5 da65849848ec688f35aeaff6dd1ef5b1
BLAKE2b-256 d02f4cbb6a7ba5f530a49df1fafe4bf7c88586597ea9af7d039e81730d8cebfd

See more details on using hashes here.

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