How to compile a LaTeX project in Coauthor, what the Compile button and auto compile do, how to switch between the LaTeX, PDF, and split views, and what to do when the PDF does not update.
Compiling and PDF Preview
Coauthor compiles your LaTeX project on its servers and shows the resulting PDF next to your source. You never need a local TeX installation. This page covers the compile controls at the right end of the editor toolbar and the PDF view.
Compile Manually
- Open any
.texfile in a folder that has a main file (see LaTeX Main Files). - Click Compile in the toolbar, or press Ctrl+S or Ctrl+Enter (Cmd on macOS). When you are editing a file other than the main file, the button reads Compile main.
- While the job runs, the button shows a spinner and its status text: Queued..., Preparing..., Compiling..., Running BibTeX..., Finalizing....
- On success the button briefly shows Success! and the tab switches to the PDF view (or stays in LaTeX+PDF if you were already in split view).
- On failure the button is replaced by a red error count. Click it to open the Compilation Results panel. See Compile Errors, Warnings, and Logs.
Compilation collects every file in the project folder and its subfolders, runs latexmk -pdf (pdfLaTeX with SyncTeX, shell escape disabled), and runs BibTeX automatically when your document cites a .bib file. Long jobs are cut off after ten minutes.
Auto Compile
Auto compile is on by default for every LaTeX project. Whenever your edits are saved by the collaboration server, Coauthor computes a hash of all project inputs and, if anything changed, starts a background "live" compile. Rapid saves are coalesced with a short debounce (about two seconds), so you do not get one compile per keystroke.
To turn it off or on:
- Click the chevron next to Compile to open Compilation options.
- Choose Disable auto compile or Enable auto compile.
The setting is stored on the folder's main file, so it applies to every collaborator and every file in that project. Live compiles do not pop open the error panel; if one fails, the toolbar button reads Auto failed and the red error count appears, so you can keep typing and look when you are ready.
Compilation Options Menu
| Menu item | What it does |
|---|---|
| View compile log | Opens the Compilation Results panel for the latest compile, including successful ones |
| View errors | Opens the same panel focused on the error list (shown only when there are errors) |
| Enable auto compile / Disable auto compile | Toggles background compilation for this project |
View Modes
A LaTeX document tab has three buttons in the tab bar:
| Button | Layout |
|---|---|
| LaTeX | Source editor only |
| LaTeX+PDF | Source on the left, compiled PDF on the right |
| Compiled PDF only |
In LaTeX+PDF, drag the divider between the source and the PDF to give either side more room; double-click it to go back to an even split. The split is remembered for the next time.
The PDF view always shows the PDF of the folder's main file, also when you open it from another .tex file in the project. The PDF view has zoom controls, a fit-to-width toggle, and a Download PDF button. Before the first compile it shows No PDF available with the hint to switch to the LaTeX tab and click Compile.
The Stale PDF Warning
The PDF view always shows the most recent successful compile. If a later live compile fails, a yellow bar appears above the PDF reading Showing last successful PDF. followed by the number of errors and the time of the failed attempt. Your previous PDF stays visible so you can keep reading while you fix the source. The bar disappears as soon as a compile succeeds again.
PDF Not Updating?
Work through these in order:
- Check for a failed compile. Look at the toolbar: a red error count or Auto failed means the last build did not produce a PDF. Open the errors and fix the first one; later errors are often consequences of it.
- Check the stale banner. If the PDF view says Showing last successful PDF, you are looking at an older build for the same reason.
- Check auto compile is on. Open Compilation options; if it says Enable auto compile, live compiles are currently disabled. Click Compile manually or enable it.
- Confirm which file is the main file. Edits in a file that the main file never
\inputs will not change the PDF. Look for the main badge in the workspace panel. - Check the file is in the project folder. Files outside the folder are not sent to the compiler. Files in a subfolder are compiled, but saving them does not trigger auto compile because the toolbar cannot find the main file from there; compile from a file in the main folder instead.
- Compile manually once. Press Ctrl+S. If nothing happens, wait for any running compile to finish; the button is disabled while a job is in progress.
- Reload the page if the PDF pane looks frozen after a network interruption; the latest compilation is fetched again on load.
If you cannot tell from the error list what went wrong, ask the AI coauthor: it reads the latest compile log of the project itself and proposes fixes as tracked changes. Compile again after accepting them. See Compile Errors, Warnings, and Logs.
Sidebar Toggles
To the left of the compile controls, LaTeX files have the same sidebar buttons as rich text documents: Show/Hide Comments Sidebar (Ctrl+Shift+C), Show/Hide Changes Sidebar (Ctrl+J), Show/Hide Versions Sidebar, Show/Hide Contributions Sidebar, and Open AI Provenance for this document. See Comments, Track Changes and Reviewing Contributions, and AI Provenance.
Related articles
Prefer to ask?
Inside Coauthor, ask the AI coauthor how any feature works — it answers from these same help articles. For anything else, use the ? button in the top-right corner of the app.