0

Unfortunetely, all my TeX code within one of my .tex files got deleted. However, I still have all other output files from the compilation process of this specific .tex file.

Is there any way I can get the actual TeX code back from these files, or am I doomed to write it all over again?

mc.math
  • 15
  • 4
    In general: No. The auxiliary files do not contain enough information to recover our .tex source. The PDF has the printable text, so you can probably salvage most of that with a tool like pdftotext. But of course all the markup commands are gone. – moewe May 19 '22 at 15:14
  • 3
    Some editors sometimes save backups of files that are being edited. Look closely in the directory of your .tex file for files called .tex.bak or .tex~ or some such. – moewe May 19 '22 at 15:15
  • Related: https://tex.stackexchange.com/q/73538/82917 – campa May 19 '22 at 15:15
  • @moewe Thanks alot! I'm using Texmaker as an editor... Seems to me that no such backup files have been created. – mc.math May 19 '22 at 15:22

0 Answers0