Only downside is its cloud based so I can't be productive on an airplane.
Only downside is its cloud based so I can't be productive on an airplane.
When I need that with a LaTeX document, I have vim with the TeX sources open on one half on the screen, and mupdf showing the compiled PDF on the other half, and a terminal in the background is running
while inotifywait *.tex *.bib; do
sleep 0.2
pdflatex main && killall -HUP mupdf
done
The sleep ensures that vim is finished writing the file before pdflatex runs. pdflatex is sometimes substituted for make or latexmk or whatever. SIGHUP makes mupdf reload the PDF. (If you're using e.g. Okular, it will pick up the changed PDF automatically, so that step can be skipped.)(My intention is not to belittle cloud solutions, although maybe a little. :) Just to show how you can implement the real-time-preview feature with a very small shell script.)
I also have a makefile to intelligently include custom macro files and run multiple passes when needed.
Couldn't be happier.
inotifywait -e move_self,close_write *.tex *.bib
and drop the sleep. This also means you will not needlessly recompile the pdf if you re-open the source file in your editor.Side note: Only one of move_self and close_write is actually required, depending on your editor. Some editors (e.g. vim, emacs), will write the modified content to a separate file, then rename it to the real file name (in order to make it atomic) => move_self. Others will overwrite the file in-place (e.g. gedit, nano) => close_write.
https://www.overleaf.com/blog/195-new-collaborate-online-and...
Other downside is that in-browser text editing sucks compared to what you can do (e.g.) with vim.
Edit: Also Sharelatex leaves me wanting for more editing features. Most commonly, autocompletion for reference-tags based on labels in project. Kile does this perfectly, but it's a hassle to get it running everywhere.
Soon ;)