lattice-writer/lattice
A local-first, agent-first LaTeX writing app for macOS: live PDF, annotations, papers and Overleaf sync
What it solves
Writing a LaTeX paper usually means juggling many separate tools: the source editor, the compiled PDF, citations, co-author comments, and an AI assistant. Lattice brings all of these into one native macOS window, so your papers, co-authors, and an AI agent live side by side. Your project stays an ordinary folder on disk, so it works offline, opens in any other editor, and fits under Git — Overleaf becomes a sync target, not the home of your paper.
How it works
Lattice is a Tauri-based desktop app. You open a folder containing your .tex files, PDFs, notes, and more. The editor shows source and compiled PDF side-by-side, with autocomplete, diagnostics, and one-click builds using your own TeX Live installation. A visual mode lets you read and edit headings, equations, lists, and figures directly in place. An outline rail follows your sections, and \cite keys show their reference on hover. The AI agent — Claude Code, Codex, or another agent CLI on your Mac, or a custom OpenAI- or Anthropic-compatible API endpoint — reads your project and papers, fixes build errors, and proposes edits. Every change appears as a diff you can review or undo. Overleaf sync is two-way with live presence, chat, comments, and tracked changes. The papers library accepts papers via arXiv, DOI, title, link, or BibTeX, and lets you cite with one step. The History panel shows a unified timeline of saved versions, your edits, agent changes, and Overleaf history, with diff and compare options.
Who it's for
Researchers and academics who write LaTeX papers on macOS, especially those collaborating with co-authors on Overleaf, and who want an AI assistant integrated into their writing pipeline. It also suits anyone who values local-first storage and compatibility with Git and other editors.
Highlights
- Source and PDF side-by-side with a visual editing mode and SyncTeX jumps both ways
- Built-in agent for proofreading, polishing, and revision with inline accept/reject diffs
- Two-way Overleaf sync with live presence, chat, comments, and tracked changes
- Papers library with one-step citation, reference checking against Crossref, and Zotero integration
- Works offline and keeps projects as plain folders, compatible with Git and any editor
- Export for arXiv produces a standalone ZIP, and export review PDF writes annotations as standard PDF comments
Related
- Project
- Project
- Project
- Project