I have been creating a document on LaTex, TexStudio. Recently, I had pressed the Compile+Run button on it. The computer was hanged and I had to restart it. Now, the content of the document is lost and the pdf generated by it is also corrupted and does not open.

What could be the issue. How, can I recover it !


Welcome to TeX-SX.

First of all, I would suggest you to save your files before compiling, at least the first time. If you do not save the file intentionally, TeXstudio will compile it as a temporary file, as you can check at the imagem. The name will be "texstudio_something".

enter image description here

These files are stored at the AppData\Local\Temp. enter image description here

Which you can access through any folder by typing %appdata% at the path bar.

If you have saved your file, then you may just compile it without any worries like the one you had, because TeXstudio will then save it on the previous file.

I'm assuming your problem is not that a already saved file has been overwritten after a compilation. After all crashes and erros I have had, I do not remember any loss of data in a saved file.

You can find some more advice at TexStudio Autosave Recovery Question.

  • Quick note: You can find the folder Temp directly with the shortcut %temp%. – FHZ Feb 3 at 15:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.