By zircote
LaTeX language server plugin for Claude Code with texlab integration and automated hooks for building and linting
npx claudepluginhub zircote/lsp-marketplace --plugin latex-lspA Claude Code plugin providing comprehensive LaTeX development support through:
# Run the setup command (after installing the plugin)
/setup
Or manually:
# Install Texlab LSP
cargo install --locked texlab
# Or on macOS with Homebrew
brew install texlab
# Install ChkTeX for linting
brew install chktex # macOS
apt install chktex # Debian/Ubuntu
The plugin configures Texlab for Claude Code via .lsp.json:
{
"latex": {
"command": "texlab",
"args": [],
"extensionToLanguage": {
".tex": "latex",
".bib": "bibtex"
},
"transport": "stdio"
}
}
Capabilities:
All hooks run afterWrite and are configured in hooks/hooks.json.
| Hook | Trigger | Description |
|---|---|---|
latex-chktex-on-edit | **/*.tex | Lint LaTeX files with chktex |
latex-todo-fixme | **/*.tex | Surface TODO/FIXME/XXX comments |
| Hook | Trigger | Description |
|---|---|---|
latex-bib-lint | **/*.bib | Check BibTeX syntax |
| Tool | Installation | Purpose |
|---|---|---|
texlab | cargo install --locked texlab | LSP server for LaTeX |
pdflatex or xelatex | TeX distribution (TeX Live, MiKTeX) | LaTeX compilation |
| Tool | Installation | Purpose |
|---|---|---|
chktex | brew install chktex (macOS) | LaTeX linting |
biber or bibtex | Included with TeX distribution | Bibliography processing |
latexmk | Included with TeX Live | Build automation |
/setupInteractive setup wizard for configuring the LaTeX development environment.
What it does:
.lsp.json is correctUsage:
/setup
latex-lsp/
├── .claude-plugin/
│ └── plugin.json # Plugin metadata
├── .lsp.json # Texlab configuration
├── commands/
│ └── setup.md # /setup command
├── hooks/
│ └── hooks.json # Hook definitions
├── tests/
│ └── sample.tex # Sample LaTeX file
├── CLAUDE.md # Project instructions
└── README.md # This file
.tex files exist in project roottexlab --versioncat .lsp.jsonpdflatex --versiontexlab.toml or .texlabrc configurationcat hooks/hooks.jsoncommand -v chktex)Edit hooks/hooks.json to add filters:
{
"command": "chktex -q -n1 -n2 -n3 \"$FILE\" || true"
}
Where -n1, -n2, -n3 disable specific warnings.
MIT
Qiushi Skill: methodology skills for AI agents guided by seeking truth from facts, with Claude Code, Cursor, OpenClaw, Codex, OpenCode, and Hermes guidance.
GDScript language server for Godot Engine