dsh-math-input
Zero-token offline math input for DeepSeek Harness: handwriting recognition, screenshot OCR, LaTeX editor, and inline LaTeX rendering.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xiaxi626/dsh-math-input说明文档
阅读完整 README ↗Usage
Click the "+" button to the left of the input row to open the menu:
1. Handwriting input
- Click "Handwriting input" in the menu — a canvas modal pops up
- Draw a formula with mouse, touch, or stylus
- Stop for ~1.5 seconds (configurable in Settings) — the engine recognizes automatically
- The result renders as a KaTeX preview; the LaTeX source is editable below
- Click "Confirm and insert" — the formula enters the composer as
\[ ... \]and renders inline - Click "Clear" to start over, "Undo" to remove the last stroke
2. Screenshot OCR
- Click "Screenshot and recognize" in the menu
- Ctrl+V to paste an image, or click "Upload file" to select a local image
- The engine extracts LaTeX from the image automatically
- Review the preview and click "Confirm and insert"
3. LaTeX syntax editor
- Click "LaTeX syntax editor" in the menu — a dock panel expands below the input row
- The palette offers Greek letter buttons (
\alpha,\beta,\pi, etc.) and template buttons (\frac{}{},\sqrt{},\sum_{}^{}, etc.) - Click any button to insert the corresponding LaTeX code into the editor
- A live KaTeX preview renders on the right
- Click "Insert" — the formula enters the composer as
\[ ... \]
Inline rendering
Any \[ ... \] you type (or paste) in the composer renders inline as a formula. For example, typing \[x^2 + y^2 = r^2\] renders the equation directly.