npx claudepluginhub zircote/lsp-marketplace --plugin latex-lsp# LaTeX LSP Setup This command will configure your LaTeX development environment with Texlab LSP and essential tools. ## Prerequisites Check First, verify a TeX distribution is installed: If not installed, install a TeX distribution: - **macOS**: `brew install --cask mactex` or `brew install --cask basictex` - **Linux**: `sudo apt install texlive-full` (Debian/Ubuntu) or `sudo dnf install texlive-scheme-full` (Fedora) - **Windows**: Download and install [MiKTeX](https://miktex.org/) or [TeX Live](https://www.tug.org/texlive/) ## Installation Steps ### 1. Install Texlab LSP Server *...
/setupInitializes or resumes project setup via interactive Q&A, creating conductor/ artifacts for product definition, guidelines, tech stack, workflow, and style guides.
/setupDetects ghost or inconsistent claude-hud plugin installations (orphaned cache, stale registry, temp files) and offers cleanup on user confirmation for macOS/Linux/Windows.
/setupChecks local Codex CLI readiness, prompts to install if unavailable via npm, and optionally toggles stop-time review gate.
/setupGuides enterprise admins through Claude Office add-in setup for Vertex AI, Bedrock, or custom gateway; provisions credentials and generates deployable manifest.xml.
/setupRuns interactive setup wizard: detects AI providers (Codex, Gemini, Ollama, etc.), installs missing tools, configures auth, sets up RTK token optimization.
/setupConfigures claude-hud as Claude Code statusline by providing ~/.claude/settings.json config, build instructions, manual setup, and troubleshooting steps.
This command will configure your LaTeX development environment with Texlab LSP and essential tools.
First, verify a TeX distribution is installed:
pdflatex --version || xelatex --version || lualatex --version
If not installed, install a TeX distribution:
brew install --cask mactex or brew install --cask basictexsudo apt install texlive-full (Debian/Ubuntu) or sudo dnf install texlive-scheme-full (Fedora)Option 1: Cargo (recommended)
cargo install --locked texlab
Option 2: Package Manager
# macOS
brew install texlab
# Arch Linux
sudo pacman -S texlab
# Fedora
sudo dnf install texlab
# macOS
brew install chktex
# Debian/Ubuntu
sudo apt install chktex
# Fedora
sudo dnf install chktex
# Arch Linux
sudo pacman -S chktex
# Check Texlab
texlab --version
# Check ChkTeX
chktex --version
# Check LaTeX
pdflatex --version
# Usually included with TeX Live
latexmk --version
# If not available, install TeX Live extras
sudo apt install latexmk # Debian/Ubuntu
export ENABLE_LSP_TOOL=1
Create texlab.toml or .texlabrc in your project root:
[build]
executable = "latexmk"
args = ["-pdf", "-interaction=nonstopmode", "-synctex=1", "%f"]
onSave = false
[chktex]
onEdit = true
onOpenAndSave = true
[formatting]
lineLength = 80
Create .chktexrc in your project root to customize warnings:
# Disable specific warnings
-n1 # Command terminated with space
-n2 # Non-breaking space (~) should be used
-n8 # Wrong length of dash
# Set tabsize
TabSize = 2
Test the LSP integration:
# Create a test file
cat > test_lsp.tex << 'EOF'
\documentclass{article}
\begin{document}
Hello, \LaTeX!
\end{document}
EOF
# Run chktex
chktex test_lsp.tex
# Clean up
rm test_lsp.tex
Set the TeX path in texlab.toml:
[build]
executable = "/usr/local/texlive/2023/bin/x86_64-darwin/latexmk"
latexmk is installedtexlab.tomlwhich pdflatexCreate .chktexrc to disable specific warnings (see Configuration section above).
# macOS
brew install texlab chktex && brew install --cask basictex
# Debian/Ubuntu
sudo apt install texlive-latex-base texlive-latex-recommended \
texlive-latex-extra latexmk chktex && \
cargo install --locked texlab
# Fedora
sudo dnf install texlive-scheme-medium latexmk chktex && \
cargo install --locked texlab