Yaohua-Leo/dsh-latex ↗★ 0

dsh-latex

Native DeepSeek Harness LaTeX workspace: edit .tex files in an in-app editor, compile local TeX Live projects with latexmk, and keep a live PDF preview refreshed on save.

包名
dsh-latex
兼容性
待验证
版本
0.3.0
许可证
MIT
最近更新
2026年11月4日

同名包的其他仓库

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add https://github.com/Yaohua-Leo/dsh-latex/releases/latest/download/dsh-latex.tgz

Configuration

Defaults live in cordis.patch.yml; override any field from the profile patch layer, for example:

- override:
    - id: latex
      config:
        engine: lualatex
        timeoutMs: 300000
        texBinDir: 'C:\texlive\2024\bin\windows'
KeyDefaultMeaning
texBinDir''Directory containing latexmk and the engines. Empty discovers latexmk from DSH_LATEX_TEX_BIN or PATH; set it when TeX Live is not on PATH.
latexmkPath''Explicit latexmk executable; empty means /latexmk or PATH discovery.
enginexelatexxelatex, pdflatex or lualatex; a % !TEX program directive can override it.
buildDirbuildOutput/aux directory relative to the main .tex directory.
autoBuildtrueWatch project sources and rebuild after saves (debounced and coalesced).
debounceMs800Quiet window before an automatic build.
timeoutMs180000Hard build timeout; the latexmk/perl/engine process tree is terminated.
preserveLastGoodtruePublish only successful PDFs; a failed build keeps the previous preview.
autoOpenPreviewtrueOpen/focus the preview after an explicit successful build.
previewSurfacenativenative = plugin PDF.js tab; document = DSH built-in document preview.
allowedRoots[]Optional entry allowlist for project main files. Empty allows any local project. This is an accidental-operation fence, not a sandbox.
extraLatexmkArgs[]Extra argv elements appended to latexmk (never shell-interpreted).
maxConcurrentBuilds2Global process cap (1–8).
respectLatexmkrctrueWith a project .latexmkrc, do not force the configured engine flag.
allowProjectLatexmkrctrueHonour project/user rc files. Set false to pass -norc.
allowShellEscapefalseWhen false, pass -no-shell-escape; \write18 must be explicitly enabled.
editorAutoSavetrueSave and compile automatically after typing stops. Disable to require the triangle button / Ctrl+S.
editorAutoSaveDelayMs900Quiet window for auto-save in milliseconds (300–10000).
maxPrintLine2000max_print_line for the TeX child; reduces wrapped log lines.

DSH_LATEX_TEX_BIN is an environment-variable fallback for texBinDir; an explicit texBinDir wins. texBinDir is prepended to the child PATH, so a TeX Live installation does not have to be on the Host's system PATH.