Live editing with an online LaTeX service
Edit a project from your online LaTeX service at the same time as co-authors in its web editor: turning it on, what syncs, pausing, working offline, the service's limits, signing in, and sharing on an Oleafly Server.
If your co-authors write in an online LaTeX service, you can work on the same project in Oleafly while they stay in its web editor. Your typing reaches them within a second or so, theirs shows up in Oleafly, and you can see where each person is working. Live editing uses your sign-in to the service, so you don’t need a Git token.
Live editing is experimental, so it’s off until you turn it on.
Turn it on
Section titled “Turn it on”- Open Settings → Experimentation and turn on live editing with your online LaTeX service.
- Sign in to the service on its card in Settings → Integrations. It’s the same sign-in you use to import projects from it.
- Open a project you imported from the service, or one you keep in sync with it. The live status appears in the toolbar.
Projects that aren’t linked to the service aren’t affected.
While you edit
Section titled “While you edit”Edits go both ways within a second or so. Files and folders that someone adds, renames or deletes show up on both sides. A dot on a tab means some of your changes to that file haven’t reached the service yet. It goes away once they have.
When you delete a file or folder in Oleafly, Oleafly asks whether to delete it on the service too. To stop the question, change When you delete a file in a live project on the service’s card in Settings → Integrations from Ask each time to the answer you want.
The service keeps some files as uploads rather than as text it edits live. A cloud icon on the tab marks them, and your edits to them upload when you save.
A few things work differently while a project is live:
- Visual mode only shows the file. Edit it in Code mode.
- Git sync with the service is off. It comes back while live editing is paused, once none of your changes are waiting to go out.
- If you’re a reviewer on the project, or track changes is on for you, your edits go in as suggestions.
- If you can only view the project on the service, you can’t edit it in Oleafly either.
- If you lose access, or the project is deleted or moved to the trash on the service, live editing stops and your copy stays on this computer.
Pause and resume
Section titled “Pause and resume”Select the live status in the toolbar and choose Pause live editing to stop for a while, and Resume live editing to carry on. If some of your changes haven’t reached the service yet, Oleafly asks first. Keep editing live goes back to editing, and Pause anyway keeps those changes on this computer until you resume. Turning the switch off in Settings → Experimentation pauses the open project the same way.
When a project’s window has been in the background for 30 minutes with nothing waiting to go out, the status shows Paused while you’re away. It reconnects when you come back to the window.
If live editing stops after an error, choose Go live again from the same menu.
Offline, sleep and crashes
Section titled “Offline, sleep and crashes”You can keep typing while you’re offline or while the computer sleeps. Oleafly keeps your changes on this computer as you type and sends them when the connection is back. While it waits, the status says how many changes are waiting, and Reconnect now in its menu tries again straight away. Changes that were waiting when the app quit or crashed go out the next time the project is live.
When you and a co-author changed the same file while you were apart, Oleafly merges the two where it can and tells you, with Show changes to see what came in. When it can’t, it asks which version to keep. Compare shows the differences, and Use mine sends your text to the service. The other choice puts the service’s text in the file and saves yours as a copy next to it.
Emoji and other characters
Section titled “Emoji and other characters”The service can’t store some characters, emoji among them. Oleafly replaces each one with � before it sends your typing, so your copy matches what your co-authors see. It tells you the first time this happens.
The service’s limits
Section titled “The service’s limits”The service limits how long one file can be, how big one change can be, and how many comments (500) and tracked changes (2,000) one file can hold. When a file reaches one of them, live editing stops for that file only, with a line that says why. The rest of the project stays live, and your text stays on this computer.
- Try live again sends your current text and starts editing the file live again. Use it once the file is back under the limit.
- Keep mine as a copy saves your version as a copy next to the file and loads the one on the service.
The same two choices appear when the service turns down a change or can’t load a file. When this version of Oleafly can’t edit a file live, only Keep mine as a copy is offered.
Sign in to the service
Section titled “Sign in to the service”Sign in on the service’s card in Settings → Integrations, or in the import dialog. If you sign in to the service with Google, through your institution or with a passkey, use Sign in with your browser. Oleafly opens the service in a new window of Chrome, Edge, Brave, Chromium or Firefox, with a browser profile of its own, and closes it once you’re in. Closing the window cancels. On Linux, browsers installed as a Snap or a Flatpak work too. If none of these browsers is installed, Oleafly opens its own sign-in window, which works when you sign in with a password.
On macOS, Copy a browser’s sign-in in Settings → Integrations copies your sign-in from a browser where you’re already signed in to the service. It isn’t available on Windows or Linux.
If your sign-in expires while a project is live, a banner says so and you can keep typing. Your changes go out once you sign in again. If you sign in with a different account, Oleafly doesn’t send the changes you made with the old one. It keeps them as copies next to their files.
Sharing on an Oleafly Server
Section titled “Sharing on an Oleafly Server”A project is live in one place at a time. While the live editing switch is on, a project linked to the service can’t be shared on an Oleafly Server. The Share dialog offers to unlink it from the service instead. Unlinking stops live editing for the project, keeps your copy on this computer and leaves the online project as it is for your co-authors. If some of your changes haven’t reached the service yet, resume live editing to send them, then unlink.
A project that’s already shared on an Oleafly Server doesn’t go live with the service until you stop sharing it there. A project can also be live in only one Oleafly window at a time.