跳到主要内容

dsh-latex

已验证

@hoangthach/dsh-latex · v0.1.0 · MIT

Compile LaTeX projects with Tectonic from DeepSeek Harness.

安装

dsh plugin add @hoangthach/dsh-latex

dsh --profile default --dump-config 确认 layer 已生效 —— 参见安装指南

源码

发布到 npm 但没有公开仓库。安装前请检查包内容。

标签

作者

说明文档

Tobias LaTeX plugin for DeepSeek Harness

Plugin này thêm các tool LaTeX vào DeepSeek Harness. Tool compile chạy Tectonic trong workspace hiện được chọn và lưu PDF tại .tobias/compiled/<id>/.

Tools

  • latex_list_files — liệt kê tệp nguồn.
  • latex_list_assets — liệt kê ảnh/PDF/asset.
  • latex_read_file — đọc .tex, .bib, .md, .log và tệp văn bản.
  • latex_read_image — OCR ảnh bằng DeepSeek Vision, bao gồm công thức LaTeX.
  • latex_read_pdf — đọc nội dung PDF qua Poppler pdftotext.
  • latex_read_word — đọc .doc.docx.
  • latex_read_table — đọc .xlsx.csv thành bảng văn bản.
  • latex_compile — biên dịch Tectonic.
  • latex_read_compile_log — xem log compile gần nhất.
  • latex_export_word — xuất .tex sang .docx qua Pandoc.

Cài đặt

pnpm install
pnpm pack
dsh plugin --profile web add ./tobias-dsh-latex-0.1.0.tgz
dsh web

Máy chạy Harness phải có tectonic, pandoc, và Poppler (pdftotext) trong PATH; macOS đã có textutil để đọc Word. Tool OCR lấy key từ DEEPSEEK_API_KEY mặc định (hoặc đổi visionApiKeyEnv trong cordis.patch.yml). Sau khi mở Web UI, chọn workspace rồi yêu cầu agent: Biên dịch main.tex.

PDF là artifact trên filesystem ở bản đầu; mở đường dẫn PDF mà tool trả về. Bước tiếp theo là client plugin để render PDF ngay panel bên phải của DSH Web.