Introduction¶
Formulas rendered in DSH are suitable for reading, but direct selection and pasting often results in formatting fragments, making them unsuitable for continued editing as TeX source code. dsh-latexcp solves this problem: hovering over a formula displays a copy button, allowing one-click copying of the formula’s TeX source code, and supports choosing a default between the two formats: dollar signs and slash parentheses.
DSH’s plugin ecosystem emphasizes “everything is a plugin.” The community directory is an independent site with no official affiliation to DeepSeek or Hyperbolic, and should not be regarded as an official app store.
What is this¶
dsh-latexcp is a LaTeX formula copying plugin for the DeepSeek Harness (DSH) Web interface. The maintainer listed in the materials is Chi-hong22, and the repository path is written as chi-hong22/dsh-latexcp; there are case differences in different materials, so this article uses the verified fields.
This plugin is used to copy the TeX source code of formulas from DSH pages to the clipboard. The license is MIT.
Core Features¶
- When hovering over any formula, a “LaTeX ▾” button floats in the top-right corner.
- Clicking the main button
LaTeXcopies the formula’s TeX source code to the clipboard. - Clicking the arrow
▾expands the format menu, allowing you to choose the default between dollar signs and slash parentheses. - Automatically recognizes whether the formula is inline or display, and outputs the correct single/double delimiters.
- The initial default format is dollar signs.
- Purely browser-side plugin, no host-side code, no service injection.
- Uses the browser
navigator.clipboardAPI, triggered by a user click.
Installation¶
Install the plugin to DSH’s web profile:
dsh plugin --profile web add github:chi-hong22/dsh-latexcp
This command uses the GitHub repository installation form. The plugin has no plugin-level configuration items, nor environment variables.
Typical Usage¶
- Hover over any formula, and a “LaTeX ▾” button appears in the top-right corner; it disappears about 0.25 seconds after moving away.
- Click
LaTeXto copy the source code in the current default format; the button briefly shows “✓ Copied”. - Click
▾to expand the format menu:$ … $/\( … \), with inline/display text descriptions. - Click one of them to set as the default format; a checkmark
✓indicates the current default. ClickingLaTeXagain will copy using the new format.
Inline formulas correspond to single delimiters, and display formulas correspond to double delimiters; both dollar signs and slash parentheses formats output according to the formula type.
Use Cases and Notes¶
Suitable for users who need to copy formula TeX source code in the DSH Web interface. Please note the following before use:
- The plugin runs with the current DSH process permissions; you should check the source code and the MIT license before installation.
- The plugin does not touch files, network, credentials, or user data; there is no host-side code, nothing is uploaded or stored.
- The plugin only reads the TeX source code of formulas in the current page’s DOM (
annotationnode text, residing only in browser memory), and only writes to the clipboard when the user clicks a button. - The plugin does not modify any DOM outside of message content; all side effects (buttons, styles, listeners, timers) are attached to the Cordis fiber, and are reverted when the plugin is disabled.
- The default format only exists in browser memory (during plugin runtime) and is not persisted; it reverts to the initial default format after disabling, updating, or restarting.
- Verified on
@deepseek-ai/dsh-*0.1.0-rc.6 (npx deployment snapshot), last verified date 2026-08-15. - If DSH’s major version adjusts the Markdown/KaTeX rendering DOM, the plugin may need to be updated accordingly.
- Manual installation is only for old versions or debugging; do not use it alongside the bundle channel, as running the same line twice will cause double loading.
- The plugin does not write log files; runtime errors are in the browser developer tools Console.
Links¶
- GitHub Repository: https://github.com/Chi-hong22/dsh-latexcp
- Directory page given by plugin clue: https://www.skillhub.cn/plugins/Chi-hong22/dsh-latexcp
This URL does not appear in verified materials, please confirm yourself before use.