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

Source distribution for amsthm 2.1.1
File Size Uploaded
amsthm-2.1.1.tar.gz 18.1 kB Details

Built distribution (wheel)

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

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 log

Release 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 log

Release history Release notifications | RSS feed

This release

2.1.1 This release

2 release files

2.1.0

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