Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

Add \: spacing command alias #1

@Jason-Abbott

Description

@Jason-Abbott

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 spacing

Use Cases

  • Fine typography control
  • Integral notation (negative space for tight double integrals)
  • Custom spacing in complex expressions

Implementation Notes

  • Insert proper MathSpace atoms 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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions