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, pmatrix, etc.)
  • 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.8.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

arraytex-0.0.8-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: arraytex-0.0.8.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for arraytex-0.0.8.tar.gz
Algorithm Hash digest
SHA256 8f99968447d8e07852cd1991747455633907d0a7c2524faf0dd97e6ed141a7b3
MD5 c79a1d339bd6700dd914df08701f796f
BLAKE2b-256 7ee6fefc217841311519a9b84928065a52a8ff8c298d14799199be7a2723acc1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: arraytex-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for arraytex-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 769cee5677ee5560dff1fef66f374a9fbfe8f507ee15b329c5d3f93e53de12ff
MD5 b41f3f652acd1b1d6dc07355ef66a36d
BLAKE2b-256 71d59b8735f87d344aa5632015f958025a45f4fd604ddcc883e3977f20ebe5c6

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