dshbase

Plugin directory / Knowledge / dsh-latex-tools

dsh-latex-tools

Verified · install-tested on dsh liuup

✓ Actively maintained Pure TypeScript

View on GitHub ↗ ← Back to plugin directory

11Stars
0Forks
0Open issues
TypeScriptLanguage
2026-08-14Last push
Cross-platformPlatform

What it does

♾️ Copy and export the LaTeX in DeepSeek Harness: hover over any LaTeX formula to copy TeX source or export as standalone SVG file

✅
Our take
Works — verified, early-stage project

♾️ Copy and export the LaTeX in DeepSeek Harness: hover over any LaTeX formula to copy TeX source or export as standalone SVG file It installs cleanly and boots without issues in our testing. It's early-stage but functional.

“Verified” means our automated CI actually ran dsh plugin add in a clean profile and it booted — nothing more. Feature descriptions and version compatibility are the author’s claims. This is not a security audit and not an endorsement of third-party code.

README

dsh-latex-tools

English | 中文

♾️ Copy and export the LaTeX in DeepSeek Harness 悬停任意 LaTeX 公式,即可复制 TeX 源码或导出为独立的 SVG 文件

🐳 All the code are proundly generated by DeepSeek V4 Flash 0731

dsh-latex-tools 悬停公式显示复制/导出工具条

功能

  • 复制 LaTeX:鼠标悬停公式(行内或块级),点击「复制 LaTeX」,TeX 源码即进入剪贴板。
  • 导出 SVG:点击「导出 SVG」,公式经 MathJax 渲染为自包含的矢量图(字形轮廓内嵌为 path,无外部字体/样式依赖),下载为 formula-<slug>.svg,可用于论文、PPT、网页。
  • 完全离线可用:MathJax 脚本由插件自身的 host half 提供,首次导出时才按需加载,之后浏览器缓存;不依赖任何 CDN。
  • 支持行内与块级公式(块级按 display 模式导出)。

安装

要求:安装 Node.js,然后直接用官方 npm 方式运行(无需全局安装):

npx @deepseek-ai/dsh web

插件装进 profile 后随 Web UI 启动自动加载,无需手动启用;Settings → Plugins 列表只显示有配置项的插件,本插件没有配置项,不会出现在那里。

一键 npm 安装

npx @deepseek-ai/dsh plugin --profile web add dsh-latex-tools

安装的是预构建产物,无需本地构建、无需任何额外配置,装完重启 Web UI 即可。

验证安装

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)

dsh-latex-tools plugin list

卸载

npx @deepseek-ai/dsh plugin --profile web remove dsh-latex-tools

从 web profile 移除插件依赖与配置层,重启 Web UI 后生效。

开发(构建、测试、GitHub/源码安装,点击展开)
pnpm install
pnpm typecheck   # tsc --noEmit
pnpm test        # vitest(jsdom:工具条显隐 / 复制 / SVG 导出)
pnpm build       # tsdown:lib/index.js(host half)+ lib/client.js(browser half)

从 GitHub 安装(无需本地构建)

npx @deepseek-ai/dsh plugin --profile web add github:liuup/dsh-latex-tools

git 安装拉取的是源码,pnpm 会自动执行包内的 prepare 脚本完成构建。pnpm ≥10 默认拒绝运行 git 依赖的 prepare,首次 add 会失败——dsh 会打印指引:按提示把对应条目加入 profile 的 pnpm-workspace.yaml(allowBuilds 段),然后重跑上面的命令。生产使用建议 pin 提交:github:liuup/dsh-latex-tools#<commit-sha>。

本地源码安装(开发/自用)

git clone https://github.com/liuup/dsh-latex-tools.git
cd dsh-latex-tools
pnpm install && pnpm build          # 构建出 lib/(产物已被 gitignore,必须本地构建)
npx @deepseek-ai/dsh plugin --profile web add link:/absolute/path/to/dsh-latex-tools
npx @deepseek-ai/dsh web            # 启动 Web UI

License

MIT

Install

🧩 Let your agent install it (recommended)

Install the catalog once, then DeepSeek Harness can find and install any plugin from this site automatically:

dsh plugin add dshbase-catalog

Then say "install dsh-latex-tools for me" — your agent finds it in the directory and installs it. Docs: dshbase-catalog · verified packs.

Web profile:

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

Headless (CLI) profile:

dsh plugin --profile headless add dsh-latex-tools

Package

npm: dsh-latex-tools · version — · tested on dsh 0.1.0-rc.6

Test report

Verified end-to-end: L1 install + L2 load + L3 runtime Q&A on dsh 0.1.0-rc.6.

When to use it

Give the agent a memory, a knowledge base, or a retrieval layer so it stops forgetting context between sessions.

Who it's for

Users running long projects who want the agent to remember decisions, docs, and preferences without re-explaining.

For developers — extending it

The memory/retrieval backend is the seam — plug a new store, tune what gets distilled, or add citation and audit trails.

Security: not yet scanned — our daily static scan will cover it shortly.

Share this badge

More in Knowledge

Browse all 7797 plugins →