Chapter 5 Collaborative editing with overleaf

If you are the sole author of a document, then compiling files on your local machine is fine. However, if you need to collaboratively co-author a document with other people, you’ll need to share your TeX somehow. Sharing *.tex files by email or dropbox or whatever would be cumbersome. What you need is something like Google Docs for *.tex. Overleaf (overleaf.com) is one of several web applications that allows you to do this, shown in the screenshot in Figure 5.1.

A screenshot of overleaf showing the source TeX on the left hand side and the corresponding pdf on the right hand side. Screenshot by Dan Cherniy via Wikimedia Commons at w.wiki/omo

Figure 5.1: A screenshot of overleaf showing the source TeX on the left hand side and the corresponding pdf on the right hand side. Screenshot by Dan Cherniy via Wikimedia Commons at w.wiki/omo

Compared to LaTeX, overleaf is relatively new. Write Latex Limited, the company behind overleaf was founded fairly recently (in LaTeX terms) in 2013 by John Lees-Miller and John Hammersley. Overleaf has several features which you might find useful:

  • Your documents are automatically saved to the cloud
  • Packages, class files, compilers and other LaTeX components are also in the cloud, saving you time installing and managing them
  • Templates are provided for common types of documents, although you don’t need to use overleaf to get access to LaTeX templates7
  • Overleaf publish lots of tutorials to help you learn LaTeX

5.1 Exercise four: overleaf

Login to overleaf.com and try the following:

  1. Create and save a simple document using the overleaf tutorial creating a document in overleaf8
  2. Note that overleaf allows you to store your TeX source in a git repository so you can use version control if you want to
  3. Browse the overleaf tutorials at overleaf.com/learn and ask questions on forums like tex.stackexchange.com if you want to take things further

5.2 Summary

Overleaf provides a modern and convenient cloud based interface to tried and tested LaTeX tools, which have been around for over thirty years. (Knuth 1984) It also allows you to share the source of your documents while providing some handy templates for common document types. Overleaf and the command line are just two popular interfaces to LaTeX amongst many others. (Tex 2023) Which interface is “best” for you will largely depend on what kind of documents you are writing and what your workflow is. In the next chapter we will create a curriculum vitae using CV templates provided by overleaf.

References

Knuth, Donald. 1984. The TeXbook. Boston, Massachusetts: Addison-Wesley. https://en.wikipedia.org/wiki/Special:BookSources?isbn=978-0201134483.
Tex, Layla. 2023. LaTeX – a Document Preparation System.” latex-project.org. https://www.latex-project.org.