

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 use: a) Make a google doc, share it as a link and copy the link idī)on the command line, type your script's name, the link id, and a name for your local file, then Enter 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. 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.


Latexmk -pdf -f -interaction=nonstopmode $2.tex Mine, which I called "glatex.sh", looks like this: #!/bin/bash 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.
