ArrayTeX
Project description
ArrayTeX
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
orpmatrix
) and different number formatters (:.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.3.tar.gz
(5.6 kB
view details)
Built Distribution
File details
Details for the file arraytex-0.0.3.tar.gz
.
File metadata
- Download URL: arraytex-0.0.3.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 419ec675e4fc32b4b62aabd3a2f1ca88b1cd3e1e9870a477177850732badeff4 |
|
MD5 | 77cd2f8f928d588f2216058e27b71a30 |
|
BLAKE2b-256 | a9d27f3cdf6b3381baf4c2281efe34cd0ead26c5223d01d750fb8208fa9a8680 |
File details
Details for the file arraytex-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: arraytex-0.0.3-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a18c7196f4672e5f353ccb56ca78f0da483a41c7ea63a1737a29ebf8d9848c79 |
|
MD5 | 26b1eaf1245cd8deaddf88f1726e3393 |
|
BLAKE2b-256 | f8de81f7ca55b766dca4148a8eff40b741b4ad38d5f6a0678b2b7aa98a281a2b |