6

My PC was turned off while I was running my TeX file on the LED (LaTeX editor). Indeed, it turned off before the execution of the file was finished. When I came back to my tex file it was turned into binary !!!

Can anybody know what is the reason, and is there a way to turn them back?

11
  • 1
    No; and I'm surprised to hear this is what happens since (surely..?) the .tex file should just be read, not manipulated. But doesn't LED have default auto-save settings?
    – jon
    Jun 18, 2013 at 4:57
  • 1
    With multiple geographically dispersed authors, each with their own OS and toolset, we setup a git repo on Bitbucket and split the document into sections to minimize mutex problems. This is useful for even a single author. This was very helpful: stackoverflow.com/questions/6188780/git-latex-workflow
    – rickhg12hs
    Jun 18, 2013 at 7:57
  • 2
    Unfortunately this happened to me with LEd and I don't think there is a fix for that. I would recommend not using LEd as an editor since the last bug fix is from 2009 (though it was a very nice one back then) and I've lost my documents more than twice with it.
    – percusse
    Jun 18, 2013 at 11:07
  • 1
    IDE's are more personal choice I believe, hence please choose your's from LaTeX Editors/IDEs, it's very nicely maintained thread. I have not used LED so no idea for an equivalent of it, may be (free ones)TeXworks/TeXmaker/TeXstudio... can do. Jun 19, 2013 at 5:16
  • 1
    @Mamal I've been using TeXnicCenter 2 beta but others are also very satisfied with other editors so I think now it is safe to recommend all editors depending on your personal taste. Thaqt includes WinEdt if you don't mind popups once in a while. I've bought it for historical reasons(since I've wrote my MSc thesis with it) but use TC daily.
    – percusse
    Jun 19, 2013 at 5:53

2 Answers 2

3

Aparently, you have a corrupted file system.

Is desirable that you run a checkdisk.

Don't recover anything before that run, to avoid writing on sectors from files that can be recovered.

Denis J Navas

0

The exact same problem happened to me and after 2 days of useless restoration of windows I noticed that latex backs up its files automatically. in the same directory you had your file on look up yourfilename.sav or yourfilename.bak files. open either one of them on windows notepad. your latex file is right there waiting for you to copy and compile. came 3 years later but good to know.

1
  • 2
    I'm not sure that latex is creating those files, more likely this is your editor.
    – Dai Bowen
    Sep 15, 2016 at 16:19

Not the answer you're looking for? Browse other questions tagged .