Double-click
.texdoes nothing; Notepad shows backslash commands—that is not file corruption. It is source code that must be compiled to see layout. Understanding that lets you pick the right way to open it.

What Is a .tex File?
A .tex file is LaTeX typesetting source—plain text storing "how to typeset" instructions, not the finished layout. It differs fundamentally from .docx: Word stores rendered content and opens WYSIWYG; .tex stores code like \documentclass{article} and \begin{equation} that a TeX engine must compile into PDF with formulas, tables, and pages.
Analogy: .tex is source, PDF is the built artifact, TeX engine is the compiler. That is why the same .tex typesets consistently on any computer—a core reason academia uses it for papers.
Why Does Double-Clicking .tex Do Nothing?
The OS has no default app "associated" with .tex, and even a text editor only shows source. The system does not know whether you want to edit source or see layout—two different goals:
- See what the source looks like → any text editor (Notepad, VS Code);
- See typeset output → an environment that can compile LaTeX.
Most people stall because they want the latter but only get the former.
Just Want a Quick Look? The Easiest Path
Use an in-browser LaTeX editor: drag .tex in—source on the left, live layout on the right—no TeX install. Best value for "received a .tex, want to check content and layout first."
The online LaTeX editor follows this path: rendering in your browser, .tex not uploaded to a server—fine for unpublished drafts. Typical fits:
- Advisor or classmate sent
.tex; you want to read before editing; - Downloaded
.texfrom arXiv or a journal template; verify layout; - Quick fix to a formula or sentence—not worth a full TeX install.
Writing LaTeX Long-Term—What to Install?
For frequent, heavy LaTeX (full thesis, many packages), local setup is worth it:
- Windows/Linux: TeX Live; macOS: MacTeX—full install ~4–7 GB;
- Editors: VS Code + LaTeX Workshop, or TeXstudio;
- Cost: first install time, package management, occasional missing-package errors.
For "just open and look," that is overkill.
How to Choose by Need?
| Your need | Recommended approach | Cost |
|---|---|---|
| Glance at .tex content/layout | Online LaTeX editor | Nearly zero |
| Edit a bit, export PDF | Online conversion tool | Nearly zero |
| Full thesis, obscure packages | Local TeX Live / MacTeX | 4–7 GB + setup |
| Long-term multi-person writing | Cloud (e.g. Overleaf) | Online, source on cloud |
Boundaries: Online Is Not Universal
In-browser bundles carry a common macro subset. .tex relying on many obscure packages, custom classes, or large multi-file projects may fail online—local TeX is steadier. Simple test: drag into online editor; if it renders, you are fine; if it errors, consider local.
Summary
.tex not opening is not corruption—it needs compilation. Decide first: source or layout? For layout on a temporary need, online editor is easiest; for long-term heavy writing, invest in local TeX. Once you grasp source → compile → output, every LaTeX tool makes more sense.