Skip to main content

amsthm—provide a syntax to use amsthm environments in pandoc, with output in LaTeX and HTML

Date:

September 22, 2026

Documentation Status

GitHub Actions Coverage Status

Supported versions Supported implementations PyPI Wheel PyPI Package latest release GitHub Releases Development Status Downloads Commits since latest release License

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.

Version Matching [1]

pandoc-amsthm

panflute version

supported pandoc versions

supported pandoc API versions

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.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for amsthm 2.1.0
File Size Uploaded
amsthm-2.1.0.tar.gz 17.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for amsthm 2.1.0
File Interpreter ABI Platform
amsthm-2.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 28.7 kB

Release files / amsthm-2.1.0.tar.gz

Download URL amsthm-2.1.0.tar.gz
Size 17.7 kB
Tags Source
SHA-256 checksum
How to use checksums
fe16ecdf3a72426657b9efabfd3442a450f11d3dff36503bfe983c014cf781be
BLAKE2b-256 checksum
How to use checksums
ae9e4a462b40587ba8da83dd20878ec012b670d26797ac4f6417d21be4414ec9
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 log

Release files / amsthm-2.1.0-py3-none-any.whl

Download URL amsthm-2.1.0-py3-none-any.whl
Size 11.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c7b94c91728e5026e97c32c2239f692bf99f5fd2f6c51b20df39be6b4b8c17c9
BLAKE2b-256 checksum
How to use checksums
85203b387791d8431d1794e7575ced5b1ef2da393f7d842689d2e5362fe0e80d
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 log

Release history Release notifications | RSS feed

2.1.1

2 release files

This release

2.1.0 This release

2 release files

2.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page