Skip to main content

A CLI script to convert a markdown note to a polished PDF tech memo using Quarto.

Project description

Quarto Tech Memo

See the companion article for more background: G. Close, “Turning Your Notes into PDF Technical Memos and Data Science Reports,” Data Science Collective, Oct. 2025. Available: https://medium.com/data-science-collective/turning-your-notes-into-pdf-technical-memos-or-data-science-reports-ddd150273cc6

This is a quarto extension to create brief technical memos in PDF with the modern and ⚡fast Typst engine (built into Quarto). The memo style provides a professional single-column PDF layout with ample room for sidenotes and small figures in the margin. Inspired by Tufte handout style. The intended use is for brief technical memos and preprints of scientific articles. In addition, a 2-column compact variant and a 3-column A3 poster variants are provided. For reference, a legacy IEEE paper style is also included---using the LaTeX engine. Finally a slide deck variant using the Clean Slide Theme is provided.

The following screenshot shows all variants of the same document. All are formatted from the same source in a few seconds (the IEEE style, with the legacy Latex engine, dominates the rendering time). All generated PDF files are included in the examples folder.

Usage as Python CLI tool

Install the quarto and the quarto-tech-memo tool with uv, and download the example:

uv tool install quarto-cli --with typst
uv tool install quarto-tech-memo
uvx cookiecutter -f gh:gael-close/quarto-tech-memo; cd new-dir;

To render the provided example, use the newly installed quarto-tech-memo command to convert a markdown file to a polished PDF memo:

quarto-tech-memo new-tech-memo.md (--to memo1) (--preview)

For the variants, use one of the flags --to memo2, --to memo3, --to slides, --to poster, or --to ieee

Edit new-tech-memo.md in your favorite editor and re-run the render command or preview changes (one every save) live with:

quarto-tech-memo new-tech-memo.md --preview

Usage in an existing quarto project

To use in an existing Quarto project as an extension run:

# Install the extension (one time only)
quarto add gael-close/quarto-tech-memo

# render with: 
quarto render your-file.md --to memo1-typst

Usage inside a data science project

See this repo https://github.com/gael-close/quarto-tech-paper for usage inside a data science project.


Details

Development

Run a test suite with Invoke. This will format the example memo in all variants.

invoke test (--gh) (--no-ieee)

The --gh flag uses the GitHub repo instead of a local copy of the extension. The --no-ieee flag skips the legacy IEEE format which requires a LaTeX installation (install via: quarto install tinytex)

To extract the conversion time for a given format:

invoke conversion-time --format memo1-typst

Lua filters

To run the Lua filter standalone on a test file dev.md:

cd _extensions/meme1/lua-filters
quarto pandoc dev.md -t typst --lua-filter custom.lua

Run as uv tool

Install the tool from the local copy of the repo with:

z quarto-tech-memo
uv tool install . -e

Install tool from github

uv tool install git+https://github.com/gael-close/quarto-tech-memo --force

Upload to PyPI

Increment version number in pyproject.toml, then run:

rm -fr dist/*
uv build
uvx uv-publish

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quarto_tech_memo-0.3.1.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quarto_tech_memo-0.3.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file quarto_tech_memo-0.3.1.tar.gz.

File metadata

  • Download URL: quarto_tech_memo-0.3.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for quarto_tech_memo-0.3.1.tar.gz
Algorithm Hash digest
SHA256 a5310c9b88ba892cc27c17f124ecf45b806f6bfa6ce753163eee49ff8e921e27
MD5 967e2012c56e4a1a9a5fea3453712bdb
BLAKE2b-256 7ae138594ff6360a467c9dae6feb5607fe8a0a286504617675a3472dfc244c09

See more details on using hashes here.

Provenance

The following attestation bundles were made for quarto_tech_memo-0.3.1.tar.gz:

Publisher: release.yml on gael-close/quarto-tech-memo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file quarto_tech_memo-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for quarto_tech_memo-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bfa8daf976af713481bf7f596ed25b207a0770782ad173ee30b84d30575d0521
MD5 f8c8ea941c27c555ba560bd63ef46169
BLAKE2b-256 f00e1e2dae487df7b12a903824adb5a1054af37ceccae67ce2a1ce1bce2f6db1

See more details on using hashes here.

Provenance

The following attestation bundles were made for quarto_tech_memo-0.3.1-py3-none-any.whl:

Publisher: release.yml on gael-close/quarto-tech-memo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page