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.
같은 패키지 이름의 다른 저장소
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add https://github.com/Yaohua-Leo/dsh-latex/releases/latest/download/dsh-latex.tgzConfiguration
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'
| Key | Default | Meaning |
|---|---|---|
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. |
engine | xelatex | xelatex, pdflatex or lualatex; a % !TEX program directive can override it. |
buildDir | build | Output/aux directory relative to the main .tex directory. |
autoBuild | true | Watch project sources and rebuild after saves (debounced and coalesced). |
debounceMs | 800 | Quiet window before an automatic build. |
timeoutMs | 180000 | Hard build timeout; the latexmk/perl/engine process tree is terminated. |
preserveLastGood | true | Publish only successful PDFs; a failed build keeps the previous preview. |
autoOpenPreview | true | Open/focus the preview after an explicit successful build. |
previewSurface | native | native = 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). |
maxConcurrentBuilds | 2 | Global process cap (1–8). |
respectLatexmkrc | true | With a project .latexmkrc, do not force the configured engine flag. |
allowProjectLatexmkrc | true | Honour project/user rc files. Set false to pass -norc. |
allowShellEscape | false | When false, pass -no-shell-escape; \write18 must be explicitly enabled. |
editorAutoSave | true | Save and compile automatically after typing stops. Disable to require the triangle button / Ctrl+S. |
editorAutoSaveDelayMs | 900 | Quiet window for auto-save in milliseconds (300–10000). |
maxPrintLine | 2000 | max_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.