2018-09-06 21:16:33 +08:00
|
|
|
---
|
|
|
|
title: "SpaceVim lang#latex layer"
|
|
|
|
description: "This layer provides support for writing LaTeX documents, including syntax highlighting, code completion, formatting etc."
|
|
|
|
---
|
|
|
|
|
|
|
|
# [Available Layers](../../) >> lang#latex
|
|
|
|
|
|
|
|
<!-- vim-markdown-toc GFM -->
|
|
|
|
|
|
|
|
- [Description](#description)
|
|
|
|
- [Features](#features)
|
|
|
|
- [Install](#install)
|
|
|
|
- [Key bindings](#key-bindings)
|
|
|
|
|
|
|
|
<!-- vim-markdown-toc -->
|
|
|
|
|
|
|
|
## Description
|
|
|
|
|
2021-06-21 20:39:29 +08:00
|
|
|
This layer is for LaTex development. [vimtex](https://github.com/lervag/vimtex) is included in this layer.
|
2018-09-06 21:16:33 +08:00
|
|
|
|
|
|
|
## Features
|
|
|
|
|
|
|
|
- Code completion
|
|
|
|
- Syntax highlighting
|
|
|
|
- Syntax lint
|
2019-02-10 16:38:08 +08:00
|
|
|
- English grammar checker
|
2018-09-06 21:16:33 +08:00
|
|
|
|
|
|
|
## Install
|
|
|
|
|
2021-06-21 20:39:29 +08:00
|
|
|
To use this configuration layer, update your custom configuration file with:
|
2018-09-06 21:16:33 +08:00
|
|
|
|
|
|
|
```toml
|
|
|
|
[[layers]]
|
|
|
|
name = "lang#latex"
|
|
|
|
```
|
|
|
|
|
2019-02-10 16:38:08 +08:00
|
|
|
To enable grammar checker, you need to install [proselint](http://proselint.com/) which will be used by checkers layer.
|
|
|
|
|
2018-09-06 21:16:33 +08:00
|
|
|
## Key bindings
|
|
|
|
|
2019-02-03 20:51:01 +08:00
|
|
|
| Key bindings | Descriptions |
|
|
|
|
| ------------ | ----------------------- |
|
|
|
|
| `SPC l i` | vimtex-info |
|
|
|
|
| `SPC l I` | vimtex-info-full |
|
|
|
|
| `SPC l t` | vimtex-toc-open |
|
|
|
|
| `SPC l T` | vimtex-toc-toggle |
|
|
|
|
| `SPC l y` | vimtex-labels-open |
|
|
|
|
| `SPC l Y` | vimtex-labels-toggle |
|
|
|
|
| `SPC l v` | vimtex-view |
|
|
|
|
| `SPC l r` | vimtex-reverse-search |
|
|
|
|
| `SPC l l` | vimtex-compile |
|
|
|
|
| `SPC l L` | vimtex-compile-selected |
|
|
|
|
| `SPC l k` | vimtex-stop |
|
|
|
|
| `SPC l K` | vimtex-stop-all |
|
|
|
|
| `SPC l e` | vimtex-errors |
|
|
|
|
| `SPC l o` | vimtex-compile-output |
|
|
|
|
| `SPC l g` | vimtex-status |
|
|
|
|
| `SPC l G` | vimtex-status-all |
|
|
|
|
| `SPC l c` | vimtex-clean |
|
|
|
|
| `SPC l C` | vimtex-clean-full |
|
|
|
|
| `SPC l m` | vimtex-imaps-list |
|
|
|
|
| `SPC l x` | vimtex-reload |
|
|
|
|
| `SPC l X` | vimtex-reload-state |
|
|
|
|
| `SPC l s` | vimtex-toggle-main |
|