.ltx TeX document

Text & source code

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

Frequently asked questions

What is a .ltx file?

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

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

Which format is .ltx based on?

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

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

Nearby entries