Skip to content

Developer tools

Lemma: a LaTeX editor for Android that compiles to PDF offline

Lemma puts a working XeTeX engine on your phone or tablet, so a LaTeX document compiles to PDF without a server, a laptop or a signal. Write with a live preview, start from templates, sync with Git or Google Drive, and turn handwritten equations into LaTeX with Snap math.

  • Offline XeLaTeX
  • Handwriting to LaTeX
  • Git & Drive sync

What it does

A LaTeX editor that compiles offline, on your phone.

Write LaTeX and compile it to PDF on the device with a real XeTeX engine. Live preview, templates, Git and Google Drive sync, and Snap math that turns handwriting into LaTeX — no account needed.

  1. 01

    Real XeLaTeX, on the device

    The XeTeX binary is cross-compiled for Android. Compilation runs locally, so it works offline and your source never has to leave the phone.

  2. 02

    Live PDF preview and templates

    See the typeset page as you edit, and start papers, letters and assignments from ready-made templates instead of a blank file.

  3. 03

    Git and Google Drive sync

    Keep a project in a Git repository or a Drive folder and pick up on a laptop later. Sync is optional; a fully offline workflow is first-class.

  4. 04

    Snap math: handwriting to LaTeX

    Write an equation with a finger or stylus and Lemma converts the strokes to LaTeX source, recognised on the device.

Who it's for

Students, researchers and anyone who writes mathematical or technical documents and keeps hitting the moment when the laptop is not within reach.

Getting started

How to use Lemma.

  1. 01

    Install Lemma from Google Play and open it; there is no sign-up.

  2. 02

    Start a new document from a template (article, letter, assignment) or open an existing .tex file.

  3. 03

    Write in the editor and watch the PDF preview update after each compile.

  4. 04

    The first time a document uses a package, Lemma downloads it once; later compiles of that document work offline.

  5. 05

    Use Snap math to write an equation by hand and insert the recognised LaTeX at the cursor.

  6. 06

    Optionally connect a Git repository or a Google Drive folder to carry the project to a laptop.

How it works

The XeTeX binary is cross-compiled to run on Android, so compilation happens on the device rather than on a server. Because it is XeTeX, Unicode input and system-installed fonts work the way they do on a desktop XeLaTeX setup.

Git and Drive sync are optional layers on top of a fully offline workflow. Handwriting recognition for Snap math runs locally: the strokes are turned into a LaTeX expression on the phone.

Good to know

  • Packages are fetched over the network the first time a document needs them, so open a new template once while online before travelling.
  • Very large documents with heavy graphics compile more slowly on a phone than on a desktop.
  • Lemma uses XeLaTeX; a project that depends on pdfLaTeX-only packages or on LuaLaTeX scripting may need small changes.

FAQ

About Lemma.

Something else? Ask us directly.

Does Lemma work offline?

Yes. Editing, compiling and previewing happen on the device. TeX packages download the first time a document needs them and then work offline; only the optional Git and Google Drive sync needs a connection after that.

Is Lemma free?

Yes. Lemma is free on Google Play and does not require an account to write and compile.

Which LaTeX engine does it use?

XeTeX, compiled to run on Android, so Unicode and system fonts work the way they do on a desktop XeLaTeX install.

Can I use packages?

Yes. The first time a document uses a package it is downloaded once; after that, compiling works without a connection.

Can I edit LaTeX on an Android tablet?

Yes. Lemma runs on phones and tablets, and a tablet with a stylus is the best fit for Snap math handwriting input.

Developer tools

More from developer tools.

Editors, compilers and utilities that open instantly and keep your work on your device.

All products
Developer tools

ls-judge Runtimes

Run untrusted code in 69+ languages, each in its own microVM.

  • 69+ languages · 129 runtimes
  • MicroVM per run
  • Live per-test results
Developer tools

Online Code Editor

A multi-file IDE that opens in a browser tab.

  • Runs on ls-judge
  • 80+ languages
  • Markdown preview & diff
  • Files stay on-device
Developer tools

Kern

A Typst editor with a live preview, on your phone.

  • Live Typst preview
  • Works offline
  • LaTeX import

Try Lemma now.

Free at the core, no account to create, and your work stays on your device.