# Online LaTeX Editor

## No software install required: 100% online

CoCalc's $\LaTeX$ editor supports

## Working with $\LaTeX$ made easy

Tired of sending changes back and forth with your colleagues?
Collaborate online without any limits!
Scared of breaking a document?
Revert recent changes using TimeTravel.
Worried about maintaining your $\LaTeX$ environment?
CoCalc takes care of everything.
Want to work from anywhere?
You only need a web browser and Internet access, or you can run your own server.
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.

# (IconFonts not available) Managed $\LaTeX$ environments

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

# Collaborative editing without limits

Privately share your project with an unlimited number of collaborators. Simultaneous modifications of your document are synchronized in real time. You see the cursors of others while they edit the document and also see the presence of watching collaborators.

Additionally, any compilation status and output is synchronized between everyone, because everything runs online and is fully managed by CoCalc.

This ensures that everyone involved experiences editing the document in exactly the same way.

# Full computational environment

One thing that sets CoCalc apart from other online $\LaTeX$ editors is full access to computational software. This means you can seamlessly transition from computing your results to publishing them.

CoCalc supports running Python, SageMath, R Statistical Software, Julia, and more in the same project as your $\LaTeX$ document.

Consult the Available Software page or look at our Jupyter Notebook page for more information.

# Run SageMath, Python, or R in $\LaTeX$

You can run calculations inside your $\LaTeX$ documents! It's possible to embed Sage, R, or Python code in your document to automatically generate text, plots, formulas or tables. The code is evaluated as part of the compilation process and the output will be included in the generated document.

# (IconFonts not available) SageTex

SageTeX lets you embed SageMath in your document!

Write Sage commands like \sage{2 + 3} in $\LaTeX$ and the document will contain "5", \sage{f.taylor(x, 0, 10)} for the Taylor expansion of a function f, and drawing graphs becomes as simple as \sageplot{sin(x^2)}.

CoCalc deals with all the underlying details for you:

• It runs the initial compilation pass,
• uses SageMath to compute the text output, graphs and images,
• and then runs a second compilation pass to produce the final PDF output.

# (IconFonts not available) PythonTex

PythonTeX allows you to run Python from within a document and typeset the results.

For example, \py{2 + 4**2} produces "18". You can use all available python libraries for Python 3, drawing plots via pylab, and use PythonTeX's SymPy support.

Again, CoCalc automatically detects that you want to run PythonTeX and handles all the details for you.

# (IconFonts not available) R/Knitr

CoCalc's $\LaTeX$ editor also supports Knitr documents (with filename extension .Rnw). This gives you the ability to embed arbitrary R Software commands and plots in your $\LaTeX$ file.

Behind the scenes, CoCalc deals with all underlying details for you:

• installation and management of all R packages,
• orchestrates the full compilation pipeline for $\LaTeX$ and running R, and
• reconciles the line numbers of the .Rnw file with the corresponding .tex document for correct forward and inverse search.

# $\LaTeX$ Editing Features

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

# (IconFonts not available) Forward and Inverse search

Let CoCalc help you find your way around in large documents!

Forward Search lets you jump from the $\LaTeX$ source to the corresponding part in the rendered preview. This saves you time looking for the output.

Inverse search does the opposite: double click on the output and your cursor jumps to the line in the source file for that output.

Under the hood, CoCalc uses SyncTeX seamlessly.

# 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 $\LaTeX$ file lets you discuss your content with collaborators or give feedback to your students while they are working on their assignments.

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$ formulas.

# (IconFonts not available) 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.

# (IconFonts not available) 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.

## $\LaTeX$ in CoCalc versus the competition

Feature
Realtime collaboration and sync
Limited number of collaborators
PDFLaTeX rendering engine
XeLaTeX rendering engine
LuaTeX rendering engine
Forward and inverse searchN/A
Multifile supportN/A
WYSIWYG
This is only a partial WYSIWYG-like mode.
Equation editor
Bibliography
Only BibTex via LaTeX (nothing sophisticated)

Limited