xiaxi626/dsh-math-input0

dsh-math-input

Zero-token offline math input for DeepSeek Harness: handwriting recognition, screenshot OCR, LaTeX editor, and inline LaTeX rendering.

包名
dsh-math-input
版本
0.1.0
许可证
MIT
最近更新
2026年9月1日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xiaxi626/dsh-math-input

Usage

Click the "+" button to the left of the input row to open the menu:

1. Handwriting input

  1. Click "Handwriting input" in the menu — a canvas modal pops up
  2. Draw a formula with mouse, touch, or stylus
  3. Stop for ~1.5 seconds (configurable in Settings) — the engine recognizes automatically
  4. The result renders as a KaTeX preview; the LaTeX source is editable below
  5. Click "Confirm and insert" — the formula enters the composer as \[ ... \] and renders inline
  6. Click "Clear" to start over, "Undo" to remove the last stroke

2. Screenshot OCR

  1. Click "Screenshot and recognize" in the menu
  2. Ctrl+V to paste an image, or click "Upload file" to select a local image
  3. The engine extracts LaTeX from the image automatically
  4. Review the preview and click "Confirm and insert"

3. LaTeX syntax editor

  1. Click "LaTeX syntax editor" in the menu — a dock panel expands below the input row
  2. The palette offers Greek letter buttons (\alpha, \beta, \pi, etc.) and template buttons (\frac{}{}, \sqrt{}, \sum_{}^{}, etc.)
  3. Click any button to insert the corresponding LaTeX code into the editor
  4. A live KaTeX preview renders on the right
  5. 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.