.cls TeX document
Text & source code
| MIME type | text/x-tex |
|---|---|
| Description | TeX document |
| Category | Text & source code |
| Based on | text/plain |
| Other extensions | .dtx, .ins, .latex, .ltx, .sty, .tex |
Frequently asked questions
What is a .cls file?
A .cls file is a “TeX document” (MIME type text/x-tex).
How do I open a .cls file?
With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.
How can you tell a genuine .cls file?
No fixed signature at the start of the file is registered for this format; it is recognised mainly by its extension. On Linux and macOS, file --mime-type example.cls shows the guessed type.
Which format is .cls based on?
Technically a .cls file is a subtype of “Plain text document” (text/plain), so programs for that base format can often read it too.
Which MIME type belongs to .cls?
The MIME type is text/x-tex. In the Apache web server: AddType text/x-tex .cls; in nginx: types { text/x-tex cls; }.