TransWikia.com

Is there a LaTeX wrapper for use in Google Docs?

TeX - LaTeX Asked by user50492 on May 31, 2021

I collaboratively edit documents in Google Docs. Unfortunately, there are no LaTeX macros/wrappers I know of for Google Docs. So, editing a TeX file on Google Docs is like going back to the old days when you had to edit LaTeX in plan text.

Does anybody know of a LaTeX wrapper for Google Docs/Drive?

11 Answers

LaTeX Lab

Unfortunately, LaTeX Lab has been declared deprecated by its developers. This seems to be a results of Google's massive API changes in recent versions of Google Docs. There is a vast number of LaTeX-Lab-like wrappers for Google Docs whose developments has ceased due to that fact.

If you want to have integration with Google Docs you may want to use LaTeX Lab (offline). From the Google Code project site:

LaTeX Lab is deprecated

LaTeX Lab is an open source implementation of a web based LaTeX editor for Google Docs.

Other online editors

Some other popular online editors are:

  • Overleaf (formerly known as WriteLaTeX; didn't require signup before the merger with ShareLaTeX but does now)

Answered by Henri Menke on May 31, 2021

As of September 2019 the site is not reachable anymore (the name does not exist: https://downforeveryoneorjustme.com/weavr.co.uk)

Following from the @aaron terse answer, I have been using http://weavr.co.uk/...

Pros

  • It's free
  • As far as I can ascertain at the moment it's the only Latex compilation that works with Google Drive/Docs. You therefore get all the collaborative environment tools.
  • Certainly for the basic editing I've done it works fine. There is some weavr specific code which needs to be included to reference other files (e.g. bib, images, etc.), but it's not too invasive.

Cons

  • The documentation is very minimal (one page and a half) and there is no obvious user support (e.g. forum, wiki).
  • I can find little information about weavr and the code seems to be developed/supported by one person (http://weavr.co.uk/contact.html). So it's not clear the extent to which the code will be maintained/developed in the future.

Answered by neilireson on May 31, 2021

Auto-Latex Equations add-on for Google Docs

For all math equations typeset in MathJax/LaTeX, the Auto-Latex Equations add-on for Google Docs is free and works brilliantly. It simply replaces all your math with high-quality images of the equation.

All you have to do is type an equation within delimiters, like $$55 + sqrt{5}$$ and it can be rendered in super high quality at whatever time you like by rendering all the equations in your document. If you mess up, you can always undo one or all the equations.

You can get it for free at the Google Docs add-ons store.

Answered by John Targaryen on May 31, 2021

Also check out Authorea. From what I understand it is similar to Overleaf and ShareLatex mentioned by @HenriMenke above.

Answered by champost on May 31, 2021

I love Weavr, and use it extensively. However, in Ubuntu 14.04, if you have fully working texlive installation, you can also "roll your own" so to speak by using a script. Mine, which I called "glatex.sh", looks like this:

#!/bin/bash

wget -O $2.tex "https://docs.google.com/document/export?format=txt&id=$1"; 
bom-remove.sh $2.tex; 
latexmk -pdf -f -interaction=nonstopmode $2.tex;
xdg-open $2.pdf

The bom-romove script is set out in this post bom_remover It is necessary because gdocs downloads with a "bom" included, which LaTeX will choke on.

Make both bom-remove script and glatex script executable (chmod +), and then either put them both in /usr/local/bin or put an alias to each there.

To use: a) Make a google doc, share it as a link and copy the link id b)on the command line, type your script's name, the link id, and a name for your local file, then Enter

This will then download the google doc, name it and compile it as tex file, produce a like named pdf file and then pop up evince with the pdf loaded. To refresh when the google doc is changed run the script again.

Credit for the idea goes to Using GoogleDocs as Team editor for Latex-files

For those who might want to use a "beeline reader" effect, I adapted @phg's solution which is in LuaLaTeX. To do this I made 4 bash script files, two for black/red/blue beeline, and 2 for just black.

The reason for the black script files is that the header cannot be in the LuaLaTeX file containing the text, your header has to be set out in a separate document that calls "beegradients.tex" which I wrote into the bash script files texscript.sh (black) and color-texscript.sh (red/black/blue). These have to be used with glatex-beeline.sh and color-glatex-beeline.sh in order to work. If I didn't make a black color version of the files, I would have to cut and paste the header from color-texscript.sh to my document in order to allow it to compile. It seemed easier to just make a "beelines" version in black instead.

Please note that for some reason I had to make links to beegradients.lua and beegradients.tex and those links had to be present in my compilation directory.

To create "beelines" pdf's make sure all the *.sh files are in a system wide directory, (eg, /usr/local/bin), fire up your terminal type

 color-glatex-beeline.sh <google doc id> <any-filename-you-want> (for red/black/blue text) 

and it will produce a *.tex and a *.pdf and then pop up the pdf in evince pdf viewer.

For the black version of the same document do the same thing using glatex-beeline.sh

I have only tested this on Linux.

The scripts are set up expecting a file named "abbrev.tex" containing "abbrevs" package abbreviations. The

letmaybe@space@xspace

corrects for a bug that mis-spaces commas after abbreviations. LuaLaTeX complains about this, but I don't know what to do about that.

Answered by A Feldman on May 31, 2021

The g(math) plug-in works really well for me.

It has a simple interface where you can enter some LaTeX code and then insert it as an image into your Google Doc. This with suggestive formatting makes adding LaTeX to your Google Doc a breeze.

Answered by CGTheLegend on May 31, 2021

Disclaimer: This is official account of Docx2LaTeX

We have just launched a Google Docs-add on which combines power of LaTeX and ease of a word processors and cross-referencing too.

Here are features provided by Docx2Latex add-On

  1. Write LaTeX code snippets inside Google Docs with syntax highlighting.
  2. Add captions to figures and tables.
  3. Cross-refer figures and tables.
  4. Auto update captions and references, when a new figure or a table is inserted.
  5. View LaTeX compiled to PDF in real-time.
  6. Automatic LaTeX source code generation and downloading.

Add-On Link: Docx2Latex Google Docs Add-on

Watch Demo: Short Demo

Answered by Docx2Latex on May 31, 2021

As of Oct 2019, Google's new equation editor (Insert -> Equation) supports rudimentary LaTeX commands, for e.g., _ (underscore) will get you to subscript mode, sum gets converted to summation sign etc. This was good enough for me.

Answered by Samik R on May 31, 2021

Exist also EquatIO - Math made digital, from Chrome web store, where it is possible to create easily mathematical equations, formulas and quizzes.

enter image description here

I remember that EquatIO it is free for 30 days, with unlimited access to all features. After this time it requires a licensing subscription.

For Google Suite there is also Math Equations

enter image description here

Answered by Sebastiano on May 31, 2021

I also like the idea to work collaboratively using LaTeX using web resource. I do not think you can do much with GoogleDoc - you need to redo a lot in Google doc to create an article.

However, you can also use HandWiki (https://handwiki.org). It's a wiki, similar to Wikipedia, but you can export your wiki to a Latex documents (including equations, figures, tables and even BibTeX citations)

Answered by W.Wolver on May 31, 2021

I wrote a Google Docs add-on called Articul8. It allows you to incorporate LaTeX equations into your Google Doc, as well as to export the document to TeX (images included, cross-references intact). You can render the document locally or upload to an online service (e.g. Overleaf).

I'd be very happy to hear how this works out for people, and for any suggestions!

Add TeX equation

Export to TeX, import to Overleaf

Answered by Yuval on May 31, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP