一键导入
cas-latex-renderer
Workflow for bridging Nerdamer symbolic CAS outputs into beautiful React KaTeX renders
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Workflow for bridging Nerdamer symbolic CAS outputs into beautiful React KaTeX renders
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Playbook for adding a new HP calculator model faceplate to hellocalc — verified key data, derived keyboard geometry, family archetypes, MachineUnit/nameplate/topbar wiring, hotkeys, unit + e2e guards, and the hard-won layout traps (lcm subgrids, aspectClass overrides, cascade rules, trademark-safe branding).
Guidelines on implementing an RPN LIFO stack architecture utilizing React state and Math.js BigNumbers
Reference on properly scaffolding the specific UI/UX constraints on a Next.js Shadcn layout.
| name | cas-latex-renderer |
| description | Workflow for bridging Nerdamer symbolic CAS outputs into beautiful React KaTeX renders |
When the user is in Algebraic or Symbolic modes, raw mathematical output from engines like Nerdamer or Math.js is unreadable natively in HTML. You must convert these outputs to LaTeX and render them safely.
Calculate the symbolic string natively.
import nerdamer from "nerdamer";
require("nerdamer/Algebra"); // if solving equations
// Example symbolic evaluation
const result = nerdamer('expand((x+y)^2)');
Both nerdamer and math.js have .toTeX() capabilities.
const latexString = result.toTeX();
Import react-katex to safely typeset without manually injecting inner HTML, avoiding XSS threats and styling issues.
import 'katex/dist/katex.min.css';
import { BlockMath } from 'react-katex';
export const DisplayEquation = ({ latexString }) => {
return (
<div className="math-display-container">
<BlockMath math={latexString} />
</div>
);
};