Easy Prompt
写作生成文字进阶

Fix LaTeX dollars

来自 prompts.chat 的提示词:Fix LaTeX dollars

提示词正文

复制后可直接粘贴到模型或内部评测工具。

Investigate and fix the actual $ usages in Markdown content.

The $ fall into three classes:

  • Currency (escape these) — $1, $2 billion, R$ 549 → these pairs cause all the warnings
  • Real math (leave alone) — $\rightarrow$, $O(1)\text{ streaming}$ → valid, no warnings
  • Shell code (leave alone) — $(curl…), ${ZSH_CUSTOM}, $HOME → inside code blocks

Execute in 4 steps:

  • Investigate — greps the content, classifies every $ into currency / real math / shell code, and reports counts before changing anything.
  • Apply — checks the tree is clean, then writes and runs the exact tested Python script (code-fence-, inline-code-, frontmatter-, and math-span-aware; idempotent via the (?<!\) lookbehind so re-running never double-escapes).
  • Verify the diff — the safety net: greps that must print nothing for real math ($\rightarrow$, \text) and shell vars ($HOME, $(…), ${VAR}). If anything legit was touched, it tells you to git checkout -- . and stops.
  • Print instructions — outputs the build-verify and commit/push commands for user to run.

Do not autonomously run any build, commit, or push.

使用场景

同步入库后可继续人工润色

参考输出

暂无标准答案,建议按评分维度人工评审。

评分维度

重点评估可执行性、事实准确性、边界控制和结构完整度。

试用与模板

填写变量后复制,或保存到个人工作台模板。

这个模板没有变量,可直接复制使用。

用户评分

0 个评分
-

你的评分

登录后评分

评论

0

登录后评论

相关提示词