claude-math 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,7 @@
11
11
  "name": "claude-math",
12
12
  "source": "./",
13
13
  "description": "Renders math as Unicode glyphs in the terminal instead of unrenderable LaTeX",
14
- "version": "0.3.0"
14
+ "version": "0.3.1"
15
15
  }
16
16
  ]
17
17
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-math",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Render math legibly in Claude Code. Emits Unicode glyphs instead of unrenderable LaTeX in the terminal (works in every terminal). Graphical sixel/kitty rendering is on the roadmap.",
5
5
  "author": {
6
6
  "name": "Vladimir Rotariu",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-math",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Emit mathematics as inline Unicode (∑, ≤, ℝ, x², matrices, set-builder) instead of LaTeX, so equations stay legible in the Codex TUI and any terminal. Copy- and search-safe. Also works in Claude Code.",
5
5
  "author": {
6
6
  "name": "Vladimir Rotariu",
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to `claude-math` documented here. Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). Versioning: [SemVer](https://semver.org/).
4
4
 
5
+ ## [0.3.1](https://github.com/vladimirrott/claude-math/compare/v0.3.0...v0.3.1) (2026-07-20)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **skill:** bracket big-operator bounds and parenthesize multi-char exponents ([#11](https://github.com/vladimirrott/claude-math/issues/11)) ([4284b6d](https://github.com/vladimirrott/claude-math/commit/4284b6d5b7819308b038cd2b798fb0bef028fa69))
11
+
5
12
  ## [0.3.0](https://github.com/vladimirrott/claude-math/compare/v0.2.0...v0.3.0) (2026-07-18)
6
13
 
7
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-math",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Render math legibly in Claude Code. Emits Unicode glyphs instead of unrenderable LaTeX in the terminal. (Graphical sixel/kitty rendering is on the roadmap.)",
5
5
  "keywords": [
6
6
  "claude",
@@ -111,25 +111,30 @@ Good:
111
111
 
112
112
  ### Rule 3 — Subscripts
113
113
 
114
- - Single Unicode-renderable index: prefer the glyph (x₁, x₂, xᵢ, x)
115
- - Multi-character or non-mappable subscript: keep `_{...}` syntax for clarity
114
+ - Single Unicode-renderable index: prefer the glyph (x₁, x₂, xᵢ, xⱼ, xₙ)
115
+ - Multi-character or non-mappable subscript: keep `_{...}` syntax the
116
+ underscore reads unambiguously as a subscript and stays more legible than
117
+ bracket-style indexing:
116
118
  - `n_{s,r}` ← (s,r) has no Unicode subscript form
117
119
  - `x_max`, `σ_obs` ← multi-letter
118
120
  - Never mix: don't write `x_₁` or `x_{1}` when `x₁` works.
119
121
 
120
122
  ### Rule 4 — Superscripts (powers)
121
123
 
122
- - Integer powers, simple: x², x³, xⁿ, e^x → eˣ
123
- - Multi-character / non-mappable: `x^{T}`, `x^{(i)}`, `A^{-1}` (or A⁻¹ if the exponent is simple)
124
+ - Simple / Unicode-mappable exponent: prefer the glyph — x², x³, xⁿ, eˣ, A⁻¹,
125
+ and the transpose x / vᵀ.
126
+ - Multi-character or expression exponent: use **caret + parentheses**, never
127
+ `^{...}` — `x^(k+1)`, `x^(i)`, `e^(iπ)`. A bare `x^{T}` / `x^{(i)}` leaks
128
+ LaTeX source; write `xᵀ` (single glyph) or `x^(i)` (parenthesized).
124
129
 
125
- ### Rule 5 — Big operators with indices
130
+ ### Rule 5 — Big operators with bounds
126
131
 
127
- Use Unicode operator + ASCII bounds:
132
+ Unicode operator + a **bracketed inline range** — never `_{...}^{...}`. Use `..`
133
+ for a numeric/expression range, `∈` for set membership, `→` for a limit target:
128
134
 
129
135
  ```
130
- _{i=1}^{n} aᵢ
131
- ∏_{k K} pₖ
132
- ∫_a^b f(x) dx
136
+ [i=1..n] aᵢ ∏[k ∈ K] pₖ ∫[a..b] f(x) dx
137
+ ∫[-∞..∞] e^(-x²) dx ⋃[i=1..n] Aᵢ lim[x→0] f(x)
133
138
  ```
134
139
 
135
140
  ### Rule 6 — Fractions
@@ -172,7 +177,7 @@ Q = { (s,r) ∈ T : n_{s,r} ≥ 18 ∧ p⁰_{s,r} < 0.9 }
172
177
  If a glyph chain becomes denser than the LaTeX it replaces, switch to readable ASCII pseudo-LaTeX and annotate it. Example:
173
178
 
174
179
  ```
175
- H(p) = − Σ_{x ∈ X} p(x) · log p(x) (Σ = sum over the support X)
180
+ H(p) = − ∑[x ∈ X] p(x) · log p(x) ( = sum over the support X)
176
181
  ```
177
182
 
178
183
  The reader's comprehension is the only metric. Choose whichever form is clearest, then stay consistent within a passage.
@@ -193,8 +198,8 @@ Variance Var(X) = 𝔼[X²] − 𝔼[X]²
193
198
  Gradient ∇f = ( ∂f/∂x₁ , ... , ∂f/∂xₙ )
194
199
  Norm ‖x‖₂ = √(Σᵢ xᵢ²)
195
200
  Big-O T(n) = O(n log n)
196
- Limit lim_{n → ∞} aₙ = L
197
- Sum bounds ∑_{i=1}^{n} i = n(n+1)/2
201
+ Limit lim[n → ∞] aₙ = L
202
+ Sum bounds ∑[i=1..n] i = n(n+1)/2
198
203
  Quantile q_α = inf{ x : F(x) ≥ α }
199
204
  ```
200
205
 
@@ -205,6 +210,7 @@ Quantile q_α = inf{ x : F(x) ≥ α }
205
210
  ✗ \( a^2 + b^2 = c^2 \)
206
211
  ✗ $$\int_0^\infty e^{-x^2} dx = \frac{\sqrt{\pi}}{2}$$
207
212
  ✗ \[ |Q|/|T| \approx 16.9\% \]
213
+ ✗ ∑_{i=1}^{n} or ∫_a^b or x^{T} (stacked bounds / brace exponent leak source even without $…$ — write ∑[i=1..n], ∫[a..b], xᵀ)
208
214
  ✗ Let 𝑉𝑎𝑟 = … or matrix 𝐀 = … (math-alphanumeric styling; garbles on copy/search — write Var, A)
209
215
  ```
210
216