danieldaidai122 downloadsAutomatic Verification and Completion of LaTeX Mathematical Derivations: Detecting Errors in {align} Blocks and Suggesting Next Steps.
An Obsidian plugin that automatically validates and completes LaTeX mathematical derivations inside \begin{align}...\end{align} blocks.
\\ at the end of a derivation block to get autocomplete suggestions for the next step, powered by any Claude or OpenAI-compatible APImain.js, manifest.json, and styles.css from the latest release<your vault>/.obsidian/plugins/FormulaR/Open Settings → FormulaR to configure the following options:
| Setting | Default | Description |
|---|---|---|
| API Base URL | https://api.anthropic.com |
Claude or any OpenAI-compatible endpoint (e.g. Ollama, OpenAI, local models) |
| API Key | (empty) | API key for the above endpoint; leave empty for local-only Ollama |
| Model | claude-3-5-haiku-20241022 |
Model ID to use for validation and suggestions |
| Validation delay (ms) | 1500 |
How long to wait after you stop typing before triggering validation |
| Enable local validation | on | Use mathjs for algebraic equivalence checking (works offline) |
| Enable AI validation | on | Call the AI when local validation is inconclusive |
| Enable autocomplete | on | Suggest next steps when you type \\ at the end of an align block |
Write a LaTeX derivation inside an align environment in any note:
$$
\begin{align}
(x+1)^2 &= x^2 + 2x + 1 \\
&= x^2 + 3x + 1
\end{align}
$$
FormulaR will automatically:
\\ at the end of the blockWhen AI validation or autocomplete is enabled, the content of the align block being validated is sent to the configured API endpoint. No other vault content is transmitted. Disable Enable AI validation and Enable autocomplete to keep everything fully local.