skills/katex/SKILL.md
Render and embed math formulas with KaTeX using official documentation-backed patterns. Use when an agent needs inline or display math in HTML, Markdown, MDX, or other text-based outputs, or when it should generate insertion-ready KaTeX snippets from TeX.
npx skillsauth add laitszkin/apollo-toolkit katexInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
node, npx, or network package download is unavailable, keep the source TeX unchanged and explain that KaTeX rendering could not be generated locally.references/official-docs.md before choosing render mode, options, or insertion strategy.apltk render-katex for deterministic output whenever a static rendered snippet is enough.htmlAndMathml, keep trust disabled unless the content source is explicitly trusted, and include the KaTeX stylesheet whenever the output will be displayed in HTML.Use KaTeX safely and consistently so mathematical formulas can be inserted into documents without the agent re-deriving the rendering workflow each time.
$...$ and $$...$$.Run the bundled renderer for pre-rendered output:
apltk render-katex \
--tex '\int_0^1 x^2 \\, dx = \\frac{1}{3}' \
--display-mode \
--output-format html-fragment
Useful output modes:
html-fragment: paste into HTML, MDX, JSX, or Markdown engines that allow raw HTML.html-page: generate a standalone previewable HTML file with the KaTeX stylesheet link included.markdown-inline: emit an inline-friendly HTML fragment for Markdown/MDX.markdown-block: emit a block-friendly HTML fragment for Markdown/MDX.json: emit machine-friendly JSON for downstream automation or templating.Useful options:
--display-mode for centered display math; omit for inline math.--katex-format htmlAndMathml by default for accessibility; switch only when the destination needs HTML-only or MathML-only output.--macro / --macro-file for reusable custom macros.--strict, --trust, --max-size, --max-expand, --error-color, and --no-throw-on-error when the task needs explicit control from the official options reference.html-fragment output and ensure the page loads the KaTeX stylesheet.html-page when the user wants a ready-to-open preview file.markdown-inline or markdown-block only if the target renderer preserves raw HTML; otherwise keep source TeX and document the runtime render requirement.See references/insertion-patterns.md for concrete insertion guidance.
katex.min.js, auto-render.min.js, the stylesheet, then call renderMathInElement(...) after the DOM is ready.trust off unless the input source is trusted and the task explicitly needs trusted commands.references/render-katex.md — apltk render-katex 工具的完整參數說明。在步驟 3 執行渲染前閱讀。references/official-docs.md: condensed notes from the official KaTeX docs and direct source links.references/insertion-patterns.md: insertion patterns for HTML, Markdown/MDX, and auto-rendered pages.development
Read a user-specified PDF that marks the week's key financial events, deeply research each marked event with current sources, capture any additional breaking financial developments, and produce a concise Chinese-capable PDF briefing that explains what happened and why it matters.
documentation
Generate long-form videos (more than 10 minutes) by following user instructions and invoking related skills only when needed (`openai-text-to-image-storyboard`, `docs-to-voice`, `remotion-best-practices`). For text inputs, extract a complete long-form story arc, generate fresh storyboard images (no reuse of previously generated pictures), and render a 16:9 animated long-form video.
tools
協助完成自動化版本發佈。同步文檔、更新版本號、推送 tag 並建立 GitHub Release。
development
Incrementally refresh the architecture atlas when the project diagram drifts from actual code. Measures drift before updating to determine scope, then updates the base atlas and re-renders HTML.