dsh-latex

Compiles LaTeX with the TeX Live installed on the machine: one `latex` tool typesets a formula into an SVG, PNG or PDF and a whole document into a PDF (Chinese text switches to xelatex with ctexart), writes the file into the workspace and returns a Markdown reference to it. A system-prompt section asks the model to write `$...$` and `$$...$$` instead of code fences, and when no TeX Live is found a banner above the composer offers a one-click BasicTeX or TinyTeX install.

Overview

Compiles LaTeX with the TeX Live installed on the machine: one `latex` tool typesets a formula into an SVG, PNG or PDF and a whole document into a PDF (Chinese text switches to xelatex with ctexart), writes the file into the workspace and returns a Markdown reference to it. A system-prompt section asks the model to write `$...$` and `$$...$$` instead of code fences, and when no TeX Live is found a banner above the composer offers a one-click BasicTeX or TinyTeX install.

Installation

Install from GitHub

dsh plugin --profile web add github:Accelerater-tech/dsh-latex

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.