amsthm—provide a syntax to use amsthm environments in pandoc, with output in LaTeX and HTML
- Date:
September 22, 2026
Introduction
amsthm provide a syntax to use amsthm environments in pandoc, with output in LaTeX and HTML.
Usage
From makefile:
tests/model-target.md: tests/model-source.md
pandoc -F amsthm $< -o $@
tests/model-latex.tex: tests/model-source.md
pandoc -F amsthm $< -o $@ --top-level-division=chapter --toc -N
tests/model-latex.pdf: tests/model-source.md
pandoc -F amsthm $< -o $@ --top-level-division=chapter --toc -N
tests/model-html.html: tests/model-source.md
pandoc -F amsthm $< -o $@ --toc -N -s
Syntax
See tests/model-source.md (or next page in documentation site) for an example.
Tips
Use -N, --number-sections to enable numbering in pandoc. This is mandatory for LaTeX output.
To match LaTeX and non-LaTeX output numbering scheme, match these 2 settings manually
LaTeX output: pandoc’s cli flag --top-level-division=[section|chapter|part] and the use of parent_counter in pandoc-amsthm
non-LaTeX output: counter_depth in pandoc-amsthm
Supported pandoc versions
pandoc versioning semantics is MAJOR.MAJOR.MINOR.PATCH and panflute’s is MAJOR.MINOR.PATCH. pandoc-amsthm constrains the panflute version, and panflute in turn is responsible for pandoc compatibility. Below we show the matching versions, in descending order.
pandoc-amsthm |
panflute version |
supported pandoc versions |
supported pandoc API versions |
|---|---|---|---|
2.1.1 |
2.3.x |
2.14.0.3–3.11 |
1.22–1.23.1 |
2.1.0 |
2.3.x |
2.14.0.3–3.11 |
1.22–1.23.1 |
2.0.0 |
2.1.3 |
2.14.0.3–2.17.x |
1.22–1.22.1 |
Metadata
Release files for amsthm 2.1.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 |
|---|---|---|---|---|
| amsthm-2.1.1.tar.gz | 18.1 kB | With provenance | Details for amsthm-2.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| amsthm-2.1.1-py3-none-any.whl | Python 3 | none | any | Details for amsthm-2.1.1-py3-none-any.whl |
Total release size: 29.2 kB
Release files / amsthm-2.1.1.tar.gz
| Download URL | amsthm-2.1.1.tar.gz |
|---|---|
| Size | 18.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4e55edd837d738f6a9fce7e1fbf814d324ac2980e935d621e7d1415335a39e58
|
|
BLAKE2b-256 checksum How to use checksums |
02483510c03cfa8cbf6c4690b51c6a02b9a0b22c04c1f9bf1bbdd45f7bf44f62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.
Transparency logRelease files / amsthm-2.1.1-py3-none-any.whl
| Download URL | amsthm-2.1.1-py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d3db3960327e8629edff742a83b45287c34dbfa607226aa7a4896a766c33e76a
|
|
BLAKE2b-256 checksum How to use checksums |
cdffe33952ce6087d4e4ed7d1ffdd6b82c2f5d2ca5d1944696d9442a762b50a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.
Transparency logSecurity for amsthm 2.1.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for amsthm-2.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.
Transparency logA 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.