Skip to main content

How to use dsh-latex-tools

Enables copying LaTeX source or exporting formulas as SVG by hovering over them.

This article is auto-derived from indexed fields (wiki / faq / compatibility_json), not freshly AI-generated.

This article is derived from the plugin's already-indexed fields (wiki / faq / compatibility_json / readme), not freshly generated by AI. Source field is noted at the end of each section.

Quick start

Enables copying LaTeX source or exporting formulas as SVG by hovering over them.

— source: plugins.ai_summary

Install & verify

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

Run the command above in your DSH Web Profile. Then enable the plugin in the plugin list.

— source: plugins.install

Key points

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

— source: plugin_wiki.readme_en (fallback readme_raw)

Pitfalls

Review the upstream repo before installing. This guide is auto-derived from indexed fields and may lag the latest release. If anything contradicts the official docs, treat the upstream source as authoritative.

— source: general rule