DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
M

dsh-mathtype

Mathtype

DeepSeek Harness 的 MathType OLE 公式:通过 MathType SDK 将 Word 文档中的 LaTeX 占位符转换为真实的 MathType 对象(Equation.DSMT4),保留公式编号、SEQ 字段、书签和交叉引用。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:DIPPER12138/dsh-mathtype#9f4ca194a56a569817badfcb7f9a3bfd9d6ee4b4
README兼容性版本
LaTeX placeholders on the left, the same equations after conversion to MathType OLE objects on the right

兼容性与来源证明

Mathtype 以 dsh-mathtype 发布,当前版本为 0.1.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
github
Registry 更新时间
2026/10/21

版本

0.1.0stable
2026/10/21

相关插件

正在加载相关插件…

最新版
0.1.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
any
许可证
MIT
发布源
github
GitHub
★ 0
周下载
0
最近提交
2026/10/21
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 productivity-workflow 分类下经过校验的插件。

Acp App@deepseek-ai/dsh-acp-appdsh ACP 配置文件包:基于 dsh-base 的仅限自动化的 JSON-RPC stdio 和进程生命周期管理Experimental Schedule Bundle@deepseek-ai/dsh-experimental-schedule-bundle为 Web 组合添加 Schedule、其任务页面和时间上下文的可选捆绑包Client Ui Task Board@linxin666/dsh-client-ui-task-board面向 DSH Web GUI 的主机权威任务面板,支持实际会话执行、主机 cron 调度以及可选的跨平台空闲睡眠保护;以挂载方式提供,无需修改 DSH 源代码。Web All@linxin666/dsh-web-allDSH Web UI 全家桶聚合插件:一键安装全部功能插件(task-board / pet / web-ui-settings / skin-center / community-plugins / compat shim)。compat 桥接层已并入本包(src/client),无需独立 compat npm 包。

README

dsh-mathtype

A DeepSeek Harness plugin that converts LaTeX placeholders in a Word .docx into real MathType OLE objects — ProgID="Equation.DSMT4", a CFB container holding an Equation Native stream — through the MathType SDK. The equations double-click into MathType like any hand-authored one. They are not Word's built-in OMML equations and not pictures.

LaTeX placeholders on the left, the same equations after conversion to MathType OLE objects on the right

Left: the \[ ... \] LaTeX as written in the .docx. Right: what Word holds after the run — real Equation.DSMT4 objects, rendered here by Word itself. The examples are textbook identities, chosen to show the format change rather than any one manuscript's content.

Because the document is edited in place through Word's own automation model, existing equation numbers, SEQ fields, bookmarks, REF cross-references, figures, tables and styles are never rebuilt.

What it ships

One model-invocable skill, mathtype, registered into ctx.skills when the plugin mounts:

PathRole
mt_env.pyDiscovers MathType, MT6.dll, Word and Python deps; smoke-tests the SDK.
mt_sdk.pyMT6.dll wrapper: connect, set_latex, get_text, close.
mt_prefs.pyEquation size via the MathType registry block, restored afterwards.
word_session.pyWord session that survives RPC crashes and late-binding failures.
convert_docx.pyThe conversion. --dry-run, --overrides, --report.
verify_docx.pyStructural proof: ProgID, CFB, Equation Native, rels, ShapeID, bookmarks, fields.
render_check.pyExport PDF, render page and per-equation QA sheets.
make_fixture.pyBuild a 6-equation test document with real SEQ fields.

No JavaScript dependencies: the registrar uses only node:fs, node:path and node:url, so the package installs offline.

Requirements

ComponentRequirement
OSWindows 10/11. COM and OLE have no macOS or Linux equivalent.
MathTypeMathType 7 desktop, full install — the fonts-only package has no System\<arch>\MT6.dll.
WordDesktop Word 2016/2019/2021/365. Not a viewer, not LibreOffice.
Python3.10+, bitness matching MT6.dll (64-bit Python ↔ System\64\MT6.dll).
Python packagespywin32, lxml. Optional: pymupdf + Pillow for the render check.
python -m pip install pywin32 lxml
python -m pip install pymupdf Pillow     # optional, render check only

Nothing is hard-coded: the MathType directory, SDK DLL and preference files are resolved from the registry at run time, so a non-default install location works.

Install

# from GitHub — use the profile you actually run (`desktop` or `web`)
dsh plugin --profile desktop add github:DIPPER12138/dsh-mathtype

# or from a local checkout, for development
dsh plugin --profile desktop add /absolute/path/to/dsh-mathtype

Restart dsh afterwards. The mathtype skill then appears in the skill catalog.

If you previously copied this skill into ~/.dsh/skills/mathtype by hand, delete that copy — otherwise the same skill is registered twice.

Verify the machine first

The plugin cannot install MathType, Word or Python for you, and it cannot install Python packages. Check the environment before converting anything:

python <skill-dir>/scripts/mt_env.py

It reports the resolved MathType directory and DLL, the Word version, dependency status and a live MTAPIConnect result, and exits 0 only when the machine is ready. On a new machine, prove the whole chain with the bundled fixture first (about two minutes):

python scripts/make_fixture.py -o fixture.docx -f
python scripts/convert_docx.py fixture.docx -o fixture-out.docx --size 10.5
python scripts/verify_docx.py fixture.docx fixture-out.docx --expect 6

Use

# what would be converted? (reads the .docx package only — no Word, no COM)
python scripts/convert_docx.py manuscript.docx -o manuscript-MathType.docx --dry-run

# convert (54 equations take roughly 10-15 minutes)
python scripts/convert_docx.py manuscript.docx -o manuscript-MathType.docx \
        --size 10.5 --report conversion.json

# prove the objects are real MathType equations
python scripts/verify_docx.py manuscript.docx manuscript-MathType.docx --expect 54

# optional: PDF export plus page/equation QA sheets
python scripts/render_check.py manuscript-MathType.docx --outdir qa

Recognised placeholders, one per paragraph:

SourceResult
\[a=b\tag{7}\]centred MathType object, number (7) right-aligned
\[a=b\tag{2a}\]number (2a); sub-lettering survives
\[a=b\]centred object, no number
$a=b$inline object

Numbers inside \tag{...} are never regenerated: an existing SEQ field, bookmark or literal 2a is kept verbatim, so every REF still resolves.

--size sets the equation size (accepts 10.5 or "10.5 pt"); the previous MathType setting is restored afterwards. --align none leaves paragraph layout untouched. --overrides fixes.json replaces individual equations by label.

Limitations

  • Windows only.
  • It converts existing LaTeX placeholders; it does not author or validate mathematics.
  • It does not convert MathType back to LaTeX in batch (the SDK wrapper exposes get_text() for single equations).
  • It does not produce Word OMML — that is the other direction.
  • Requires the real MathType installation; the SDK DLL is never redistributed with this plugin.

Uninstall

dsh plugin --profile desktop remove dsh-mathtype

License

MIT. See LICENSE.

MathType is a trademark of Design Science. This plugin uses the MathType SDK installed on the user's machine and ships none of it.