Troubleshooting .tex File Corruptions

In summary, the conversation discusses issues with opening a .tex file in Wordpad and other programs. The file appears to be corrupted and there is no program that can fix it without losing information. The conversation also suggests trying a different text editor or copying the file to another computer to see if it is viewable. It is noted that a .tex file is just a text file and the issue may be caused by Windows.
  • #1
JamesJames
205
0
I am trying to open a .tex file. When I clicked on it, it asked what program I wanted to use to open the thing. So I selected wordpad. The thing opened up in wordpad with a blank document. When I selected print preview, it allowed me to scroll through 4 blank pages. Here' s the thing...there are 2 other .tex files which asked me the same thing when I tried to open them AND when I said wordpad, or notepad or Internet Explorer, they opened fine.

Is the file corrupted and is there a program that can fix it without losing information. It won' t open in either Internet Explorer or Notepad.
 
Computer science news on Phys.org
  • #2
.tex file?

Do you mean .txt file
 
  • #3
He probably means a latex source file.
 
  • #4
.txt file infact. Is there any chance of recovering the information?
 
  • #5
When you right click on the file and go to properties, does the file have a size?
 
  • #6
It is 22.4 kb roughly the same size as the other ones...the ones that open fine.
 
  • #7
Any suggestions?
 
  • #9
If you can't open it with notepad or wordpad your probably out of luck. You could try copying the file to another computer and seeing if it's viewable.
 
  • #10
Try a text editor that supports binary/hex, like ultraedit.com .
 
  • #11
JamesJames said:
I am trying to open a .tex file. When I clicked on it, it asked what program I wanted to use to open the thing. So I selected wordpad. The thing opened up in wordpad with a blank document. When I selected print preview, it allowed me to scroll through 4 blank pages. Here' s the thing...there are 2 other .tex files which asked me the same thing when I tried to open them AND when I said wordpad, or notepad or Internet Explorer, they opened fine.
Is the file corrupted and is there a program that can fix it without losing information. It won' t open in either Internet Explorer or Notepad.
*sigh*

Windows breeds so many stupid and bad habits in people.

A .tex file is just text file. The data in it is exactly the same as a .txt file. If its not opening in wordpad (i wouldn't use notepad, it does not even do ASCII properly), then there is something wrong with it. There is nothing to fix it with, its just a text file.

I swear Windows is the seed of all technological idiocy (this isn't a criticism of you by any means, so please don't take it as one, I'm just ranting. Its not your fault if all you've ever used is an OS that treats you like a retarded infant with downs syndrome whose had 3 lobotomies and all his limbs amputated).
 

Related to Troubleshooting .tex File Corruptions

1. What are some common signs of a corrupted .tex file?

Some common signs of a corrupted .tex file include error messages when compiling, missing or incorrect figures or tables, and unexpected changes in formatting or spacing.

2. What could cause a .tex file to become corrupted?

There are several potential causes of .tex file corruption, including software or hardware issues, improper saving or editing of the file, and conflicts between different packages or code within the file.

3. How can I prevent .tex file corruption?

To prevent .tex file corruption, it is important to regularly save backups of your file, avoid making changes while the file is being compiled, and carefully check for any errors or warnings during the compilation process.

4. How can I troubleshoot a corrupted .tex file?

If you suspect your .tex file is corrupted, you can try opening it in a different text editor or using a file repair tool. You can also try removing any recently added code or packages, and carefully checking for any errors in your code.

5. Can a corrupted .tex file be fixed?

In some cases, a corrupted .tex file can be fixed by using a file repair tool or restoring from a backup. However, if the corruption is extensive, it may be necessary to start from scratch and redo the file.

Similar threads

Replies
3
Views
1K
  • Computing and Technology
Replies
20
Views
876
  • Computing and Technology
Replies
22
Views
2K
Replies
6
Views
2K
  • Computing and Technology
Replies
7
Views
2K
  • Computing and Technology
Replies
9
Views
9K
  • Computing and Technology
Replies
2
Views
1K
  • Programming and Computer Science
Replies
1
Views
995
  • Computing and Technology
Replies
3
Views
1K
  • Computing and Technology
Replies
2
Views
877
Back
Top