Skip to content

TryBayes/LemmaForLatex

 
 

Repository files navigation


Lemma

AI-powered collaborative LaTeX editor. Cursor for LaTeX.

WikiContributingAuthorsLicense

A screenshot of a project being edited in Lemma

Figure 1: A screenshot of a project being edited in Lemma.

About Lemma

Lemma is an AI-powered online real-time collaborative LaTeX editor. We run a hosted version at lemmaforlatex.com, and you can also run your own local version.

Lemma is a fork of Overleaf Community Edition, enhanced with AI capabilities to supercharge your LaTeX workflow.

Caution

Lemma Community Edition is intended for use in environments where all users are trusted. Community Edition is not appropriate for scenarios where isolation of users is required due to Sandbox Compiles not being available. When not using Sandboxed Compiles, users have full read and write access to the sharelatex container resources (filesystem, network, environment variables) when running LaTeX compiles.

Installation

See the AGENTS.md file for detailed instructions on building and deploying Lemma.

Quick Start

# Build the Docker image
cd server-ce
docker build --file Dockerfile --tag lemma/lemma:main ..

# Run with docker-compose
cd ..
docker-compose up -d

Docker Image

This repo contains two dockerfiles, Dockerfile-base, which builds the base image, and Dockerfile which builds the main application image.

The Base image generally contains the basic dependencies like wget, plus texlive. We split this out because it's a pretty heavy set of dependencies, and it's nice to not have to rebuild all of that every time.

The main image extends the base image and adds the actual Lemma code and services.

Use make build-base and make build-community from server-ce/ to build these images.

We use the Phusion base-image (which is extended by our base image) to provide us with a VM-like container in which to run Lemma services. Baseimage uses the runit service manager to manage services, and we add our init-scripts from the server-ce/runit folder.

Contributing

Please see the CONTRIBUTING file for information on contributing to the development of Lemma.

Authors

Built by the Lemma Team, forked from Overleaf.

License

The code in this repository is released under the GNU AFFERO GENERAL PUBLIC LICENSE, version 3. A copy can be found in the LICENSE file.

Based on Overleaf, Copyright (c) Overleaf, 2014-2025.

About

Cursor for Latex

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 63.4%
  • TypeScript 28.9%
  • SCSS 2.9%
  • Java 2.2%
  • Pug 0.7%
  • Shell 0.6%
  • Other 1.3%