News for hackers. Stuff that matters.
Re:Tectonic: a modernized, self-contained TeX/LaTeX engine by majewsky on Wednesday May 31, 2017 @05:45AM (#14451331)
> real time preview of what you write

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.)

Re:Tectonic: a modernized, self-contained TeX/LaTeX engine by ConfucianNardin on Wednesday May 31, 2017 @06:32AM (#14451465)
You can use

    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.

Re:Tectonic: a modernized, self-contained TeX/LaTeX engine by trurl42 on Wednesday May 31, 2017 @06:12AM (#14451406)
Or if you're already using vim anyway, you can use a plugin like vimtex (https://github.com/lervag/vimtex) which automates the compiling after saving the file.
Re:Tectonic: a modernized, self-contained TeX/LaTeX engine by xelxebar on Wednesday May 31, 2017 @06:19AM (#14451427)
My setup us very similar! I used to do the inotify dance as well, but I now find it a lot easier to just use a vim autocmd on BufPostWrite. This is only reasonable if your document compiles relatively quickly, but one clear advantage is the immediate feedback when some error happens.

I also have a makefile to intelligently include custom macro files and run multiple passes when needed.

Couldn't be happier.

Re:Tectonic: a modernized, self-contained TeX/LaTeX engine by RhysU on Wednesday May 31, 2017 @07:46AM (#14451722)
latexmk -pvc