AnkiSpace

AnkiWeb addon 907330705

Adds a { } toolbar button that spaces adjacent braces inside LaTeX/MathJax, preventing clashes with Anki cloze syntax and preserving existing cloze deletions.
AI-generated summary; may contain mistakes.

formattingcloze

Open on AnkiWeb GitHub Ask about alternatives

AnkiWeb

Rating
0 (πŸ‘ 0 Β· πŸ‘Ž 0)
Updated
2026-03-01
Anki versions
2.1.1~
Description language
en

Maintenance

stale

  • Last update or commit was 214 days before the snapshot (2026-03-01).

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.1+2026-03-01
History across monthly snapshots

Loading…

Similar addons

AnkiSnip

Provides customizable LaTeX-aware snippets for Anki, expanding cc to cloze and fr to fraction inside MathJax, with ctrl+; tabstops and configurable settings.

card-creationformattingshortcutscloze

Rating 0 πŸ‘ 0 Β· πŸ‘Ž 0 ⭐ 0 Anki 2.1.1~ Updated 2026-02-02

README

AnkiSpace β€” Fix MathJax Brace Spacing

Anki addon that adds spaces between adjacent curly braces inside LaTeX/MathJax environments, preventing conflicts with Anki's cloze deletion syntax ({{c1::...}}).

The problem

When writing LaTeX in Anki, nested braces like \frac{{x}}{{y}} clash with Anki's cloze syntax β€” Anki sees {{ and }} as cloze markers rather than LaTeX grouping.

The fix

Click the { } button in the editor toolbar to fix all fields in the current note. The button appears in both the Add Note dialog and the Card Browser.

Transforms (inside LaTeX only):

Before After
{{ { {
}} } }

Runs repeatedly until no adjacent braces remain (e.g. }}}} becomes } } } }).

Supported LaTeX delimiters: \(...\), \[...\], $...$, $$...$$

Examples

\(\frac{{x}}{{y}}\)       β†’  \(\frac{ {x} }{ {y} }\)
{{c1::\[\frac{2}{3}\]}}   β†’  unchanged (cloze preserved)

Configuration

Go to Tools β†’ Add-ons β†’ AnkiSpace β†’ Config:

{
    "enabled": true
}

Set enabled to false to disable the button without removing the addon.

Installation

Copy the ankispace folder into your Anki addons directory:

  • Linux: ~/.local/share/Anki2/addons21/
  • macOS: ~/Library/Application Support/Anki2/addons21/
  • Windows: %APPDATA%\Anki2\addons21\

Restart Anki.