Skip to content

Tinyleaf

Tinyleaf banner Tinyleaf banner

A lightweight LaTeX editor tuned for a fast, focused writing flow.

Open a project, edit LaTeX, preview the PDF, and keep the compile loop close at hand. Tinyleaf keeps writing quick, focused, and distraction-free.

PyPI version GitHub release CI License: AGPL v3

Quick Start View Screenshots GitHub

Editor view

Highlights

  • Zero dependencies — stdlib only (http.server + threading + subprocess)
  • Two modes — single project or multi-project with a persistent registry
  • Two compilation backends — local latexmk or Docker containers (default)
  • CodeMirror 6 editor with multi-language syntax highlighting
  • PDF.js preview with zoom, HD rendering, text search, and page navigation
  • LaTeX autocomplete\ref{}, \cite{}, \label{} with project symbol scanning
  • Git integration — status, diff, commit, push, pull from the UI
  • Multi-tab editor with quick-open (Ctrl+P) and auto-pair \begin/\end
  • 7 themes with dark/light toggle (emerald accent)
  • i18n — English and Chinese
  • Keyboard shortcuts — full shortcut help panel (Ctrl+/)

Quick Start

pip install tinyleaf

# Single project (Docker compilation enabled by default)
tinyleaf /path/to/my-thesis

# Multi-project (registry mode)
tinyleaf

# Local compilation (no Docker)
tinyleaf /path/to/my-thesis --no-docker

See more screenshots for a full tour of the UI.