[Tex/LaTex] Auto refresh PDF of the docs in TexStudio

editorstexstudioviewers

To be honest, I think that it is stupid question (sorry if duplicate). By the way, I worked a lot with Overleaf.com. They have amazing function to refresh pdf each time you make some changes in files.enter image description here

Of course, now, when I work with TexStudio, I think: "Hm, it would be great to have this opportunity here too!". I understand that for normal compiling I should save file literally every second and call compiler to make his job (and Overleaf somehow waits for the moment when you finish typing commands, i.e. its tries to compile are always compilable if I don't make mistakes).

The question is: may be somehow such opportunity is possible in TexStudio too?

PS. Personaly, I think I will dislike such feature. However, lets try this if possible.

I want it to work with embedded viewer of TexStudio.

Best Answer

Have a small script in python which does the following:

import time
import os
while (True):
        os.system("xelatex yourOptionsHere youfile.tex")
        time.sleep(5)

But I can tell you, doing so sucks the processor !!