{"id":48582446,"url":"https://github.com/zircote/latex-lsp","last_synced_at":"2026-04-08T17:33:54.057Z","repository":{"id":332147735,"uuid":"1126933966","full_name":"zircote/latex-lsp","owner":"zircote","description":"Claude Code plugin for LaTeX development with texlab LSP and chktex hooks","archived":false,"fork":false,"pushed_at":"2026-03-30T15:36:57.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-30T17:35:52.049Z","etag":null,"topics":["claude-code-plugin","code-quality","documents","latex","lsp","tex"],"latest_commit_sha":null,"homepage":null,"language":"TeX","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zircote.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"zircote"}},"created_at":"2026-01-02T21:04:41.000Z","updated_at":"2026-03-30T15:36:54.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/zircote/latex-lsp","commit_stats":null,"previous_names":["zircote/latex-lsp"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/zircote/latex-lsp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zircote%2Flatex-lsp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zircote%2Flatex-lsp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zircote%2Flatex-lsp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zircote%2Flatex-lsp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zircote","download_url":"https://codeload.github.com/zircote/latex-lsp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zircote%2Flatex-lsp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31567056,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["claude-code-plugin","code-quality","documents","latex","lsp","tex"],"created_at":"2026-04-08T17:33:53.460Z","updated_at":"2026-04-08T17:33:54.049Z","avatar_url":"https://github.com/zircote.png","language":"TeX","funding_links":["https://github.com/sponsors/zircote"],"categories":[],"sub_categories":[],"readme":"# latex-lsp\n\n[![Version](https://img.shields.io/badge/version-0.1.0-blue.svg)](CHANGELOG.md)\n[![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)\n[![Claude Plugin](https://img.shields.io/badge/claude-plugin-orange.svg)](https://docs.anthropic.com/en/docs/claude-code/plugins)\n[![Marketplace](https://img.shields.io/badge/marketplace-zircote--lsp-purple.svg)](https://github.com/zircote/lsp-marketplace)\n[![LaTeX](https://img.shields.io/badge/LaTeX-008080?logo=latex\u0026logoColor=white)](https://www.latex-project.org/)\n\nA Claude Code plugin providing comprehensive LaTeX development support through:\n\n- **Texlab LSP** integration for IDE-like features\n- **Automated hooks** for linting and quality checks\n- **LaTeX tool ecosystem** integration (chktex)\n\n## Quick Setup\n\n```bash\n# Run the setup command (after installing the plugin)\n/setup\n```\n\nOr manually:\n\n```bash\n# Install Texlab LSP\ncargo install --locked texlab\n\n# Or on macOS with Homebrew\nbrew install texlab\n\n# Install ChkTeX for linting\nbrew install chktex  # macOS\napt install chktex   # Debian/Ubuntu\n```\n\n## Features\n\n### LSP Integration\n\nThe plugin configures Texlab for Claude Code via `.lsp.json`:\n\n```json\n{\n    \"latex\": {\n        \"command\": \"texlab\",\n        \"args\": [],\n        \"extensionToLanguage\": {\n            \".tex\": \"latex\",\n            \".bib\": \"bibtex\"\n        },\n        \"transport\": \"stdio\"\n    }\n}\n```\n\n**Capabilities:**\n- Go to definition / references\n- Hover documentation\n- Code completion (commands, environments, citations)\n- Document symbols and outline\n- Real-time diagnostics\n- Build integration\n\n### Automated Hooks\n\nAll hooks run `afterWrite` and are configured in `hooks/hooks.json`.\n\n#### Core LaTeX Hooks\n\n| Hook | Trigger | Description |\n|------|---------|-------------|\n| `latex-chktex-on-edit` | `**/*.tex` | Lint LaTeX files with chktex |\n| `latex-todo-fixme` | `**/*.tex` | Surface TODO/FIXME/XXX comments |\n\n#### Bibliography\n\n| Hook | Trigger | Description |\n|------|---------|-------------|\n| `latex-bib-lint` | `**/*.bib` | Check BibTeX syntax |\n\n## Required Tools\n\n### Core\n\n| Tool | Installation | Purpose |\n|------|--------------|---------|\n| `texlab` | `cargo install --locked texlab` | LSP server for LaTeX |\n| `pdflatex` or `xelatex` | TeX distribution (TeX Live, MiKTeX) | LaTeX compilation |\n\n### Recommended\n\n| Tool | Installation | Purpose |\n|------|--------------|---------|\n| `chktex` | `brew install chktex` (macOS) | LaTeX linting |\n| `biber` or `bibtex` | Included with TeX distribution | Bibliography processing |\n| `latexmk` | Included with TeX Live | Build automation |\n\n## Commands\n\n### `/setup`\n\nInteractive setup wizard for configuring the LaTeX development environment.\n\n**What it does:**\n\n1. **Verifies TeX distribution** - Checks for LaTeX installation\n2. **Installs Texlab** - LSP server for IDE features\n3. **Installs ChkTeX** - LaTeX linter\n4. **Validates LSP config** - Confirms `.lsp.json` is correct\n5. **Verifies hooks** - Confirms hooks are properly loaded\n\n**Usage:**\n\n```bash\n/setup\n```\n\n## Project Structure\n\n```\nlatex-lsp/\n├── .claude-plugin/\n│   └── plugin.json           # Plugin metadata\n├── .lsp.json                  # Texlab configuration\n├── commands/\n│   └── setup.md              # /setup command\n├── hooks/\n│   └── hooks.json            # Hook definitions\n├── tests/\n│   └── sample.tex            # Sample LaTeX file\n├── CLAUDE.md                  # Project instructions\n└── README.md                  # This file\n```\n\n## Troubleshooting\n\n### Texlab not starting\n\n1. Ensure `.tex` files exist in project root\n2. Verify installation: `texlab --version`\n3. Check LSP config: `cat .lsp.json`\n\n### Build errors not showing\n\n1. Ensure TeX distribution is installed: `pdflatex --version`\n2. Check for `texlab.toml` or `.texlabrc` configuration\n3. Verify build directory permissions\n\n### Hooks not triggering\n\n1. Verify hooks are loaded: `cat hooks/hooks.json`\n2. Check file patterns match your structure\n3. Ensure required tools are installed (`command -v chktex`)\n\n### ChkTeX too verbose\n\nEdit `hooks/hooks.json` to add filters:\n```json\n{\n    \"command\": \"chktex -q -n1 -n2 -n3 \\\"$FILE\\\" || true\"\n}\n```\n\nWhere `-n1`, `-n2`, `-n3` disable specific warnings.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzircote%2Flatex-lsp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzircote%2Flatex-lsp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzircote%2Flatex-lsp/lists"}