LaTeX to MyST Pandoc Filter
Latex-to-MyST implements a pandoc filter that converts a subset of LaTeX environments to MyST directives. Although it is probably more pandoc compatible to write a custom pandoc writer instead of using RawBlocks and RawInline to mimics one, the existence of panflute makes it much easier for python developers like me to work with filters instead of writers.
To use this filter, install the package by:
pip install latex_to_myst
which adds a cli latex2myst, which can be used to convert latex file to
myst by calling:
latex2myst latex_file.tex markdown_file.md
LaTex Environments to MyST Directives
Latex-to-Myst Current supports:
All amsthm blocks,
Display Math
Subplots in the form of
{list-table}.
Many LaTeX environments need to be converted in to MyST directives. amsthm for example, can be visualized using the experimental Sphinx-proof Directives.
Unfortunately, MyST does not have native support for subplots, and neither
does pandoc. To circumvent the problem, the best solution for now is to
use a {list-table} directive. However, this still needs to be fixed
as there are some known issues that need to be addressed.
Work in Progress / Known Issues
There are some known issues need to be addressed.
Credits
This module uses panflute heavily.
History
0.0.1 (2021-11-04)
First release on PyPI.
Metadata
Release files for latex-to-myst 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| latex_to_myst-0.0.1.tar.gz | 25.7 kB | Without provenance | Details for latex_to_myst-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| latex_to_myst-0.0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for latex_to_myst-0.0.1-py2.py3-none-any.whl |
Total release size: 40.4 kB
Release files / latex_to_myst-0.0.1.tar.gz
| Download URL | latex_to_myst-0.0.1.tar.gz |
|---|---|
| Size | 25.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
638621293ee58be1ca4af803172e0bf421bb5d1de042d203254d737a352eee8e
|
|
BLAKE2b-256 checksum How to use checksums |
26ccdb9c9d909e1ca32ccbf8482256c9cd9e6a45eeaa402555058c17ab5b14a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.11
|
Release files / latex_to_myst-0.0.1-py2.py3-none-any.whl
| Download URL | latex_to_myst-0.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 14.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
af2d992add119897b6b3ef1b6f1a2d88ea36946006afde049cd13a9048ade209
|
|
BLAKE2b-256 checksum How to use checksums |
a46cbbcd263433938944b6ae5b1701620630b88764e1c5bf8df2b52853cac2a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.11
|
Security for latex-to-myst 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.