texlab

授权协议 GPL-3.0 License
开发语言
所属分类 企业应用、 LaTeX排版系统
软件类型 开源软件
地区 不详
投 递 者 燕钟展
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

CI

TexLab

A cross-platform implementation of the Language Server Protocolproviding rich cross-editing support for the LaTeX typesetting system.The server may be used with any editor that implements the Language Server Protocol.

Getting Started

If your editor extension like does not install the TexLab server automatically,you will need to install it manually.We provide precompiled binariesfor Windows, Linux and macOS.Alternatively, you can build TexLab from source or install it using your package manager.For a list of supported package managers, you can take a look at Repology.

Requirements

A TeX distribution is not strictly requiredto use the server but TexLab cannot compile your documents without one.TexLab supports compiling using Tectonic.For an example configuration, please see here.

On Windows, you may need to install Microsoft Visual C++ Redistributable for Visual Studio 2015.

Building from Source

You will need to install the following dependencies to compile the server:

  • A recent, stable version of Rust (>= 1.51)

Then run the following command in the project folder:

cargo build --release

Alternatively, you can run the following commandwithout having to clone this repository and make TexLab available in your PATH:

cargo install --git https://github.com/latex-lsp/texlab.git --locked

Usage

After installing an editor extension, you can simply start editing LaTeX files. All editing features work out-of-the-box over all files in the currently opened workspace.There is no need for magic comments like %!TEX rootand TexLab should figure out the dependencies of a file on its own.Note that you may need to set the texlab.rootDirectory option for some multi-folder projects.

TexLab features a variety of options which can be used to configure features like building or forward search.

Development

You can create a debug build by building the server without the --release flag.The resulting build can be used with the Visual Studio Code extensionby adding the absolute path of the target/debug folder to your PATH environment variable.

TexLab has an extensive test suite of unit and integration tests. You can run them by executing

cargo test

in the project folder.

For a list of custom messages, please see here.

Contributing

See CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

相关阅读

相关文章

相关问答

相关文档