The installation of LTEX depends on the scenario in which you want to use LTEX. LTEX can be used

Choose the topmost scenario that applies to you.

Via Editor Extensions

LTEX publishes official extensions for Visual Studio Code (VS Code) and Vim/Neovim via coc.nvim. For some other popular editors, third-party extensions exist that add support for LTEX. If no extension exists yet for your editor, but your editor supports the Language Server Protocol (LSP), then you should be able to use LTEX as a language client.

Official Extensions

Editor Extension Link to instructions
VS Code vscode-ltex Instructions
Vim/Neovim + coc.nvim coc-ltex Instructions

Third-Party Extensions

LTEX is not responsible for the quality of third-party extensions. The list and corresponding links are provided for your information only.

Editor Extension Link to instructions
Emacs + eglot eglot-ltex Instructions
Emacs + lsp-mode lsp-ltex Instructions
Neovim Grammar Guard Instructions
Neovim nvim-lsp-installer Instructions
Neovim + nvim-lspconfig lbiaggi/ltex.lua Instructions
Sublime Text LSP-ltex-ls Instructions

Via Language Clients

If your editor is not yet supported by an extension, but it supports the Language Server Protocol (LSP), then you can use the language server LTEX LS (read here for instructions).

Typically, the editor starts LTEX LS during startup (either locally or remotely), it sends LTEX LS your LATEX or Markdown document, and LTEX LS will respond with a list of the grammar and spelling errors in it. The communication between server and editor is done using the LSP, with a language client as a communication endpoint that runs in the editor.

If your editor already supports the LSP (either natively or via an extension), then writing a language client for LTEX should be possible with almost no overhead. If your editor doesn’t support the LSP, then you can write a language client yourself that communicates with LTEX LS according to the LSP specification.

Via Command Line

LTEX can be run on the command line. In this mode, you supply LTEX paths to files and directories to be checked as command-line arguments. The results will be printed to the standard output, and no language client or knowledge of the Language Server Protocol (LSP) is necessary.

The command-line interface (CLI) of LTEX is included in LTEX LS. Read here for instructions.