Skip to content

liuup/dsh-latex-tools

50Last commit Aug 14, 2026

dsh-latex-tools DSH plugin

dsh-latex-tools enhances the DeepSeek Harness Web UI by adding a hover toolbar on LaTeX formulas. You can copy the TeX source to clipboard or export the formula as a standalone SVG file (vector graphics with embedded paths). The plugin works fully offline after the first load, using its own bundled MathJax.

How to install the dsh-latex-tools DSH plugin

dsh plugin --profile web add dsh-latex-tools

Copying does not run this command. Review the repository and version before installing the dsh-latex-tools DSH plugin.

dsh-latex-tools DSH plugin data source

dsh-latex-tools DSH plugin snapshot date: Aug 16, 2026

discovered

What the dsh-latex-tools DSH plugin can do

  • Copy LaTeX source code by hovering over inline or block formulas
  • Export formulas as self-contained SVG files (no external fonts or styles)
  • Supports both inline ($...$) and displayed ($$...$$) LaTeX formulas
  • Fully offline after initial MathJax load (browser caches the 2.1 MB script)
  • No configuration needed; works out of the box after installation

Where the dsh-latex-tools DSH plugin fits

  • Copying a LaTeX formula from a DeepSeek Harness conversation to use in a LaTeX document
  • Exporting a formula as a vector SVG for inclusion in a presentation or paper
  • Working offline without relying on CDN for MathJax rendering
  • Quickly extracting formula source code for debugging or editing

Who the dsh-latex-tools DSH plugin is for

  • Researchers and academics using DeepSeek Harness who need to reuse LaTeX formulas
  • Students writing technical reports or papers with LaTeX
  • Users who prefer offline tools and want to avoid external dependencies

dsh-latex-tools DSH plugin limitations

  • Only works inside the DeepSeek Harness Web UI (not a standalone tool)
  • Requires Node.js and the DSH environment to be installed and running
  • First export of SVG loads MathJax (~2.1 MB) which may take a few seconds
  • No configuration interface; cannot be customized via settings

dsh-latex-tools DSH plugin: from the repository README

Quoted from the liuup/dsh-latex-tools README, the upstream source of the dsh-latex-tools DSH plugin. Copyright remains with the original authors.

- **复制 LaTeX**:鼠标悬停公式(行内或块级),点击「复制 LaTeX」,TeX 源码即进入剪贴板。 - **导出 SVG**:点击「导出 SVG」,公式经 MathJax 渲染为**自包含的矢量图**(字形轮廓内嵌为 path,无外部字体/样式依赖),下载为 `formula-<slug>.svg`,可用于论文、PPT、网页。 - 完全离线可用:MathJax 脚本由插件自身的 host half 提供,首次导出时才按需加载,之后浏览器缓存;不依赖任何 CDN。 - 支持行内与块级公式(块级按 display 模式导出)。 ## 安装 要求:安装 Node.js,然后直接用官方 npm 方式运行(无需全局安装): ```sh npx @deepseek-ai/dsh web ``` 插件装进 profile 后随 Web UI 启动自动加载,**无需手动启用**;Settings → Plugins 列表只显示有配置项的插件,本插件没有配置项,不会出现在那里。 一键 npm 安装 ```sh npx @deepseek-ai/dsh plugin --profile web add dsh-latex-tools ``` 安装的是预构建产物,无需本地构建、无需任何额外配置,装完重启 Web UI 即可。 ### 验证安装 ```sh npx @deepseek-ai/dsh --profile web --dump-config # 应看到 "# == dsh-latex-tools" 层 # 浏览器检查: # /plugins/dsh-latex-tools/client.js —— browser half 的 bundle # /dsh-latex-tools/mathjax/es5/tex-svg.js —— SVG 导出用的 MathJax(约 2.1 MB) ``` <p align="center"> <img src="./images/image_2.png" alt="dsh-latex-tools plugin list" width="550" /> </p> ### 卸载 ```sh npx @deepseek-ai/dsh plugin --profile web remove dsh-latex-tools ``` 从 `web` profile 移除插件依赖与配置层,重启 Web UI 后生效。 <details> <summary><b>开发</b>(构建、测试、GitHub/源码安装,点击展开)</summary> ```sh pnpm install pnpm typecheck # tsc --noEmit pnpm test # vi

Read the full READMERepository license: MIT

dsh-latex-tools DSH plugin questions

How do I install dsh-latex-tools?

Make sure you have Node.js installed. Then run: npx @deepseek-ai/dsh plugin --profile web add dsh-latex-tools. After that, restart the DSH Web UI. The plugin will load automatically; no manual enabling is needed.

Can I copy the LaTeX source of a formula?

Yes. Hover over any LaTeX formula (inline or block) in the DSH Web UI. A toolbar will appear. Click the 'Copy LaTeX' button, and the TeX source code will be copied to your clipboard.

How to export a formula as SVG?

Hover over the formula and click the 'Export SVG' button on the toolbar. The plugin will render the formula using MathJax and download a file named formula-<slug>.svg. The SVG is self-contained, meaning it includes all glyph paths and does not require external fonts.

Does the plugin work offline?

Yes, after the first use. The MathJax script (about 2.1 MB) is served by the plugin's host half and is cached by the browser after the first SVG export. Subsequent exports will work entirely offline without any CDN dependency.

How do I uninstall the plugin?

Run: npx @deepseek-ai/dsh plugin --profile web remove dsh-latex-tools. Then restart the DSH Web UI. The plugin will be removed from the profile and will no longer load.