Skip to content

feat: LaTeX PDF preview pane using tectonic (no TeX Live required) #11068

@NandishNaik01

Description

@NandishNaik01

Pre-submit Checks

Describe the solution you'd like?

Add a live PDF preview pane for .tex files in Warp. When editing a LaTeX document, a split pane shows the compiled PDF output and updates on every save — no external TeX Live installation required.

The entire stack can be implemented using existing Rust crates:

  • tectonic — self-contained LaTeX engine written in Rust. Bundles its own TeX distribution, compiles .tex.pdf with a single crate dependency. No pdflatex or TeX Live needed on the user's machine.
  • pdfium-render — Rust bindings to Google's PDFium library. Converts PDF pages to pixel buffers that can be rendered via Warp's existing wgpu pipeline.

Proposed behaviour:

  • Opening a .tex file automatically shows a preview pane (dismissible)
  • Compiles in a background thread on every save — no UI blocking
  • LaTeX compile errors displayed inline in the editor (line numbers, error messages)
  • Zoom + scroll in the preview pane
  • Works on macOS, Linux, and Windows — no system dependencies

Proposed technical stack:

User saves .tex file in Warp editor
        ↓
crates/latex_preview detects save via existing file watcher
        ↓
tectonic::latex_to_pdf() runs in background thread
        ↓
pdfium-render converts PDF page → wgpu-compatible pixel buffer
        ↓
New WarpUI preview pane renders the pixel buffer alongside the editor

Is your feature request related to a problem?

LaTeX is the standard document format in academia, research, and technical writing. Currently, working on .tex files in Warp means constantly switching to an external app (Overleaf, TeXShop, VS Code + LaTeX Workshop) just to see what the compiled document looks like. There is no terminal today that offers native LaTeX preview — Warp would be the first.

Additional context

The syntax highlighting foundation for LaTeX is already being added to Warp via arborium (see bearcove/arborium#202). This feature would be the next natural step — from "LaTeX source is coloured" to "LaTeX source is live-compiled and previewed."

Relevant prior art:

  • VS Code LaTeX Workshop (most popular LaTeX extension, 10M+ installs)
  • Overleaf (cloud-based, but sets the UX standard users expect)
  • TeXShop (macOS native, shows what the split-pane UX should feel like)

Operating system (OS)

Cross-platform

How important is this feature to you?

4

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:editor-notebooksEditors, notebooks, markdown rendering, LSP, and code display.area:ui-frameworkCore Warp UI framework, rendering, layout, and windowing infrastructure.area:window-tabs-panesWindow, tab, pane, and workspace layout management.enhancementNew feature or request.needs-mocksrepro:highThe report includes enough evidence that the issue appears highly reproducible.triagedIssue has received an initial automated triage pass.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions