
Working with made easy
Fully-featured online editor
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

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

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 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

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.
Learn more in the multi-file support documentation.
Embed Python, Sage or R code in 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.
Full computational environment

Stop copying and pasting computational results into your papers. CoCalc gives you full access to computational software directly within your 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.
Learn more on our Available Software page or Jupyter Notebook page.
SageTex

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 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

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

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:
- Thousands of R packages pre-installed and maintained
- Full compilation pipeline from R code to final PDF
- Forward and inverse search between
.Rnw
source and PDF output
Run your statistical analysis and generate publication-ready documents in one integrated environment.
Editing Features
The following are some specific features of editing in CoCalc.
There is also more comprehensive documentation.
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 environments

CoCalc makes sure that your desired 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

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

A side-by-side chat for each 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 formulas.
Backups

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

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.
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 search | N/A | |||
Multifile support | N/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 |
These comparisons were made in good faith; however, they may contain errors, since we know CoCalc better and the products are constantly improving. Contact [email protected] if anything looks wrong or incomplete!
Start free today. Upgrade later.