Fix LaTeX dollars
Fix LaTeX dollars — a ready-to-use text prompt with customizable fields (ZSH_CUSTOM, VAR) for Writing & Content. Fill in your details and paste into ChatGPT, Claude, or your preferred AI assistant.
How to use it
- Fill in ZSH_CUSTOM, VAR below (or keep the suggested defaults).
- Copy the generated prompt.
- Paste it into ChatGPT, Claude, or your preferred AI assistant.
Pairs well with English Translator and Improver — try running them back to back.
Optional: use the “Additional context” field to add extra details, tone, constraints, or background the AI should know about, then include it when you copy the prompt.
Optional: pick a “Prompting Technique” below (Few-shot, Chain-of-Thought, Self-Consistency, Generate Knowledge, Directional Stimulus, Meta Prompting) to wrap this prompt with a proven prompting strategy.
The base prompt
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.Want it filled in and enhanced? Use the builder →
Related prompts
English Translator and Improver
English Translator and Improver — a ready-to-use text prompt with customizable fields (Your first sentence) for Writing & Content. Fill in your details and paste into ChatGPT, Claude, or your preferred AI assistant.
Storyteller
Storyteller — a ready-to-use text prompt with customizable fields (Your first request) for Writing & Content. Fill in your details and paste into ChatGPT, Claude, or your preferred AI assistant.
Football Commentator
Football Commentator — a ready-to-use text prompt with customizable fields (Your first request) for Writing & Content. Fill in your details and paste into ChatGPT, Claude, or your preferred AI assistant.
Screenwriter
Screenwriter — a ready-to-use text prompt with customizable fields (Your first request) for Writing & Content. Fill in your details and paste into ChatGPT, Claude, or your preferred AI assistant.