Hmn, how the heck did I miss all these related google results the last few times I tried to research this. I start looking at things like libnotify and can't help but notice while such technologies seem to be focused on other kinds of events, they seem like they might work for this kind of file-watching thing.
You can get results from as simple as this bash one-liner:
while(true); do inotifywait --exclude '.*.swp' -e close_write dir; make; done
I wrote that off the top of my head so it may not work straight off, but you get the idea.I never used it so I might be wrong.
-- Edit: http://www.lyx.org/
The user experience is quite similar to your regular word processor, except that the “paper” metapher is removed.
I tried it out for a while, but I feel more productive (and more in control) when using a regular editor with nice syntax highlighting.
latexmk -pdf -pvc file.tex
does essentially that. If you like Unicode in your source (infinitely more readable and exactly the same keystrokes in Emacs) latexmk -xelatex -pvc source.tex
works.Okay, try this: http://arachnoid.com/latex
It's not ideal, but it's a start on something that could be much more powerful.
map <F4> :!pdflatex %
to my tex.vim. It's on demand, but after the first compilation it's almost instant. :)Edit: as mentioned in another comment, Evince updates automatically when the file changes.