GithubHelp home page GithubHelp logo

emersonford / texlab Goto Github PK

View Code? Open in Web Editor NEW

This project forked from latex-lsp/texlab

1.0 1.0 0.0 31.74 MB

An implementation of the Language Server Protocol for LaTeX

Home Page: https://texlab.netlify.app/

License: GNU General Public License v3.0

Rust 99.53% Roff 0.09% TeX 0.38%

texlab's Introduction

CI Coverage Rust

GitHub release CTAN Arch Linux NixOS Stable NixOS Unstable Homebrew Scoop

TexLab

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

Demo

Getting Started

If your editor extension like does not install the TexLab server automatically, you will need to install it manually. We provide precompiled binaries for 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 required to 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 command without 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 root and 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 extension by 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.

texlab's People

Contributors

pfoerster avatar efoerster avatar dependabot-preview[bot] avatar dependabot[bot] avatar dependabot-support avatar or17191 avatar xvilka avatar kneasle avatar fannheyward avatar krobelus avatar spadarian avatar kwon-young avatar tomboy-64 avatar kira-bruneau avatar richiksc avatar rliang avatar

Stargazers

 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.