Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By PsychQuantv0.7.0MITIn 1 marketplace
讓 AI 完全清楚 LaTeX 修正的結果 — 改一行 source 立刻知道 PDF 第幾頁變了、變成什麼樣、有沒有副作用、有沒有新 bug、PDF review 的紅圈對到哪個 source 位置。通用 LaTeX 工具,任何專案都可用。20 tools(編譯 / git ref 視覺 diff / layout overlap 偵測 / 字型缺字 / 半形標點 / chunk preview / annotation 抽取 + grep 反查 / 文字→頁碼定位)+ 6 skills(含跨專案的中文排版規則 typesetting-rules)。
Claude loads one when your task matches it, or you run it by name.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
mcp, latex, xelatex, pdf, typesetting, visual-diff, layout-detection, macos
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
Mission:讓 AI 完全清楚 LaTeX 修正的結果。
改了一行 source,AI 必須知道:PDF 第幾頁變了、變成什麼樣、有沒有副作用、有沒有新 bug。不是「我改完了你自己編譯看看」,是 AI 自己看到結果、自己 attribute 影響、自己抓 bug。
通用 LaTeX 工具 — 任何 LaTeX 專案(論文、CV、書、講義、簡報)都可以用,不綁定特定領域。
AI 改 LaTeX 一直有個 fundamental 問題:source 跟 output 中間隔著 xelatex 這個黑盒。
傳統 loop:
AI 改 source → 跟人說「請編譯看看」→ 人編譯 → 截圖貼回來 → AI 看圖
↑ 人卡在這裡,每次 ~30 秒
或自動化但很重的 loop:
AI 改 source → bash xelatex → python render PNG → Read PNG → 視覺判斷
~4 個 tool call、~15 秒、且無 attribution(改了 X 影響到哪幾頁?不知道)
這兩條 loop 的後果:
把「看到結果 + attribute 變化 + 抓 bug + 預覽片段 + 對應 review」五件事壓進 single tool call,讓 AI 在改 source 的同時就完全掌握結果。
| Pillar | 對應問題 | 解法 | 工具 |
|---|---|---|---|
| 1. 看到結果 | 改完不知道長怎樣 | source → PDF → PNG → AI 直接 Read,一個 call 完成 | compile_latex + preview_page / preview_range |
| 2. Attribute 變化 | 改 X 影響到哪幾頁?不知道 | git ref 對照視覺 diff,紅色高亮所有變動 region | compile_diff(git_ref) + compare_pdfs |
| 3. 抓 bug | 字疊、缺字、跑頁外 — source 看不出 | explicit detector:bbox 重疊、log 缺字、box 警告、CJK 半形標點 | detect_layout_issues + find_overlaps + fonts_check + box_warnings + punct_check |
| 4. 預覽片段 | 編整本 30 秒太重 | standalone class wrap → 單頁 PDF → 3x PNG,~3 秒 | compile_chunk |
| 5. 對應 review | PDF 紅圈 → source 位置斷層 | PDF annotation 抽出 + grep source 反查 | extract_annotations + annotation_to_source |
AI 改 source → call compile_diff(HEAD~1) → 拿到 ripple page list + 視覺 diff PNG
→ call detect_layout_issues → 拿到所有 overlap / widow / 缺字 warning
→ AI 直接 Read PNG,知道現在長怎樣、影響到誰、有沒有新 bug
→ 全 in single AI turn,~5 秒
不必跟人說「請編譯看看」,不必猜「我改的東西會不會影響別處」,不必擔心字型缺字編出來才發現。
收到 PDF review/校稿時:
AI call extract_annotations(pdf) → 拿到所有 reviewer comment + 位置 + surrounding text
→ 對每條 annotation call annotation_to_source(text, src_dir) → 拿到 file:line 候選
→ AI 直接編輯對應 source,不必人手動標 location
compile_latex — 編譯(xelatex / pdflatex / lualatex)preview_page — 單頁 PDF → PNG(3x 高解析)preview_range — 批次截多頁get_page_content — 抽頁面文字find_pagebreaks / analyze_pages — 章節對應頁碼get_document_info — 文件 metadatacheck_errors — .log 錯誤警告compile_diff(git_ref) — git worktree checkout → compile → 跟當前 PDF 視覺 diff,一次 call 完成 baseline + comparecompare_pdfs — 兩 PDF 像素級 diff,紅色高亮變動 regiondetect_layout_issues — 綜合 audit:widow / empty page / overlapfind_overlaps — block 重疊(字疊/box 重疊 bug)get_page_metrics — 單頁 layout 數據(留白比例、block 數、widow 風險)extract_blocks — 抽頁面所有 text block(bbox + text + 字數)fonts_check — .log 字型缺字(U+22EF ⋯ / U+2192 → 等 fallback 成 □)box_warnings — .log overfull / underfull boxpunct_check — 半形標點夾在 CJK 中間(CJK 上下文偵測)compile_chunk — standalone class 編譯片段 → 單頁預覽extract_annotations — PDF annotation 全抽出(page + bbox + type + comment + surrounding text),JSON 結構化annotation_to_source — surrounding text → grep source 找 file:line 候選Pillar 5 是 generic primitive:MCP 只負責「抽出 raw annotation」+「反查 source 位置」,不做分類 / 驗證。專案特有的分類規則(哪些 comment 是「字型缺字」、哪些是「跨頁」)由 caller 自己處理(skill / script layer)。
| Skill | Trigger | 對應 Pillar | 串接 tools |
|---|---|---|---|
latex-validate | 「驗證 LaTeX」「audit」「commit 前檢查」 | Pillar 3 | fonts_check → box_warnings → detect_layout_issues → find_overlaps |
latex-visual-diff | 「視覺 diff」「跟上版比」「我改了 X 影響哪幾頁」 | Pillar 2 | compile_diff(git_ref) 或 compare_pdfs |
latex-precompile | 「precompile check」「source audit」「掃半形/缺字」 | Pillar 3(source-level) | punct_check + fonts_check + box_warnings |
latex-preview-chunk | 「預覽這個片段」「不要編整本」 | Pillar 4 | compile_chunk + Read PNG |
latex-page-locate | 「這段在第幾頁」「頁碼對不對」「勘誤要填 location」 | Pillar 1 | analyze_pages → get_page_content(+ compile_latex 若 PDF 過期) |
typesetting-rules | 「排版規則」「孤行寡行」「標題卡在頁底」「半形標點」「首行縮排」 | 規則(不跑工具) | 十條中文排版規則,各寫 LaTeX 與 Word 的做法,以及用哪個 tool 檢查 |
claude plugin marketplace add PsychQuant/psychquant-claude-plugins
claude plugin install che-latex-mcp@psychquant-claude-plugins
首次使用會自動從 GitHub Release 下載 binary 到 ~/bin/che-latex-mcp。
compile_diff(git_ref) 需要)npx claudepluginhub psychquant/psychquant-claude-plugins --plugin che-latex-mcpBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground