Skip to content
Edith

Docs

Developer & Data

LaTeX

Edit .tex files in a built-in editor with a live PDF preview. Keep documents on your Mac, or work on a file in a GitHub repository: GitHub builds the PDF, and you review and merge the pull request here. Nothing is uploaded until you choose GitHub. Read the LaTeX overview for screenshots and use cases.

LaTeX editor with the source of the Orbital Survey research paper on the left, from its preamble to the abstract, and the compiled PDF preview of its first page on the right
LaTeX editor with the source of the Orbital Survey research paper on the left, from its preamble to the abstract, and the compiled PDF preview of its first page on the right

Install LaTeX

  1. Open Library in Edith's sidebar.
  2. Search for LaTeX in Search tools, or open the Developer & Data category.
  3. Press Install. LaTeX is added to your sidebar.

From the terminal, ed extensions install latex does the same. See Extensions for turning extensions off, updating and removing them.

Where to find LaTeX

  • Sidebar. Click LaTeX in the sidebar to open its page, or press ⌘K and type its name.
  • Home. Open Home, press Edit Home, then Add widgets to place its widgets.

Get started with LaTeX

  1. Add a document. Choose a .tex file on this Mac, or a source path in a GitHub repository.
  2. Edit the source. Write in the editor with find, undo and insert helpers.
  3. Compile. Press Command-S to save and build the PDF.
  4. Preview the PDF. The result appears beside your source, with the build log if something fails.

What LaTeX does

  • Write a LaTeX document. Edit .tex files with a live PDF preview.

From the terminal

Everything above works in the app. The ed command line is optional, for scripts and coding agents. LaTeX's commands are in ed latex, and each one is also a tool in Edith's MCP server.

Terminal
ed latex ls --jsoned latex add --name Paper --file /tmp/main.tex --jsoned latex compile PROJECT --jsoned latex preview PROJECT --data --json

Permissions and requirements

  • macOS 14 or later on Apple silicon
  • Tectonic, installed by Edith for local builds
  • TeX Live with latexmk, only for local pdfLaTeX builds
  • The GitHub CLI and a repository with Actions turned on, for GitHub documents
  • No macOS privacy permissions
  • A GitHub CLI sign-in, only for documents in GitHub repositories

See Permissions for how Edith asks for each one.

Questions

Do I need MacTeX to use it?

No. Local documents build with Tectonic by default, which Edith installs and which downloads packages on demand. MacTeX or another TeX Live install is only needed if you want local pdfLaTeX builds.

Can I choose pdfLaTeX instead of Tectonic?

Yes. GitHub documents can use either compiler. For local documents, pdfLaTeX appears as a choice once Edith finds latexmk from a TeX Live install on your Mac.

How does the GitHub mode build my PDF?

Edith commits your source and a workflow file to a review branch and opens a pull request. GitHub Actions compiles the PDF and uploads it as a build artifact, which Edith downloads to show next to the source. Merging is a squash merge from the page.

Can Claude Code edit and compile my LaTeX over MCP?

Yes. The ed latex commands are tools in Edith's MCP server, such as edith_latex_read, edith_latex_edit and edith_latex_compile. Edits are checked against the revision the agent read, so a stale edit fails instead of overwriting newer text.

Does it work offline?

Local documents build on your Mac, though Tectonic needs a connection to fetch any package a document uses for the first time. GitHub documents always need a connection, since GitHub builds the PDF.

Is LaTeX included in Edith's one-time price?

Yes. The LaTeX editor comes with every Edith license, and Tectonic is free to install through Edith.