Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
JupyterJuliaLaTeXLinuxOctavePythonR StatsSageMathSlidesTeachingTerminalWhiteboardX11ComputeAI AssistantCompareAPI
CoCalc Logo Icon
JupyterJuliaLaTeXLinuxOctavePythonR StatsSageMathSlidesTeachingTerminalWhiteboardX11ComputeAI AssistantCompareAPI
Online LaTeX Editor logo

Online LaTeX Editor

Focus on writing LaTeX. CoCalc takes care of everything else.

Image illustrating Online LaTeX Editor

Working with LaTeX\LaTeX made easy

  • Side-by-side preview with forward and inverse search (TEX ↔ PDF)
  • Automatically compiles upon saving and marks problems in the source file
  • Records every change while you type with periodic backups of all files
  • AI-powered formula assistant typesets formulas for you
  • Runs embedded calculations with support for SageTeX, PythonTeX and Knitr
  • Multi-file support that discovers included files automatically
  • Fully-featured online editor

  • Real-time collaboration with unlimited collaborators
  • Side-by-side chat to discuss documents with collaborators and AI
  • Dark Mode with PDF support for comfortable night-time editing
  • Complete revision history to revert any changes
  • Fully managed LaTeX\LaTeX environment with PDF LaTeX, XeLaTeX, and LuaTeX
  • Full computational environment accessible from any browser
  • Ready out of the box: Sign up, create a project, create or upload your *.tex file, and you're ready to go!
    Start free today. Upgrade later.

    Collaborative editing without limits

    Two users editing the same LaTeX file simultaneously with visible cursors showing real-time collaboration
    Multiple users can edit the same file online at the same time. Changes are synchronized in real-time – you see the cursors and edits of other collaborators as they type.
    Share your project privately with an unlimited number of collaborators. Compilation status and PDF output are also synchronized between everyone, ensuring that all collaborators experience the document in exactly the same way.

    AI-powered formula assistant

    AI formula assistant dialog generating LaTeX formulas from natural language descriptions
    CoCalc's extensive integration with various AI language models helps you typeset formulas.
    You enter a description of your desired formula and a language model of your choice transforms it into proper LaTeX code. The descriptions can come in various forms:
    Natural language description
    drake equation
    Simple algebraic notation
    (a+b)^2 = a^2 + 2 a b + b^2
    Combination of both
    integral from 0 to infinity of (1+sin(x))/x^2 dx
    Once you have a result you like, click "Insert" to add the formula to your document.

    Dark Mode with PDF Support

    Love dark mode? CoCalc has you covered!
    The LaTeX\LaTeX editor features dark UI elements as you'd expect, but goes further by inverting the PDF viewer colors. This means that even though your final PDF will have a white background, you can view and edit it with a dark background and bright text for comfortable night-time work.
    Note: You can quickly disable this PDF dark mode, to double check the actual output.

    Multi-file support

    LaTeX editor showing multiple files with automatic discovery of included files
    Working with large LaTeX documents often means splitting your content across multiple files using \include{...} or \input{...} commands.
    CoCalc automatically discovers all included files and makes navigation easy.
    Each entry shows a brief snippet of its beginning, making it easy to identify the right file.
    Inverse search works seamlessly with multi-file documents: double-click anywhere in the PDF and CoCalc automatically opens the correct subfile for you.

    Embed Python, Sage or R code in LaTeX\LaTeX documents

    Execute Python, Sage, or R code directly within your LaTeX source to automatically generate figures, tables, formulas, and results. Your computational code lives alongside your prose, making your paper fully reproducible.
    CoCalc supports SageTeX, PythonTeX, and Knitr. The code runs during compilation, and the output is automatically included in your PDF – change your code, recompile, and your document updates.

    Full computational environment

    LaTeX editor with PythonTeX showing source code and PDF output with a damped oscillation plot
    Stop copying and pasting computational results into your papers. CoCalc gives you full access to computational software directly within your LaTeX\LaTeX editor – seamlessly compute your results and publish them in the same environment.
    Run Python, SageMath, R, Julia, and more right alongside your document. All software is pre-installed and maintained – no setup required.

    SageTex

    Editing LaTeX with SageTex code
    SageTeX brings the power of SageMath symbolic computation directly into your LaTeX documents.
    Write \sage{2 + 3} to get "5", use \sage{f.taylor(x, 0, 10)} for Taylor expansions, and create plots with \sageplot{sin(x^2)}. CoCalc automatically handles the full compilation pipeline:
    • Runs the initial LaTeX\LaTeX compilation pass
    • Executes SageMath to compute results, graphs, and images
    • Completes the final compilation to produce your PDF
    No manual intervention required – just write your code and compile.

    PythonTex

    Editing LaTeX with PythonTex code
    PythonTeX executes Python code within your LaTeX documents and typesets the results.
    Use \py{2 + 4**2} to compute "18" inline, leverage the entire Python ecosystem including NumPy, SciPy, and Matplotlib for plots, or perform symbolic math with SymPy. Access to hundreds of Python libraries means you can analyze data, generate visualizations, and format results without leaving your document.
    CoCalc automatically detects PythonTeX usage and orchestrates the compilation – you focus on your analysis, not the toolchain.

    R/Knitr

    Editing LaTeX with R/Knitr code
    Knitr brings R statistical computing into your LaTeX workflow. Create .Rnw files that weave together statistical analysis, data visualization, and professional typesetting.
    Perfect for statistical reports, academic papers, and data-driven research. CoCalc handles everything automatically:
    Run your statistical analysis and generate publication-ready documents in one integrated environment.

    LaTeX\LaTeX Editing Features

    The following are some specific features of editing LaTeX\LaTeX in CoCalc.
    There is also more comprehensive documentation.

    Forward and Inverse search

    Navigate effortlessly between source and PDF.
    This speeds up your editing workflow, especially in large documents.
    Forward Search: Click in your LaTeX source to jump to the corresponding location in the PDF preview.
    Inverse Search: Double-click anywhere in the PDF to jump back to the corresponding location in your source code. You can also enable automatic sync mode to keep your source editor aligned with the PDF as you scroll.
    Powered by SyncTeX, working seamlessly in the background.

    Managed LaTeX\LaTeX environments

    Menu showing the different LaTeX engines in CoCalc
    CoCalc makes sure that your desired LaTeX\LaTeX engine is available and ready to use. You can choose between PDF Latex, XeLaTeX or LuaTeX.
    Many packages and utilities like PGF and TikZ are pre-installed.
    Behind the scenes, LatexMK is configured to manage the compilation process.
    It is also possible to fully customize the compilation command, so you can bring your own shell script or even use a Makefile!

    TimeTravel

    Using the TimeTravel slider to see what changed in a LaTeX document
    The TimeTravel feature is specific to the CoCalc platform. It records all changes in the document in fine detail. You can go back and forth in time using a slider across thousands of changes to recover your previous edits.
    This is especially helpful for pinpointing which of the recent changes caused a compilation error. You can see the recent changes and exactly where the modifications happened, and who made them.

    Side Chat

    Chatting about a LaTeX document right next to that document
    A side-by-side chat for each LaTeX\LaTeX file lets you discuss your content with collaborators or give feedback to your students while they are working on their assignments.
    Query AI language models directly in the chat to get help with your document. Ask questions about LaTeX syntax, request suggestions for improving your writing, or discuss the content of your document with AI assistants.
    Collaborators who are offline will be notified about new messages the next time they sign in. If you @mention them, they receive an email notification.
    Chat messages also support Markdown formatting with LaTeX\LaTeX formulas.

    Backups

    Directory listing of filesystem backups of a CoCalc project
    Every couple of minutes, all files in your project are saved in consistent readonly snapshots using ZFS.
    This means you can recover older versions of your files in case they are corrupted or accidentally deleted.
    These backups are complementary to TimeTravel and provide browsable backups of images and data files in addition to the documents you are actively editing.

    Publishing

    Viewing a PDF file in the share server
    CoCalc helps you share your work with the world. It offers its own hosting of shared documents, alongside with any associated data files.
    You can configure if your published files should be listed publicly, or rather only be available via a confidential URL.

    LaTeX\LaTeX in CoCalc versus the competition

    Feature
    Realtime collaboration and sync
    Limited number of collaborators
    PDFLaTeX rendering engine
    XeLaTeX rendering engine
    LuaTeX rendering engine
    Run Python, R and other scripts as part of compilation
    CoCalc is particularly good at this.

    But limited.
    R/Knitr
    Limited - very few packages, limited syntax, no caching, slow
    SageTex
    PythonTex
    Upload files
    Forward and inverse searchN/A
    Multifile supportN/A
    WYSIWYG
    This is WYSIWYG collaborative markdown editor, with LaTeX math support.

    This is only a partial WYSIWYG-like mode.
    Equation editor
    AI Formula Assistant
    Generate LaTeX formulas from natural language descriptions using AI
    https://cocalc.com/features/latex-editor#a-ai-formula

    AI Assist add-on generates equations from prompts or images (paid feature with limited free uses)
    https://www.overleaf.com/learn/how-to/AI_Assist
    Bibliography
    Only BibTex via LaTeX (nothing sophisticated)

    Limited
    Preloaded journal templates
    However, you can easily upload a template from a journal.
    Self hosting
    Start free today. Upgrade later.