arraytex-0.0.9
توضیحات
ArrayTeX
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | arraytex-0.0.9 |
| نام | arraytex |
| نسخه کتابخانه | 0.0.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Dom Batten |
| ایمیل نویسنده | dominic.batten@googlemail.com |
| آدرس صفحه اصلی | https://github.com/dbatten5/arraytex |
| آدرس اینترنتی | https://pypi.org/project/arraytex/ |
| مجوز | MIT |
# ArrayTeX
[][pypi_]
[][status]
[][python version]
[][license]
[][read the docs]
[][tests]
[][codecov]
[][pre-commit]
[][black]
[pypi_]: https://pypi.org/project/arraytex/
[status]: https://pypi.org/project/arraytex/
[python version]: https://pypi.org/project/arraytex
[read the docs]: https://arraytex.readthedocs.io/
[tests]: https://github.com/dbatten5/arraytex/actions?workflow=Tests
[codecov]: https://app.codecov.io/gh/dbatten5/arraytex
[pre-commit]: https://github.com/pre-commit/pre-commit
[black]: https://github.com/psf/black
Convert a `numpy.NDArray` to various LaTeX forms.
```python
>>> 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}
>>> print(atx.to_tabular(A))
\begin{tabular}{c c c}
\toprule
Col 1 & Col 2 & Col 3 \\
\midrule
1 & 2 & 3 \\
4 & 5 & 6 \\
\bottomrule
\end{tabular}
```
Inspired by [@josephcslater](https://github.com/josephcslater)'s
[array_to_latex](https://github.com/josephcslater/array_to_latex).
## Features
- Support for matrix environments with different 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]:
```console
$ pip install arraytex
```
## Usage
Please see the [docs](https://arraytex.readthedocs.io/) for more information.
## Contributing
Contributions are very welcome.
To learn more, see the [Contributor Guide].
## License
Distributed under the terms of the [MIT license][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.
[@cjolowicz]: https://github.com/cjolowicz
[pypi]: https://pypi.org/
[hypermodern python cookiecutter]: https://github.com/cjolowicz/cookiecutter-hypermodern-python
[file an issue]: https://github.com/dbatten5/arraytex/issues
[pip]: https://pip.pypa.io/
<!-- github-only -->
[license]: https://github.com/dbatten5/arraytex/blob/main/LICENSE
[contributor guide]: https://github.com/dbatten5/arraytex/blob/main/CONTRIBUTING.md
[command-line reference]: https://arraytex.readthedocs.io/en/latest/usage.html
نیازمندی
| مقدار | نام |
|---|---|
| >=8.0.1 | click |
| >=1.24.2,<2.0.0 | numpy |
| >=1.8.2,<2.0.0 | pyperclip |
| >=4.5.0,<5.0.0 | typing-extensions |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<4.0 | Python |
نحوه نصب
نصب پکیج whl arraytex-0.0.9:
pip install arraytex-0.0.9.whl
نصب پکیج tar.gz arraytex-0.0.9:
pip install arraytex-0.0.9.tar.gz