Skip to main content

cathedra

Lecture slides written in Typst with the Touying package, shown in the browser by a Reveal.js viewer. One source gives two outputs: the web deck (the pages as inline SVG, live React widgets on top) and a printable PDF; a course gets an index page, its PDFs and a deployment.

This help opens with H in the dev server (make serve).

Install

A Python package (Python 3.11 or later) with Typst built in: nothing else to install (no Node, no typst CLI). The cathedra command runs from a course's directory:

uvx cathedra --help                  # or: pip install cathedra
uvx --from 'cathedra[browser]' cathedra snapshots   # widget pictures

Extras: browser (Playwright: widget pictures for the PDFs, viewer tests; then playwright install chromium), convert (MDX to Typst, with pandoc). A course drives it through make (makefile.mk, see setting up a course), which calls uvx cathedra …, or the version of a cathedra checkout (e.g. a git submodule) with uv run --project.

Quick start (in a course)

make setup                  # engine dependencies, fonts, bibliography
make serve DECK=lecture-1   # http://localhost:8000, live reload
make check                  # every deck compiles, no slide overflows
make pdf                    # out/<deck>.pdf

Without cathedra

A course never depends on this package being maintained: a clone compiles to PDF with plain typst compile, so its authors can stop using the tool at any time. Typst does all of the typesetting, with the same packages and fonts as the typst CLI. The tool adds the web version (viewer, live widgets), the site, and generated files that only improve the PDFs (reference links, pictures of the widgets): the course reads them only when cathedra compiles. The rest is in git: the decks cite the course's .bib itself, fetched images are committed. make check enforces it: it also compiles every deck as plain typst does, and fails if that needs a file git ignores. See building.

Engine and course

The engine is the cathedra package (its Typst files: cathedra/ in the course, a link cathedra setup makes, or the typst/ directory of a cathedra submodule); a course only holds its content and its configuration:

Course path What
Makefile the options, then include cathedra/makefile.mk
cathedra a link to the engine's Typst files (make setup creates it): decks import /cathedra/…
common/course.typ what every deck imports: the engine, the template configured for the course, the course notation
lectures/<id>.typ or lectures/<id>/<id>.typ a deck: title slide, sections, #include of modules, wrap-up (in a folder, with the files only it uses)
modules/<topic>/<topic>.typ the content, one topic per module, with its figures/
widgets/index.ts the course's React widgets (optional)
lib/ generated: the bibliography and its links (cathedra sync)
out/ generated: the web decks and PDFs

common/, lectures/, modules/ and widgets/ can instead live in a sub-directory, SRC (e.g. src/, the decks then importing /src/common/course.typ): the course directory stays Typst's root, with the Makefile, lib/, .cache/ and out/. A course whose cathedra submodule is in its directory imports /cathedra/typst/lib/slides.typ and includes cathedra/typst/makefile.mk (no link).

Engine path (repository) What
src/cathedra/typst/lib/slides.typ the components and page markers (typst/ is a link to src/cathedra/typst/)
src/cathedra/typst/templates/*.typ what a course looks like (academic)
src/cathedra/typst/makefile.mk the make targets
src/cathedra/typst/fonts/ Font Awesome (TTF), given to every compilation
src/cathedra/*.py the cathedra command: build, dev server, site, PDFs, outline, tools
rust/ the native module (cathedra._native): Typst (compile, SVG pages, PDF, queries)
viewer/ the browser viewer's sources (Reveal.js, SVG pages, widgets, structure browser, this help); built into src/cathedra/data/
tests/ pytest: the engine, a made-up course; tests/browser/: the viewer, against a running make serve
docs/ these pages

Developing the engine

uv sync --all-extras             # builds the native module (Rust, maturin)
uv run pytest                    # tests (the browser ones need SLIDES_URL)
(cd viewer && pnpm install && pnpm run build)   # after editing viewer/
pre-commit install               # ruff, cargo fmt/clippy, conventional commits,
                                 # the viewer bundle in step with viewer/

The built viewer (src/cathedra/data/) is committed, so that the package builds without Node; the pre-commit hook refuses a change of viewer/ without the rebuilt bundle. Releases: a GitHub release publishes the wheels (Linux, macOS, Windows; abi3) and the sdist on PyPI (.github/workflows/publish.yml, trusted publishing).

Pages

Metadata

Release files for cathedra 0.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 cathedra 0.1.0
File Size Uploaded Provenance Actions
cathedra-0.1.0.tar.gz 1.2 MB With provenance Details for cathedra-0.1.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for cathedra 0.1.0
File Actions
cathedra-0.1.0-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details for cathedra-0.1.0-cp311-abi3-win_amd64.whl
cathedra-0.1.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.11 abi3 Linux glibc 2.17+ x86-64 Details for cathedra-0.1.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
cathedra-0.1.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.11 abi3 Linux glibc 2.17+ ARM64 Details for cathedra-0.1.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
cathedra-0.1.0-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details for cathedra-0.1.0-cp311-abi3-macosx_11_0_arm64.whl
cathedra-0.1.0-cp311-abi3-macosx_10_12_x86_64.whl CPython 3.11 abi3 macOS 10.12+ x86-64 Details for cathedra-0.1.0-cp311-abi3-macosx_10_12_x86_64.whl

Total release size: 122.4 MB

Release files / cathedra-0.1.0.tar.gz

Download URL cathedra-0.1.0.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
9d65ea8a4aa6dea20b19a51f7691b07eecc533b2cd5dab659f0bd5077f0b8eaf
BLAKE2b-256 checksum
How to use checksums
5f45c54ad16830b568e63c510de4df37ce5f0c1850a3355336689cf401ee7e85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Release files / cathedra-0.1.0-cp311-abi3-win_amd64.whl

Download URL cathedra-0.1.0-cp311-abi3-win_amd64.whl
Size 23.9 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
4548103ba7c02a4d351f1d38fba9b3b49496d409744d66a6f7142ea14870a439
BLAKE2b-256 checksum
How to use checksums
5e09bf4d4bdcd79cd655e2f328704d8f2bb4e643c4c7d29f4446963d2c22659c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Release files / cathedra-0.1.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL cathedra-0.1.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 26.0 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
cbec180484668e17ffe1420110bc928fef1b66639d54e38119628bdc222af1ca
BLAKE2b-256 checksum
How to use checksums
d1af8c2a19deed563dcd92e6e6d3f975c37367370a0d7e02574e0560220e17db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Release files / cathedra-0.1.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL cathedra-0.1.0-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 25.5 MB
Tags CPython 3.11 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
11a65fb6101809416176c81c60f4e1033d947478f277c44cb2548194e90ae144
BLAKE2b-256 checksum
How to use checksums
79fb8bc2fdb6590a46200b85ad2c68124b0bb66c0c5162025608b68d9e469cba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Release files / cathedra-0.1.0-cp311-abi3-macosx_11_0_arm64.whl

Download URL cathedra-0.1.0-cp311-abi3-macosx_11_0_arm64.whl
Size 22.6 MB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
8e096ebfb4951c8a1c9f62daf9dc7a290f8e05c02638dd888f697ec6625f44bd
BLAKE2b-256 checksum
How to use checksums
537ff40bc88b42df6b13eab9d5e8719d3bedbf53a95dc6a4f21524555468746a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Release files / cathedra-0.1.0-cp311-abi3-macosx_10_12_x86_64.whl

Download URL cathedra-0.1.0-cp311-abi3-macosx_10_12_x86_64.whl
Size 23.2 MB
Tags CPython 3.11 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
e995eb65e2d80bb73885fc18e2dfe3864a481a9f0821ee8b199fb2c9da0ee598
BLAKE2b-256 checksum
How to use checksums
cec3a2685a6d5accb62cf847d334c9fb82f4a19f69cddeb8ef9ddfd83f962c0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Security for cathedra 0.1.0

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

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for cathedra-0.1.0.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 Nov 17, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

6 release files Full provenance

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