Instant, in Overleaf.
No more Recompile.
A browser extension that puts PhiTeX inside Overleaf: an instant preview, latexdiff, collaborators on the page, and folders for your projects.
It adds a PDF | ⚡ Instant switch to Overleaf's PDF toolbar. Flip it, and the page repaints as you type: 8.7 ms keystroke→page, measured on real Overleaf. The compiler runs in your browser, and your documents never leave it.
Type in it. Overleaf with PhiTeX, redrawn for this page: flip PDF | ⚡ Instant and the page follows every keystroke, or pick another file on the left. PhiTeX is not affiliated with Overleaf.
Features
More than a faster PDF.
Compare any two versions, see your co-authors on the page, read with colour lines, and finally sort your projects into folders.
Compare
latexdiff, against any version.
Pick a label or any point in the project's history, and the page shows both versions at once, as latexdiff marks them: additions underlined in blue, deletions struck in red. Keep typing and the comparison follows. Double-click a change and the editor jumps to it.
- Labels and the full history, from Overleaf itself
- Two past versions against each other, too
- Step through the changes, one by one
Collaborators
See who is writing, on the PDF.
Everyone editing the project shows up on the PDF, at the word they are on, in their Overleaf colour. Their edits reach your preview as they type them, in the open file and in the others. Your view never moves for them, and one switch in the extension's menu turns it off.
- Each cursor marked in its author's colour
- Edits to files you don't have open, too
- Your own place marked in yellow
Colour lines
Never lose your place in a line.
A reading aid for long pages: each line of text fades into a colour, and the next line starts in that same colour, so your eye lands on the right line every time. Pick the colours and how strong they are, in the preview's settings. It colours only what you see; your PDF stays as it is.
- Blue and red, blues, grey, warm, or your own two colours
- Strength and fade length, from a hint to vivid
- Body text only, or headings and captions too; equations and figures stay plain
3 Discussion
Reading a dense page, the eye has to jump from the end of one line back to the start of the next, and on a wide column it often lands a line too high or too low. A gradient that carries the colour from the end of one line into the start of the next gives it a thread to follow. The colours alternate in pairs, so neighbouring lines never look alike, and the text itself is never changed.
Folders
Folders for your projects. Finally.
Nested folders on Overleaf's project list, with a tree in the sidebar and a path over the table. Drag projects onto a folder, several at a time. And a search that forgives: type splt lern and it still finds Split Learning, in any folder.
- Narrow it down:
@me#thesisin:Researchafter:7d - Synced across your devices and browsers
- Kept in one project of your own,
.phitex-data, so every change is a version you can restore - Your projects themselves are never touched
See it in action
Two minutes, on real Overleaf.
The extension in a live Overleaf project: flip the switch, and the PDF follows the typing.
It's on YouTube. Nothing loads till you hit play.
How it works
Your browser does the compiling.
When you open a project, the extension fetches it from Overleaf, as you, and opens it in the PhiTeX core, which runs as WebAssembly right in the Overleaf tab. Each keystroke reaches the core as an edit. It typesets again only the pieces of the document that edit can change, and redraws only the pages that changed.
The core runs in a worker of the Overleaf tab, one for each tab, and ends when the tab closes. Your documents go to no server of ours, and no code is loaded remotely.
It reads Overleaf's editor as you and your collaborators type, and fetches the files you don't have open again when they change. It never writes to them. Folders, once you make one, are kept in a project of their own.
Every file and figure comes from the project itself. Packages and fonts come by name from PhiTeX's mirror of TeX Live and stay in your browser; the formats ship with the extension. A pdfLaTeX document comes out byte for byte as pdfTeX 1.40.29 makes it.
One click to install, free, from each browser's store. It works on every Overleaf project.
Install
Add it to your browser.
Free, one click, on every Overleaf project. Same extension on each.
Or grab it from the source repository.
Then, once it's installed:
- Open
overleaf.comany project, as usual - Flip
PDF | ⚡ Instantin the PDF toolbar (Alt+Shift+P)
Unofficial: made independently, not affiliated with or endorsed by Overleaf.
FAQ
Questions.
Is my document uploaded?
No. Everything runs locally, in your browser, as WebAssembly. The extension asks overleaf.com, as you, for your own project's files and history, the same way the editor does. The only other requests fetch TeX packages and fonts by name, from PhiTeX's mirror of TeX Live; they carry nothing of yours. It has no analytics and no remote code.
Does it change my Overleaf project?
No. The extension reads Overleaf's editor transactions to keep its own preview in sync, and never changes your documents or their history. The one thing it ever writes is your folders: the first time you make one, it creates a project named .phitex-data to keep them in, hidden from your project list.
Does Compare change anything?
No. It reads past versions from Overleaf's history, as the History view does, and typesets the comparison in your browser. Nothing is written back.
Is it the same engine as the CLI?
Yes, the same PhiTeX core, compiled to WebAssembly. The PDF is byte-identical to pdfTeX, and the instant result always equals a full rebuild. See the compiler →
Are there known limits?
Two in PhiTeX 1.0, both on very large TikZ documents, and both will be fixed in a 1.0.x update. In the browser, a document the size of the TikZ manual (1,180 pages) runs out of memory around page 1,000; build it with the phitex CLI instead. On that manual, the live preview also takes about 1.9 times as long as a build without it. Normal documents aren't affected.
Is it free and open source?
Yes. The PhiTeX engine is free software under the GNU Affero General Public License v3.0 (AGPL-3.0-only).