.sty TeX document

Text & source code

MIME typetext/x-tex
DescriptionTeX document
CategoryText & source code
Based ontext/plain
Other extensions.cls, .dtx, .ins, .latex, .ltx, .tex

Frequently asked questions

What is a .sty file?

A .sty file is a “TeX document” (MIME type text/x-tex).

How do I open a .sty 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 .sty 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.sty shows the guessed type.

Which format is .sty based on?

Technically a .sty 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 .sty?

The MIME type is text/x-tex. In the Apache web server: AddType text/x-tex .sty; in nginx: types { text/x-tex sty; }.

Nearby entries