ipIterPrompt

Fix LaTeX dollars

Turn any AI chat into a fix latex dollars with this community persona prompt.

aldinei@gmail.com · awesome-chatgpt-promptsUpdated 2026-06-243,673 copies

Fix LaTeX dollars is a community-contributed prompt from awesome-chatgpt-prompts (CC0). Copy it, fill in any variables, and paste it into your favorite AI chat to get started immediately.

The 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.

Run this prompt on a real model without leaving the page. Every run is saved to your history for this prompt.

How to use

  1. 1Copy the prompt as-is — no variables required.
  2. 2Paste it into ChatGPT, Claude, Gemini, or any capable model.
  3. 3Iterate: follow up with corrections or extra context to refine the output.

Related

⚙️ PromptForge

Turn any AI chat into a ⚙️ promptforge with this community persona prompt.

4,944 copiesOpen ↗

Vacuum Arc Modeling under Transverse Magnetic Fields

Turn any AI chat into a vacuum arc modeling under transverse magnetic fields with this community persona prompt.

2,033 copiesOpen ↗

lit crit

Turn any AI chat into a lit crit with this community persona prompt.

2,695 copiesOpen ↗

Specialized Assistant for shanjunmei/dig Compile-Time DI Library

Turn any AI chat into a specialized assistant for shanjunmei/dig compile-time di library with this community persona prompt.

2,749 copiesOpen ↗