amsthm—provide a syntax to use amsthm environments in pandoc, with output in LaTeX and HTML
Project description
- Date:
- January 25, 2022
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. Below we shows matching versions of pandoc that panflute supports, in descending order. Only major version is shown as long as the minor versions doesn’t matter.
pandoc-amsthm |
panflute version |
supported pandoc versions |
supported pandoc API versions |
---|---|---|---|
2.0.0 |
2.1.3 |
2.14.0.3–2.17.x |
1.22–1.22.1 |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file amsthm-2.0.0.tar.gz
.
File metadata
- Download URL: amsthm-2.0.0.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/0.0.0 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66cf8b7a57eead9edd6944f887a7c4d73da68ca051eb3684e91125815b4703ab |
|
MD5 | 09770a6ae02a7c7b146e3823d0e9f11f |
|
BLAKE2b-256 | 18aba4e5da56e25853e48025985f0f5a6303573f51642cf2ea7b8cece02b216b |
File details
Details for the file amsthm-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: amsthm-2.0.0-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/0.0.0 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34ad7294a3815acc923d6e42051a9e3b76a4bfded9b453c6d5bf5cc7c3c9c87e |
|
MD5 | 6a1431a14b2d868ddead396d5d482846 |
|
BLAKE2b-256 | 61a2e3f4054bca6e02dfef72c6a3b384c363a9111151fac6634c332ac896a4d5 |