This repository was archived by the owner on Feb 24, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Add \: spacing command alias #1
Copy link
Copy link
Open
Description
Add support for the remaining fine spacing commands. \, (thin space) already works, but the others are missing.
Currently returns: Invalid command \: (and similar for others)
Commands to Implement
| Command | Description | Width |
|---|---|---|
\: |
Medium space | 4/18 em |
\; |
Thick space | 5/18 em |
\! |
Negative thin space | -3/18 em |
Examples
\int\!\!\!\int f(x,y) dx dy % tight double integral
x \, y \: z \; w % mixed spacingUse Cases
- Fine typography control
- Integral notation (negative space for tight double integrals)
- Custom spacing in complex expressions
Implementation Notes
- Insert proper
MathSpaceatoms with appropriate widths \,is already implemented (3/18 em) — use as reference
Update (from TeXShop evaluation)
\; and \! already work — they are mapped in MathAtomFactory.supportedLatexSymbols as:
";"→MathSpace(space: 5)(thick space, 5/18 em) ✅"!"→MathSpace(space: -3)(negative thin space, -3/18 em) ✅
Only \: is actually missing. It should map to MathSpace(space: 4), same as the existing ">" entry.
Fix
Add to supportedLatexSymbols in Sources/MathViews/MathRender/MathAtomFactory.swift (around line 535):
":" : MathSpace(space: 4),👾 This issue is managed by Jig. Edits made here will be overwritten.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels