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 matrix environment delimiters (bmatrix or pmatrix).
  • Support for tabular environments.
  • Support for builtin number formats (:.2f, :.3e, etc.).
  • Fully tested and typed.

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.5.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

arraytex-0.0.5-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: arraytex-0.0.5.tar.gz
  • Upload date:
  • Size: 6.3 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.5.tar.gz
Algorithm Hash digest
SHA256 0dac0b86cc93805d10f3f6f6acd349ff207fa59dcd5532a51c434f381ccc9f6c
MD5 c0b595a1cf95def6da8e3352acac4fa1
BLAKE2b-256 94911d0d42d1f023ec00e956d0e0ad0151897eeb0ea372c7a937a609f20a3767

See more details on using hashes here.

File details

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

File metadata

  • Download URL: arraytex-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 6.5 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1a03090e9b8bb95f1d04daf75f0c7eb6b5de1a6b320e955cbfe3a204f971afa5
MD5 2d25108f18a4544691974e86deeb5d6e
BLAKE2b-256 78907c9b8c5a160434a3e2073f8d24ff0d9200c860a3a1e68fdbb1e7a3495885

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