# Lost .tex file, how to restore it? Using synctex? [closed]

something really stupid happened to me. I was running a matlab code, my computer crashed as it completey ran out of memory, i had to restart it.

Unfortunately, at the same time a had a .tex file open. I wanted to save it, but it could not be saved as there was no memory (i use a 128GB SSD, 90% full, the file produced by matlab seems to have swollen to something like 10GB).

Anyway, when I turned on the computer again, the .tex file and the .pdf file were gone... the .log and .aux file are empty. For some reason I still have a .synctex file that seems to contain information associated with the lost file.

Is it possible to use the .synctex file to recapture the .tex file?

Any help or info is highly appreciated Thanks

PS: I am using TexShop

-

## closed as off-topic by Torbjørn T., Joseph Wright♦Aug 2 '14 at 21:49

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center." – Torbjørn T., Joseph Wright
If this question can be reworded to fit the rules in the help center, please edit the question.

synctex is used only to keep info about the line numbers of your file so you can do inverse search. No way to restore the content of tex file from synctex. – Sigur Apr 4 '14 at 17:59
Does TeXShop have a temporary folder (I don't know)? If so you could look in an "autosave" folder. Otherwise you are pretty lost. You can do binary search if you think TeXShop keeps it in a tmp-folder. Otherwise I would suspect you have lost your data. :( – zeroth Apr 4 '14 at 18:21
alright, thank you. then i guess i lost it... – user49285 Apr 4 '14 at 18:35
there might also be a hidden backup file with the ending .swp. But i'm not sure – Johannes_B Apr 4 '14 at 19:11
What about .bak file? Not sure about texshop and Mac. – Harish Kumar Apr 5 '14 at 0:07