Simultaneous collaborative editing of a LaTeX file

However, both are not meant for simultaneous editing, and are somewhat annoying.

Piotr Migdal asked Sep 5, 2011 at 13:49 Piotr Migdal Piotr Migdal 1,276 2 2 gold badges 12 12 silver badges 16 16 bronze badges You could use version control to track changes. Commented Sep 5, 2011 at 13:59

Welcome to TeX.sx! I was going to suggest this as a duplicate of tex.stackexchange.com/q/4489 or tex.stackexchange.com/q/232. Then I noticed that you're asking about simultaneous editing, which brings up an aspect that hasn't been discussed before. I edited your question a bit to get this part to stand out more.

Commented Sep 5, 2011 at 14:02 @N.N. (The tag would've been revision-control [tag:revision-control] ) Commented Sep 5, 2011 at 14:04 Probably the Google Docs based solution here Compiling documents online is the best you can get. Commented Sep 5, 2011 at 14:11 Commented Sep 5, 2011 at 17:14

13 Answers 13

Overleaf -- (formerly writelatex.com)

Features:

Screenshot:

screenshot

answered Oct 13, 2012 at 8:33 26.3k 2 2 gold badges 85 85 silver badges 112 112 bronze badges There is a new option that allows to send a watchonly link maybe this could be added to the answer Commented Sep 17, 2013 at 20:31 The downside of this is method is the lack of a revision history. Commented Nov 15, 2013 at 21:12 @Gabriel Now they have version history too Commented Dec 21, 2015 at 0:17

Note that Overleaf is not free. Currently it costs $15/€14 per month for up to 10 collaborators in a project.

Commented Apr 28, 2021 at 15:41

I tend to use a version control system. My current setup is a (private) repository at Bitbucket, which uses Mercurial for version control. Access to the repository is then provided to other members of the team. This is as close as you can get to simultaneous editing, IMO.

It helps to divide the project into several separate files using e.g. \input or the subfiles package, as this minimizes the number of merge conflicts one encounters.

For actual simultaneous editing, you should use an editor created for this purpose, such as SubEthaEdit.

answered Sep 5, 2011 at 14:27 6,773 2 2 gold badges 30 30 silver badges 27 27 bronze badges

Merge conflicts are indeed a thang. Did you ever try having one owner of the repository and make co-authors clone it and submit pull-requests? I'm not experienced enough to know if this would make things better than the subfiles heuristic.

Commented Apr 20, 2017 at 19:40

Working with pull requests does make it easier. Generally you shouldn't work directly on the master branch at all unless you're the sole contributor.

Commented Apr 20, 2017 at 22:18

The part which you would find interesting part is below:

[. ShareLaTeX..]

A LaTeX Editor for smooth collaboration

Keep your LaTeX collaborators up to date by letting everyone access and edit the same LaTeX document.

The days of making sure everyone has access to the latest version are over; the latest version is always available online. You can even work on the document at the same time as your collaborators with our real-time editor, and our built in chat will help you communicate while you're editing.

answered Oct 20, 2013 at 15:13 271 2 2 silver badges 2 2 bronze badges It seems like as of now ShareLaTeX has merged with Overleaf Commented Nov 28, 2018 at 13:38

I don't have much experience with these, but they look like they might do the trick:

answered Sep 5, 2011 at 14:54 42k 12 12 gold badges 100 100 silver badges 97 97 bronze badges

I had a look at Gobby and thought it looked good. I haven't had the opportunity to try it out, though, but if I ever had to do this then Gobby would be the first I'd try. I believe that it has LaTeX syntax highlighting as well.

Commented Sep 5, 2011 at 16:30 Does Gobby have Math support? Commented Aug 11, 2017 at 15:13

I'd say Authorea (full disclosure, I am a co-founder). Authorea is an online social word processor for the collaborative writing of research articles. It solves the problem that many scholars have when they tell their co-authors: "please do not touch the article, I am working on it". In Authorea, articles are modular (e.g. one module = one section). Only one article collaborator can check out and work on a module at any time, so that the entire article stays open for editing but individual elements are checked out and then checked back in with edits.

More information: Authorea's versioning control system is entirely based on Git (every article is a Git repository). But Git functions in the backend, so that users who are not familiar with (or do not care about) Git can just use it as an editor and still have all changes logged as commits. In other words, Authorea allows power users (who know Git) to easily write papers in collaboration with regular users (who don't know Git). Authorea's frontend allows you to enter text in LaTeX or Markdown, as well as figures, and equations (in LaTeX or MathML). Authorea renders and compiles everything to the web (HTML5), in addition to PDF (export to numerous journal formats is provided).

answered Oct 7, 2013 at 14:49 Alberto Pepe Alberto Pepe 709 7 7 silver badges 10 10 bronze badges

Nice to have co-founder in this thread. :) Anyway, this Git integration does not work - I set it but in "settings" it still asks me to set it up, and the only way to enter push/pull is to type link by hand.

Commented Mar 30, 2014 at 15:52

Hi Piotr, mmm Github integration should work just fine. We have a lot of users using it successfully. If you click on settings it will ask you first to indicate your Github repo (and you will need the deploy key from Github) and then set up a webhook. It should take a few minutes at the most. If you have other problems, please contact us at [email protected]

Commented Mar 31, 2014 at 16:29 The issue is here: authorea.com/issues/143 (I am not sure whether it is intended behaviour or not). Commented Mar 31, 2014 at 17:14

Great idea, however I was surprised to find out that article on this platforms are not private, seems like anything here is publicly available to any reader, unless you pay for the service, isn't it? (ok, one paper can be made public for free)

Commented Sep 18, 2015 at 21:31

Ciao Roberto- yes indeed. The platform is forever free for public content. We give one private article for free, plus you get extra free private articles if you invite your friends. Overall, we encourage researchers to write in the open, for we're passionate about Open Science.

Commented Sep 20, 2015 at 10:03

Sagemath Cloud allows you to do all kind of stuff -- one of them is to have a two pane view of the source and a rendered view of the latex document. All edits can be done collaboratively in real-time; it uses the differential sync algorithm.

Bonus on top of similar solutions: You have a Linux environment, which allows you to not only store and process files, but also to write your own scripts to generate content and whatnot .

It also have inverse and forward search, scales well to large documents (100+ pages), and takes frequent snapshots of all files.

Screenshot of the Sagemath Cloud latex editor

283 2 2 silver badges 5 5 bronze badges answered Nov 4, 2013 at 20:38 Harald Schilly Harald Schilly 181 1 1 silver badge 5 5 bronze badges Welcome to TeX.SX! Commented Nov 4, 2013 at 20:57 @Harald Schilly is that a book that you are writing ? seems interesting . Commented Feb 18, 2014 at 5:22

@Arkapravo: I got curious and poked around a bit. It seems it's "Prime Numbers and the Riemann Hypothesis" by Barry Mazur and William Stein. It's available here: modular.math.washington.edu/rh/rh.pdf

Commented May 19, 2015 at 19:18

Collaborative editing has been implemented in various text editors. I believe I've seen it done with gedit, vim and emacs, but for a large LaTeX document, your best bet is probably to put everything in some kind of version control and split it into multiple files with a single master document that does \input or \include on the individual files.

answered Sep 5, 2011 at 14:08 2,175 1 1 gold badge 18 18 silver badges 22 22 bronze badges

floobits.com are a promising service with interoperating plugins for several editors (Vim, Sublime, upcoming emacs) AND web editor AND simply sync with a directory.